makefile
来源:互联网 发布:java打印一个菱形abc 编辑:程序博客网 时间:2024/05/21 18:47
makefile编写步骤:
假设有文件:main.c main.h stu.c stu1.c
**********************************************
all 为生成的目标文件
********************************************
all: main.o stu.o stu1.o
gcc main.o stu.o stu1.o -o all
main.o:main.c main.h
gcc main.c -c
stu.o:stu.c
gcc stu.c -c
stu1.o:stu1.c
gcc stu1.c -c
.PHONY:
rm -f all stu.o stu1.o
假设有文件:main.c main.h stu.c stu1.c
**********************************************
all 为生成的目标文件
********************************************
all: main.o stu.o stu1.o
gcc main.o stu.o stu1.o -o all
main.o:main.c main.h
gcc main.c -c
stu.o:stu.c
gcc stu.c -c
stu1.o:stu1.c
gcc stu1.c -c
.PHONY:
rm -f all stu.o stu1.o
- Makefile
- Makefile
- makefile
- makefile
- makefile
- Makefile
- Makefile
- Makefile
- Makefile
- Makefile
- Makefile
- makefile
- Makefile
- makefile
- Makefile
- makefile
- makefile
- makefile
- 插入排序、快速排序和php面向对象的知识
- Log4j日志输出详细
- 内存_新内存管理器
- TF-IDF与余弦相似性的应用(一):自动提取关键词
- HDOJ 2196 Computer
- makefile
- poj 3436 (最大流)
- TF-IDF与余弦相似性的应用(二):找出相似文章
- TF-IDF与余弦相似性的应用(三):自动摘要
- 基于用户投票的排名算法(五):威尔逊区间
- POJ 2559 / HDU 1506 / LightOJ 1083 Largest Rectangle in a Histogram (单调栈)
- 基于用户投票的排名算法(六):贝叶斯平均
- oradim
- 高斯模糊的算法