]> git.mxchange.org Git - flightgear.git/blob - Main/Makefile
Organizational tweaking.
[flightgear.git] / Main / Makefile
1 #---------------------------------------------------------------------------
2 # Makefile
3 #
4 # Written by Curtis Olson, started May 1997.
5 #
6 # Copyright (C) 1997  Curtis L. Olson  - curt@infoplane.com
7 #
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.
12 #
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.
17 #
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.
21 #
22 # $Id$
23 # (Log is kept at end of this file)
24 #---------------------------------------------------------------------------
25
26
27 TARGET=fg0
28
29 CFILES = GLUTmain.c $(INTERFACE_FILES)
30 OFILES = $(CFILES:.c=.o)
31 AFILES = ../Aircraft/libAircraft.a ../Controls/libControls.a \
32         ../Flight/libFlight.a ../Flight/LaRCsim/libLaRCsim.a \
33         ../Flight/Slew/libSlew.a ../Scenery/libScenery.a \
34         ../Time/libTime.a ../Weather/libWeather.a ../Math/libMath.a 
35
36
37 include ../make.inc
38
39
40 CFLAGS = $(FG_CFLAGS) $(INTERFACE_FLAGS)
41 LIBS =  $(INTERFACE_LIBS) $(GRAPHICS_LIBS) -lm -lfl
42
43
44 #---------------------------------------------------------------------------
45 # Primary Targets
46 #---------------------------------------------------------------------------
47
48 $(TARGET): $(OFILES) $(AFILES)
49         $(CC) -o $(TARGET) $(OFILES) $(AFILES) $(LIBS)
50
51 all: $(TARGET)
52
53 clean:
54         rm -f *.o $(TARGET) $(TARGET).exe lib*.a *.os2 *~ core
55
56
57 #---------------------------------------------------------------------------
58 # Secondary Targets
59 #---------------------------------------------------------------------------
60
61 include depend
62
63 GLUTmain.o:
64         $(CC) $(CFLAGS) -c GLUTmain.c -o $@
65
66 GLUTkey.o:
67         $(CC) $(CFLAGS) -c GLUTkey.c -o $@
68
69 GLTKkey.o:
70         $(CC) $(CFLAGS) -c GLTKkey.c -o $@
71
72
73 #---------------------------------------------------------------------------
74 # $Log$
75 # Revision 1.29  1997/08/04 20:25:15  curt
76 # Organizational tweaking.
77 #
78 # Revision 1.28  1997/08/02 18:45:01  curt
79 # Renamed GLmain.c GLUTmain.c
80 #
81 # Revision 1.27  1997/07/31 22:52:39  curt
82 # Working on redoing internal coordinate systems & scenery transformations.
83 #
84 # Revision 1.26  1997/07/30 16:12:42  curt
85 # Moved fg_random routines from Util/ to Math/
86 #
87 # Revision 1.25  1997/07/20 02:19:11  curt
88 # First stab at a system to generate os2 makefiles automatically.
89 #
90 # Revision 1.24  1997/07/19 23:04:47  curt
91 # Added an initial weather section.
92 #
93 # Revision 1.23  1997/07/19 22:34:03  curt
94 # Moved PI definitions to ../constants.h
95 # Moved random() stuff to ../Utils/ and renamed fg_random()
96 #
97 # Revision 1.22  1997/07/18 23:41:25  curt
98 # Tweaks for building with Cygnus Win32 compiler.
99 #
100 # Revision 1.21  1997/07/05 20:43:34  curt
101 # renamed mat3 directory to Math so we could add other math related routines.
102 #
103 # Revision 1.20  1997/06/29 21:19:17  curt
104 # Working on scenery management system.
105 #
106 # Revision 1.19  1997/06/27 21:38:09  curt
107 # Working on Makefile structure.
108 #
109 # Revision 1.18  1997/06/27 20:03:36  curt
110 # Working on Makefile structure.
111 #
112 # Revision 1.17  1997/06/26 22:14:54  curt
113 # Beginning work on a scenery management system.
114 #
115 # Revision 1.16  1997/06/26 19:08:33  curt
116 # Restructuring make, adding automatic "make dep" support.
117 #
118 # Revision 1.15  1997/06/25 15:39:47  curt
119 # Minor changes to compile with rsxnt/win32.
120 #
121 # Revision 1.14  1997/06/21 17:52:23  curt
122 # Continue directory shuffling ... everything should be compilable/runnable
123 # again.
124 #
125 # Revision 1.13  1997/06/21 17:12:54  curt
126 # Capitalized subdirectory names.
127 #
128 # Revision 1.12  1997/06/16 19:32:51  curt
129 # Starting to add general timer support.
130 #
131 # Revision 1.11  1997/05/31 19:16:25  curt
132 # Elevator trim added.
133 #
134 # Revision 1.10  1997/05/31 04:13:53  curt
135 # WE CAN NOW FLY!!!
136 #
137 # Continuing work on the LaRCsim flight model integration.
138 # Added some MSFS-like keyboard input handling.
139 #
140 # Revision 1.9  1997/05/30 23:26:19  curt
141 # Added elevator/aileron controls.
142 #
143 # Revision 1.8  1997/05/30 19:27:02  curt
144 # The LaRCsim flight model is starting to look like it is working.
145 #
146 # Revision 1.7  1997/05/29 22:39:50  curt
147 # Working on incorporating the LaRCsim flight model.
148 #
149 # Revision 1.6  1997/05/29 02:33:23  curt
150 # Updated to reflect changing interfaces in other "modules."
151 #
152 # Revision 1.5  1997/05/27 17:44:32  curt
153 # Renamed & rearranged variables and routines.   Added some initial simple
154 # timer/alarm routines so the flight model can be updated on a regular interval.
155 #
156 # Revision 1.4  1997/05/23 15:40:26  curt
157 # Added GNU copyright headers.
158 # Fog now works!
159 #
160 # Revision 1.3  1997/05/23 00:35:13  curt
161 # Trying to get fog to work ...
162 #
163 # Revision 1.2  1997/05/21 15:57:52  curt
164 # Renamed due to added GLUT support.
165 #
166 # Revision 1.1  1997/05/16 16:05:51  curt
167 # Initial revision.
168 #