首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

make札记

2012-12-23 
make笔记Makefile中一个项由以下结构所组成:target: dependency_files? ? command比如,有两个文件hello.c,

make笔记

Makefile中一个项由以下结构所组成:

target: dependency_files

? ? command

比如,有两个文件hello.c,hello.h,创建的目标体为hello.o,执行命令是gcc -c hello.c,Makefile就可以这样写:

$(CC) $(CFLAGS) -c $< -o $@
?

?

?

?

热点排行