摘要: 使用make进行项目管理,需要一个Makefile文件,make在进行编译的时候,从Makefile文件中读取设置情况,进行解析后运行相关的规则。make程序查找当前目录下的文件Makefile或makefile,按照其规则运行。 1 #生成cacu,":"右边为目标 2 cacu:add_int.o add_float.o sub_int.o sub_float.o main.o 3 gcc -o cacu add/add_int.o add/add_float.o\ 4 sub/sub_int.o sub/sub_float.o main.o 5 6 #生成add... 阅读全文
posted @ 2012-05-02 22:23 海螺一枚 阅读(218) 评论(0) 推荐(1) 编辑