简单版-Makefile
来源:互联网 发布:蚁群算法教程 编辑:程序博客网 时间:2024/03/29 13:39
fun.h
int add(int a, int b);
fun.c
#include"fun.h"
int add(int a, int b)
{
return a+b;
}
main.c
#include<stdio.h>
#include"fun.h"
int main()
{
int c = add(2,3);
printf("%d\n",c);
return 0;
}
Makefile
main:main.o fun.o
gcc main.o fun.o -o main
main.o:main.c fun.h
gcc -c main.c -o main.o
fun.o:fun.c fun.h
gcc -c fun.c -o fun.o
clean:
rm -f main *.o
0 0
- 简单版-Makefile
- 简单Makefile
- 简单Makefile
- 简单makefile
- 简单Makefile
- 最简单的makefile
- Makefile简单实战
- 一个简单的Makefile
- 简单的makefile
- 一个简单的makefile
- 编写简单Makefile (一)
- Makefile 简单编写(二)
- Makefile简单实战
- 最简单的makefile
- 一个简单的Makefile
- 编写简单的makefile
- makefile简单介绍
- 简单Makefile模板
- 【索引】Counting:Exercises: Beginner
- Win8被禁购信息战由暗到明
- org.xml.sax.SAXParseException: The prefix "context" for element "context:component-scan" is not boun
- 开源微博EasyTalk任意用户密码修改 (变量覆盖)
- 2014辽宁ACM省赛 Guess
- 简单版-Makefile
- java加密算法分享(rsa解密、对称加密、md5加密)
- c++面试题:判断数组是否存在重复元素
- liunx 笔记(1)
- 11218 - KTV(dfs)
- 2014辽宁省赛 Repeat Number
- 我选择坚持
- jquery修改td colspan时
- 运用autoconf和automake自动生成Makefile实例讲解