makefile 备忘
来源:互联网 发布:nginx 全局 header 编辑:程序博客网 时间:2024/05/17 23:47
1。首要第一条,负责执行的命令(the target build instructions)必须以tab开头!否则会得到:
Makefile:2: *** missing separator. Stop.
or
"Makefile", line 2: Need an operatorFatal errors encountered -- cannot continue
2。插播一个刚解决的问题:很多Makefile会用g++ -M *.cpp 让系统自动生成一个dependent file,比如叫Makefile.depend。意图是好的,但clean中一定要记住删除这个system dependent的文件!否则换了机器编译可能找不到相应的头文件
3。2中的cc/g++ -M 选项,可以让系统生成依赖关系(头文件)。-M 会包括标准库函数的头文件的依赖(比如/usr/include/math.h),有时应该步需要,可以用-MM选项,则不会包含标准库。
4。自动化变量
- makefile 备忘
- makefile备忘
- makefile-备忘
- Makefile备忘
- makefile 问题备忘
- Erlang的Makefile文件备忘
- makefile 学习笔记(备忘)
- Makefile常用变量和规则备忘
- 备忘
- 备忘
- 备忘
- 备忘
- 备忘
- 备忘
- 备忘
- 备忘
- 备忘
- 备忘
- 云计算“安全作为服务”为可信计算带来了应用与发展的契机
- 程序员总结-如何干好一个技术牛人
- java多线程——生产者、消费者
- some problem
- Google的调侃
- makefile 备忘
- Problem 1
- 10032301
- R3 排序
- J2ME屏保程序
- 想考研
- 《Linux内核修炼之道》精华分享与讨论(13)——驱动开发三件宝:spec、datasheet与内核源码
- FormIE.cs
- BI入门经典