]> git.mxchange.org Git - flightgear.git/blob - Simulator/commondefs
469f9bff25ea4b1015c07f916ba76ca8e7c5d2b9
[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 = 35
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 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 # -DUSE_ITIMER - Use setitimer(), getitimer(), and signal() to mimic
54 #                a real time system and call the flight model routines
55 #                at a regular interval, rather than between screen updates
56 #                which can be highly variable.  This can make the flight
57 #                model calculations much smoother.
58 #
59 # -DUSE_FTIME -  Use ftime() to get an accurate current time instead of
60 #                gettimeofday()
61 #
62 # -DUSE_RAND  -  Use rand() instead of random()
63 #
64 #---------------------------------------------------------------------------
65
66
67 #---------------------------------------------------------------------------
68 # Debugging options.
69 #
70 # Uncomment the following two lines to enable OpenGL function call tracing.
71 # This mechanism is provided courtesy of Steve Baker <sbaker@link.com>
72 #---------------------------------------------------------------------------
73
74 # FG_DEBUG_FLAGS = -DXGL_TRACE
75 # FG_DEBUG_LIBS = ../XGL/libXGL.a
76
77
78 #---------------------------------------------------------------------------
79 # Uncomment one of the following sections depending on your system
80 #
81 # You may set FG_GRAPHICS to include any of the following options depending
82 # on your environment:
83 #---------------------------------------------------------------------------
84
85 #---------------------------------------------------------------------------
86 # Linux/Mesa
87 #
88 # INTERFACE_LIBS = -lglut
89 # MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
90 # X11_LIBS =  -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
91 # GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
92 # FG_CFLAGS = $(GLOBAL_CFLAGS) $(FG_DEBUG_FLAGS)
93 # EXT =
94 #---------------------------------------------------------------------------
95
96 #---------------------------------------------------------------------------
97 # SGI IRIX
98 #     (Surprisingly, this also works on our SunOS 4.x machine with the 
99 #     way we have Mesa & Glut installed.)
100 #
101 # INTERFACE_LIBS = -lglut
102 # GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11
103 # FG_CFLAGS = $(GLOBAL_CFLAGS) $(FG_DEBUG_FLAGS)
104 # EXT =
105 # TAR = gtar
106 #---------------------------------------------------------------------------
107
108 #---------------------------------------------------------------------------
109 # Sun/Solaris
110 #
111 # VERSION=\"$(VERSION)\"
112 # INTERFACE_LIBS = -lglut
113 # GRAPHICS_LIBS =  -L/opt/X11R6/lib -lGLU -lGL -lXext -lXmu -lXi -lX11 -lsocket
114 # FG_CFLAGS = $(GLOBAL_CFLAGS) $(FG_DEBUG_FLAGS)
115 # EXT =
116 # TAR = gtar
117 #---------------------------------------------------------------------------
118
119 #---------------------------------------------------------------------------
120 # Cygnus Win32 (gcc based) compiled against SGI's opengl and a dynamic GLUT
121 #
122 #   -*- Experimental -*-
123 #
124 # May also work for compiling against IHV OpenGL drivers
125 #
126 INTERFACE_LIBS = -lglut
127 GRAPHICS_LIBS = -lglu -lopengl -luser32 -lgdi32
128 FG_CFLAGS = $(GLOBAL_CFLAGS) $(FG_DEBUG_FLAGS) \
129         -I$(FG_ROOT)/Win32/include \
130         -DWIN32 -DUSE_RAND 
131 LLDFLAGS = -L$(FG_ROOT)/Win32/lib
132 EXT = .exe
133 LN = cp
134 #---------------------------------------------------------------------------
135
136 #---------------------------------------------------------------------------
137 # Cygnus Win32 (gcc based) with a static version of the GLUT toolkit
138 #                          with MSOpenGL95.exe ...
139 #
140 # INTERFACE_LIBS = ../Win32/libglut.a
141 # GRAPHICS_LIBS = -lglu32 -lopengl32 -luser32 -lgdi32
142 # FG_CFLAGS = $(GLOBAL_CFLAGS) $(FG_DEBUG_FLAGS) -DWIN32 -DUSE_RAND
143 # EXT = .exe
144 # LN = cp
145 #---------------------------------------------------------------------------
146
147
148 #---------------------------------------------------------------------------
149 # do not modify anything below this line
150 #---------------------------------------------------------------------------
151
152 OBJECTS = $(CFILES:.c=.o) $(CXXFILES:.cxx=.o)
153 # DEPENDS = $(CFILES:.c=.d) $(CXXFILES:.cxx=.d)
154
155 MAKEDEPENDFILE = depend
156
157 CDEFS = $(LCDEFS)
158 CFLAGS = $(FG_CFLAGS) -I$(FG_ROOT_SRC) $(LCFLAGS)
159
160 CXXDEFS = $(LCXXDEFS)
161 CXXFLAGS = $(FG_CFLAGS) $(LCXXFLAGS)
162
163 LDDEFS = $(LLDDEFS)
164 LDFLAGS = $(LLDFLAGS) -L$(FG_ROOT_LIB)
165
166 DIRT = $(LDIRT)
167
168 VPATH = $(FG_ROOT_LIB)
169
170 COMMONRULES = $(FG_ROOT_SRC)/commonrules
171