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