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
31 SUBDIRS = Areas AssemTris Dem2node DemRaw2Ascii FixNode FixObj \
32 SplitTris Stripe_u Tri2obj Triangle
33 ORDEREDDIRS = $(LIBDIRS) $(SUBDIRS)
37 for dir in $(ORDEREDDIRS); do \
38 ( cd $$dir; $(MAKE) ) ; \
42 for dir in $(ORDEREDDIRS); do \
43 ( echo "Making depend in $$dir"; \
44 cd $$dir; $(CC) $(CFLAGS) -M *.c > depend ) ; \
48 cat Makefile | perl mkmfos2.pl > Makefile.os2; \
49 for dir in $(ORDEREDDIRS); do \
50 ( echo "Making Makefile.os2 in $$dir"; \
51 cat $$dir/Makefile | perl mkmfos2.pl > $$dir/Makefile.os2; \
52 cat $$dir/depend | perl mkmfos2.pl > $$dir/depend.os2) ; \
57 for dir in $(ORDEREDDIRS); do \
58 (cd $$dir; $(MAKE) clean) ; \
64 tar cvzf demtools-$(FG_VERSION).tar.gz Tools/Makefile Tools/README \
65 Tools/Todo Tools/make.inc Tools/process-dem.pl Tools/AssemTris \
66 Tools/DEM Tools/gpc2.01 Tools/Dem2node Tools/DemRaw2Ascii \
67 Tools/FixNode Tools/FixObj Tools/SplitTris Tools/Stripe_u \
68 Tools/Tri2obj Tools/Triangle)
72 zip -r demtools-$(FG_VERSION).zip Tools/Makefile Tools/README \
73 Tools/Todo Tools/make.inc Tools/process-dem.pl Tools/AssemTris \
74 Tools/DEM Tools/gpc2.01 Tools/Dem2node Tools/DemRaw2Ascii \
75 Tools/FixNode Tools/FixObj Tools/SplitTris Tools/Stripe_u \
76 Tools/Tri2obj Tools/Triangle)
79 echo "need to fix this"
80 # cp GLUT/fg0 GLUT/runfg ..
82 # tar cvzf bin-$(FG_VERSION).tar.gz FlightGear/fgtop FlightGear/fg0 \
83 # FlightGear/runfg FlightGear/COPYING FlightGear/Docs FlightGear/Thanks)
86 echo "need to fix this"
87 # cp GLUT/fg0.exe GLUT/runfg.bat GLUT/cygwin.dll ..
89 # zip -r bin-$(FG_VERSION).zip FlightGear/fgtop FlightGear/fg0.exe \
90 # FlightGear/runfg.bat FlightGear/cygwin.dll FlightGear/COPYING \
91 # FlightGear/Docs FlightGear/Thanks)
94 #---------------------------------------------------------------------------
96 # Revision 1.14 1998/04/06 21:09:37 curt
97 # Additional win32 support.
98 # Fixed a bad bug in dem file parsing that was causing the output to be
99 # flipped about x = y.
101 # Revision 1.13 1998/03/19 02:52:51 curt
102 # Updated to reflect some minor tool reorganization and the creation of class
103 # to handle DEM processing needs.
105 # Revision 1.12 1998/03/19 01:48:34 curt
106 # Added gpc-2.01 (generic polygon clipping library)
108 # Revision 1.11 1998/03/03 21:54:43 curt
109 # Changes to process 30 arcsec binary DEM files.
111 # Revision 1.10 1998/03/03 15:36:11 curt
112 # Tweaks for compiling with g++
114 # Revision 1.9 1998/03/03 01:21:17 curt
117 # Revision 1.8 1998/01/31 00:41:19 curt
118 # Made a few changes converting floats to doubles.
120 # Revision 1.7 1998/01/27 18:36:53 curt
121 # Lots of updates to get back in sync with changes made over in .../Src/
123 # Revision 1.6 1998/01/21 02:55:42 curt
124 # Incorporated new make system from Bob Kuehne <rpk@sgi.com>.
126 # Revision 1.5 1998/01/14 15:55:34 curt
127 # Finished splittris, started assemtris.
129 # Revision 1.4 1997/12/10 01:18:25 curt
132 # Revision 1.3 1997/11/27 00:18:26 curt
135 # Revision 1.2 1997/11/14 00:31:06 curt
136 # Abandon Tri2terrain ... replace with Tri2obj so we can use an existing
139 # Revision 1.1 1997/10/20 19:52:18 curt