]> git.mxchange.org Git - flightgear.git/blob - Tools/Makefile
Added gpc-2.01 (generic polygon clipping library)
[flightgear.git] / Tools / Makefile
1 #---------------------------------------------------------------------------
2 # Toplevel FGTools Makefile
3 #
4 # Written by Curtis Olson, started October 1997.
5 #
6 # Copyright (C) 1997  Curtis L. Olson  - curt@infoplane.com
7 #
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.
12 #
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.
17 #
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.
21 #
22 # $Id$
23 # (Log is kept at end of this file)
24 #---------------------------------------------------------------------------
25
26
27 include $(FG_ROOT_SRC)/commondefs
28
29
30 SUBDIRS = gpc2.01 AssemTris Dem2node DemRaw2Ascii FixNode FixObj SplitTris \
31         Stripe_u Tri2obj Triangle
32 ORDEREDDIRS = $(SUBDIRS)
33
34
35 all: 
36         for dir in $(ORDEREDDIRS); do \
37             ( cd $$dir; $(MAKE) ) ; \
38         done
39
40 depend:
41         for dir in $(ORDEREDDIRS); do \
42             ( echo "Making depend in $$dir"; \
43               cd $$dir; $(CC) $(CFLAGS) -M *.c > depend ) ; \
44         done
45
46 Makefile-os2:
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) ; \
52         done
53
54 clean:
55         -rm -f *.os2 *~
56         for dir in $(ORDEREDDIRS); do \
57             (cd $$dir; $(MAKE) clean) ; \
58         done
59
60
61 source-tar: clean
62         (cd ..; \
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)
67
68 source-zip: clean
69         (cd ..; \
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)
74
75 bin-tar: all
76         echo "need to fix this"
77 #       cp GLUT/fg0 GLUT/runfg ..
78 #       (cd ../..; \
79 #       tar cvzf bin-$(FG_VERSION).tar.gz FlightGear/fgtop FlightGear/fg0 \
80 #       FlightGear/runfg FlightGear/COPYING FlightGear/Docs FlightGear/Thanks)
81
82 bin-zip: 
83         echo "need to fix this"
84 #       cp GLUT/fg0.exe GLUT/runfg.bat GLUT/cygwin.dll ..
85 #       (cd ../..; \
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)
89
90
91 #---------------------------------------------------------------------------
92 # $Log$
93 # Revision 1.12  1998/03/19 01:48:34  curt
94 # Added gpc-2.01 (generic polygon clipping library)
95 #
96 # Revision 1.11  1998/03/03 21:54:43  curt
97 # Changes to process 30 arcsec binary DEM files.
98 #
99 # Revision 1.10  1998/03/03 15:36:11  curt
100 # Tweaks for compiling with g++
101 #
102 # Revision 1.9  1998/03/03 01:21:17  curt
103 # Added DemRaw2Ascii
104 #
105 # Revision 1.8  1998/01/31 00:41:19  curt
106 # Made a few changes converting floats to doubles.
107 #
108 # Revision 1.7  1998/01/27 18:36:53  curt
109 # Lots of updates to get back in sync with changes made over in .../Src/
110 #
111 # Revision 1.6  1998/01/21 02:55:42  curt
112 # Incorporated new make system from Bob Kuehne <rpk@sgi.com>.
113 #
114 # Revision 1.5  1998/01/14 15:55:34  curt
115 # Finished splittris, started assemtris.
116 #
117 # Revision 1.4  1997/12/10 01:18:25  curt
118 # Initial revision.
119 #
120 # Revision 1.3  1997/11/27 00:18:26  curt
121 # Added FixNode
122 #
123 # Revision 1.2  1997/11/14 00:31:06  curt
124 # Abandon Tri2terrain ... replace with Tri2obj so we can use an existing
125 # tri-stripper.
126 #
127 # Revision 1.1  1997/10/20 19:52:18  curt
128 # Initial revision.
129 #