Commit 6916811e authored by fbarchard@google.com's avatar fbarchard@google.com

Switch to CXX for linux.mk

BUG=none
TESTED=untested
R=tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/7759005

git-svn-id: http://libyuv.googlecode.com/svn/trunk@977 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 16ea9c81
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 976
Version: 977
License: BSD
License File: LICENSE
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 976
#define LIBYUV_VERSION 977
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
# This is a generic makefile for libyuv for gcc.
# make -f linux.mk CC=clang++
# make -f linux.mk CXX=clang++
CC=g++
CCFLAGS=-O2 -fomit-frame-pointer -Iinclude/
CXX?=g++
CXXFLAGS?=-O2 -fomit-frame-pointer
CXXFLAGS+=-Iinclude/
LOCAL_OBJ_FILES := \
source/compare.o \
......@@ -32,16 +33,16 @@ LOCAL_OBJ_FILES := \
source/video_common.o
.cc.o:
$(CC) -c $(CCFLAGS) $*.cc -o $*.o
$(CXX) -c $(CXXFLAGS) $*.cc -o $*.o
all: libyuv.a convert linux.mk
all: libyuv.a convert
libyuv.a: $(LOCAL_OBJ_FILES) linux.mk
libyuv.a: $(LOCAL_OBJ_FILES)
$(AR) $(ARFLAGS) -o $@ $(LOCAL_OBJ_FILES)
# A test utility that uses libyuv conversion.
convert: util/convert.cc linux.mk
$(CC) $(CCFLAGS) -Iutil/ -o $@ util/convert.cc libyuv.a
convert: util/convert.cc libyuv.a
$(CXX) $(CXXFLAGS) -Iutil/ -o $@ util/convert.cc libyuv.a
clean:
/bin/rm -f source/*.o *.ii *.s libyuv.a convert
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment