]> git.mxchange.org Git - flightgear.git/blobdiff - FDM/Makefile
Restructuring make, adding automatic "make dep" support.
[flightgear.git] / FDM / Makefile
index 718a73b4790cd286919ba57b5779ac6a233efe9b..0082de4e83dc4899511440d5c1301c2cdfed5fb5 100644 (file)
 #---------------------------------------------------------------------------
 
 
-TARGET=libflight.a
+TARGET=libFlight.a
 
 CFILES = flight.c
 OFILES = $(CFILES:.c=.o)
 
 CC = gcc
-CFLAGS = -g -Wall
-# CFLAGS = -O2 -Wall
+CFLAGS = $(FG_CFLAGS)
 
 AR = ar
 
@@ -49,23 +48,34 @@ $(TARGET): $(OFILES)
 
 all: $(TARGET)
 
+dep:                                 
+       $(CC) -MM *.c > depend                     
+
 clean:
-       rm -f *.o $(TARGET) *~ core
+       rm -f *.o $(TARGET) lib*.a *~ core
 
 
 #---------------------------------------------------------------------------
 # Secondary Targets
 #---------------------------------------------------------------------------
 
-flight.h:  slew/slew.h LaRCsim/ls_interface.h
-       touch flight.h
+include depend
 
-flight.o: flight.c flight.h
+flight.o:
        $(CC) $(CFLAGS) $(INCLUDES) -c flight.c
 
 
 #---------------------------------------------------------------------------
 # $Log$
+# Revision 1.6  1997/06/26 19:08:30  curt
+# Restructuring make, adding automatic "make dep" support.
+#
+# Revision 1.5  1997/06/25 15:39:46  curt
+# Minor changes to compile with rsxnt/win32.
+#
+# Revision 1.4  1997/06/21 17:12:48  curt
+# Capitalized subdirectory names.
+#
 # Revision 1.3  1997/05/29 02:32:25  curt
 # Starting to build generic flight model interface.
 #