]> git.mxchange.org Git - flightgear.git/blob - README.autoconf
More reorganization.
[flightgear.git] / README.autoconf
1 Flight Gear uses the Gnu autoconf and automake tools for managing
2 Makefiles.  It also uses libtool to manage building shared and static
3 libraries.  Key input files for this system are:
4
5     configure.in - Top level directory
6     Makefile.am - One in each subdirectory
7     Include/config.in - input file for building config.h
8
9 If you need to modify any of these files, you will need to build and
10 install the following packages:
11
12     - GNU autoconf 2.12 (available from ftp://prep.ai.mit.edu/pub/gnu)
13     - GNU automake 1.2h (available from ftp://ftp.cygnus.com/pub/tromey)
14
15 Libtool is not currently used:
16
17     - GNU libtool 1.2   (available from ftp://prep.ai.mit.edu/pub/gnu)
18                         (or maybe ftp://alpha.gnu.org/gnu)
19     - After upgrading libtool, if we were using it, you would want to run:
20
21       libtoolize --force
22
23 When making a change to any of these files you will need to run:
24
25     aclocal ; automake -a ; autoconf
26
27 Then follow the regular build procedure:
28
29     ./configure; make; make install
30
31 For debuging purposes you might want to try something like:
32
33     CFLAGS=-Wall CXXFLAGS=-Wall ./configure; make; make install
34
35 For full optimization using the EGCS compiler on an Intel processor you 
36 could try something like:
37
38     MACH="-mpentium"   # -m486 -mpentiumpro etc.
39     export CC=egcc     # for Linux
40     export CFLAGS="-Wall -O5 -fomit-frame-pointer -ffast-math -funroll-loops $MACH"
41     export CXXFLAGS="-Wall -O5 -fomit-frame-pointer -ffast-math -funroll-loops $MACH"
42     ./configure
43