makefile
来源:互联网 发布:ocr身份证识别软件 编辑:程序博客网 时间:2024/06/06 01:49
简单例子
CC=gcc
CFLAGS=-g -Wall //定义宏,相当define
MyAPP: test.o dog.o //目标: 依赖文件
$(CC) -o MyAPP test.o dog.o ${CFLAGS} //生成目标的命令
test.o: test.c dog.h
$(CC) -c test.c $(CFLAGS)
dog.o: dog.c dog.h
$(CC) -c dog.c $(CFLAGS)
clean: --->make clean入口
-@rm dog.o test.o
-@echo OK
install: ---->make install 入口
@mv MyAPP /usr/bin/
@echo "install success"
make,make clean ,make install
@隐藏当前命令显示,-执行错误依然执行
2,subversion版本控制
3.patch应用
diff file1 file2 >dif
patch file1 dif
0 0
- Makefile
- Makefile
- makefile
- makefile
- makefile
- Makefile
- Makefile
- Makefile
- Makefile
- Makefile
- Makefile
- makefile
- Makefile
- makefile
- Makefile
- makefile
- makefile
- makefile
- Libjingle综述
- Ext调用规则返回json数据到页面
- 单片机的几种寻址方式
- linux下逐级创建目录
- little-endian与big-endian
- makefile
- Oracle存储过程记录
- 张孝祥整理的JAVA面试题目(六)(每天一更)
- 中星微ZC301P摄像头驱动支持
- 继续理解socekt具体使用--2
- Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.
- 分享一些牛人的心得
- android webview 使用以及一些常见的异常处理
- android view 分析