Loading

摘要: $@表示目标文件$^表示所有的依赖文件$<表示第一个依赖文件$?表示比目标还要新的依赖文件列表如一个目录下有如下文件:$ lshello.c hi.c main.c Makefile按照 Makefile 规则规规矩矩的写:main: main.o hello.o hi.o gcc -o main main.o hello.o hi.omain.o: main.c cc -c main.chello.o: hello.c cc -c hello.chi.o: hi.c cc -c hi.cclean: rm *.o ... 阅读全文
posted @ 2013-09-15 20:22 gamesun 阅读(27526) 评论(0) 推荐(2) 编辑