1
0
Fork 0
flightgear/Tools/Makefile

121 lines
3.6 KiB
Makefile
Raw Normal View History

1997-10-20 19:52:18 +00:00
#---------------------------------------------------------------------------
# Toplevel FGTools Makefile
#
# Written by Curtis Olson, started October 1997.
#
# Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# $Id$
# (Log is kept at end of this file)
#---------------------------------------------------------------------------
include $(FG_ROOT_SRC)/commondefs
1997-10-20 19:52:18 +00:00
1998-03-03 01:21:17 +00:00
SUBDIRS = AssemTris Dem2node DemRaw2Ascii FixNode FixObj SplitTris Stripe_u \
Tri2obj Triangle
ORDEREDDIRS = $(SUBDIRS)
1997-10-20 19:52:18 +00:00
all:
for dir in $(ORDEREDDIRS); do \
1997-10-20 19:52:18 +00:00
( cd $$dir; $(MAKE) ) ; \
done
depend:
for dir in $(ORDEREDDIRS); do \
1997-10-20 19:52:18 +00:00
( echo "Making depend in $$dir"; \
1998-03-03 01:21:17 +00:00
cd $$dir; $(CC) $(CFLAGS) -M *.c > depend ) ; \
1997-10-20 19:52:18 +00:00
done
Makefile-os2:
cat Makefile | perl mkmfos2.pl > Makefile.os2; \
for dir in $(ORDEREDDIRS); do \
1997-10-20 19:52:18 +00:00
( echo "Making Makefile.os2 in $$dir"; \
cat $$dir/Makefile | perl mkmfos2.pl > $$dir/Makefile.os2; \
cat $$dir/depend | perl mkmfos2.pl > $$dir/depend.os2) ; \
done
clean:
-rm -f *.os2 *~
for dir in $(ORDEREDDIRS); do \
1997-10-20 19:52:18 +00:00
(cd $$dir; $(MAKE) clean) ; \
done
source-tar: clean
1997-12-10 01:18:25 +00:00
(cd ..; \
tar cvzf demtools-$(FG_VERSION).tar.gz Tools/Makefile Tools/README \
Tools/Todo Tools/make.inc Tools/process-dem.pl Tools/AssemTris \
Tools/Dem2node Tools/FixNode Tools/FixObj Tools/SplitTris \
Tools/Stripe_u Tools/Tri2obj Tools/Triangle)
1997-10-20 19:52:18 +00:00
source-zip: clean
1997-12-10 01:18:25 +00:00
(cd ..; \
zip -r demtools-$(FG_VERSION).zip Tools/Makefile Tools/README \
Tools/Todo Tools/make.inc Tools/process-dem.pl Tools/AssemTris \
Tools/Dem2node Tools/FixNode Tools/FixObj Tools/SplitTris \
Tools/Stripe_u Tools/Tri2obj Tools/Triangle)
1997-10-20 19:52:18 +00:00
bin-tar: all
echo "need to fix this"
# cp GLUT/fg0 GLUT/runfg ..
# (cd ../..; \
# tar cvzf bin-$(FG_VERSION).tar.gz FlightGear/fgtop FlightGear/fg0 \
1997-10-20 19:52:18 +00:00
# FlightGear/runfg FlightGear/COPYING FlightGear/Docs FlightGear/Thanks)
bin-zip:
echo "need to fix this"
# cp GLUT/fg0.exe GLUT/runfg.bat GLUT/cygwin.dll ..
# (cd ../..; \
# zip -r bin-$(FG_VERSION).zip FlightGear/fgtop FlightGear/fg0.exe \
1997-10-20 19:52:18 +00:00
# FlightGear/runfg.bat FlightGear/cygwin.dll FlightGear/COPYING \
# FlightGear/Docs FlightGear/Thanks)
#---------------------------------------------------------------------------
# $Log$
1998-03-03 01:21:17 +00:00
# Revision 1.9 1998/03/03 01:21:17 curt
# Added DemRaw2Ascii
#
# Revision 1.8 1998/01/31 00:41:19 curt
# Made a few changes converting floats to doubles.
#
# Revision 1.7 1998/01/27 18:36:53 curt
# Lots of updates to get back in sync with changes made over in .../Src/
#
# Revision 1.6 1998/01/21 02:55:42 curt
# Incorporated new make system from Bob Kuehne <rpk@sgi.com>.
#
1998-01-14 15:55:34 +00:00
# Revision 1.5 1998/01/14 15:55:34 curt
# Finished splittris, started assemtris.
#
1997-12-10 01:18:25 +00:00
# Revision 1.4 1997/12/10 01:18:25 curt
# Initial revision.
#
1997-11-27 00:18:26 +00:00
# Revision 1.3 1997/11/27 00:18:26 curt
# Added FixNode
#
# Revision 1.2 1997/11/14 00:31:06 curt
# Abandon Tri2terrain ... replace with Tri2obj so we can use an existing
# tri-stripper.
#
1997-10-20 19:52:18 +00:00
# Revision 1.1 1997/10/20 19:52:18 curt
# Initial revision.
#