Makefile入门-多层目录
来源:互联网 发布:奥鹏教育教师网络培训 编辑:程序博客网 时间:2024/04/29 04:23
>>tree /f :Hello/Makefileinclude/hello.hlib/hello.cMakefilesrc/main.cMakefile
Hello/Makefile
hello:cd lib; makecd src; makegcc -Wall lib/hello.o src/main.o -o helloclean:cd lib; make cleancd src; make cleanrm hello
Hello/lib/Makefile
hello.o : helloworld.cgcc -c -o hello.o -I ../include helloworld.cclean:rm hello.o
Hello/src/Makefile
main.o : main.cgcc -c -o main.o -I ../include main.cclean:rm main.o
Hello/include/hello.h
#ifndef HELLOWORLD_H#define HELLOWORLD_Hvoid helloworld();#endif
Hello/lib/hello.c
#include void helloworld(){;}
Hello/src/main.c
#include int main(){helloworld();while(1);return 0;}
>>makecd lib; makegcc -c -o hello.o -I ../include helloworlcd src; makegcc -c -o main.o -I ../include main.cgcc -Wall lib/hello.o src/main.o -o test
- Makefile入门-多层目录
- 多层目录Makefile
- 多层目录编译的makefile文件编写
- 自动生成多层目录的静态库的Makefile
- makefile 多层嵌套实例
- 如何创建多层目录
- 创建多层目录函数
- 创建多层目录
- windows 删除多层目录
- 创建多层目录的文件夹
- 多层目录的automake写法
- 一次建立多层文件目录
- 创建多层目录(VC/MFC)
- UNICODE下创建多层目录
- 创建多层目录(VC/MFC)
- 用mkdir()创建多层目录
- android 多层目录文件创建
- linux mkdir创建多层目录
- Oracle 11G函数整理(层次函数)
- Struts2原理详解
- Excel VBA 入门(2) - Application常用方法
- 线性回归,偏差、方差权衡
- linux设备上的Onvif 实现13: 获取子通道的配置数据范围
- Makefile入门-多层目录
- 基于WCF的PDA系统框架【SOA】
- struts.xml配置详解
- windows 下搭建ruby on rails+Mysql开发环境
- Weblogic与Websphere Application Server集群模型对比
- 解读30个提高Web程序执行效率的好经验
- linux设备上的Onvif 实现12: 获取媒体配置数据
- J2EE 全面简介
- 《Linux启动过程分析》init进程挂载其他重要文件系统