随笔分类 - Makefile
摘要:- PKG_NAME:=libglog PKG_VERSION:=0.3.3 PKG_REV:=da816ea70645e463aa04f9564544939fa327d5a7 PKG_SOURCE_URL:=git://github.com/google/glog.git PKG_SOURCE_P
阅读全文
摘要:显示当前Makefile所在目录。 Makefile文件内容: all: @echo $(CURDIR) $(CURDIR)为make自带的函数
阅读全文
摘要:来源:《跟我一起写Makefile》作者:陈皓 第15页 默认的情况下,make 命令会在当前目录下按顺序找寻文件名为“GNUmakefile”、 “makefile”、“Makefile”的文件,找到了解释这个文件。在这三个文件名中,最好使用 “Makefile”这个文件名,因为,这个文件名第一个
阅读全文
摘要:hello.c文件: #include <stdio.h> int main() { printf("Hello Word!!!\n"); return 0; } Makefile文件: 执行顺序, 1.hello:hello.o中的hello是要生成的执行文件,谁来生成呢? 就是hello.o。
阅读全文