]> git.mxchange.org Git - flightgear.git/blobdiff - Controls/Makefile
First stab at a system to generate os2 makefiles automatically.
[flightgear.git] / Controls / Makefile
index 5d5b15f4b2ef0179ac27c344f8abf2a8f68d794f..3173889c80beecb88bb8acc67ed7c68e0a86786c 100644 (file)
@@ -30,15 +30,11 @@ CFILES = controls.c
 HFILES = controls.h
 OFILES = $(CFILES:.c=.o)
 
-CC = gcc
-CFLAGS = -g -Wall
-# CFLAGS = -O2 -Wall
 
-AR = ar
+include ../make.inc
 
-INCLUDES = 
 
-LIBS = 
+CFLAGS = $(FG_CFLAGS)
 
 
 #---------------------------------------------------------------------------
@@ -47,26 +43,44 @@ LIBS =
 
 $(TARGET): $(OFILES)
        $(AR) rv $(TARGET) $(OFILES)
+       $(RANLIB) $(TARGET)
 
 all: $(TARGET)
 
 clean:
-       rm -f *.o $(TARGET) *~ core
+       rm -f *.o $(TARGET) lib*.a *.os2 *~ core
 
 
 #---------------------------------------------------------------------------
 # Secondary Targets
 #---------------------------------------------------------------------------
 
-controls.h: ../limits.h
-       touch controls.h
+include depend
 
-controls.o: controls.c controls.h ../Aircraft/aircraft.h
-       $(CC) $(CFLAGS) $(INCLUDES) -c controls.c
+controls.o:
+       $(CC) $(CFLAGS) $(INCLUDES) -c controls.c -o $@
 
 
 #---------------------------------------------------------------------------
 # $Log$
+# Revision 1.10  1997/07/20 02:19:10  curt
+# First stab at a system to generate os2 makefiles automatically.
+#
+# Revision 1.9  1997/07/12 02:24:45  curt
+# Added ranlib.
+#
+# Revision 1.8  1997/06/27 21:38:03  curt
+# Working on Makefile structure.
+#
+# Revision 1.7  1997/06/27 20:03:33  curt
+# Working on Makefile structure.
+#
+# Revision 1.6  1997/06/26 19:08:29  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:47  curt
 # Capitalized subdirectory names.
 #