]> git.mxchange.org Git - flightgear.git/blob - Tools/Makefile
Adopted Gnu automake/autoconf system.
[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 LIBDIRS = DEM gpc2.01
31 SUBDIRS = Areas AssemTris Dem2node DemRaw2Ascii FixNode FixObj \
32         SplitTris Stripe_u Tri2obj Triangle
33 ORDEREDDIRS = $(LIBDIRS) $(SUBDIRS)
34
35
36 all: 
37         for dir in $(ORDEREDDIRS); do \
38             ( cd $$dir; $(MAKE) ) ; \
39         done
40
41 depend:
42         for dir in $(ORDEREDDIRS); do \
43             ( echo "Making depend in $$dir"; \
44               cd $$dir; $(CC) $(CFLAGS) -M *.c > depend ) ; \
45         done
46
47 Makefile-os2:
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) ; \
53         done
54
55 clean:
56         -rm -f *.os2 *~
57         for dir in $(ORDEREDDIRS); do \
58             (cd $$dir; $(MAKE) clean) ; \
59         done
60
61
62 source-tar: clean
63         (cd ..; \
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)
69
70 source-zip: clean
71         (cd ..; \
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)
77
78 bin-tar: all
79         echo "need to fix this"
80 #       cp GLUT/fg0 GLUT/runfg ..
81 #       (cd ../..; \
82 #       tar cvzf bin-$(FG_VERSION).tar.gz FlightGear/fgtop FlightGear/fg0 \
83 #       FlightGear/runfg FlightGear/COPYING FlightGear/Docs FlightGear/Thanks)
84
85 bin-zip: 
86         echo "need to fix this"
87 #       cp GLUT/fg0.exe GLUT/runfg.bat GLUT/cygwin.dll ..
88 #       (cd ../..; \
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)
92
93
94 #---------------------------------------------------------------------------
95 # $Log$
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.
100 #
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.
104 #
105 # Revision 1.12  1998/03/19 01:48:34  curt
106 # Added gpc-2.01 (generic polygon clipping library)
107 #
108 # Revision 1.11  1998/03/03 21:54:43  curt
109 # Changes to process 30 arcsec binary DEM files.
110 #
111 # Revision 1.10  1998/03/03 15:36:11  curt
112 # Tweaks for compiling with g++
113 #
114 # Revision 1.9  1998/03/03 01:21:17  curt
115 # Added DemRaw2Ascii
116 #
117 # Revision 1.8  1998/01/31 00:41:19  curt
118 # Made a few changes converting floats to doubles.
119 #
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/
122 #
123 # Revision 1.6  1998/01/21 02:55:42  curt
124 # Incorporated new make system from Bob Kuehne <rpk@sgi.com>.
125 #
126 # Revision 1.5  1998/01/14 15:55:34  curt
127 # Finished splittris, started assemtris.
128 #
129 # Revision 1.4  1997/12/10 01:18:25  curt
130 # Initial revision.
131 #
132 # Revision 1.3  1997/11/27 00:18:26  curt
133 # Added FixNode
134 #
135 # Revision 1.2  1997/11/14 00:31:06  curt
136 # Abandon Tri2terrain ... replace with Tri2obj so we can use an existing
137 # tri-stripper.
138 #
139 # Revision 1.1  1997/10/20 19:52:18  curt
140 # Initial revision.
141 #