C/C++构建体系 GNU autotool
添加时间:2013-7-4 点击量:
我们在网上经常可以看到c/c++开源的项目,此中很多都是应用GNU的构建体系进行设备和编译的,若是遵守规范机关这些的步调,有必然的门槛和错杂度,下文把关于auotools系列的对象和概要的流程扼要汇总一下,如许我们就知道全部的构建体系是咋回事了。
Autotools
If you’re writing open source software that targets Unix or Linux systems, you should absolutely be using the GNU Autotools, and even if you’re writing proprietary software for Unix or Linux systems, you’ll still benefit significantly using them. The Autotools provide you with a build environment that will allow your project to build successfully on future versions or distributions with virtually no changes to the build scripts. This is useful even if you only intend to target a single Linux distribution, because—let’s be honest—you really can’t know in advance whether or not your company will want your software to run on other platforms in the future.
GNU Coding Standards (GCS) http://www.gnu.org/prep/standards/
Filesystem Hierarchy Standard (FHS) http://www.pathname.com/fhs/
The GNU Autotools framework includes three main packages: Autoconf, Automake, and Libtool.
Autoconf
Automake
Ø automake
Ø aclocal
Libtool
Configure / Make
以上可建,应用这个构建体系还是有些错杂,不过在当时GNU的初始阶段还是起到很到的感化的。
若是想用更简单的对象,还有cmake等,后文再讲。
我们在网上经常可以看到c/c++开源的项目,此中很多都是应用GNU的构建体系进行设备和编译的,若是遵守规范机关这些的步调,有必然的门槛和错杂度,下文把关于auotools系列的对象和概要的流程扼要汇总一下,如许我们就知道全部的构建体系是咋回事了。
Autotools
If you’re writing open source software that targets Unix or Linux systems, you should absolutely be using the GNU Autotools, and even if you’re writing proprietary software for Unix or Linux systems, you’ll still benefit significantly using them. The Autotools provide you with a build environment that will allow your project to build successfully on future versions or distributions with virtually no changes to the build scripts. This is useful even if you only intend to target a single Linux distribution, because—let’s be honest—you really can’t know in advance whether or not your company will want your software to run on other platforms in the future.
GNU Coding Standards (GCS) http://www.gnu.org/prep/standards/
Filesystem Hierarchy Standard (FHS) http://www.pathname.com/fhs/
The GNU Autotools framework includes three main packages: Autoconf, Automake, and Libtool.
Autoconf
Automake
Ø automake
Ø aclocal
Libtool
Configure / Make
以上可建,应用这个构建体系还是有些错杂,不过在当时GNU的初始阶段还是起到很到的感化的。
若是想用更简单的对象,还有cmake等,后文再讲。