操作系统学习笔记(5)--makefile文件实例
2010-05-23 00:01
375 查看
Makefile文件的实例应用
test.c
test.h
Makefile
test.c
#include "stdio.h" #include "test.h" int main() { printf("this is a test. /n"); PAUSE(1000); printf("this is second test. /n"); KASSERT(1==1); printf("this is 3 test. /n"); }
test.h
#define PAUSE(count) / do { / unsigned long i; / for (i = 0; i < (count); ++i) / ; / } while (0) #define KASSERT(cond) / do { / if (!(cond)) { / printf("test /n"); / while (1) / ; / } / } while (0)
Makefile
#targets : prerequisites # command # ... # object : test.c test.h gcc -o object test.c clean : rm -f object
相关文章推荐
- cocos2d-x 3.0游戏实例学习笔记《卡牌塔防》第七步---英雄要升级&属性--解析csv配置文件
- Linux学习笔记——例说makefile 头文件查找路径
- 操作系统学习笔记(33)--文件系统
- Spring学习笔记2之表单数据验证、文件上传实例代码
- Makefile 学习笔记(三)实例
- 操作系统学习笔记:文件系统接口
- Linux学习笔记——例说makefile 多个文件
- python文件读写实例学习笔记
- 操作系统学习笔记:文件系统接口
- Jsoup学习笔记5:Jsoup 解析SAZ文件中的htm文档源码实例
- 操作系统 学习笔记4-文件管理
- cocos2d-x 3.0游戏实例学习笔记《卡牌塔防》第七步---英雄要升级&属性--解析csv配置文件
- 【GDB调试学习笔记】Makefile多级目录生成可执行文件
- Makefile 文件实例学习
- Caffe实例开发学习笔记。——网络配置文件 Layer参数详解——
- Unix学习笔记------实例练习---Day02_access函数文件访问权限测试
- 操作系统学习笔记:文件系统实现
- 跟我一起写Makefile学习笔记1——文件搜寻&伪目标&静态模式
- [转]Linux学习笔记——例说makefile 头文件查找路径
- 操作系统学习笔记:文件系统实现