Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

configure file template to generate makefile

Almost all the opensource c++ project in Linux has a 'configure' file to generate Makefile before building the source code.

I am writing a project from scratch, is there any template for this 'configure' file?

like image 421
Shawn Avatar asked Dec 20 '25 11:12

Shawn


2 Answers

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.

Also have a look at previous questions, e.g. C++ build systems.

like image 134
Jakob Avatar answered Dec 23 '25 01:12

Jakob


It's generated by a program called Autoconf.

like image 27
themel Avatar answered Dec 23 '25 00:12

themel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!