]> git.mxchange.org Git - flightgear.git/blob - Simulator/commondefs
Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
[flightgear.git] / Simulator / commondefs
1 # emacs make tag: -*- Mode: Makefile -*-
2
3 #---------------------------------------------------------------------------
4 # Define the version
5 #---------------------------------------------------------------------------
6
7 FG_VERSION_MAJOR = 0
8 FG_VERSION_MINOR = 27
9 FG_VERSION = $(FG_VERSION_MAJOR).$(FG_VERSION_MINOR)
10
11
12 #---------------------------------------------------------------------------
13 # Choose your weapons
14 #---------------------------------------------------------------------------
15
16 CC = gcc
17 CXX = gcc
18 LD = ld
19 AR = ar
20 RANLIB = ranlib
21
22 FLEX = flex -f -L
23 BISON = bison -v --no-lines
24
25 RM = rm
26 MV = mv
27 CP = cp
28 LN = ln -sf
29 TAR = tar
30
31
32 #---------------------------------------------------------------------------
33 # Global Compile Options
34 #
35 # You may set FG_CFLAGS to include any of the following options depending on 
36 # your environment:
37 #
38 # -g           - Compile with debugging symbols
39 # -Wall        - Enable full compiler warnings
40 # -O2          - Enable compiler optimization
41 # -O3 -fomit-frame-pointer -funroll-all-loops -ffast-math
42 #              - Other potential compiler optimization flags
43 #
44 #---------------------------------------------------------------------------
45
46 GLOBAL_CFLAGS = -Wall -DVERSION=\"$(FG_VERSION)\"
47
48
49 #---------------------------------------------------------------------------
50 # Platform specific compile options, these should be set with FG_CFLAGS
51 # below.  These have been predefined for the supported platforms below.
52 #
53 # -DNO_PRINTF -  Disable all printf()'s.  Works by replacing the printf
54 #                fuction with an empty function.
55 #
56 # -DUSE_ITIMER - Use setitimer(), getitimer(), and signal() to mimic
57 #                a real time system and call the flight model routines
58 #                at a regular interval, rather than between screen updates
59 #                which can be highly variable.  This can make the flight
60 #                model calculations much smoother.
61 #
62 # -DUSE_FTIME -  Use ftime() to get an accurate current time instead of
63 #                gettimeofday()
64 #
65 # -DUSE_RAND  -  Use rand() instead of random()
66 #
67 #---------------------------------------------------------------------------
68
69
70 #---------------------------------------------------------------------------
71 # Debugging options.
72 #
73 # Uncomment the following two lines to enable OpenGL function call tracing.
74 # This mechanism is provided courtesy of Steve Baker <sbaker@link.com>
75 #---------------------------------------------------------------------------
76
77 # FG_DEBUG_FLAGS = -DXGL_TRACE
78 # FG_DEBUG_LIBS = ../XGL/libXGL.a
79
80
81 #---------------------------------------------------------------------------
82 # Uncomment one of the following sections depending on your system
83 #
84 # You may set FG_GRAPHICS to include any of the following options depending
85 # on your environment:
86 #---------------------------------------------------------------------------
87
88 #---------------------------------------------------------------------------
89 # Linux/Mesa with the GLUT toolkit
90 #
91 INTERFACE_FLAGS = -DGLUT
92 INTERFACE_LIBS = -lglut
93 INTERFACE_FILES = GLUTmain.c GLUTkey.c
94 MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
95 X11_LIBS =  -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
96 GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
97 FG_CFLAGS = $(GLOBAL_CFLAGS) $(FG_DEBUG_FLAGS)
98 EXT =
99
100 #---------------------------------------------------------------------------
101
102 #---------------------------------------------------------------------------
103 # SGI IRIX with the GLUT toolkit 
104 #     (Surprisingly, this also works on our SunOS 4.x machine with the 
105 #     way we have Mesa & Glut installed.)
106 #
107 # INTERFACE_FLAGS = -DGLUT
108 # INTERFACE_LIBS = -lglut
109 # INTERFACE_FILES = GLUTmain.c GLUTkey.c
110 # GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11
111 # FG_CFLAGS = $(GLOBAL_CFLAGS) $(FG_DEBUG_FLAGS)
112 # EXT =
113 # TAR = gtar
114 #---------------------------------------------------------------------------
115
116 #---------------------------------------------------------------------------
117 # Sun/Solaris with the GLUT toolkit
118 #
119 # VERSION=\"$(VERSION)\"
120 # INTERFACE_FLAGS = -DGLUT
121 # INTERFACE_LIBS = -lglut
122 # INTERFACE_FILES = GLUTmain.c GLUTkey.c
123 # GRAPHICS_LIBS =  -L/opt/X11R6/lib -lGLU -lGL -lXext -lXmu -lXi -lX11 -lsocket
124 # FG_CFLAGS = $(GLOBAL_CFLAGS) $(FG_DEBUG_FLAGS)
125 # EXT =
126 # TAR = gtar
127 #---------------------------------------------------------------------------
128
129 #---------------------------------------------------------------------------
130 # Cygnus Win32 (gcc based) with a static version of the GLUT toolkit
131 #
132 # INTERFACE_FLAGS = -DGLUT 
133 # INTERFACE_LIBS = ../Win32/libglut.a
134 # INTERFACE_FILES = GLUTmain.c GLUTkey.c
135 # GRAPHICS_LIBS = -lglu32 -lopengl32 -luser32 -lgdi32
136 # FG_CFLAGS = $(GLOBAL_CFLAGS) $(FG_DEBUG_FLAGS) -DWIN32 -DUSE_RAND
137 # EXT = .exe
138 # LN = cp
139 #---------------------------------------------------------------------------
140
141
142 #---------------------------------------------------------------------------
143 # do not modify anything below this line
144 #---------------------------------------------------------------------------
145
146 OBJECTS = $(CFILES:.c=.o) $(CXXFILES:.cxx=.o)
147 DEPENDS = $(CFILES:.c=.d) $(CXXFILES:.cxx=.d)
148
149 MAKEDEPENDFILE = depend
150
151 CDEFS = $(LCDEFS)
152 CFLAGS = $(FG_CFLAGS) -I$(FG_ROOT_SRC) $(LCFLAGS)
153
154 CXXDEFS = $(LCXXDEFS)
155 CXXFLAGS = $(FG_CFLAGS) $(LCXXFLAGS)
156
157 LDDEFS = $(LLDDEFS)
158 LDFLAGS = $(LLDFLAGS) -L$(FG_ROOT_LIB)
159
160 DIRT = $(LDIRT)
161
162 VPATH = $(FG_ROOT_LIB)
163
164 COMMONRULES = $(FG_ROOT_SRC)/commonrules
165