1 #---------------------------------------------------------------------------
2 # Toplevel FGTools Makefile
4 # Written by Curtis Olson, started October 1997.
6 # Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 # (Log is kept at end of this file)
24 #---------------------------------------------------------------------------
27 include $(FG_ROOT_SRC)/commondefs
30 SUBDIRS = AssemTris Dem2node DemRaw2Ascii FixNode FixObj SplitTris \
31 Stripe_u Tri2obj Triangle
32 ORDEREDDIRS = $(SUBDIRS)
36 for dir in $(ORDEREDDIRS); do \
37 ( cd $$dir; $(MAKE) ) ; \
41 for dir in $(ORDEREDDIRS); do \
42 ( echo "Making depend in $$dir"; \
43 cd $$dir; $(CC) $(CFLAGS) -M *.c > depend ) ; \
47 cat Makefile | perl mkmfos2.pl > Makefile.os2; \
48 for dir in $(ORDEREDDIRS); do \
49 ( echo "Making Makefile.os2 in $$dir"; \
50 cat $$dir/Makefile | perl mkmfos2.pl > $$dir/Makefile.os2; \
51 cat $$dir/depend | perl mkmfos2.pl > $$dir/depend.os2) ; \
56 for dir in $(ORDEREDDIRS); do \
57 (cd $$dir; $(MAKE) clean) ; \
63 tar cvzf demtools-$(FG_VERSION).tar.gz Tools/Makefile Tools/README \
64 Tools/Todo Tools/make.inc Tools/process-dem.pl Tools/AssemTris \
65 Tools/Dem2node Tools/DemRaw2Ascii Tools/FixNode Tools/FixObj \
66 Tools/SplitTris Tools/Stripe_u Tools/Tri2obj Tools/Triangle)
70 zip -r demtools-$(FG_VERSION).zip Tools/Makefile Tools/README \
71 Tools/Todo Tools/make.inc Tools/process-dem.pl Tools/AssemTris \
72 Tools/Dem2node Tools/DemRaw2Ascii Tools/FixNode Tools/FixObj \
73 Tools/SplitTris Tools/Stripe_u Tools/Tri2obj Tools/Triangle)
76 echo "need to fix this"
77 # cp GLUT/fg0 GLUT/runfg ..
79 # tar cvzf bin-$(FG_VERSION).tar.gz FlightGear/fgtop FlightGear/fg0 \
80 # FlightGear/runfg FlightGear/COPYING FlightGear/Docs FlightGear/Thanks)
83 echo "need to fix this"
84 # cp GLUT/fg0.exe GLUT/runfg.bat GLUT/cygwin.dll ..
86 # zip -r bin-$(FG_VERSION).zip FlightGear/fgtop FlightGear/fg0.exe \
87 # FlightGear/runfg.bat FlightGear/cygwin.dll FlightGear/COPYING \
88 # FlightGear/Docs FlightGear/Thanks)
91 #---------------------------------------------------------------------------
93 # Revision 1.11 1998/03/03 21:54:43 curt
94 # Changes to process 30 arcsec binary DEM files.
96 # Revision 1.10 1998/03/03 15:36:11 curt
97 # Tweaks for compiling with g++
99 # Revision 1.9 1998/03/03 01:21:17 curt
102 # Revision 1.8 1998/01/31 00:41:19 curt
103 # Made a few changes converting floats to doubles.
105 # Revision 1.7 1998/01/27 18:36:53 curt
106 # Lots of updates to get back in sync with changes made over in .../Src/
108 # Revision 1.6 1998/01/21 02:55:42 curt
109 # Incorporated new make system from Bob Kuehne <rpk@sgi.com>.
111 # Revision 1.5 1998/01/14 15:55:34 curt
112 # Finished splittris, started assemtris.
114 # Revision 1.4 1997/12/10 01:18:25 curt
117 # Revision 1.3 1997/11/27 00:18:26 curt
120 # Revision 1.2 1997/11/14 00:31:06 curt
121 # Abandon Tri2terrain ... replace with Tri2obj so we can use an existing
124 # Revision 1.1 1997/10/20 19:52:18 curt