2014年3月9日

初识makefile

摘要: make是常用的一个管理工程编译的工具其基本用法是:1、make,使用makefile作为规则文件2、make -f mf,使用mf作为makefile3、make all,make clean 指定目标4、make CPP=g++ 宏定义替换make的重点在makefile的内容0、基本格式# commenttarget: dependency rule若target时间比dependency早,则根据rule生成target注:rule前面是tab,不是空格1、简单的makefilehello.exe: hello.cpp g++ -o hello.exe hello.cpp2、宏 ... 阅读全文

posted @ 2014-03-09 16:11 FlowingCloud 阅读(256) 评论(0) 推荐(0) 编辑

导航