1998-04-14 02:45:23 +00:00
|
|
|
Flight Gear uses the Gnu autoconf and automake tools for managing
|
|
|
|
Makefiles. It also uses libtool to manage building shared and static
|
|
|
|
libraries. Key input files for this system are:
|
|
|
|
|
|
|
|
configure.in - Top level directory
|
|
|
|
Makefile.am - One in each subdirectory
|
1998-04-26 05:01:07 +00:00
|
|
|
Include/config.in - input file for building config.h
|
1998-04-14 02:45:23 +00:00
|
|
|
|
|
|
|
If you need to modify any of these files, you will need to build and
|
|
|
|
install the following packages:
|
|
|
|
|
|
|
|
- GNU autoconf 2.12 (available from ftp://prep.ai.mit.edu/pub/gnu)
|
|
|
|
- GNU automake 1.2h (available from ftp://ftp.cygnus.com/pub/tromey)
|
1998-07-30 23:40:42 +00:00
|
|
|
|
|
|
|
Libtool is not currently used:
|
|
|
|
|
1998-07-16 17:28:42 +00:00
|
|
|
- GNU libtool 1.2 (available from ftp://prep.ai.mit.edu/pub/gnu)
|
|
|
|
(or maybe ftp://alpha.gnu.org/gnu)
|
1998-07-30 23:40:42 +00:00
|
|
|
- After upgrading libtool, if we were using it, you would want to run:
|
1998-07-16 17:28:42 +00:00
|
|
|
|
1998-07-30 23:40:42 +00:00
|
|
|
libtoolize --force
|
1998-04-14 02:45:23 +00:00
|
|
|
|
|
|
|
When making a change to any of these files you will need to run:
|
|
|
|
|
|
|
|
aclocal ; automake -a ; autoconf
|
|
|
|
|
|
|
|
Then follow the regular build procedure:
|
|
|
|
|
|
|
|
./configure; make; make install
|
1998-05-23 14:31:23 +00:00
|
|
|
|
|
|
|
For debuging purposes you might want to try something like:
|
|
|
|
|
1998-07-30 23:40:42 +00:00
|
|
|
CFLAGS=-Wall CXXFLAGS=-Wall ./configure; make; make install
|
1998-05-23 14:31:23 +00:00
|
|
|
|
1998-08-20 15:09:09 +00:00
|
|
|
For full optimization using the EGCS compiler on an Intel processor you
|
|
|
|
could try something like:
|
|
|
|
|
1998-09-09 16:23:10 +00:00
|
|
|
MACH="-mpentium" # -m486 -mpentiumpro etc.
|
|
|
|
export CC=egcc # for Linux
|
1998-09-14 13:49:06 +00:00
|
|
|
export CFLAGS="-Wall -O5 -fomit-frame-pointer -ffast-math -funroll-loops $MACH"
|
|
|
|
export CXXFLAGS="-Wall -O5 -fomit-frame-pointer -ffast-math -funroll-loops $MACH"
|
1998-08-20 15:09:09 +00:00
|
|
|
./configure
|
|
|
|
|