![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Automake手册学习记录
氷冷酒
这个作者很懒,什么都没留下…
展开
-
7 Directories
目录7.1 Recursing subdirectories对于所有发布的文件都在一个目录下的简单工程来说,只有一个Makefile.am已足够用于将所有东西编译到一起。对于大型工程,通常将文件组织在不同目录中,形成目录层次结构树。例如,可能有一个目录用于程序源文件,一个目录用于测试组件,一个目录用于文档;或者是对于超大型工程,每个程序、库、模块都有一个目录。构建多目录工程的传统方式是通过递...翻译 2020-02-20 20:04:24 · 458 阅读 · 0 评论 -
6 Scanning configure.ac, using aclocal
目录6.1 Configuration requirementsAutomake通过读取configure.ac来确定源码包的某些信息。在configure.ac中需要定义一些autoconf宏和变量。Automake还会根据configure.ac中的某些信息调整它的输出。Automake提供了一些Autoconf宏以使维护更加方便。这些宏可以利用aclocal程序自动添加到你的acloca...翻译 2020-02-02 16:43:35 · 463 阅读 · 0 评论 -
5 Creating a Makefile.in
在源码包根目录中无参数运行automake命令就会生成所有的Makefile.in。automake通过读取configure.ac找到每个Makefile.am,并对每个Makefile.am生成一个对应的Makefile.in。注意automake认为一个源码包只在其根目录中有一个configure.ac文件。如果某个源码包中包含多个configure.ac,需要在每个包含configure....翻译 2019-12-03 00:01:37 · 240 阅读 · 0 评论 -
3 General ideas
目录3.1 General Operation3.2 Strictness3.3 The Uniform Naming Scheme3.4 Staying below the command line length limit3.5 How derived variables are named3.6 Variables reserved for the user3.7 Programs auto...翻译 2019-12-01 21:04:00 · 450 阅读 · 0 评论 -
2 An Introduction to the Autotools
2.4 A Small Hello Worldautomake 源码包提供了一个amhello-1.0.tar.gz源码包,在automake-1.16.1/doc/路径中有解压缩的amhello。包含如下所示的几个文件:ubuntu@ubuntu:~/Workspace/automake-1.16.1/doc/amhello$ lltotal 24drwx------ 3 lgd lgd...翻译 2019-12-01 11:21:07 · 479 阅读 · 0 评论