【问题标题】:Build a project without "Makefile.am", just using Autoconf & Autoscan?构建一个没有“Makefile.am”的项目,只使用 Autoconf 和 A​​utoscan?
【发布时间】:2014-06-27 15:29:50
【问题描述】:

我最近读到“There are several ways to configure and build a project using Autotools.

其中:
Autoconf 和 A​​utoscan:

- 带有项目构建规则和 Makefile 替换的 Makefile.in
Autoheader(可与所有其他工具一起使用)
- 扫描项目并在项目期间生成一个 config.h 文件 具有平台特定宏定义的配置,无配置 需要的文件

如何构建没有“Makefile.am”的项目?只需使用 Autoconf、Autoscan 和 Autoheader。

【问题讨论】:

    标签: build makefile autotools autoconf automake


    【解决方案1】:

    正如链接所说,Makefile.inMakefile 的模板,它只有 @FOO@ 宏用于替换 configure(通过 AC_CONFIG_FILES)。如果项目真的很简单,我可以想象没有automake 也能正常工作。

    所有autoscanautoheader 所做的都是帮助您为您的项目构建原始configure.acconfig.h 文件。您也不需要使用它们

    【讨论】:

      猜你喜欢
      • 2012-06-25
      • 2013-08-27
      • 1970-01-01
      • 2014-01-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-23
      • 2021-04-19
      相关资源
      最近更新 更多