Autotools.
You need to write configure.ac and Makefile.am scripts.
Configure.ac is quite simple and can be mostly autogenerated from running "autoscan" in the source code. This will create a configure.scan file that you will need to configure to create the final configure.ac file.
Automake.am file is based on conventions. You will probably need something like:
AUTOMAKE_OPTIONS = foreign subdir-objects AM_CXXFLAGS = -std=c++11 -static-libstdc++ -Wall -Werror \ -Wfatal-errors -I blah AM_LDFLAGS = blah bin_PROGRAMS = mybinary mybinary_SOURCES = \ blah.h blah.cc
everything is based on a naming scheme:
- dist vs nodist = should it be built
- inst vs noinst = should be installed
- DATA = data files
- MANS = man pages
- SOURCES = source code
therefore, dist_noinst_DATA is for data files needed for assembly, but not installed.
Once you have both of these files, you usually need to run something like:
aclocal && autoheader && automake --add-missing && & autoconf
to configure the autotools files needed to create. This can be placed in a shell script and executed before running. / Configure.
ascotan
source share