日期:2014-05-16 浏览次数:20697 次
C_SRCS += \ src1/common1.cpp \ src2/common2.cpp \ src3/common3.cpp \ test.c OBJS += \ src1/common1.o \ src2/common2.o \ src3/common3.o \ test.o all: test test: $(OBJS) @echo 'Building target: $@' g++ -o test $(OBJS) -L./ $(LIBS) -lxml2 %.o: src1/%.cpp @echo 'Building file: $<' g++ -c $< -MD "-D_DEBUG" "-D__cplusplus" -L./lib -I/usr/include/ -I/usr/include/libxml2 ` @echo 'Finished building: $<' %.o: src2/%.cpp @echo 'Building file: $<' g++ -c $< -MD "-D_DEBUG" "-D__cplusplus" -L./lib -I/usr/include/ -I/usr/include/libxml2 ` @echo 'Finished building: $<' %.o: src3/%.cpp @echo 'Building file: $<' g++ -c $< -MD "-D_DEBUG" "-D__cplusplus" -L./lib -I/usr/include/ -I/usr/include/libxml2 ` @echo 'Finished building: $<'