./configure make
Interesting options to configure are --enable-assert
for enabling assertions or --enable-optimize=no
for switching off optimizations. ./configure --help
returns a full list of options.
aclocal autoheader autoreconf -i
The above commands need to be run only initially. Then the compilation works as in the previous section.
After adding or removing files or doing other changes to configure.ac
or a Makefile.am
, you need to run autoreconf
again before doing a make. A better way is to configure your makefiles with ./configure --enable-maintainer-mode
. Then a make will automatically check, if configure.ac
or a Makefile.am
have changed and recreate the makefiles before the compilation if necessary.
sudo make install
make check
fuego/build/autotools/debug
and fuego/build/autotools/release
as the build directories: cd fuego mkdir -p build/autotools/debug cd build/autotools/debug env CXXFLAGS=-g ../../../configure --enable-assert --enable-optimize=no cd ../../../ mkdir -p build/autotools/release cd build/autotools/release ../../../configure
make
should be run in fuego/build/autotools/debug
or fuego/build/autotools/release
.