Makefile.am、Makefile.in和Makefile的关系

来源:互联网 发布:mac如何把照片拷到u盘 编辑:程序博客网 时间:2024/06/04 20:03
/********************************************************************* * Author  : Samson * Date    : 01/30/2015 * Test platform: *              3.13.0-24-generic *              GNU bash, 4.3.11(1)-release  * *******************************************************************/

它们这三个东东是怎么来的呢?

Makefile.am: 是一些编译的选项及要进行编译的文件项等,例如:
bin_PROGRAMS=test
lib_LIBRARIES = libhand.a
libhand_a_SOURCES = hand.c

Makefile.in: 在automake手册中是这样说:while automake is in charge of creating Makefile.ins from Makefile.ams and configure.ac. 意思是Makefile.in是由Makefile.am和configure.ac的基础之上而生成的。

Makefile: 使用生成的configure脚本根据Makefile.in中的内容进行生成的最终进行程序或库编译的规则文件;

关系图如下,(此图来自网络)



此图参考:
http://www.360doc.com/content/12/0314/19/7982302_194349182.shtml

Ref:
http://www.gnu.org/software/automake/manual/

0 0
原创粉丝点击