1998-01-19 19:44:53 +00:00
|
|
|
# emacs make tag: -*- Mode: Makefile -*-
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
# Define the version
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
FG_VERSION_MAJOR = 0
|
1998-03-09 22:52:53 +00:00
|
|
|
FG_VERSION_MINOR = 37
|
1998-01-19 19:44:53 +00:00
|
|
|
FG_VERSION = $(FG_VERSION_MAJOR).$(FG_VERSION_MINOR)
|
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
# Choose your weapons
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
1998-02-09 15:07:47 +00:00
|
|
|
CC = g++
|
|
|
|
CXX = g++
|
1998-03-09 22:52:53 +00:00
|
|
|
CCDEPFLAG = -M
|
|
|
|
|
1998-01-19 19:44:53 +00:00
|
|
|
LD = ld
|
|
|
|
AR = ar
|
|
|
|
RANLIB = ranlib
|
|
|
|
|
|
|
|
FLEX = flex -f -L
|
|
|
|
BISON = bison -v --no-lines
|
|
|
|
|
|
|
|
RM = rm
|
|
|
|
MV = mv
|
|
|
|
CP = cp
|
|
|
|
LN = ln -sf
|
|
|
|
TAR = tar
|
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
# Global Compile Options
|
|
|
|
#
|
|
|
|
# You may set FG_CFLAGS to include any of the following options depending on
|
|
|
|
# your environment:
|
|
|
|
#
|
|
|
|
# -g - Compile with debugging symbols
|
|
|
|
# -Wall - Enable full compiler warnings
|
|
|
|
# -O2 - Enable compiler optimization
|
1998-02-23 19:07:49 +00:00
|
|
|
#
|
|
|
|
# Other potential compiler optimization flags:
|
|
|
|
#
|
|
|
|
# -O3 -fPIC -funroll-loops -mpentium -malign-loops=2
|
|
|
|
# -malign-jumps=2 -malign-functions=2 -fexpensive-optimizations
|
|
|
|
# -pedantic -ffast-math
|
1998-01-19 19:44:53 +00:00
|
|
|
#
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
1998-03-09 22:52:53 +00:00
|
|
|
GLOBAL_CFLAGS = -g -Wall -DVERSION=\"$(FG_VERSION)\"
|
1998-01-19 19:44:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
# Platform specific compile options, these should be set with FG_CFLAGS
|
|
|
|
# below. These have been predefined for the supported platforms below.
|
|
|
|
#
|
|
|
|
# -DUSE_ITIMER - Use setitimer(), getitimer(), and signal() to mimic
|
|
|
|
# a real time system and call the flight model routines
|
|
|
|
# at a regular interval, rather than between screen updates
|
|
|
|
# which can be highly variable. This can make the flight
|
|
|
|
# model calculations much smoother.
|
|
|
|
#
|
|
|
|
# -DUSE_FTIME - Use ftime() to get an accurate current time instead of
|
|
|
|
# gettimeofday()
|
|
|
|
#
|
|
|
|
# -DUSE_RAND - Use rand() instead of random()
|
|
|
|
#
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
# Debugging options.
|
|
|
|
#
|
|
|
|
# Uncomment the following two lines to enable OpenGL function call tracing.
|
|
|
|
# This mechanism is provided courtesy of Steve Baker <sbaker@link.com>
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# FG_DEBUG_FLAGS = -DXGL_TRACE
|
|
|
|
# FG_DEBUG_LIBS = ../XGL/libXGL.a
|
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
# Uncomment one of the following sections depending on your system
|
|
|
|
#
|
|
|
|
# You may set FG_GRAPHICS to include any of the following options depending
|
|
|
|
# on your environment:
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
1998-02-18 15:07:02 +00:00
|
|
|
# Linux/Mesa
|
1998-01-19 19:44:53 +00:00
|
|
|
#
|
1998-02-19 13:05:43 +00:00
|
|
|
INTERFACE_LIBS = -lglut
|
|
|
|
MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
|
|
|
|
X11_LIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
|
|
|
|
GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
|
|
|
|
FG_CFLAGS = $(GLOBAL_CFLAGS) $(FG_DEBUG_FLAGS)
|
|
|
|
EXT =
|
1998-01-19 19:44:53 +00:00
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
1998-02-18 15:07:02 +00:00
|
|
|
# SGI IRIX
|
1998-01-19 19:44:53 +00:00
|
|
|
# (Surprisingly, this also works on our SunOS 4.x machine with the
|
|
|
|
# way we have Mesa & Glut installed.)
|
|
|
|
#
|
|
|
|
# INTERFACE_LIBS = -lglut
|
|
|
|
# GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11
|
|
|
|
# FG_CFLAGS = $(GLOBAL_CFLAGS) $(FG_DEBUG_FLAGS)
|
1998-01-22 22:03:22 +00:00
|
|
|
# EXT =
|
1998-01-19 19:44:53 +00:00
|
|
|
# TAR = gtar
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
1998-02-18 15:07:02 +00:00
|
|
|
# Sun/Solaris
|
1998-01-19 19:44:53 +00:00
|
|
|
#
|
|
|
|
# VERSION=\"$(VERSION)\"
|
|
|
|
# INTERFACE_LIBS = -lglut
|
|
|
|
# GRAPHICS_LIBS = -L/opt/X11R6/lib -lGLU -lGL -lXext -lXmu -lXi -lX11 -lsocket
|
|
|
|
# FG_CFLAGS = $(GLOBAL_CFLAGS) $(FG_DEBUG_FLAGS)
|
1998-01-22 22:03:22 +00:00
|
|
|
# EXT =
|
1998-01-19 19:44:53 +00:00
|
|
|
# TAR = gtar
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
1998-02-18 15:07:02 +00:00
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
# Cygnus Win32 (gcc based) compiled against SGI's opengl and a dynamic GLUT
|
|
|
|
#
|
|
|
|
# -*- Experimental -*-
|
|
|
|
#
|
1998-02-19 13:05:43 +00:00
|
|
|
# Currently builds without fatal error, but can't seem to run correctly.
|
|
|
|
# Eventually may also work for compiling against IHV OpenGL drivers
|
1998-02-18 15:07:02 +00:00
|
|
|
#
|
1998-02-19 13:05:43 +00:00
|
|
|
# INTERFACE_LIBS = -lglut
|
|
|
|
# GRAPHICS_LIBS = -lglu -lopengl -luser32 -lgdi32
|
|
|
|
# FG_CFLAGS = $(GLOBAL_CFLAGS) $(FG_DEBUG_FLAGS) -I$(FG_ROOT)/Win32/include \
|
|
|
|
# -DWIN32 -DUSE_RAND
|
|
|
|
# LLDFLAGS = -L$(FG_ROOT)/Win32/lib
|
|
|
|
# EXT = .exe
|
|
|
|
# LN = cp
|
1998-02-18 15:07:02 +00:00
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
1998-01-19 19:44:53 +00:00
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
# Cygnus Win32 (gcc based) with a static version of the GLUT toolkit
|
1998-02-18 15:07:02 +00:00
|
|
|
# with MSOpenGL95.exe ...
|
1998-01-19 19:44:53 +00:00
|
|
|
#
|
|
|
|
# INTERFACE_LIBS = ../Win32/libglut.a
|
|
|
|
# GRAPHICS_LIBS = -lglu32 -lopengl32 -luser32 -lgdi32
|
|
|
|
# FG_CFLAGS = $(GLOBAL_CFLAGS) $(FG_DEBUG_FLAGS) -DWIN32 -DUSE_RAND
|
1998-01-22 22:03:22 +00:00
|
|
|
# EXT = .exe
|
1998-01-22 02:58:52 +00:00
|
|
|
# LN = cp
|
1998-01-19 19:44:53 +00:00
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
# do not modify anything below this line
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
OBJECTS = $(CFILES:.c=.o) $(CXXFILES:.cxx=.o)
|
1998-02-09 22:56:28 +00:00
|
|
|
# DEPENDS = $(CFILES:.c=.d) $(CXXFILES:.cxx=.d)
|
1998-01-19 19:44:53 +00:00
|
|
|
|
|
|
|
MAKEDEPENDFILE = depend
|
|
|
|
|
|
|
|
CDEFS = $(LCDEFS)
|
|
|
|
CFLAGS = $(FG_CFLAGS) -I$(FG_ROOT_SRC) $(LCFLAGS)
|
|
|
|
|
|
|
|
CXXDEFS = $(LCXXDEFS)
|
1998-03-09 22:52:53 +00:00
|
|
|
CXXFLAGS = $(CFLAGS)
|
1998-01-19 19:44:53 +00:00
|
|
|
|
|
|
|
LDDEFS = $(LLDDEFS)
|
|
|
|
LDFLAGS = $(LLDFLAGS) -L$(FG_ROOT_LIB)
|
|
|
|
|
|
|
|
DIRT = $(LDIRT)
|
|
|
|
|
|
|
|
VPATH = $(FG_ROOT_LIB)
|
|
|
|
|
|
|
|
COMMONRULES = $(FG_ROOT_SRC)/commonrules
|
|
|
|
|