Makefile
来源:互联网 发布:淘宝主图5白底好处 编辑:程序博客网 时间:2024/06/05 16:31
1、
hello: main.o func1.o func2.ogcc main.o func1.o func2.o -o hellomain.o : main.cgcc –c main.cfunc1.o : func1.cgcc –c func1.cfunc2.o : func2.cgcc –c func2.c.PHONY : cleanclean :rm –f hello main.o func1.o func2.o
$^:代表所有的依赖文件
$@:代表目标
$<:代表第一个依赖文件
s举例子:
hello: main.o func1.o func2.ogcc main.o func1.o func2.o -o hello=》hello: main.o func1.o func2.ogcc $^ -o $@2、Makefile中“#”字符后的内容被视作注释。hello: hello.c@gcc hello.c –o hello@:取消回显 (演示)
0 0
- Makefile
- Makefile
- makefile
- makefile
- makefile
- Makefile
- Makefile
- Makefile
- Makefile
- Makefile
- Makefile
- makefile
- Makefile
- makefile
- Makefile
- makefile
- makefile
- makefile
- c++STl的全排列
- Atitit.pdf 预览 转换html attilax总结
- 模仿QQ快速显示图片效果
- poj 1019 Number Sequence 找规律 思维题 ()
- Atitit.go语言golang语言的新的特性 attilax总结
- Makefile
- Wire load model
- 软件帝国垄断下的反抗之声
- debian zte cdma mc315 无线网卡拨号上网配置
- Free Hardware
- Unity3D热更新 -脚本(二) 两级分化
- 崇洋媚外
- Atitit。Time base gc 垃圾 资源 收集的原理与设计
- Android 的性能工具用法 III-Traceview