当前位置: 技术问答>linux和unix
如何学习GNU Autotool 系列工具
来源: 互联网 发布时间:2017-04-02
本文导语: 如题, 最近在研究GNU autotool, 但发现太难懂, 到现在还是一头雾水。 目前只是知道一般步骤: 1. 先运行autoscan生成configure.ac或configure.in的蓝本configure.scan 2. 修改configure.scan,并重命名为configure.ac 3. 运行aclocal 4. ...
如题, 最近在研究GNU autotool, 但发现太难懂, 到现在还是一头雾水。
目前只是知道一般步骤:
1. 先运行autoscan生成configure.ac或configure.in的蓝本configure.scan
2. 修改configure.scan,并重命名为configure.ac
3. 运行aclocal
4. 运行autoconf(该程序以configure.ac作为输入,并输出configure)
5. 编写Makefile.am
6. 运行automake --add-missing, 生成Makefile.in
下面就是GNU软件通常的编译方法:
7. ./configure
8. make&&make install
用户需要自己编写configure.ac和Makefile.am
虽然知道以上大概步骤, 但对于如何正确编写configure.ac和Makefile.am表示不会,
更无从谈 了解autotool系列工具包括autoscan, aclocal, autoconf ,automake等实现原理, 总之,对于该工具完全不明白。
请大神告知小弟, 如何去一步步深入学习autotool, 有什么好的资料; 如果能分享自己的一些心得或资料, 就太感谢了
目前只是知道一般步骤:
1. 先运行autoscan生成configure.ac或configure.in的蓝本configure.scan
2. 修改configure.scan,并重命名为configure.ac
3. 运行aclocal
4. 运行autoconf(该程序以configure.ac作为输入,并输出configure)
5. 编写Makefile.am
6. 运行automake --add-missing, 生成Makefile.in
下面就是GNU软件通常的编译方法:
7. ./configure
8. make&&make install
用户需要自己编写configure.ac和Makefile.am
虽然知道以上大概步骤, 但对于如何正确编写configure.ac和Makefile.am表示不会,
更无从谈 了解autotool系列工具包括autoscan, aclocal, autoconf ,automake等实现原理, 总之,对于该工具完全不明白。
请大神告知小弟, 如何去一步步深入学习autotool, 有什么好的资料; 如果能分享自己的一些心得或资料, 就太感谢了
|
automake和autoconf的文档:
http://www.gnu.org/software/automake/manual/automake.pdf
http://www.gnu.org/software/autoconf/manual/autoconf.pdf
这里面详细介绍了configure.ac和makefile.am的编写方法等等。总共有500页,楼主参考下网上的资料看看吧。
http://www.gnu.org/software/automake/manual/automake.pdf
http://www.gnu.org/software/autoconf/manual/autoconf.pdf
这里面详细介绍了configure.ac和makefile.am的编写方法等等。总共有500页,楼主参考下网上的资料看看吧。