]> git.mxchange.org Git - flightgear.git/blob - Simulator/make.inc
Working on new scenery subsystem.
[flightgear.git] / Simulator / make.inc
1 # Hey Emacs, this is a Makefile. -*- Mode: Makefile -*-
2 #
3 # Common Makefile section
4 #
5 # Written by Curtis Olson, started May 1997.
6 #
7 # Copyright (C) 1997  Curtis L. Olson  - curt@infoplane.com
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #
23 # $Id$
24 # (Log is kept at end of this file)
25 #---------------------------------------------------------------------------
26
27
28 #---------------------------------------------------------------------------
29 # Define the version
30 #---------------------------------------------------------------------------
31
32 VERSION_MAJOR = 0
33 VERSION_MINOR = 14
34 VERSION = $(VERSION_MAJOR).$(VERSION_MINOR)
35
36
37 #---------------------------------------------------------------------------
38 # Choose your weapons
39 #---------------------------------------------------------------------------
40
41 CC = gcc
42 FLEX = flex -f -L
43 BISON = bison -v --no-lines
44 AR = ar
45 RANLIB = ranlib
46 LN = ln -sf
47
48
49 #---------------------------------------------------------------------------
50 # Global Compile Options
51 #
52 # You may set FG_CFLAGS to include any of the following options depending on 
53 # your environment:
54 #
55 # -g           - Compile with debugging symbols
56 #
57 # -Wall        - Enable full compiler warnings
58 #
59 # -O2          - Enable compiler optimization
60 #
61 #---------------------------------------------------------------------------
62
63 GLOBAL_CFLAGS = -g -Wall -DVERSION=\"$(VERSION)\"
64
65
66 #---------------------------------------------------------------------------
67 # Platform specific compile options, these should be set with FG_CFLAGS
68 # below.  These have been predefined for the supported platforms below.
69 #
70 # -DNO_PRINTF -  Disable all printf()'s.  Works by replacing the printf
71 #                fuction with an empty function.
72 #
73 # -DUSE_ITIMER - Use setitimer(), getitimer(), and signal() to mimic
74 #                a real time system and call the flight model routines
75 #                at a regular interval, rather than between screen updates
76 #                which can be highly variable.  This can make the flight
77 #                model calculations much smoother.
78 #
79 # -DUSE_FTIME -  Use ftime() to get an accurate current time instead of
80 #                gettimeofday()
81 #
82 # -DUSE_RAND  -  Use rand() instead of random()
83 #
84 #---------------------------------------------------------------------------
85
86
87 #---------------------------------------------------------------------------
88 # Uncomment one of the following sections depending on your system
89 #
90 # You may set FG_GRAPHICS to include any of the following options depending
91 # on your environment:
92 #---------------------------------------------------------------------------
93
94 #---------------------------------------------------------------------------
95 # SGI IRIX with the GLUT toolkit 
96 #     (Surprisingly, this also works on our SunOS 4.x machine with the 
97 #     way we have Mesa & Glut installed.)
98 #
99 # INTERFACE_FLAGS = -DGLUT
100 # INTERFACE_LIBS = -lglut
101 # INTERFACE_FILES = GLUTmain.c GLUTkey.c
102 # GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11
103 # FG_CFLAGS = $(GLOBAL_CFLAGS)
104 #---------------------------------------------------------------------------
105
106 #---------------------------------------------------------------------------
107 # Linux/Mesa with the GLUT toolkit
108 #
109 INTERFACE_FLAGS = -DGLUT
110 INTERFACE_LIBS = -lglut
111 INTERFACE_FILES = GLUTmain.c GLUTkey.c
112 MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
113 X11_LIBS =  -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
114 GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
115 FG_CFLAGS = $(GLOBAL_CFLAGS)
116 #---------------------------------------------------------------------------
117
118 #---------------------------------------------------------------------------
119 # Cygnus Win32 (gcc based) with a static version of the GLUT toolkit
120 #
121 # INTERFACE_FLAGS = -DGLUT 
122 # INTERFACE_LIBS = ../Win32/libglut.a
123 # INTERFACE_FILES = GLUTmain.c GLUTkey.c
124 # GRAPHICS_LIBS = -lglu32 -lopengl32 -luser32 -lgdi32
125 # FG_CFLAGS = $(GLOBAL_CFLAGS) -DWIN32 -DUSE_RAND
126 # LN = copy
127 #---------------------------------------------------------------------------
128
129
130 #---------------------------------------------------------------------------
131 # $Log$
132 # Revision 1.18  1997/10/28 19:35:41  curt
133 # Organizational changes.
134 #
135 # Revision 1.17  1997/10/25 03:30:02  curt
136 # Misc. tweaks.
137 #
138 # Revision 1.16  1997/10/25 03:24:21  curt
139 # Incorporated sun, moon, and star positioning code contributed by Durk Talsma.
140 #
141 # Revision 1.15  1997/09/23 00:29:27  curt
142 # Tweaks to get things to compile with gcc-win32.
143 #
144 # Revision 1.14  1997/09/16 22:14:47  curt
145 # Tweaked time of day lighting equations.  Don't draw stars during the day.
146 #
147 # Revision 1.13  1997/09/04 02:17:19  curt
148 # Shufflin' stuff.
149 #
150 # Revision 1.12  1997/08/25 20:27:21  curt
151 # Merged in initial HUD and Joystick code.
152 #
153 # Revision 1.11  1997/08/22 21:34:33  curt
154 # Doing a bit of reorganizing and house cleaning.
155 #
156 # Revision 1.10  1997/08/16 12:22:19  curt
157 # Tweaks for new version.
158 #
159 # Revision 1.9  1997/07/19 22:41:35  curt
160 # tweaks
161 #
162 # Revision 1.8  1997/07/18 23:41:20  curt
163 # Tweaks for building with Cygnus Win32 compiler.
164 #
165 # Revision 1.7  1997/07/18 14:28:34  curt
166 # Hacked in some support for wind/turbulence.
167 #
168 # Revision 1.6  1997/07/16 20:04:42  curt
169 # Minor tweaks to aid Win32 port.
170 #
171 # Revision 1.5  1997/07/12 02:25:53  curt
172 # Added ranlib.
173 #
174 # Revision 1.4  1997/07/12 02:13:04  curt
175 # Add ftime() support for those that don't have gettimeofday()
176 #
177 # Revision 1.3  1997/07/09 21:31:08  curt
178 # Working on making the ground "hard."
179 #
180 # Revision 1.2  1997/07/07 20:59:48  curt
181 # Working on scenery transformations to enable us to fly fluidly over the
182 # poles with no discontinuity/distortion in scenery.
183 #
184 # Revision 1.1  1997/06/27 21:38:00  curt
185 # Working on Makefile structure.
186 #