重构构建系统以使用 Autotools
在过去的几天里,我一直在阅读使用 autotools 来构建我的项目,而不是我在过去几个月拼凑的 Makefiles。 不幸的是,我还没有找到一个例子来让我对我的项目结构目前的情况有足够的了解。
我的项目的应用程序代码中包含三个库。 我正在寻找使用单个配置脚本来制作(和安装)应用程序和库的最佳方法。
Over the past couple of days I have been reading into using autotools to build my project instead of the Makefiles I have pieced together over the past couple of months. Unfortunately I have not found an example that gave me enough insight towards how my project structure is currently.
I have three libraries that are included in the application code of my project. I am looking for the best way to use a single configure script to make (and install) the application, and libraries.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
抱歉跑题了。
我现在做了类似的事情,但我可以在 Autotools 和 CMake 之间进行选择。 我很高兴选择了第二个。
可能值得一看,包括 CDash、CTest 和 CPack。
http://www.cmake.org/
最好的问候,
奥瓦内斯
Sorry for offtopic.
I did similar thing now, but I was able to choose between Autotools and CMake. I am happy to have choosen the second.
Might be worth looking at, including CDash, CTest and CPack.
http://www.cmake.org/
Best Regards,
Ovanes
以下是我发现的一些看起来不错的内容:
最后一本是免费书
祝你好运
Here are a few I found that don't look to bad:
The last one is a free book
Good Luck
以下是 autoconf 的入门指南:http://amjith。 blogspot.com/2009/04/autoconf-and-automake-tutorial.html
Here is a starter's guide to autoconf: http://amjith.blogspot.com/2009/04/autoconf-and-automake-tutorial.html
当我读到这篇文章时,我已经对自动工具非常熟悉了,但这似乎是一个很好的介绍:
链接文本
When I read this, I was already pretty well familiar with the autotools, but it seems like a pretty good introduction:
link text