Chinaunix

标题: 怎样由Makefile.in和Makefile.am生成Makefile? [打印本页]

作者: wolf711988    时间: 2009-03-17 22:57
标题: 怎样由Makefile.in和Makefile.am生成Makefile?
怎样由Makefile.in和Makefile.am生成Makefile?

请高手们指点。。。
作者: prolj    时间: 2009-03-17 22:59
那是 automake 干的,不是人干的。
google 一下 automake 怎么使用吧。
作者: gawk    时间: 2009-03-17 23:12
没弄过,看看楼上说的
一般我自己写Makefile
作者: gz80    时间: 2009-03-18 10:16
一般有个configure的脚本,它会根据你运行configure时所带的参数生成makefile
作者: Aquester    时间: 2009-03-18 10:46
configure根据Makefile.in生成Makefile
automake根据Makefile.am生成Makefile.in
作者: net_robber    时间: 2009-03-18 14:17
原帖由 wolf711988 于 2009-3-17 22:57 发表
怎样由Makefile.in和Makefile.am生成Makefile?

请高手们指点。。。

i think you may need this
  1. Files used in preparing a software package for distribution:

  2.      your source files --> [autoscan*] --> [configure.scan] --> configure.ac
  3.      
  4.      configure.ac --.
  5.                     |   .------> autoconf* -----> configure
  6.      [aclocal.m4] --+---+
  7.                     |   `-----> [autoheader*] --> [config.h.in]
  8.      [acsite.m4] ---'
  9.      
  10.      Makefile.in -------------------------------> Makefile.in

  11. Files used in configuring a software package:

  12.                             .-------------> [config.cache]
  13.      configure* ------------+-------------> config.log
  14.                             |
  15.      [config.h.in] -.       v            .-> [config.h] -.
  16.                     +--> config.status* -+               +--> make*
  17.      Makefile.in ---'                    `-> Makefile ---'

复制代码





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2