]> git.mxchange.org Git - flightgear.git/blobdiff - Tools/Makefile
Incorporated new make system from Bob Kuehne <rpk@sgi.com>.
[flightgear.git] / Tools / Makefile
index d04297d1f73658451e171b26d4d56ca2edf8b9dd..d28cea3e54035eafc830b1ca7fa624233898c254 100644 (file)
 #---------------------------------------------------------------------------
 
 
-include make.inc
+include $(FG_ROOT_SRC)/commondefs
 
 
-SUBDIRS = Dem2node FixNode Tri2obj Triangle
+SUBDIRS = AssemTris Dem2node FixNode FixObj SplitTris Stripe_u Tri2obj Triangle
+ORDEREDDIRS = $(SUBDIRS)
 
 
 all: 
-       for dir in $(SUBDIRS); do \
+       for dir in $(ORDEREDDIRS); do \
            ( cd $$dir; $(MAKE) ) ; \
        done
 
 depend:
-       for dir in $(SUBDIRS); do \
+       for dir in $(ORDEREDDIRS); do \
            ( echo "Making depend in $$dir"; \
              cd $$dir; $(CC) -MM *.c > depend ) ; \
        done
 
 Makefile-os2:
        cat Makefile | perl mkmfos2.pl > Makefile.os2; \
-       for dir in $(SUBDIRS); do \
+       for dir in $(ORDEREDDIRS); do \
            ( echo "Making Makefile.os2 in $$dir"; \
              cat $$dir/Makefile | perl mkmfos2.pl > $$dir/Makefile.os2; \
              cat $$dir/depend   | perl mkmfos2.pl > $$dir/depend.os2) ; \
@@ -51,22 +52,24 @@ Makefile-os2:
 
 clean:
        -rm -f *.os2 *~
-       for dir in $(SUBDIRS); do \
+       for dir in $(ORDEREDDIRS); do \
            (cd $$dir; $(MAKE) clean) ; \
        done
 
 
 source-tar: clean
-       echo "need to fix this"
-#      (cd ../..; \
-#      tar cvzf source-$(VERSION).tar.gz FlightGear/fgtop FlightGear/COPYING \
-#      FlightGear/Docs FlightGear/Src FlightGear/Thanks)
+       (cd ..; \
+       tar cvzf demtools-$(VERSION).tar.gz Tools/Makefile Tools/README \
+       Tools/TODO Tools/make.inc Tools/AssemTris Tools/Dem2node \
+       Tools/FixNode Tools/FixObj Tools/SplitTris Tools/Stripe_u \
+       Tools/Tri2obj Tools/Triangle)
 
 source-zip: clean
-       echo "need to fix this"
-#      (cd ../..; \
-#      zip -r source-$(VERSION).zip FlightGear/fgtop FlightGear/COPYING \
-#      FlightGear/Docs FlightGear/Src FlightGear/Thanks)
+       (cd ..; \
+       zip -r demtools-$(VERSION).zip Tools/Makefile Tools/README \
+       Tools/TODO Tools/make.inc Tools/AssemTris Tools/Dem2node \
+       Tools/FixNode Tools/FixObj Tools/SplitTris Tools/Stripe_u \
+       Tools/Tri2obj Tools/Triangle)
 
 bin-tar: all
        echo "need to fix this"
@@ -86,6 +89,15 @@ bin-zip:
 
 #---------------------------------------------------------------------------
 # $Log$
+# Revision 1.6  1998/01/21 02:55:42  curt
+# Incorporated new make system from Bob Kuehne <rpk@sgi.com>.
+#
+# Revision 1.5  1998/01/14 15:55:34  curt
+# Finished splittris, started assemtris.
+#
+# Revision 1.4  1997/12/10 01:18:25  curt
+# Initial revision.
+#
 # Revision 1.3  1997/11/27 00:18:26  curt
 # Added FixNode
 #