2012年10月8日 星期一

[Makefile][rule explain] Makefile rule explain


[Makefile][rule explain] Makefile rule explain



%.o : %.c



         $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@



%.o



% like *



$< : substitute all file to match document



ex : %.c



abc.c       bcd.c    xxx.c



$@ : substitute all file to match target



ex : %.o



abc.o      bcd.o     xxx.o

Related Posts:

0 意見:

張貼留言