配置文件模板以生成makefile [英] configure file template to generate makefile
问题描述
几乎所有Linux中的开源c ++项目都有一个'configure'文件,用于在构建源代码之前生成Makefile。
Almost all the opensource c++ project in Linux has a 'configure' file to generate Makefile before building the source code.
我从头开始编写一个项目,这个'configure'文件是否有任何模板?
I am writing a project from scratch, is there any template for this 'configure' file?
推荐答案
大多数时候,配置文件不是手动创建的,而是由诸如 autoconf 。有更多的现代替代品,但是,大多更容易使用。请查看 cmake , qmake 或 scons 。
Most of the time, the configure files are not created by hand, but generated by tools like autoconf. There are more modern alternatives however, which are mostly easier to use. Have a look at cmake, qmake for Qt, or scons.
同时查看以前的问题,例如 C ++构建系统。
Also have a look at previous questions, e.g. C++ build systems.
这篇关于配置文件模板以生成makefile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!