]> git.mxchange.org Git - flightgear.git/blobdiff - Simulator/Makefile
Working on Makefile structure.
[flightgear.git] / Simulator / Makefile
index eaf1bc3d6b6cb2318e3a2d2f5052c9ca6de11802..d59dddae5be3806a8c3fed755bd08d90dde107e4 100644 (file)
@@ -98,7 +98,7 @@ export INTERFACE_FLAGS INTERFACE_LIBS GRAPHICS_LIBS
 # You shouldn't need to modify anything beyond this point
 #---------------------------------------------------------------------------
 
-SUBSUBDIRS = Flight/LaRCsim Flight/Slew Scenery/ParseScn Scenery/ParseVrml
+SUBSUBDIRS = Flight/LaRCsim Flight/Slew Scenery/ParseScn Scenery/ParseVRML
 SUBDIRS = Aircraft Controls Flight mat3 Scenery Timer
 MAIN = OpenGL
 
@@ -111,12 +111,20 @@ all:
            ( cd $$dir; $(MAKE) ) ; \
        done
 
+depend:
+       for dir in $(SUBSUBDIRS) $(SUBDIRS); do \
+           ( cd $$dir; $(MAKE) depend ) ; \
+       done
+       for dir in $(MAIN); do \
+           ( cd $$dir; $(MAKE) depend ) ; \
+       done
+
 dep:
        for dir in $(SUBSUBDIRS) $(SUBDIRS); do \
-           ( cd $$dir; $(MAKE) dep ) ; \
+           ( cd $$dir; $(CC) -MM *.c > depend ) ; \
        done
        for dir in $(MAIN); do \
-           ( cd $$dir; $(MAKE) dep ) ; \
+           ( cd $$dir; $(CC) -MM *.c > depend ) ; \
        done
 
 clean:
@@ -134,6 +142,9 @@ tar: clean
 
 #---------------------------------------------------------------------------
 # $Log$
+# Revision 1.11  1997/06/27 20:03:31  curt
+# Working on Makefile structure.
+#
 # Revision 1.10  1997/06/26 19:08:22  curt
 # Restructuring make, adding automatic "make dep" support.
 #