怎样统一管理多个makefile工程?
如果不适用autoscan 和automake 工具,管理一些已存在工程,特别是刚进公司。
转自http://www.ugrad.cs.ubc.ca/~cs219/CourseNotes/Make/multMake.html
注意
1.hollylib gms cmu不能未当前存在目录。
2.注意工程依赖。
?
#Project main makefile# author raojl.2011.7.13# version .5.0PROG = HollyContactTRGTS = hollylib gms cmu$(PROG): $(TRGTS)all: $(TRGTS)hollylib:cd ./HollyLib/src ; make -f makefile.crlibgms:cd ./GMSService ; make -f makefile.gmsservicecmu:cd ./CMU ; make -f makefile.cmuserviceclean:cd ./HollyLib/src ; make -f makefile.crlib clean cd ./GMSService ; make -f makefile.gmsservice cleancd ./CMU ; make -f makefile.cmuservice cleanrealclean:cd ./HollyLib/src ; make -f makefile.crlib realcleancd ./GMSService ; make -f makefile.gmsservice realcleancd ./CMU ; make -f makefile.cmuservice realclean#end Project main makefile