makefile调用其他makefile
来源:互联网 发布:mac rar解压 编辑:程序博客网 时间:2024/06/05 04:24
|-- Makefile
|-- test1
||-- Makefile
||-- bin
|| `-- test
||-- hello.o
||-- include
|| `-- hello.h
| `-- src
| `-- hello.c
`-- test2
|-- Makefile
|-- bin
| `-- test
|-- hello.o
|-- include
| `-- hello.h
|-- obj
`-- src
`-- hello.c
根目录下的Makefile文件调用test2中的Makefile文件:
根目录下的Makefile文件
test2中的Makefile文件:
|-- test1
||-- Makefile
||-- bin
|| `-- test
||-- hello.o
||-- include
|| `-- hello.h
| `-- src
| `-- hello.c
`-- test2
|-- Makefile
|-- bin
| `-- test
|-- hello.o
|-- include
| `-- hello.h
|-- obj
`-- src
`-- hello.c
根目录下的Makefile文件调用test2中的Makefile文件:
根目录下的Makefile文件
SUBDIR= ./test2
MAKE= make
subsystem:
cd $(SUBDIR)&& $(MAKE)
MAKE= make
subsystem:
cd $(SUBDIR)&& $(MAKE)
all: ./bin/test
CC= gcc
INCLUDE= ./include
vpath%.c ./src
vpath%.h ./include
./bin/test: hello.o
$(CC)-o $@ $^
hello.o: hello.c hello.h
$(CC)-c $<-I$(INCLUDE)
.PHONY: clean
clean:
-rm *.o
CC= gcc
INCLUDE= ./include
vpath%.c ./src
vpath%.h ./include
./bin/test: hello.o
$(CC)-o $@ $^
hello.o: hello.c hello.h
$(CC)-c $<-I$(INCLUDE)
.PHONY: clean
clean:
-rm *.o
- makefile调用其他makefile
- makefile 调用其他makefile
- makefile 调用其他makefile文件
- Makefile详解-引用其他Makefile
- Makefile
- Makefile
- makefile
- makefile
- makefile
- Makefile
- Makefile
- Makefile
- Makefile
- Makefile
- Makefile
- makefile
- Makefile
- makefile
- 新开始
- 创意动手做:0成本iPhone保护套
- 连接CSP,创建CSP句柄
- InstallShield内部库函数全集(中文版)
- 多重继承
- makefile调用其他makefile
- 算法导论第九章习题9.3-7
- 车载信息系统平台的未来发展
- 外观模式(Facade Pattern)
- jasperreports jrxml文档格式分析(转)
- 未启用当前数据库的 SQL Server Service Broker,因此查询通知不受支持。如果希望使用通知,请为此数据库启用 Service Broker
- 自定义竖型TabWidget
- CSP开发基础--CryptoAPI函数简介
- 如何修复损坏的MySQL数据表[转]