]> git.mxchange.org Git - flightgear.git/blob - LaRCsim/Makefile
First stab at a system to generate os2 makefiles automatically.
[flightgear.git] / LaRCsim / Makefile
1 #---------------------------------------------------------------------------
2 # Makefile
3 #
4 # Written by Curtis Olson, started May 1997.
5 #
6 # $Id$
7 # (Log is kept at end of this file)
8 #---------------------------------------------------------------------------
9
10
11 TARGET = libLaRCsim.a
12
13 LaRCsimFILES = atmos_62.c ls_accel.c ls_aux.c ls_geodesy.c ls_gravity.c \
14         ls_step.c ls_model.c default_model_routines.c ls_init.c # ls_sync.c
15
16 NavionFILES = navion_aero.c navion_engine.c navion_gear.c navion_init.c
17
18 InterfaceFILES = ls_interface.c
19
20 CFILES =  $(LaRCsimFILES) $(NavionFILES) $(InterfaceFILES)
21
22 OFILES = $(CFILES:.c=.o)
23
24
25 include ../../make.inc
26
27
28 CFLAGS = $(FG_CFLAGS)
29
30 LIBS = -lm
31
32
33 #---------------------------------------------------------------------------
34 # Primary Targets
35 #---------------------------------------------------------------------------
36
37 $(TARGET): $(OFILES)
38         $(AR) rv $(TARGET) $(OFILES)
39         $(RANLIB) $(TARGET)
40
41 simtest: $(TARGET) LaRCsim.o
42         $(CC) -o simtest LaRCsim.o libLaRCsim.a $(LIBS)
43
44 all: $(TARGET)
45
46 clean:
47         rm -f *.o $(TARGET) lib*.a *.os2 *~ core
48
49
50 #---------------------------------------------------------------------------
51 # Secondary Targets
52 #---------------------------------------------------------------------------
53
54 include depend
55
56 atmos_62.o:
57         $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
58
59 default_model_routines.o:
60         $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
61
62 ls_accel.o:
63         $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
64
65 ls_aux.o:
66         $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
67
68 ls_geodesy.o:
69         $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
70
71 ls_gravity.o:
72         $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
73
74 ls_init.o:
75         $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
76
77 ls_interface.o:
78         $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
79
80 ls_model.o:
81         $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
82
83 ls_step.o:
84         $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
85
86 navion_aero.o:
87         $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
88
89 navion_engine.o:
90         $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
91
92 navion_gear.o:
93         $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
94
95 navion_init.o:
96         $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
97
98
99 #---------------------------------------------------------------------------
100 # $Log$
101 # Revision 1.10  1997/07/20 02:19:10  curt
102 # First stab at a system to generate os2 makefiles automatically.
103 #
104 # Revision 1.9  1997/07/18 23:41:23  curt
105 # Tweaks for building with Cygnus Win32 compiler.
106 #
107 # Revision 1.8  1997/07/12 02:24:48  curt
108 # Added ranlib.
109 #
110 # Revision 1.7  1997/07/07 20:59:48  curt
111 # Working on scenery transformations to enable us to fly fluidly over the
112 # poles with no discontinuity/distortion in scenery.
113 #
114 # Revision 1.6  1997/06/27 21:38:06  curt
115 # Working on Makefile structure.
116 #
117 # Revision 1.5  1997/06/27 20:03:34  curt
118 # Working on Makefile structure.
119 #
120 # Revision 1.4  1997/06/26 19:08:30  curt
121 # Restructuring make, adding automatic "make dep" support.
122 #
123 # Revision 1.3  1997/06/21 17:12:50  curt
124 # Capitalized subdirectory names.
125 #
126 # Revision 1.2  1997/06/17 16:52:02  curt
127 # Timer interval stuff now uses gettimeofday() instead of ftime()
128 #
129 # Revision 1.1  1997/05/29 00:09:52  curt
130 # Initial Flight Gear revision.
131 #
132 # Revision 1.1  1997/05/16 16:04:44  curt
133 # Initial revision.
134 #