1 # $Id: Makefile.X11,v 1.97 2003/12/10 02:44:38 brianp Exp $
3 # Mesa 3-D graphics library
6 # Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
8 # Permission is hereby granted, free of charge, to any person obtaining a
9 # copy of this software and associated documentation files (the "Software"),
10 # to deal in the Software without restriction, including without limitation
11 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
12 # and/or sell copies of the Software, and to permit persons to whom the
13 # Software is furnished to do so, subject to the following conditions:
15 # The above copyright notice and this permission notice shall be included
16 # in all copies or substantial portions of the Software.
18 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 # BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
22 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23 # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 # Top-level makefile for Mesa
27 # To add a new configuration for your system add it to the list below
28 # then update the Make-config file.
35 @echo "Type one of the following:"
36 @echo " make aix for IBM RS/6000 with AIX"
37 @echo " make aix-sl for IBM RS/6000, make shared libs"
38 @echo " make beos-r4 for BeOS R4"
39 @echo " make cygnus for Win95/NT using Cygnus-Win32"
40 @echo " make cygnus-linux for Win95/NT using Cygnus-Win32 under Linux"
41 @echo " make darwin for Darwin - Mac OS X"
42 @echo " make freebsd for FreeBSD systems with GCC"
43 @echo " make freebsd-386 for FreeBSD systems with GCC, w/ Intel assembly"
44 @echo " make gcc-sl for a generic system with GCC for shared libs"
45 @echo " make hpux9 for HP systems with HPUX 9.x"
46 @echo " make hpux9-sl for HP systems with HPUX 9.x, make shared libs"
47 @echo " make hpux9-gcc for HP systems with HPUX 9.x using GCC"
48 @echo " make hpux9-gcc-sl for HP systems with HPUX 9.x, GCC, make shared libs"
49 @echo " make hpux10 for HP systems with HPUX 10.x and 11.x"
50 @echo " make hpux10-sl for HP systems with HPUX 10.x and 11.x, shared libs"
51 @echo " make hpux10-gcc for HP systems with HPUX 10.x w/ GCC"
52 @echo " make hpux10-gcc-sl for HP systems with HPUX 10.x w/ GCC, shared libs"
53 @echo " make irix6-o32 for SGI systems with IRIX 6.x, make o32-bit libs"
54 @echo " make irix6-o32-dso for SGI systems with IRIX 6.x, make o32-bit DSOs"
55 @echo " make irix6-n32 for SGI systems with IRIX 6.x, make n32-bit libs"
56 @echo " make irix6-n32-dso for SGI systems with IRIX 6.x, make n32-bit DSOs"
57 @echo " make irix6-gcc-n32-sl for SGI systems with IRIX 6.x, GCC, make n32 DSOs"
58 @echo " make irix6-64 for SGI systems with IRIX 6.x, make 64-bit libs"
59 @echo " make irix6-64-dso for SGI systems with IRIX 6.x, make 64-bit DSOs"
61 @echo " make linux for Linux"
62 @echo " make linux-x86 for Linux with x86 optimizations"
63 @echo " make linux-ggi for Linux with libggi driver"
64 @echo " make linux-x86-ggi for Linux with libggi driver and x86 optimizations"
65 @echo " make linux-glide for Linux with 3Dfx Glide driver"
66 @echo " make linux-x86-glide for Linux with 3Dfx Glide driver and x86 opts"
67 @echo " make linux-alpha for Linux with Alpha optimizations"
68 @echo " make linux-alpha-static for Linux with Alpha opts, make static libs"
69 @echo " make linux-ppc for Linux with PowerPC opts"
70 @echo " make linux-ppc-static for Linux with PowerPC opts, make static libs"
71 @echo " make linux-sparc for Linux with Sparc optimzations"
72 @echo " make linux-sparc5 for Linux with Sparc5 optimizations"
73 @echo " make linux-sparc-ultra for Linux with UltraSparc optimizations"
74 @echo " make linux-osmesa16 for 16-bit/channel OSMesa"
75 @echo " make linux-osmesa16-static for 16-bit/channel OSMesa, make static libs"
76 @echo " make linux-osmesa32 for 32-bit/channel OSMesa"
77 @echo " make linux-solo for Linux standalone with dri drivers"
78 @echo " make linux-icc for Linux with the Intel C/C++ compiler"
79 @echo " make lynxos for LynxOS systems with GCC"
80 @echo " make mklinux for Linux on Power Macintosh"
81 @echo " make netbsd for NetBSD 1.0 systems with GCC"
82 @echo " make openbsd for OpenBSD systems"
83 @echo " make openstep for OpenStep/MacOSX Server systems"
84 @echo " make osf1 for DEC Alpha systems with OSF/1"
85 @echo " make qnx for QNX V4 systems with Watcom compiler"
86 @echo " make solaris-x86 for PCs with Solaris"
87 @echo " make solaris-x86-gcc for PCs with Solaris using GCC"
88 @echo " make sunos4 for Suns with SunOS 4.x"
89 @echo " make sunos4-sl for Suns with SunOS 4.x, make shared libs"
90 @echo " make sunos4-gcc for Suns with SunOS 4.x and GCC"
91 @echo " make sunos4-gcc-sl for Suns with SunOS 4.x, GCC, make shared libs"
92 @echo " make sunos5 for Suns with SunOS 5.x"
93 @echo " make sunos5-smp for Suns with SunOS 5.x, SMP optimization"
94 @echo " make sunos5-gcc for Suns with SunOS 5.x and GCC"
95 @echo " make ultrix-gcc for DEC systems with Ultrix and GCC"
96 @echo " make unixware for PCs running UnixWare"
97 @echo " make unixware-shared for PCs running UnixWare, shared libs"
98 @echo " make clean remove .o files"
99 @echo " make realclean remove .o, library and executable files"
103 # XXX we may have to split up this group of targets into those that
104 # have a C++ compiler and those that don't for the SI-GLU library.
106 aix aix-sl darwin freebsd freebsd-386 gcc-sl \
107 hpux9 hpux9-sl hpux9-gcc hpux9-gcc-sl \
108 hpux10 hpux10-sl hpux10-gcc hpux10-gcc-sl \
110 linux-x86 linux-x86-sse linux-icc linux-x86-static linux-x86-debug \
111 linux-glide linux-x86-glide linux-glide-debug \
112 linux-alpha-static linux-alpha \
113 linux-ppc-static linux-ppc \
114 linux-sparc linux-sparc5 linux-sparc-ultra \
115 mklinux netbsd osf1 openbsd qnx \
116 solaris-x86 solaris-x86-gcc \
117 sunos4 sunos4-sl sunos4-gcc sunos4-gcc-sl sunos4-gcc-x11r6-sl \
118 sunos5 sunos5-smp sunos5-gcc \
121 if [ -d src/mesa ] ; then touch src/mesa/depend ; fi
122 if [ -d src/glu/sgi ] ; then touch src/glu/sgi/depend ; fi
123 if [ -d src/glut/glx ] ; then touch src/glut/glx/depend ; fi
124 if [ -d src/glw ] ; then touch src/glw/depend ; fi
125 if [ -d src/mesa ] ; then cd src/mesa ; $(MAKE) -f Makefile.X11 $@ ; fi
126 if [ -d src/glu/sgi ] ; then cd src/glu/sgi ; $(MAKE) -f Makefile.X11 $@ ; fi
127 if [ -d src/glut/glx ] ; then cd src/glut/glx ; $(MAKE) -f Makefile.X11 $@ ; fi
128 if [ -d progs/demos ] ; then cd progs/demos ; $(MAKE) -f Makefile.X11 $@ ; fi
129 if [ -d progs/xdemos ] ; then cd progs/xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
130 if [ -d progs/samples ] ; then cd progs/samples ; $(MAKE) -f Makefile.X11 $@ ; fi
131 if [ -d progs/redbook ] ; then cd progs/redbook ; $(MAKE) -f Makefile.X11 $@ ; fi
132 if [ -d src/glw ] ; then cd src/glw ; $(MAKE) -f Makefile.X11 $@ ; fi
135 if [ -d src ] ; then cd src ; $(MAKE) -f Makefile.X11 $@ ; fi
137 irix6-o32 irix6-o32-dso irix6-n32 irix6-n32-dso irix6-gcc-n32-sl:
139 if [ -d src/mesa ] ; then touch src/mesa/depend ; fi
140 if [ -d src/glu/sgi ] ; then touch src/glu/sgi/depend ; fi
141 if [ -d src/glut/glx ] ; then touch src/glut/glx/depend ; fi
142 if [ -d src/glw ] ; then touch src/glw/depend ; fi
143 if [ -d src/mesa ] ; then cd src/mesa ; $(MAKE) -f Makefile.X11 $@ ; fi
144 if [ -d src/glu/sgi ] ; then cd src/glu/sgi ; $(MAKE) -f Makefile.X11 $@ ; fi
145 if [ -d src/glut/glx ] ; then cd src/glut/glx ; $(MAKE) -f Makefile.X11 $@ ; fi
146 if [ -d progs/demos ] ; then cd progs/demos ; $(MAKE) -f Makefile.X11 $@ ; fi
147 if [ -d progs/xdemos ] ; then cd progs/xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
148 if [ -d progs/samples ] ; then cd progs/samples ; $(MAKE) -f Makefile.X11 $@ ; fi
149 if [ -d progs/redbook ] ; then cd progs/redbook ; $(MAKE) -f Makefile.X11 $@ ; fi
150 if [ -d src/glw ] ; then cd src/glw; $(MAKE) -f Makefile.X11 $@ ; fi
152 irix6-64 irix6-64-dso:
154 if [ -d src/mesa ] ; then touch src/mesa/depend ; fi
155 if [ -d src/glu/sgi ] ; then touch src/glu/sgi/depend ; fi
156 if [ -d src/glut/glx ] ; then touch src/glut/glx/depend ; fi
157 if [ -d src/glw ] ; then touch src/glw/depend ; fi
158 if [ -d src/mesa ] ; then cd src/mesa ; $(MAKE) -f Makefile.X11 $@ ; fi
159 if [ -d src/glu/sgi ] ; then cd src/glu/sgi ; $(MAKE) -f Makefile.X11 $@ ; fi
160 if [ -d src/glut/glx ] ; then cd src/glut/glx ; $(MAKE) -f Makefile.X11 $@ ; fi
161 if [ -d progs/demos ] ; then cd progs/demos ; $(MAKE) -f Makefile.X11 $@ ; fi
162 if [ -d progs/xdemos ] ; then cd progs/xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
163 if [ -d progs/samples ] ; then cd progs/samples ; $(MAKE) -f Makefile.X11 $@ ; fi
164 if [ -d progs/redbook ] ; then cd progs/redbook ; $(MAKE) -f Makefile.X11 $@ ; fi
165 if [ -d src/glw ] ; then cd src/glw; $(MAKE) -f Makefile.X11 $@ ; fi
171 touch src/mesa/depend
172 -rm src/glu/sgi/depend
173 touch src/glu/sgi/depend
174 if [ -d src/mesa ] ; then cd src/mesa ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
175 if [ -d src/glu/sgi ] ; then cd src/glu/sgi ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
176 if [ -d src/glut/beos ] ; then cd src/glut/beos ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
177 if [ -d src/glut/beos ] ; then cp src/glut/beos/obj*/libglut.so lib ; fi
178 if [ -d progs/beos ] ; then cd progs/beos ; $(MAKE) ; fi
179 if [ -d progs/demos ] ; then cd progs/demos ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
180 if [ -d progs/samples ] ; then cd progs/samples ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
181 if [ -d progs/redbook ] ; then cd progs/redbook ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
187 if [ -d src/mesa ] ; then cd src/mesa ; $(MAKE) -f Makefile.X11 $@ ; fi
188 if [ -d src/glu/sgi ] ; then cd src/glu/sgi ; $(MAKE) -f Makefile.X11 $@ ; fi
189 if [ -d src/glut/glx ] ; then cd src/glut/glx ; $(MAKE) -f Makefile.X11 $@ ; fi
190 if [ -d progs/demos ] ; then cd progs/demos ; $(MAKE) -f Makefile.X11 $@ ; fi
191 if [ -d progs/xdemos ] ; then cd progs/xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
192 if [ -d src/glw ] ; then cd src/glw ; $(MAKE) -f Makefile.X11 $@ ; fi
196 cd src/mesa ; $(MAKE) -f Makefile.X11 "MYCC=${CC}" $@
197 cd src/glu/sgi ; $(MAKE) -f Makefile.X11 "MYCC=${CC}" $@
199 linux-ggi linux-x86-ggi:
202 touch src/glu/sgi/depend
203 if [ -d src/glut/glx ] ; then touch src/glut/glx/depend ; fi
204 if [ -d src/glw ] ; then touch src/glw/depend ; fi
205 if [ -d src/mesa ] ; then cd src ; $(MAKE) -f Makefile.X11 $@ ; fi
206 if [ -d src/glu/sgi ] ; then cd src/glu/sgi ; $(MAKE) -f Makefile.X11 $@ ; fi
207 if [ -d src/glut/glx ] ; then cd src/glut/glx ; $(MAKE) -f Makefile.X11 $@ ; fi
208 if [ -d ggi/demos ] ; then cd ggi/demos ; $(MAKE) -f Makefile.X11 $@ ; fi
209 if [ -d progs/demos ] ; then cd progs/demos ; $(MAKE) -f Makefile.X11 $@ ; fi
210 if [ -d progs/xdemos ] ; then cd progs/xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
211 if [ -d progs/samples ] ; then cd progs/samples ; $(MAKE) -f Makefile.X11 $@ ; fi
212 if [ -d progs/redbook ] ; then cd progs/redbook ; $(MAKE) -f Makefile.X11 $@ ; fi
213 if [ -d src/glw ] ; then cd src/glw; $(MAKE) -f Makefile.X11 $@ ; fi
215 # if you change GGI_DEST please change it in ggimesa.conf, too.
217 GGI_DEST=lib/ggi/mesa
219 linux-ggi-install linux-x86-ggi-install:
220 install -d $(DESTDIR)/$(GGI_DEST)/default $(DESTDIR)/$(GGI_DEST)/display $(DESTDIR)/etc/ggi
221 install -m 0755 src/GGI/default/*.so $(DESTDIR)/$(GGI_DEST)/default
222 install -m 0755 src/GGI/display/*.so $(DESTDIR)/$(GGI_DEST)/display
223 install -m 0644 src/GGI/ggimesa.conf $(DESTDIR)/etc/ggi
224 # if [ -z "`grep ggimesa $(DESTDIR)/etc/ggi/libggi.conf`" ]; then \
225 # echo ".include $(DESTDIR)/etc/ggi/ggimesa.conf" >> $(DESTDIR)/etc/ggi/libggi.conf ; \
228 linux-osmesa16 linux-osmesa16-static linux-osmesa32:
230 if [ -d src/mesa ] ; then touch src/mesa/depend ; fi
231 if [ -d src/mesa ] ; then cd src/mesa ; $(MAKE) -f Makefile.OSMesa16 $@ ; fi
235 if [ -d src/mesa ] ; then touch src/mesa/depend ; fi
236 if [ -d src/glx/mini ] ; then touch src/glx/mini/depend ; fi
237 if [ -d src/glu/mini ] ; then touch src/glu/mini/depend ; fi
238 if [ -d src/glut/mini ] ; then touch src/glut/mini/depend ; fi
239 if [ -d src/mesa/drivers/dri/r200 ] ; then touch src/mesa/drivers/dri/r200/depend ; fi
240 if [ -d src/mesa/drivers/dri/r128 ] ; then touch src/mesa/drivers/dri/r128/depend ; fi
241 if [ -d src/mesa/drivers/dri/radeon ] ; then touch src/mesa/drivers/dri/radeon/depend ; fi
242 if [ -d src/mesa/drivers/dri/mga ] ; then touch src/mesa/drivers/dri/mga/depend ; fi
243 if [ -d src/mesa/drivers/dri/i810 ] ; then touch src/mesa/drivers/dri/i810/depend ; fi
244 if [ -d src/mesa/drivers/dri/i830 ] ; then touch src/mesa/drivers/dri/i830/depend ; fi
245 if [ -d src/mesa/drivers/dri/sis ] ; then touch src/mesa/drivers/dri/sis/depend ; fi
246 if [ -d src/mesa/drivers/dri/gamma ] ; then touch src/mesa/drivers/dri/gamma/depend ; fi
247 if [ -d src/mesa/drivers/dri/tdfx ] ; then touch src/mesa/drivers/dri/tdfx/depend ; fi
248 if [ -d src/mesa/drivers/dri/fb ] ; then touch src/mesa/drivers/dri/fb/depend ; fi
249 if [ -d src/glut/mini ] ; then touch src/glut/mini/depend ; fi
250 if [ -d progs/miniglx ] ; then touch progs/miniglx/depend ; fi
251 if [ -d progs/tests ] ; then touch progs/tests/depend ; fi
252 if [ -d src/mesa ] ; then cd src/mesa ; $(MAKE) -f Makefile.X11 $@ ; fi
253 if [ -d src/mesa/drivers/dri/r200 ] ; then cd src/mesa/drivers/dri/r200 ; $(MAKE) -f Makefile.X11 $@ ; fi
254 if [ -d src/mesa/drivers/dri/r128 ] ; then cd src/mesa/drivers/dri/r128 ; $(MAKE) -f Makefile.X11 $@ ; fi
255 if [ -d src/mesa/drivers/dri/radeon ] ; then cd src/mesa/drivers/dri/radeon ; $(MAKE) -f Makefile.X11 $@ ; fi
256 if [ -d src/mesa/drivers/dri/mga ] ; then cd src/mesa/drivers/dri/mga ; $(MAKE) -f Makefile.X11 $@ ; fi
257 if [ -d src/mesa/drivers/dri/i810 ] ; then cd src/mesa/drivers/dri/i810 ; $(MAKE) -f Makefile.X11 $@ ; fi
258 if [ -d src/mesa/drivers/dri/i830 ] ; then cd src/mesa/drivers/dri/i830 ; $(MAKE) -f Makefile.X11 $@ ; fi
259 if [ -d src/mesa/drivers/dri/sis ] ; then cd src/mesa/drivers/dri/sis ; $(MAKE) -f Makefile.X11 $@ ; fi
260 if [ -d src/mesa/drivers/dri/gamma ] ; then cd src/mesa/drivers/dri/gamma ; $(MAKE) -f Makefile.X11 $@ ; fi
261 if [ -d src/mesa/drivers/dri/tdfx ] ; then cd src/mesa/drivers/dri/tdfx ; $(MAKE) -f Makefile.X11 $@ ; fi
262 if [ -d src/mesa/drivers/dri/fb ] ; then cd src/mesa/drivers/dri/fb ; $(MAKE) -f Makefile.X11 $@ ; fi
263 if [ -d src/glx/mini ] ; then cd src/glx/mini ; $(MAKE) -f Makefile.X11 $@ ; fi
264 if [ -d src/glu/mini ] ; then cd src/glu/mini ; $(MAKE) -f Makefile.X11 $@ ; fi
265 if [ -d src/glut/mini ] ; then cd src/glut/mini ; $(MAKE) -f Makefile.X11 $@ ; fi
266 if [ -d progs/miniglx ] ; then cd progs/miniglx ; $(MAKE) -f Makefile.X11 $@ ; fi
267 if [ -d progs/tests ] ; then cd progs/tests ; $(MAKE) -f Makefile.X11 $@ ; fi
268 if [ -d progs/demos ] ; then cd progs/demos ; $(MAKE) -f Makefile.X11 $@ ; fi
269 if [ -d progs/xdemos ] ; then cd progs/xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
270 if [ -d progs/samples ] ; then cd progs/samples ; $(MAKE) -f Makefile.X11 $@ ; fi
271 if [ -d progs/redbook ] ; then cd progs/redbook ; $(MAKE) -f Makefile.X11 $@ ; fi
273 # Remove .o files, emacs backup files, etc.
275 if ! [ -f src/mesa/depend ] ; then touch src/mesa/depend ; fi
276 if ! [ -f src/mesa/drivers/dri/r200/depend ]; then touch src/mesa/drivers/dri/r200/depend; fi
277 if ! [ -f src/mesa/drivers/dri/r128/depend ]; then touch src/mesa/drivers/dri/r128/depend; fi
278 if ! [ -f src/mesa/drivers/dri/radeon/depend ]; then touch src/mesa/drivers/dri/radeon/depend; fi
279 if ! [ -f src/mesa/drivers/dri/mga/depend ]; then touch src/mesa/drivers/dri/mga/depend; fi
280 if ! [ -f src/mesa/drivers/dri/fb/depend ]; then touch src/mesa/drivers/dri/fb/depend; fi
281 if ! [ -f src/glu/mesa/depend ] ; then touch src/glu/mesa/depend ; fi
282 if ! [ -f src/glu/sgi/depend ] ; then touch src/glu/sgi/depend ; fi
283 if ! [ -f src/glu/mini/depend ] ; then touch src/glu/mini/depend ; fi
284 if ! [ -f src/glut/glx/depend ] ; then touch src/glut/glx/depend ; fi
285 if ! [ -f src/glut/mini/depend ] ; then touch src/glut/mini/depend ; fi
286 if ! [ -f src/glx/mini/depend ] ; then touch src/glx/mini/depend ; fi
287 if ! [ -f progs/tests/depend ] ; then touch progs/tests/depend ; fi
288 if ! [ -f progs/miniglx/depend ] ; then touch progs/miniglx/depend ; fi
290 cd src/mesa && $(MAKE) -f Makefile.X11 $@ || true
291 cd src/mesa/drivers/dri/r200 && $(MAKE) -f Makefile.X11 $@ || true
292 cd src/mesa/drivers/dri/r128 && $(MAKE) -f Makefile.X11 $@ || true
293 cd src/mesa/drivers/dri/radeon && $(MAKE) -f Makefile.X11 $@ || true
294 cd src/mesa/drivers/dri/mga && $(MAKE) -f Makefile.X11 $@ || true
295 cd src/mesa/drivers/dri/fb && $(MAKE) -f Makefile.X11 $@ || true
296 cd src/glu/mesa && $(MAKE) -f Makefile.X11 $@ || true
297 cd src/glu/sgi && $(MAKE) -f Makefile.X11 $@ || true
298 cd src/glu/mini && $(MAKE) -f Makefile.X11 $@ || true
299 cd src/glut/glx && $(MAKE) -f Makefile.X11 $@ || true
300 cd src/glut/mini && $(MAKE) -f Makefile.X11 $@ || true
301 cd src/glw && $(MAKE) -f Makefile.X11 $@ || true
302 cd src/glx/mini && $(MAKE) -f Makefile.X11 $@ || true
303 cd progs/demos && $(MAKE) -f Makefile.X11 $@ || true
304 cd progs/redbook && $(MAKE) -f Makefile.X11 $@ || true
305 cd progs/xdemos && $(MAKE) -f Makefile.X11 $@ || true
306 cd progs/samples && $(MAKE) -f Makefile.X11 $@ || true
307 cd progs/tests && $(MAKE) -f Makefile.X11 $@ || true
308 cd progs/miniglx && $(MAKE) -f Makefile.X11 $@ || true
309 if [ -f src/mesa/depend ] ; then rm src/mesa/depend ; fi
310 if [ -f src/mesa/drivers/dri/r200/depend ]; then rm -f src/mesa/drivers/dri/r200/depend; fi
311 if [ -f src/mesa/drivers/dri/r128/depend ]; then rm -f src/mesa/drivers/dri/r128/depend; fi
312 if [ -f src/mesa/drivers/dri/radeon/depend ]; then rm -f src/mesa/drivers/dri/radeon/depend; fi
313 if [ -f src/mesa/drivers/dri/mga/depend ]; then rm -f src/mesa/drivers/dri/mga/depend; fi
314 if [ -f src/mesa/drivers/dri/fb/depend ]; then rm -f src/mesa/drivers/dri/fb/depend; fi
315 if [ -f src/glu/mesa/depend ] ; then rm -f src/glu/mesa/depend ; fi
316 if [ -f src/glu/sgi/depend ] ; then rm -f src/glu/sgi/depend ; fi
317 if [ -f src/glu/mini/depend ] ; then rm -f src/glu/mini/depend ; fi
318 if [ -f src/glut/glx/depend ] ; then rm -f src/glut/glx/depend ; fi
319 if [ -f src/glut/mini/depend ] ; then rm -f src/glut/mini/depend ; fi
320 if [ -f src/glx/mini/depend ] ; then rm -f src/glx/mini/depend ; fi
321 if [ -f progs/tests/depend ] ; then rm -f progs/tests/depend ; fi
322 if [ -f progs/miniglx/depend ] ; then rm -f progs/miniglx/depend ; fi
324 # Remove everything that can be remade
326 -rm -fr lib lib32 lib64
327 cd progs/demos && $(MAKE) -f Makefile.X11 realclean || true
328 cd progs/xdemos && $(MAKE) -f Makefile.X11 realclean || true
329 cd progs/redbook && $(MAKE) -f Makefile.X11 realclean || true
330 cd progs/samples && $(MAKE) -f Makefile.X11 realclean || true
332 # Remove everything not in CVS
334 -rm -f acinclude.m4 aclocal.m4
335 -rm -f conf.h conf.h.in config.guess config.log config.status
336 -rm -f config.sub configure
337 -rm -f install-sh libtool ltmain.sh Makefile.in
338 -rm -f missing mkinstalldirs stamp-h stamp-h.in
344 LIB_NAME = MesaLib-5.1
345 DEMO_NAME = MesaDemos-5.1
346 GLU_NAME = MesaGLU-5.1
351 $(DIRECTORY)/Makefile* \
352 $(DIRECTORY)/Make-config \
353 $(DIRECTORY)/descrip.mms \
354 $(DIRECTORY)/mms-config. \
355 $(DIRECTORY)/Mesa.dsw \
356 $(DIRECTORY)/bin/mklib* \
357 $(DIRECTORY)/docs/*.html \
358 $(DIRECTORY)/docs/COPYING \
359 $(DIRECTORY)/docs/INSTALL.GNU \
360 $(DIRECTORY)/docs/README.* \
361 $(DIRECTORY)/docs/RELNOTES* \
362 $(DIRECTORY)/docs/VERSIONS \
363 $(DIRECTORY)/docs/*.spec \
364 $(DIRECTORY)/include/GL/internal/glcore.h \
365 $(DIRECTORY)/include/GL/dmesa.h \
366 $(DIRECTORY)/include/GL/amesa.h \
367 $(DIRECTORY)/include/GL/fxmesa.h \
368 $(DIRECTORY)/include/GL/ggimesa.h \
369 $(DIRECTORY)/include/GL/gl.h \
370 $(DIRECTORY)/include/GL/glext.h \
371 $(DIRECTORY)/include/GL/gl_mangle.h \
372 $(DIRECTORY)/include/GL/glu.h \
373 $(DIRECTORY)/include/GL/glu_mangle.h \
374 $(DIRECTORY)/include/GL/glx.h \
375 $(DIRECTORY)/include/GL/glxext.h \
376 $(DIRECTORY)/include/GL/glx_mangle.h \
377 $(DIRECTORY)/include/GL/mesa_wgl.h \
378 $(DIRECTORY)/include/GL/mglmesa.h \
379 $(DIRECTORY)/include/GL/osmesa.h \
380 $(DIRECTORY)/include/GL/svgamesa.h \
381 $(DIRECTORY)/include/GL/ugl*.h \
382 $(DIRECTORY)/include/GL/vms_x_fix.h \
383 $(DIRECTORY)/include/GL/wmesa.h \
384 $(DIRECTORY)/include/GL/xmesa.h \
385 $(DIRECTORY)/include/GL/xmesa_x.h \
386 $(DIRECTORY)/include/GL/xmesa_xf86.h \
387 $(DIRECTORY)/src/mesa/Makefile* \
388 $(DIRECTORY)/src/mesa/descrip.mms \
389 $(DIRECTORY)/src/mesa/depend \
390 $(DIRECTORY)/src/mesa/main/*.[chS] \
391 $(DIRECTORY)/src/mesa/main/main.dsp \
392 $(DIRECTORY)/src/mesa/glapi/*.[chS] \
393 $(DIRECTORY)/src/mesa/glapi/glapi.dsp \
394 $(DIRECTORY)/src/mesa/array_cache/*.[ch] \
395 $(DIRECTORY)/src/mesa/array_cache/array_cache.dsp \
396 $(DIRECTORY)/src/mesa/math/*.[ch] \
397 $(DIRECTORY)/src/mesa/math/math.dsp \
398 $(DIRECTORY)/src/mesa/swrast/*.[ch] \
399 $(DIRECTORY)/src/mesa/swrast/swrast.dsp \
400 $(DIRECTORY)/src/mesa/swrast_setup/*.[ch] \
401 $(DIRECTORY)/src/mesa/swrast_setup/swrast_setup.dsp \
402 $(DIRECTORY)/src/mesa/tnl/*.[ch] \
403 $(DIRECTORY)/src/mesa/tnl/tnl.dsp \
404 $(DIRECTORY)/src/mesa/tnl_dd/*.[ch] \
405 $(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch] \
406 $(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm \
407 $(DIRECTORY)/src/mesa/drivers/beos/*.cpp \
408 $(DIRECTORY)/src/mesa/drivers/common/*.[ch] \
409 $(DIRECTORY)/src/mesa/drivers/dos/*.[chS] \
410 $(DIRECTORY)/src/mesa/drivers/dos/mga/*.[ch] \
411 $(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c \
412 $(DIRECTORY)/src/mesa/drivers/glide/*.[ch] \
413 $(DIRECTORY)/src/mesa/drivers/glide/*.def \
414 $(DIRECTORY)/src/mesa/drivers/ggi/*.[ch] \
415 $(DIRECTORY)/src/mesa/drivers/ggi/ggimesa.conf.in \
416 $(DIRECTORY)/src/mesa/drivers/ggi/default/*.c \
417 $(DIRECTORY)/src/mesa/drivers/ggi/default/genkgi.conf.in \
418 $(DIRECTORY)/src/mesa/drivers/ggi/display/*.c \
419 $(DIRECTORY)/src/mesa/drivers/ggi/display/fbdev.conf.in \
420 $(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/*.h \
421 $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win \
422 $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def \
423 $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.dsp \
424 $(DIRECTORY)/src/mesa/drivers/osmesa/*.[ch] \
425 $(DIRECTORY)/src/mesa/drivers/svga/*.[ch] \
426 $(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch] \
427 $(DIRECTORY)/src/mesa/drivers/windows/*/*.def \
428 $(DIRECTORY)/src/mesa/drivers/windows/*/*.dsp \
429 $(DIRECTORY)/src/mesa/drivers/x11/*.[ch] \
430 $(DIRECTORY)/src/mesa/sparc/*.[chS] \
431 $(DIRECTORY)/src/mesa/x86/*.[ch] \
432 $(DIRECTORY)/src/mesa/x86/*.S \
433 $(DIRECTORY)/src/glu/sgi/Makefile.X11 \
434 $(DIRECTORY)/src/glu/sgi/Makefile.win \
435 $(DIRECTORY)/src/glu/sgi/Makefile.DJ \
436 $(DIRECTORY)/src/glu/sgi/cc*.txt \
437 $(DIRECTORY)/src/glu/sgi/glu.def \
438 $(DIRECTORY)/src/glu/sgi/glu.dsp \
439 $(DIRECTORY)/src/glu/sgi/dummy.cc \
440 $(DIRECTORY)/src/glu/sgi/descrip.mms \
441 $(DIRECTORY)/src/glu/sgi/mesaglu.opt \
442 $(DIRECTORY)/src/glu/sgi/include/gluos.h \
443 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \
444 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc \
445 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h \
446 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc \
447 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.h \
448 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.cc \
449 $(DIRECTORY)/src/glu/sgi/libtess/README \
450 $(DIRECTORY)/src/glu/sgi/libtess/alg-outline \
451 $(DIRECTORY)/src/glu/sgi/libtess/*.[ch] \
452 $(DIRECTORY)/src/glu/sgi/libutil/*.[ch] \
453 $(DIRECTORY)/src/glu/mesa/README[12] \
454 $(DIRECTORY)/src/glu/mesa/Makefile* \
455 $(DIRECTORY)/src/glu/mesa/descrip.mms \
456 $(DIRECTORY)/src/glu/mesa/mms_depend \
457 $(DIRECTORY)/src/glu/mesa/*.def \
458 $(DIRECTORY)/src/glu/mesa/depend \
459 $(DIRECTORY)/src/glu/mesa/*.[ch] \
460 $(DIRECTORY)/src/glw/*.[ch] \
461 $(DIRECTORY)/src/glw/Makefile* \
462 $(DIRECTORY)/src/glw/README \
463 $(DIRECTORY)/progs/util/README \
464 $(DIRECTORY)/progs/util/*.[ch] \
465 $(DIRECTORY)/progs/util/sampleMakefile \
466 $(DIRECTORY)/vms/analyze_map.com \
467 $(DIRECTORY)/vms/xlib.opt \
468 $(DIRECTORY)/vms/xlib_share.opt
472 $(DIRECTORY)/include/GL/glut.h \
473 $(DIRECTORY)/include/GL/glutf90.h \
474 $(DIRECTORY)/src/glut/glx/Makefile* \
475 $(DIRECTORY)/src/glut/glx/depend \
476 $(DIRECTORY)/src/glut/glx/*def \
477 $(DIRECTORY)/src/glut/glx/descrip.mms \
478 $(DIRECTORY)/src/glut/glx/mms_depend \
479 $(DIRECTORY)/src/glut/glx/glut.dsp \
480 $(DIRECTORY)/src/glut/glx/*.[ch] \
481 $(DIRECTORY)/src/glut/dos/*.[ch] \
482 $(DIRECTORY)/src/glut/dos/Makefile.DJ \
483 $(DIRECTORY)/src/glut/dos/PC_HW/*.[chS] \
484 $(DIRECTORY)/progs/images/* \
485 $(DIRECTORY)/progs/demos/Makefile* \
486 $(DIRECTORY)/progs/demos/descrip.mms \
487 $(DIRECTORY)/progs/demos/*.[ch] \
488 $(DIRECTORY)/progs/demos/*.cxx \
489 $(DIRECTORY)/progs/demos/*.dat \
490 $(DIRECTORY)/progs/demos/README \
491 $(DIRECTORY)/progs/demos/Windows/* \
492 $(DIRECTORY)/progs/xdemos/Makefile* \
493 $(DIRECTORY)/progs/xdemos/descrip.mms \
494 $(DIRECTORY)/progs/xdemos/*.[chf] \
495 $(DIRECTORY)/progs/redbook/Makefile* \
496 $(DIRECTORY)/progs/redbook/README \
497 $(DIRECTORY)/progs/redbook/*.[ch] \
498 $(DIRECTORY)/progs/samples/Makefile* \
499 $(DIRECTORY)/progs/samples/README \
500 $(DIRECTORY)/progs/samples/*.c \
501 $(DIRECTORY)/progs/windml/Makefile.ugl \
502 $(DIRECTORY)/progs/windml/*.c \
503 $(DIRECTORY)/progs/windml/*.bmp \
504 $(DIRECTORY)/progs/ggi/*.c
507 $(DIRECTORY)/Makefile* \
508 $(DIRECTORY)/Make-config \
509 $(DIRECTORY)/bin/mklib* \
510 $(DIRECTORY)/include/GL/glu.h \
511 $(DIRECTORY)/src/glu/sgi/Makefile.X11 \
512 $(DIRECTORY)/src/glu/sgi/include/gluos.h \
513 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \
514 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc \
515 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h \
516 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc \
517 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbstess/*.h \
518 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbstess/*.cc \
519 $(DIRECTORY)/src/glu/sgi/libtess/README \
520 $(DIRECTORY)/src/glu/sgi/libtess/alg-outline \
521 $(DIRECTORY)/src/glu/sgi/libtess/*.[ch] \
522 $(DIRECTORY)/src/glu/sgi/libutil/*.[ch]
525 $(DIRECTORY)/Makefile* \
526 $(DIRECTORY)/Make-config \
527 $(DIRECTORY)/bin/mklib* \
528 $(DIRECTORY)/include/GL/gl.h \
529 $(DIRECTORY)/include/GL/gl_mangle.h \
530 $(DIRECTORY)/include/GL/glext.h \
531 $(DIRECTORY)/include/GL/glu.h \
532 $(DIRECTORY)/include/GL/glu_mangle.h \
533 $(DIRECTORY)/src/glu/mesa/README[12] \
534 $(DIRECTORY)/src/glu/mesa/Makefile* \
535 $(DIRECTORY)/src/glu/mesa/descrip.mms \
536 $(DIRECTORY)/src/glu/mesa/mms_depend \
537 $(DIRECTORY)/src/glu/mesa/*.def \
538 $(DIRECTORY)/src/glu/mesa/depend \
539 $(DIRECTORY)/src/glu/mesa/*.[ch]
542 $(DIRECTORY)/Makefile* \
543 $(DIRECTORY)/Make-config \
544 $(DIRECTORY)/bin/mklib* \
545 $(DIRECTORY)/include/GL/gl.h \
546 $(DIRECTORY)/include/GL/gl_mangle.h \
547 $(DIRECTORY)/include/GL/glext.h \
548 $(DIRECTORY)/include/GL/glu.h \
549 $(DIRECTORY)/include/GL/glu_mangle.h \
550 $(DIRECTORY)/include/GL/glut.h \
551 $(DIRECTORY)/include/GL/glutf90.h \
552 $(DIRECTORY)/src/glut/glx/Makefile* \
553 $(DIRECTORY)/src/glut/glx/depend \
554 $(DIRECTORY)/src/glut/glx/*def \
555 $(DIRECTORY)/src/glut/glx/descrip.mms \
556 $(DIRECTORY)/src/glut/glx/mms_depend \
557 $(DIRECTORY)/src/glut/glx/*.[ch]
562 cp Makefile.X11 Makefile ; \
564 tar -cvf $(LIB_NAME).tar $(LIB_FILES) ; \
565 gzip $(LIB_NAME).tar ; \
566 mv $(LIB_NAME).tar.gz $(DIRECTORY)
570 tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) ; \
571 gzip $(DEMO_NAME).tar ; \
572 mv $(DEMO_NAME).tar.gz $(DIRECTORY)
575 cp Makefile.X11 Makefile ; \
577 tar -cvf $(LIB_NAME).tar $(LIB_FILES) ; \
578 bzip2 $(LIB_NAME).tar ; \
579 mv $(LIB_NAME).tar.bz2 $(DIRECTORY)
583 tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) ; \
584 bzip2 $(DEMO_NAME).tar ; \
585 mv $(DEMO_NAME).tar.bz2 $(DIRECTORY)
588 -rm $(LIB_NAME).zip ; \
589 cp Makefile.X11 Makefile ; \
591 zip -r $(LIB_NAME).zip $(LIB_FILES) ; \
592 mv $(LIB_NAME).zip $(DIRECTORY)
595 -rm $(DEMO_NAME).zip ; \
597 zip -r $(DEMO_NAME).zip $(DEMO_FILES) ; \
598 mv $(DEMO_NAME).zip $(DIRECTORY)
601 @-md5sum $(LIB_NAME).tar.gz
602 @-md5sum $(LIB_NAME).tar.bz2
603 @-md5sum $(LIB_NAME).zip
604 @-md5sum $(DEMO_NAME).tar.gz
605 @-md5sum $(DEMO_NAME).tar.bz2
606 @-md5sum $(DEMO_NAME).zip
608 # Everything for new Mesa release:
609 tarballs: lib_gz demo_gz lib_bz2 demo_bz2 lib_zip demo_zip md5
614 cp Makefile.X11 Makefile ; \
616 tar -cvf $(GLU_NAME).tar $(GLU_FILES) ; \
617 gzip $(GLU_NAME).tar ; \
618 mv $(GLU_NAME).tar.gz $(DIRECTORY)
621 cp Makefile.X11 Makefile ; \
623 tar -cvf $(GLUT_NAME).tar $(GLUT_FILES) ; \
624 gzip $(GLUT_NAME).tar ; \
625 mv $(GLUT_NAME).tar.gz $(DIRECTORY)