Linux 下 Makefile 的 automake 生成全攻略我们从最常使用的例子程序 helloworld 开始。下面的过程如果简单地说来就是: 新建三个文件: helloworld.c、configure.in、Makefile.am 然后执行: aclocal; autoconf; automake --add-missing; ./configure; make; ./helloworld 就可以看到 Makefile 被产生出来,而且可以将 helloworld ========================== 然后执行命令 aclocal 和 autoconf,分别会产生 aclocal.m4 及 configure 两个文件: $ aclocal $ ls aclocal.m4 configure.in helloworld.c $ autoconf $ ls aclocal.m4 autom4te.cache configure configure 文件,你必须告诉 autoconf 如何找到你所用的宏。方式是使用 aclocal 程序来生成你的 aclocal.m4。 aclocal 根据 configure.in 文件的内容, 自动生成 aclocal.m4 文件。aclocal 是一个 perl 脚本程序, 它的定义是: “aclocal - create aclocal.m4 by scanning configure.ac”。 autoconf0 码力 | 14 页 | 701.04 KB | 2 年前3
Debian 新维护者手册+-> Makefile.in src/Makefile.am -+ | +-> src/Makefile.in | | +-> config.h.in automake aclocal aclocal.m4 autoheader 编辑 configure.ac 和 Makefile.am 等文件前,你需要一些关于 autoconf 和 automake 的知识。请参看 info autoconf 然后应按照以下步骤检查新旧版本之间源码的差别,小心任何可疑的内容: $ diff -urN foo-oldversion foo-newversion 对于 Autotools 自动生成的文件发生的改动,例如 missing、aclocal.m4、config.guess、config.h.in、config.sub、configure、depcomp、install-sh、ltmain.sh 和 Makefile.in 是可以忽略的。你可以在运行0 码力 | 63 页 | 493.28 KB | 2 年前3
Debian 新維護人員手冊Makefile.am ----+ | +-> Makefile.in src/Makefile.am -+ | +-> src/Makefile.in automake aclocal aclocal.m4 autoheader 編輯 configure.ac 和 Makefile.am 等檔案需要一些關於 autoconf 和 automake 的知識。參考 info autoconf 然後應按照以下步驟檢查新舊版本之間源碼的差別,小心任何可疑的內容: $ diff -urN foo-oldversion foo-newversion 對於 Autotools 自動生成的文件發生的改動,例如 missing、aclocal.m4、config.guess、config.h.in、config.sub、configure、depcomp、install-sh、ltmain.sh 和 Makefile.in 是可以忽略的。你可以在運行0 码力 | 63 页 | 512.12 KB | 2 年前3
Debian 维护者指南fill po/POTFILES.in as described in the documentation. Please run 'aclocal' to regenerate the aclocal.m4 file. You need aclocal from GNU automake 1.9 (or newer) to do this. Then run 'autoconf' (国际化版): $ cat Makefile.am # recursively process `Makefile.am` in SUBDIRS SUBDIRS = po lib src man ACLOCAL_AMFLAGS = -I m4 EXTRA_DIST = build-aux/config.rpath m4/ChangeLog0 码力 | 142 页 | 1.11 MB | 2 年前3
Conan 2.0 Documentationlinked to the fmt library. Listing 23: Makefile.am AUTOMAKE_OPTIONS = subdir-objects ACLOCAL_AMFLAGS = $ACLOCAL_FLAGS bin_PROGRAMS = string_formatter string_formatter_SOURCES = src/main.cpp string_formatter_CPPFLAGS names should vary according to the Linux distribution, but essentially, it should include all tools (aclocal, automake, autoconf and make) that you will need to build the following example. For this example following commands in sequence: aclocal automake --add-missing autoconf ./configure The aclocal command will read the file configure.ac and generate a new file named aclocal.m4, which contains macros needed0 码力 | 652 页 | 4.00 MB | 1 年前3
Conan 2.2 Documentationlinked to the fmt library. Listing 24: Makefile.am AUTOMAKE_OPTIONS = subdir-objects ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} bin_PROGRAMS = string_formatter string_formatter_SOURCES = src/main.cpp string_formatter_CPPFLAGS names should vary according to the Linux distribution, but essentially, it should include all tools (aclocal, automake, autoconf and make) that you will need to build the following example. For this example following commands in sequence: aclocal automake --add-missing autoconf ./configure The aclocal command will read the file configure.ac and generate a new file named aclocal.m4, which contains macros needed0 码力 | 718 页 | 4.46 MB | 1 年前3
Conan 2.1 Documentationlinked to the fmt library. Listing 24: Makefile.am AUTOMAKE_OPTIONS = subdir-objects ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} bin_PROGRAMS = string_formatter string_formatter_SOURCES = src/main.cpp string_formatter_CPPFLAGS names should vary according to the Linux distribution, but essentially, it should include all tools (aclocal, automake, autoconf and make) that you will need to build the following example. For this example following commands in sequence: aclocal automake --add-missing autoconf ./configure The aclocal command will read the file configure.ac and generate a new file named aclocal.m4, which contains macros needed0 码力 | 694 页 | 4.13 MB | 1 年前3
Conan 2.5 Documentationlinked to the fmt library. Listing 28: Makefile.am AUTOMAKE_OPTIONS = subdir-objects ACLOCAL_AMFLAGS = $ACLOCAL_FLAGS bin_PROGRAMS = string_formatter string_formatter_SOURCES = src/main.cpp string_formatter_CPPFLAGS names should vary according to the Linux distribution, but essentially, it should include all tools (aclocal, automake, autoconf and make) that you will need to build the following example. For this example following commands in sequence: aclocal automake --add-missing autoconf ./configure The aclocal command will read the file configure.ac and generate a new file named aclocal.m4, which contains macros needed0 码力 | 769 页 | 4.70 MB | 1 年前3
Conan 2.7 Documentationlinked to the fmt library. Listing 28: Makefile.am AUTOMAKE_OPTIONS = subdir-objects ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} bin_PROGRAMS = string_formatter string_formatter_SOURCES = src/main.cpp string_formatter_CPPFLAGS names should vary according to the Linux distribution, but essentially, it should include all tools (aclocal, automake, autoconf and make) that you will need to build the following example. For this example following commands in sequence: aclocal automake --add-missing autoconf ./configure The aclocal command will read the file configure.ac and generate a new file named aclocal.m4, which contains macros needed0 码力 | 779 页 | 4.93 MB | 1 年前3
Conan 2.3 Documentationlinked to the fmt library. Listing 24: Makefile.am AUTOMAKE_OPTIONS = subdir-objects ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} bin_PROGRAMS = string_formatter string_formatter_SOURCES = src/main.cpp string_formatter_CPPFLAGS names should vary according to the Linux distribution, but essentially, it should include all tools (aclocal, automake, autoconf and make) that you will need to build the following example. For this example following commands in sequence: aclocal automake --add-missing autoconf ./configure The aclocal command will read the file configure.ac and generate a new file named aclocal.m4, which contains macros needed0 码力 | 748 页 | 4.65 MB | 1 年前3
共 15 条
- 1
- 2
相关搜索词
MakefileautomakeconfigureaclocalautoconfDebian软件包打包流程维护者软件包维护Debian政策Debian 软件包构建流程维护脚本依赖管理测试检查打包工具维护者指南debmake打包脚本Conan 2.0package_idlockfiles新功能配置管理configurationextensionsmetadata filescompatibility.pyextensions pluginsConan 2.5.0Python APIbuild system integrationsConan包管理器版本控制构建系统集成package managergraph modelrevisions













