]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Tweaks for Mips Irix compilers.
[flightgear.git] / Makefile.am
1 SUBDIRS = \
2         tests \
3         src
4
5 EXTRA_DIST = Thanks acsite.m4 acconfig.h irix-hack.pl \
6         FlightGear.dsp FlightGear.dsw
7
8 dist-hook:
9         (cd $(top_srcdir); $(HOME)/projects/FlightGear-0.7/admin/am2dsp.pl)
10         tar --exclude docs-mini/CVS --exclude hints/CVS -cf - docs-mini hints \
11                 | (cd $(distdir); tar xvf -)
12         # tar cf - Simulator/FDM/JSBsim/aircraft Simulator/FDM/JSBsim/engine | (cd $(distdir); tar xvf -)
13
14
15 ##########################################################################
16 # extra targets to do various things ...
17 #
18 # Use "make <target>"
19 ##########################################################################
20
21
22 # make the base distribution with textures, sounds and a bit of
23 # scenery, and all the other associated files
24
25 fgfs-base: fgfs-base-tar fgfs-base-zip fgfs-base-patch fgfs-textures-high
26
27 fgfs-base-tar:
28         (cd $(HOME); \
29         tar --exclude=CVS --exclude='*/Textures/Unused' \
30         -czvf fgfs-base-$(VERSION).tar.gz \
31         FlightGear/A[A-su-z]* \
32         FlightGear/[B-CE-R]* \
33         FlightGear/Scenery/w130n30/w123n37 \
34         FlightGear/Scenery/w130n30/w122n37 \
35         FlightGear/Sounds \
36         FlightGear/[T-Za]* FlightGear/[c-z]*)
37
38 fgfs-base-zip:
39         (cd $(HOME); \
40         zip -rv fgfs-base-$(VERSION).zip \
41         FlightGear/A[A-su-z]* \
42         FlightGear/[B-CE-R]* \
43         FlightGear/Scenery/w130n30/w123n37 \
44         FlightGear/Scenery/w130n30/w122n37 \
45         FlightGear/Sounds \
46         FlightGear/[T-Za]* FlightGear/[c-z]* \
47         -x '*/CVS/*' -x '*/Textures/Unused/*' )
48
49 fgfs-base-patch:
50         (cd $(HOME); \
51         tar --newer 10/12/2000 -czvf fgfs-base-patch-$(VERSION)c.tar.gz \
52         FlightGear/A[A-su-z]* \
53         FlightGear/[B-CE-R]* \
54         FlightGear/Scenery/w130n30/w123n37 \
55         FlightGear/Scenery/w130n30/w122n37 \
56         FlightGear/Sounds \
57         FlightGear/[T-Za]* FlightGear/[c-z]*)
58
59 fgfs-textures-high:
60         (cd $(HOME); \
61         tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
62         FlightGear/Textures.high)
63
64 # make the mini JSBsim data distribution
65 jsbsim-data:
66         (cd $(HOME); \
67         tar czvf jsbsim-data-$(VERSION).tar.gz \
68         FlightGear/Aircraft \
69         FlightGear/Engine)
70
71 # make the documentation distribution
72
73 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
74
75 fgfs-docs-tar:
76         ( cd $(HOME)/projects ; \
77         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear-0.7/docs )
78
79 # fgfs-docs-zip:
80 #       ( cd $(HOME)/projects ; \
81 #       zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
82
83 fgfs-manual-zip:
84         ( cd $(HOME)/projects ; \
85         zip -r fgfs-manual-$(VERSION).zip FlightGear-0.7/docs/InstallGuide )
86
87 # make the win32-bin distribution
88
89 fgfs-win32-bin:
90         (cd $(HOME); \
91         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/bin )
92
93 # make the win32-libs distribution (depricated)
94 win32-libs:
95         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
96         Win32/README.glut Win32/cygwinb1.dll Win32/def \
97         Win32/*.exp Win32/gen-def-from-errors.pl \
98         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
99         Win32/impdef.exe Win32/include \
100         Win32/install.exe \
101         Win32/lib Win32/zlib.lib )
102
103 # make the MacOS (MWCWP3) devel support archive
104 macos-devel:
105         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
106
107 # clean up dependencies
108 clean-deps:
109         rm -rf .deps \
110         src/.deps tests/.deps \
111         src/*/.deps \
112         src/*/*/.deps \
113         tests/.deps
114
115 # clean up after libtool
116 clean-libs:
117         rm -rf .libs src/.libs \
118                 src/*/.libs \
119                 src/*/*/.libs 
120         rm -f src/*/so_locations \
121                 src/*/*/so_locations 
122
123 # clean up after winbloze spews random case for file names :-(
124 clean-winbloze: clean-deps clean-libs
125         rm -f makefile src/Include/makefile src/makefile \
126                 src/*/makefile \
127                 src/*/*/makefile \
128                 tests/makefile
129         rm -f src/Main/fg.exe