摘要:
完整大神版链接:跟我一起写 Makefile --- http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=408225&fromuid=28610854编写规则:以#开始的为注释具体编译过程:对象:依赖项编译方式注:makefile文本向右缩进时使用TAB键,不能用空格代替cc=g++exe=mainobj=main.o file1.o file2.o$(exe):$(obj) //依赖关系$(cc) -o $(exe) $(obj)//执行动作main.o:main.cpp file1.h file2.h$(cc) -c 阅读全文
posted @ 2013-01-31 16:24
garfieldx
阅读(115)
评论(0)
推荐(0)

浙公网安备 33010602011771号