自己以前写的一个makefile,留给以后做个纪念demo1

#
# Makefile
# [email protected]
#

SRCROOT = /workspace/tanjinc/release-1016/BDP_Generic

CXX = /usr/local/mtk-toolchain/soft_4.5.1_2.6.27_arm11-rhel4/i686/bin/armv6z-mediatek451_001_soft-linux-gnueabi-g++
CC =  /usr/local/mtk-toolchain/soft_4.5.1_2.6.27_arm11-rhel4/i686/bin/armv6z-mediatek451_001_soft-linux-gnueabi-gcc

INCLUDES += -Iinclude -I../libplist-1.8/include/ -I../libpcre/src/  -I ../jsoncpp/include \
     -I$(SRCROOT)/build/sysroot/usr/include \
     -I$(SRCROOT)/build/sysroot/usr/include/openssl \
  -I$(SRCROOT)/src_ind/so/inc/imtkpbctrl_client/IMtkPb \
  -I$(SRCROOT)/src_ind/so/inc/imtkcfg_client \
  -I$(SRCROOT)/src_ind/so/mtk_stream/inc \
  -I$(SRCROOT)/src/so_cfg/networkipc/inc\
  -I$(SRCROOT)/src/system/inc\
  -I$(SRCROOT)/build_linux_dll/src/system/inc \
  -I$(SRCROOT)/build/sysroot/usr/include/directfb-internal \
     -I$(SRCROOT)/build/sysroot/usr/include/directfb



CFLAGS += $(INCLUDES) -O2 -Wno-psabi  -Wall  
CXXFLAGS += $(INCLUDES) -O2 -Wno-psabi  -Wall  
ASFLAGS += $(INCLUDES)  
AFLAGS += $(ASFLAGS)    
LDFLAGS +=  -L $(SRCROOT)/build/build_initrd/formal/usr/lib -lm -lssl -lcrypto -ldl -lpthread -lrt \
         -L $(SRCROOT)/sysroot/lib \
     -L $(SRCROOT)/build/build_initrd/formal/usr/local/lib -limtkcfg_client -lstdc++ -limtkpbctrl_client \
  -lskmem -lmtk_rpcipc -lcurl -lz -lcares \
  -L $(SRCROOT)/build_linux_dll/src_ind/so/mtk_stream -lmtk_stream \
  -L $(SRCROOT)/build_linux_dll/src_ind/so/hls -lhls \
  -L $(SRCROOT)/build_linux_dll/src_ind/so/streaming_abc -lStreamingABC \
  -L $(SRCROOT)/build_linux_dll/src_ind/so/imtkpb_drm -limtkpb_drm \
  -L $(SRCROOT)/build_linux_dll/src/so_cfg/networkipc -lnetworkipc \
  -L $(SRCROOT)/build/sysroot/lib \
     -lsawman -lfusion -ldirectfb -ldirect

LIBOBJ= \
 TuziPlayIosSsdp.o\
 IpcServer.o\
 AirPlayServer.o \
  TuziPlayServer.o\
 Gethwaddr.o \
 Thread.o \
 HttpParser.o \
 md5.o \
 StringUtils.o \
 SystemClock.o \
 ThreadImpl.o \
 Implementation.o \
 ThreadSchedImpl.o \
 Event.o \
 RegExp.o \
 fstrcmp.o \
 MTKPlayer.o \
 MTKStreamPlayer.o \
 MTKPlayerFactory.o \
 MTKPhotoPlayer.o \
 Main.o \
 IpcInterface.o \
 photoInterFace.o \
 socketlib.o shairport.o alac.o hairtunes.o MTKAudioPlayer.o \
 ../libpcre/src/libpcre.a\
 ../libplist-1.8/libplist.a\
 ../jsoncpp/libjson.a\
 libpal_static.a \
 libtuzi_static.a \
 libmdns.a

all: airender_example


test: $(TESTOBJ)
$(CXX) $(TESTOBJ) -o $@ $(LDFLAGS)

airender_example: $(LIBOBJ)
$(CXX) $(LIBOBJ) -o $@ $(LDFLAGS)

clean:
rm -f *.s *.o *.obj AirplayServer lib  core .pure .nfs* *.old *.bak fluff tuzi_play airender_example test


你可能感兴趣的:(代码,makefile,demo1)