michael@0: # This is a generic makefile for libyuv for gcc. michael@0: # make -f linux.mk CC=clang++ michael@0: michael@0: CC=g++ michael@0: CCFLAGS=-O2 -fomit-frame-pointer -Iinclude/ michael@0: michael@0: LOCAL_OBJ_FILES := \ michael@0: source/compare.o \ michael@0: source/compare_common.o \ michael@0: source/compare_posix.o \ michael@0: source/convert.o \ michael@0: source/convert_argb.o \ michael@0: source/convert_from.o \ michael@0: source/convert_from_argb.o \ michael@0: source/convert_to_argb.o \ michael@0: source/convert_to_i420.o \ michael@0: source/cpu_id.o \ michael@0: source/format_conversion.o \ michael@0: source/planar_functions.o \ michael@0: source/rotate.o \ michael@0: source/rotate_argb.o \ michael@0: source/rotate_mips.o \ michael@0: source/row_any.o \ michael@0: source/row_common.o \ michael@0: source/row_mips.o \ michael@0: source/row_posix.o \ michael@0: source/scale.o \ michael@0: source/scale_argb.o \ michael@0: source/scale_common.o \ michael@0: source/scale_mips.o \ michael@0: source/scale_posix.o \ michael@0: source/video_common.o michael@0: michael@0: .cc.o: michael@0: $(CC) -c $(CCFLAGS) $*.cc -o $*.o michael@0: michael@0: all: libyuv.a convert linux.mk michael@0: michael@0: libyuv.a: $(LOCAL_OBJ_FILES) linux.mk michael@0: $(AR) $(ARFLAGS) -o $@ $(LOCAL_OBJ_FILES) michael@0: michael@0: # A test utility that uses libyuv conversion. michael@0: convert: util/convert.cc linux.mk michael@0: $(CC) $(CCFLAGS) -Iutil/ -o $@ util/convert.cc libyuv.a michael@0: michael@0: clean: michael@0: /bin/rm -f source/*.o *.ii *.s libyuv.a convert michael@0: