1 #---------------------------------------------------------------------------
4 # Written by Curtis Olson, started May 1997.
6 # Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 # (Log is kept at end of this file)
24 #---------------------------------------------------------------------------
32 #---------------------------------------------------------------------------
33 # This is overridden in the top level Makefile, if make is run from there.
34 #---------------------------------------------------------------------------
37 INTERFACE_FLAGS = -DGLUT
38 INTERFACE_LIBS = -lglut
39 INTERFACE_FILES = GLUTkey.c
41 # For MESA_TK (Tk interface to Mesa)
42 # INCLUDES = -I/usr/include/mesa
43 # INTERFACE_FLAGS = -DMESA_TK
44 # INTERFACE_LIBS = -L/usr/lib/mesa -lMesatk
45 # INTERFACE_FILES = GLTKkey.c
48 #---------------------------------------------------------------------------
49 # Define main GL libraries
50 #---------------------------------------------------------------------------
53 # GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11
56 MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
57 X11_LIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
58 GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
61 CFLAGS = $(FG_CFLAGS) $(INTERFACE_FLAGS)
62 LIBS = $(INTERFACE_LIBS) $(GRAPHICS_LIBS) -lm -lfl
64 CFILES = GLmain.c $(INTERFACE_FILES) mesh2GL.c
65 OFILES = $(CFILES:.c=.o)
66 AFILES = ../Aircraft/libAircraft.a ../Controls/libControls.a \
67 ../Flight/libFlight.a ../Flight/LaRCsim/libLaRCsim.a \
68 ../Flight/Slew/libSlew.a ../mat3/libmat3.a \
69 ../Scenery/ParseScn/libParseScn.a ../Scenery/libScenery.a \
73 #---------------------------------------------------------------------------
75 #---------------------------------------------------------------------------
77 $(TARGET): $(OFILES) $(AFILES)
78 $(CC) -o $(TARGET) $(OFILES) $(AFILES) $(LIBS)
83 $(CC) -MM *.c > depend
86 rm -f *.o $(TARGET) lib*.a *~ core
89 #---------------------------------------------------------------------------
91 #---------------------------------------------------------------------------
96 $(CC) $(CFLAGS) -c GLmain.c
99 $(CC) $(CFLAGS) -c GLUTkey.c
102 $(CC) $(CFLAGS) -c GLTKkey.c
105 $(CC) $(CFLAGS) -c mesh2GL.c
108 #---------------------------------------------------------------------------
110 # Revision 1.16 1997/06/26 19:08:33 curt
111 # Restructuring make, adding automatic "make dep" support.
113 # Revision 1.15 1997/06/25 15:39:47 curt
114 # Minor changes to compile with rsxnt/win32.
116 # Revision 1.14 1997/06/21 17:52:23 curt
117 # Continue directory shuffling ... everything should be compilable/runnable
120 # Revision 1.13 1997/06/21 17:12:54 curt
121 # Capitalized subdirectory names.
123 # Revision 1.12 1997/06/16 19:32:51 curt
124 # Starting to add general timer support.
126 # Revision 1.11 1997/05/31 19:16:25 curt
127 # Elevator trim added.
129 # Revision 1.10 1997/05/31 04:13:53 curt
132 # Continuing work on the LaRCsim flight model integration.
133 # Added some MSFS-like keyboard input handling.
135 # Revision 1.9 1997/05/30 23:26:19 curt
136 # Added elevator/aileron controls.
138 # Revision 1.8 1997/05/30 19:27:02 curt
139 # The LaRCsim flight model is starting to look like it is working.
141 # Revision 1.7 1997/05/29 22:39:50 curt
142 # Working on incorporating the LaRCsim flight model.
144 # Revision 1.6 1997/05/29 02:33:23 curt
145 # Updated to reflect changing interfaces in other "modules."
147 # Revision 1.5 1997/05/27 17:44:32 curt
148 # Renamed & rearranged variables and routines. Added some initial simple
149 # timer/alarm routines so the flight model can be updated on a regular interval.
151 # Revision 1.4 1997/05/23 15:40:26 curt
152 # Added GNU copyright headers.
155 # Revision 1.3 1997/05/23 00:35:13 curt
156 # Trying to get fog to work ...
158 # Revision 1.2 1997/05/21 15:57:52 curt
159 # Renamed due to added GLUT support.
161 # Revision 1.1 1997/05/16 16:05:51 curt