1 # Hey Emacs, this is a Makefile. -*- Mode: Makefile -*-
3 # Common Makefile section
5 # Written by Curtis Olson, started May 1997.
7 # Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
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.
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.
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.
24 # (Log is kept at end of this file)
25 #---------------------------------------------------------------------------
30 #---------------------------------------------------------------------------
32 #---------------------------------------------------------------------------
36 BISON = bison -v --no-lines
41 #---------------------------------------------------------------------------
42 # Global Compile Options
44 # You may set FG_CFLAGS to include any of the following options depending on
47 # -g - Compile with debugging symbols
49 # -Wall - Enable full compiler warnings
51 # -O2 - Enable compiler optimization
53 #---------------------------------------------------------------------------
55 GLOBAL_CFLAGS = -g -Wall -DVERSION=\"$(VERSION)\"
58 #---------------------------------------------------------------------------
59 # Platform specific compile options, these should be set with FG_CFLAGS
60 # below. These have been predefined for the supported platforms below.
62 # -DNO_PRINTF - Disable all printf()'s. Works by replacing the printf
63 # fuction with an empty function.
65 # -DUSE_ITIMER - Use setitimer(), getitimer(), and signal() to mimic
66 # a real time system and call the flight model routines
67 # at a regular interval, rather than between screen updates
68 # which can be highly variable. This can make the flight
69 # model calculations much smoother.
71 # -DUSE_FTIME - Use ftime() to get an accurate current time instead of
74 # -DUSE_RAND - Use rand() instead of random()
76 #---------------------------------------------------------------------------
79 #---------------------------------------------------------------------------
80 # Uncomment one of the following sections depending on your system
82 # You may set FG_GRAPHICS to include any of the following options depending
83 # on your environment:
84 #---------------------------------------------------------------------------
86 #---------------------------------------------------------------------------
87 # SGI IRIX with the GLUT toolkit
88 # (Surprisingly, this also works on our SunOS 4.x machine with the
89 # way we have Mesa & Glut installed.)
91 # INTERFACE_FLAGS = -DGLUT
92 # INTERFACE_LIBS = -lglut
93 # INTERFACE_FILES = GLUTmain.c GLUTkey.c
94 # GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11
95 # FG_CFLAGS = $(GLOBAL_CFLAGS)
96 #---------------------------------------------------------------------------
98 #---------------------------------------------------------------------------
99 # Linux/Mesa with the GLUT toolkit
101 INTERFACE_FLAGS = -DGLUT
102 INTERFACE_LIBS = -lglut
103 INTERFACE_FILES = GLUTmain.c GLUTkey.c
104 MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
105 X11_LIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
106 GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
107 FG_CFLAGS = $(GLOBAL_CFLAGS)
108 #---------------------------------------------------------------------------
110 #---------------------------------------------------------------------------
111 # Cygnus Win32 (gcc based) with a static version of the GLUT toolkit
113 # INTERFACE_FLAGS = -DGLUT
114 # INTERFACE_LIBS = ../Win32/libglut.a
115 # INTERFACE_FILES = GLUTmain.c GLUTkey.c
116 # GRAPHICS_LIBS = -lglu32 -lopengl32 -luser32 -lgdi32
117 # FG_CFLAGS = $(GLOBAL_CFLAGS) -DWIN32 -DUSE_RAND
118 #---------------------------------------------------------------------------
121 #---------------------------------------------------------------------------
123 # Revision 1.12 1997/08/25 20:27:21 curt
124 # Merged in initial HUD and Joystick code.
126 # Revision 1.11 1997/08/22 21:34:33 curt
127 # Doing a bit of reorganizing and house cleaning.
129 # Revision 1.10 1997/08/16 12:22:19 curt
130 # Tweaks for new version.
132 # Revision 1.9 1997/07/19 22:41:35 curt
135 # Revision 1.8 1997/07/18 23:41:20 curt
136 # Tweaks for building with Cygnus Win32 compiler.
138 # Revision 1.7 1997/07/18 14:28:34 curt
139 # Hacked in some support for wind/turbulence.
141 # Revision 1.6 1997/07/16 20:04:42 curt
142 # Minor tweaks to aid Win32 port.
144 # Revision 1.5 1997/07/12 02:25:53 curt
147 # Revision 1.4 1997/07/12 02:13:04 curt
148 # Add ftime() support for those that don't have gettimeofday()
150 # Revision 1.3 1997/07/09 21:31:08 curt
151 # Working on making the ground "hard."
153 # Revision 1.2 1997/07/07 20:59:48 curt
154 # Working on scenery transformations to enable us to fly fluidly over the
155 # poles with no discontinuity/distortion in scenery.
157 # Revision 1.1 1997/06/27 21:38:00 curt
158 # Working on Makefile structure.