bff30e6956f1fb98d32053a4aacf3dd1c179af7c
[mesa.git] / Makefile.X11
1 # $Id: Makefile.X11,v 1.11 1999/11/02 10:11:44 brianp Exp $
2
3 # Mesa 3-D graphics library
4 # Version: 3.1
5 #
6 # Copyright (C) 1999 Brian Paul All Rights Reserved.
7 #
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:
14 #
15 # The above copyright notice and this permission notice shall be included
16 # in all copies or substantial portions of the Software.
17 #
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.
24
25
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.
29
30 SHELL = /bin/sh
31
32
33
34 default:
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 amiwin for Amiga with SAS/C and AmiWin"
39 @echo " make amix for Amiga 3000 UX SVR4 v2.1 systems"
40 @echo " make beos-r4 for BeOS R4"
41 @echo " make bsdos for BSD/OS from BSDI using GCC"
42 @echo " make bsdos4 for BSD/OS 4.x, dynamic libraries"
43 @echo " make cygnus for Win95/NT using Cygnus-Win32"
44 @echo " make cygnus-linux for Win95/NT using Cygnus-Win32 under Linux"
45 @echo " make dgux for Data General"
46 @echo " make freebsd for FreeBSD systems with GCC"
47 @echo " make freebsd-386 for FreeBSD systems with GCC, w/ Intel assembly"
48 @echo " make gcc for a generic system with GCC"
49 @echo " make hpux9 for HP systems with HPUX 9.x"
50 @echo " make hpux9-sl for HP systems with HPUX 9.x, make shared libs"
51 @echo " make hpux9-gcc for HP systems with HPUX 9.x using GCC"
52 @echo " make hpux9-gcc-sl for HP systems with HPUX 9.x, GCC, make shared libs"
53 @echo " make hpux10 for HP systems with HPUX 10.x"
54 @echo " make hpux10-sl for HP systems with HPUX 10.x, shared libs"
55 @echo " make hpux10-gcc for HP systems with HPUX 10.x w/ GCC"
56 @echo " make hpux10-gcc-sl for HP systems with HPUX 10.x w/ GCC, shared libs"
57 @echo " make irix4 for SGI systems with IRIX 4.x"
58 @echo " make irix5 for SGI systems with IRIX 5.x"
59 @echo " make irix5-gcc for SGI systems with IRIX 5.x using GCC"
60 @echo " make irix5-dso for SGI systems with IRIX 5.x, make DSOs"
61 @echo " make irix6-o32 for SGI systems with IRIX 6.x, make o32-bit libs"
62 @echo " make irix6-o32-dso for SGI systems with IRIX 6.x, make o32-bit DSOs"
63 @echo " make irix6-n32 for SGI systems with IRIX 6.x, make n32-bit libs"
64 @echo " make irix6-n32-dso for SGI systems with IRIX 6.x, make n32-bit DSOs"
65 @echo " make irix6-gcc-n32-sl for SGI systems with IRIX 6.x, GCC, make n32 DSOs"
66 @echo " make irix6-64 for SGI systems with IRIX 6.x, make 64-bit libs"
67 @echo " make irix6-64-dso for SGI systems with IRIX 6.x, make 64-bit DSOs"
68
69 @echo " make linux for Linux systems, make static .a libs"
70 @echo " make linux-elf for Linux systems, make ELF shared libs"
71 @echo " make linux-386 for Linux w/ Intel assembly"
72 @echo " make linux-386-elf for Linux w/ Intel assembly, make ELF shared libs"
73 @echo " make linux-ggi for Linux systems with libggi"
74 @echo " make linux-386-ggi for Linux systems with libggi w/ Intel assembly"
75 @echo " make linux-alpha for Linux on Alpha systems"
76 @echo " make linux-alpha-elf for Linux on Alpha systems, make ELF shared libs"
77 @echo " make linux-ppc for Linux on PowerPC systems"
78 @echo " make linux-ppc-so for Linux on PowerPC systems, make shared libs"
79 @echo " make linux-glide for Linux w/ 3Dfx Glide driver"
80 @echo " make linux-386-glide for Linux w/ 3Dfx Glide driver, Intel assembly"
81 @echo " make linux-386-opt-glide for Linux with 3Dfx Voodoo1 for GLQuake"
82 @echo " make linux-386-opt-V2-glide for Linux with 3Dfx Voodoo2 for GLQuake"
83 @echo " make linux-3dnow for Linux on AMD w/ 3DNow!"
84 @echo " make linux-3dnow-glide for Linux on AMD w/ 3DNow! for Glide"
85 @echo " make linux-386-pthread for Linux w/ Intel assembly and linuxthreads"
86 @echo " make linux-386-pthread-shared for Linux w/ Intel assembly and linuxthreads"
87 @echo " make linux-386-pthread-shared-glide for Linux w/ Intel assembly, linuxthreads, and 3Dfx Glide driver"
88 @echo " make linux-sparc for Linux on Sparc systems"
89 @echo " make linux-sparc5-elf for Sparc5 systems, make ELF shared libs"
90 @echo " make linux-sparc-ultra for UltraSparc systems, make ELF shared libs"
91 @echo " make lynxos for LynxOS systems with GCC"
92 @echo " make macintosh for Macintosh"
93 @echo " make machten-2.2 for Macs w/ MachTen 2.2 (68k w/ FPU)"
94 @echo " make machten-4.0 for Macs w/ MachTen 4.0.1 or newer with GNU make"
95 @echo " make mklinux for Linux on Power Macintosh"
96 @echo " make netbsd for NetBSD 1.0 systems with GCC"
97 @echo " make next for NeXT systems with NEXTSTEP 3.3"
98 @echo " make openbsd for OpenBSD systems"
99 @echo " make openstep for OpenStep/MacOSX Server systems"
100 @echo " make os2-x11 for OS/2 with XFree86"
101 @echo " make osf1 for DEC Alpha systems with OSF/1"
102 @echo " make osf1-sl for DEC Alpha systems with OSF/1, make shared libs"
103 @echo " make pgi-cygnus for Cygnus with Portland Group, Inc. compiler"
104 @echo " make pgi-mingw32 for mingW32 with Portland Group, Inc. compiler"
105 @echo " make qnx for QNX V4 systems with Watcom compiler"
106 @echo " make sco for SCO Unix systems with ODT"
107 @echo " make sco5 for SCO 5.0.5 OpenServer Unix"
108 @echo " make solaris-x86 for PCs with Solaris"
109 @echo " make solaris-x86-gcc for PCs with Solaris using GCC"
110 @echo " make sunos4 for Suns with SunOS 4.x"
111 @echo " make sunos4-sl for Suns with SunOS 4.x, make shared libs"
112 @echo " make sunos4-gcc for Suns with SunOS 4.x and GCC"
113 @echo " make sunos4-gcc-sl for Suns with SunOS 4.x, GCC, make shared libs"
114 @echo " make sunos5 for Suns with SunOS 5.x"
115 @echo " make sunos5-sl for Suns with SunOS 5.x, make shared libs"
116 @echo " make sunos5-ultra for Sun UltraSPARCs with SunOS 5.x"
117 @echo " make sunos5-ultra-sl for Sun UltraSPARCs with SunOS 5.x, make shared libs"
118 @echo " make sunos5-thread for Suns with SunOS 5.x, using Solaris threads"
119 @echo " make sunos5-pthread for Suns with SunOS 5.[56] using POSIX threads"
120 @echo " make sunos5-gcc-thread for Suns with SunOS 5.x and GCC, using Solaris threads"
121 @echo " make sunos5-gcc-pthread for Suns with SunOS 5.[56] and GCC, using POSIX threads"
122 @echo " make sunos5-gcc for Suns with SunOS 5.x and GCC"
123 @echo " make sunos5-gcc-sl for Suns with SunOS 5.x, GCC, make shared libs"
124 @echo " make sunos5-x11r6-gcc-sl for Suns with X11R6, GCC, make shared libs"
125 @echo " make sunos5-gcc-thread for Suns with SunOS 5.x and GCC, using Solaris threads"
126 @echo " make sunos5-gcc-pthread for Suns with SunOS 5.[56] and GCC, using POSIX threads"
127 @echo " make sunSolaris-CC for Solaris using C++ compiler"
128 @echo " make ultrix-gcc for DEC systems with Ultrix and GCC"
129 @echo " make unicos for Cray C90 (and other?) systems"
130 @echo " make unixware for PCs running UnixWare"
131 @echo " make unixware-shared for PCs running UnixWare, shared libs"
132 @echo " make uwin for Windows NT with AT&T/Wipro UWIN"
133 @echo " make vistra for Stardent Vistra systems"
134 @echo " make clean remove .o files"
135 @echo " make realclean remove .o, library and executable files"
136
137
138
139 aix aix-sl amix bsdos bsdos4 dgux freebsd freebsd-386 gcc \
140 hpux9 hpux9-sl hpux9-gcc hpux9-gcc-sl \
141 hpux10 hpux10-sl hpux10-gcc hpux10-gcc-sl \
142 irix4 irix5 irix5-gcc irix5-dso irix6-o32 irix6-o32-dso \
143 linux linux-debug linux-prof linux-elf linux-elf-debug linux-glide-debug \
144 linux-glide linux-386-glide linux-386-opt-glide \
145 linux-386-opt-V2-glide \
146 linux-386 linux-386-elf \
147 linux-3dnow linux-3dnow-glide \
148 linux-alpha linux-alpha-elf \
149 linux-ppc linux-ppc-so \
150 linux-386-pthread linux-386-pthread-shared linux-386-pthread-shared-glide \
151 linux-sparc \
152 linux-sparc5-elf \
153 linux-sparc-ultra \
154 lynxos machten-2.2 machten-4.0 \
155 mklinux netbsd osf1 osf1-sl openbsd qnx sco sco5 \
156 solaris-x86 solaris-x86-gcc sunSolaris-CC \
157 sunos4 sunos4-sl sunos4-gcc sunos4-gcc-sl sunos4-gcc-x11r6-sl \
158 sunos5 sunos5-sl sunos5-ultra sunos5-ultra-sl sunos5-gcc sunos5-gcc-sl \
159 sunos5-thread sunos5-pthread sunos5-gcc-thread sunos5-gcc-pthread \
160 sunos5-x11r6-gcc-sl ultrix-gcc unicos unixware uwin vistra:
161 -mkdir lib
162 touch src/depend
163 touch src-glu/depend
164 if [ -d src-glut ] ; then touch src-glut/depend ; fi
165 cd src ; $(MAKE) -f Makefile.X11 $@
166 cd src-glu ; $(MAKE) -f Makefile.X11 $@
167 if [ -d src-glut ] ; then cd src-glut ; $(MAKE) -f Makefile.X11 $@ ; fi
168 if [ -d demos ] ; then cd demos ; $(MAKE) -f Makefile.X11 $@ ; fi
169 if [ -d xdemos ] ; then cd xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
170 if [ -d samples ] ; then cd samples ; $(MAKE) -f Makefile.X11 $@ ; fi
171 if [ -d book ] ; then cd book ; $(MAKE) -f Makefile.X11 $@ ; fi
172
173
174 irix6-n32 irix6-n32-dso irix6-gcc-n32-sl irix-debug:
175 -mkdir lib32
176 touch src/depend
177 touch src-glu/depend
178 if [ -d src-glut ] ; then touch src-glut/depend ; fi
179 cd src ; $(MAKE) -f Makefile.X11 $@
180 cd src-glu ; $(MAKE) -f Makefile.X11 $@
181 if [ -d src-glut ] ; then cd src-glut ; $(MAKE) -f Makefile.X11 $@ ; fi
182 if [ -d demos ] ; then cd demos ; $(MAKE) -f Makefile.X11 $@ ; fi
183 if [ -d xdemos ] ; then cd xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
184 if [ -d samples ] ; then cd samples ; $(MAKE) -f Makefile.X11 $@ ; fi
185 if [ -d book ] ; then cd book ; $(MAKE) -f Makefile.X11 $@ ; fi
186
187
188 irix6-64 irix6-64-dso:
189 -mkdir lib64
190 touch src/depend
191 touch src-glu/depend
192 if [ -d src-glut ] ; then touch src-glut/depend ; fi
193 cd src ; $(MAKE) -f Makefile.X11 $@
194 cd src-glu ; $(MAKE) -f Makefile.X11 $@
195 if [ -d src-glut ] ; then cd src-glut ; $(MAKE) -f Makefile.X11 $@ ; fi
196 if [ -d demos ] ; then cd demos ; $(MAKE) -f Makefile.X11 $@ ; fi
197 if [ -d xdemos ] ; then cd xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
198 if [ -d samples ] ; then cd samples ; $(MAKE) -f Makefile.X11 $@ ; fi
199 if [ -d book ] ; then cd book ; $(MAKE) -f Makefile.X11 $@ ; fi
200
201
202 amiwin:
203 bin/mklib.amiwin
204
205
206 beos-r4:
207 -mkdir lib
208 -rm src/depend
209 touch src/depend
210 -rm src-glu/depend
211 touch src-glu/depend
212 cd src ; $(MAKE) -f Makefile.BeOS-R4 $@
213 cd src-glu ; $(MAKE) -f Makefile.BeOS-R4 $@
214 if [ -d BeOS ] ; then cd BeOS ; $(MAKE) ; fi
215 if [ -d src-glut.beos ] ; then cd src-glut.beos ; $(MAKE) ; fi
216 if [ -d src-glut.beos ] ; then cp src-glut.beos/obj*/libglut.so lib ; fi
217 if [ -d demos ] ; then cd demos ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
218 if [ -d samples ] ; then cd samples ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
219 if [ -d book ] ; then cd book ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
220
221 pgi-cygnus pgi-mingw32 \
222 cygnus cygnus-linux:
223 -mkdir lib
224 touch src/depend
225 touch src-glu/depend
226 cd src ; $(MAKE) -f Makefile.X11 $@
227 cd src-glu ; $(MAKE) -f Makefile.X11 $@
228 cd src-glut ; $(MAKE) -f Makefile.X11 $@
229 cd demos ; $(MAKE) -f Makefile.X11 $@
230 if [ -d xdemos ] ; then cd xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
231
232 macintosh:
233 @echo "See the README file for Macintosh intallation information"
234
235 next:
236 -mkdir lib
237 cd src ; $(MAKE) -f Makefile.X11 "MYCC=${CC}" $@
238 cd src-glu ; $(MAKE) -f Makefile.X11 "MYCC=${CC}" $@
239
240 openstep:
241 -mkdir lib
242 cd src ; $(MAKE) -f Makefile.X11 "MYCC=${CC}" $@
243 cd src-glu ; $(MAKE) -f Makefile.X11 "MYCC=${CC}" $@
244
245 os2-x11:
246 if not EXIST .\lib md lib
247 touch src/depend
248 touch src-glu/depend
249 if exist src-glut touch src-glut/depend
250 cd src & make -f Makefile.X11 $@
251 cd src-glu & make -f Makefile.X11 $@
252 if exist src-glut cd src-glut & make -f Makefile.X11 $@
253 if exist demos cd demos & make -f Makefile.X11 $@
254 if exist xdemos cd xdemos & make -f Makefile.X11 $@
255 if exist samples cd samples & make -f Makefile.X11 $@
256 if exist book cd book & make -f Makefile.X11 $@
257
258 linux-ggi linux-386-ggi:
259 -mkdir lib
260 touch src/depend
261 touch src-glu/depend
262 if [ -d src-glut ] ; then touch src-glut/depend ; fi
263 if [ -d ggi ] ; then touch ggi/depend ; fi
264 cd src ; $(MAKE) -f Makefile.X11 $@
265 cd src/GGI/default ; $(MAKE)
266 cd src/GGI/display ; $(MAKE)
267 cd src-glu ; $(MAKE) -f Makefile.X11 $@
268 # if [ -d src-glut ] ; then cd src-glut ; $(MAKE) -f Makefile.X11 $@ ; fi
269 if [ -d ggi ] ; then cd ggi ; $(MAKE) -f Makefile.X11 $@ ; fi
270 if [ -d ggi ] ; then cd ggi/demos; $(MAKE) ; fi
271 if [ -d demos ] ; then cd demos ; $(MAKE) -f Makefile.X11 $@ ; fi
272 if [ -d xdemos ] ; then cd xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
273 if [ -d samples ] ; then cd samples ; $(MAKE) -f Makefile.X11 $@ ; fi
274 if [ -d book ] ; then cd book ; $(MAKE) -f Makefile.X11 $@ ; fi
275
276 # if you change GGI_DEST please change it in ggimesa.conf, too.
277 DESTDIR=/usr/local
278 GGI_DEST=lib/ggi/mesa
279
280 linux-ggi-install linux-386-ggi-install:
281 install -d $(DESTDIR)/$(GGI_DEST)/default $(DESTDIR)/$(GGI_DEST)/display $(DESTDIR)/etc/ggi
282 install -m 0755 src/GGI/default/*.so $(DESTDIR)/$(GGI_DEST)/default
283 install -m 0755 src/GGI/display/*.so $(DESTDIR)/$(GGI_DEST)/display
284 install -m 0644 src/GGI/ggimesa.conf $(DESTDIR)/etc/ggi
285 # if [ -z "`grep ggimesa $(DESTDIR)/etc/ggi/libggi.conf`" ]; then \
286 # echo ".include $(DESTDIR)/etc/ggi/ggimesa.conf" >> $(DESTDIR)/etc/ggi/libggi.conf ; \
287 # fi
288
289 # Remove .o files, emacs backup files, etc.
290 clean:
291 -rm -f ggi/*~ *.o
292 -rm -f src/GGI/default/*~ *.so
293 -rm -f src/GGI/display/*~ *.so
294 -rm -f include/*~
295 -rm -f include/GL/*~
296 -rm -f src/*.o src/*~ src/*.a src/*/*.o src/*/*~
297 -rm -f src-glu/*.o src-glu/*~ src-glu/*.a
298 -rm -f src-glut/*.o
299 -rm -f demos/*.o
300 -rm -f book/*.o book/*~
301 -rm -f xdemos/*.o xdemos/*~
302 -rm -f samples/*.o samples/*~
303 -rm -f ggi/*.o ggi/demos/*.o ggi/*.a
304
305 # Remove everything that can be remade
306 realclean: clean
307 -rm -f lib/*
308 cd demos && $(MAKE) -f Makefile.X11 realclean || true
309 cd xdemos && $(MAKE) -f Makefile.X11 realclean || true
310 cd book && $(MAKE) -f Makefile.X11 realclean || true
311 cd samples && $(MAKE) -f Makefile.X11 realclean || true
312 cd ggi/demos && ($MAKE) -f Makefile.X11 realclean || true
313 cd src/GGI/default && $(MAKE) -f Makefile.X11 realclean || true
314
315
316
317 DIRECTORY = Mesa-3.1
318 LIB_NAME = MesaLib-3.1beta3
319 DEMO_NAME = MesaDemos-3.1beta3
320
321
322 LIB_FILES = \
323 $(DIRECTORY)/Makefile* \
324 $(DIRECTORY)/Make-config \
325 $(DIRECTORY)/acconfig.h \
326 $(DIRECTORY)/acinclude.m4 \
327 $(DIRECTORY)/aclocal.m4 \
328 $(DIRECTORY)/conf.h.in \
329 $(DIRECTORY)/config.guess \
330 $(DIRECTORY)/config.sub \
331 $(DIRECTORY)/configure \
332 $(DIRECTORY)/configure.in \
333 $(DIRECTORY)/install-sh \
334 $(DIRECTORY)/ltconfig \
335 $(DIRECTORY)/ltmain.sh \
336 $(DIRECTORY)/missing \
337 $(DIRECTORY)/mkinstalldirs \
338 $(DIRECTORY)/stamp-h.in \
339 $(DIRECTORY)/configure \
340 $(DIRECTORY)/docs/CONFIG \
341 $(DIRECTORY)/docs/CONFORM \
342 $(DIRECTORY)/docs/COPYING \
343 $(DIRECTORY)/docs/COPYRIGHT \
344 $(DIRECTORY)/docs/DEVINFO \
345 $(DIRECTORY)/docs/IAFA-PACKAGE \
346 $(DIRECTORY)/docs/INSTALL \
347 $(DIRECTORY)/docs/INSTALL.GNU \
348 $(DIRECTORY)/docs/README \
349 $(DIRECTORY)/docs/README.* \
350 $(DIRECTORY)/docs/RELNOTES \
351 $(DIRECTORY)/docs/VERSIONS \
352 $(DIRECTORY)/docs/*.spec \
353 $(DIRECTORY)/bin/README \
354 $(DIRECTORY)/bin/mklib* \
355 $(DIRECTORY)/*.BAT \
356 $(DIRECTORY)/*.bat \
357 $(DIRECTORY)/descrip.mms \
358 $(DIRECTORY)/mms-config \
359 $(DIRECTORY)/xlib.opt \
360 $(DIRECTORY)/STARTUP.MK \
361 $(DIRECTORY)/mesawin32.mak \
362 $(DIRECTORY)/Names.win \
363 $(DIRECTORY)/win32-openstep.sh \
364 $(DIRECTORY)/*.dja \
365 $(DIRECTORY)/include/GL/Makefile.in \
366 $(DIRECTORY)/include/GL/Makefile.am \
367 $(DIRECTORY)/include/GL/dosmesa.h \
368 $(DIRECTORY)/include/GL/foomesa.h \
369 $(DIRECTORY)/include/GL/fxmesa.h \
370 $(DIRECTORY)/include/GL/ggimesa.h \
371 $(DIRECTORY)/include/GL/gl.h \
372 $(DIRECTORY)/include/GL/gl_mangle.h \
373 $(DIRECTORY)/include/GL/glu.h \
374 $(DIRECTORY)/include/GL/glu_mangle.h \
375 $(DIRECTORY)/include/GL/glx.h \
376 $(DIRECTORY)/include/GL/glx_mangle.h \
377 $(DIRECTORY)/include/GL/mglmesa.h \
378 $(DIRECTORY)/include/GL/osmesa.h \
379 $(DIRECTORY)/include/GL/svgamesa.h \
380 $(DIRECTORY)/include/GL/wmesa.h \
381 $(DIRECTORY)/include/GL/xmesa.h \
382 $(DIRECTORY)/include/GL/xmesa_x.h \
383 $(DIRECTORY)/include/GL/xmesa_xf86.h \
384 $(DIRECTORY)/include/GLView.h \
385 $(DIRECTORY)/include/Makefile.in \
386 $(DIRECTORY)/include/Makefile.am \
387 $(DIRECTORY)/src/Makefile* \
388 $(DIRECTORY)/src/descrip.mms \
389 $(DIRECTORY)/src/mms_depend \
390 $(DIRECTORY)/src/mesa.conf \
391 $(DIRECTORY)/src/*.def \
392 $(DIRECTORY)/src/depend \
393 $(DIRECTORY)/src/*.[chS] \
394 $(DIRECTORY)/src/Allegro/*.[ch] \
395 $(DIRECTORY)/src/BeOS/*.cpp \
396 $(DIRECTORY)/src/D3D/*.cpp \
397 $(DIRECTORY)/src/D3D/*.CPP \
398 $(DIRECTORY)/src/D3D/*.h \
399 $(DIRECTORY)/src/D3D/*.H \
400 $(DIRECTORY)/src/D3D/*.c \
401 $(DIRECTORY)/src/D3D/*.C \
402 $(DIRECTORY)/src/D3D/MAKEFILE \
403 $(DIRECTORY)/src/D3D/*bat \
404 $(DIRECTORY)/src/D3D/*DEF \
405 $(DIRECTORY)/src/DOS/DEPEND.DOS \
406 $(DIRECTORY)/src/DOS/*.c \
407 $(DIRECTORY)/src/FX/Makefile.am \
408 $(DIRECTORY)/src/FX/Makefile.in \
409 $(DIRECTORY)/src/FX/*.[ch] \
410 $(DIRECTORY)/src/FX/*.def \
411 $(DIRECTORY)/src/FX/X86/Makefile.am \
412 $(DIRECTORY)/src/FX/X86/Makefile.in \
413 $(DIRECTORY)/src/FX/X86/*.[Shc] \
414 $(DIRECTORY)/src/GGI/Makefile.am \
415 $(DIRECTORY)/src/GGI/Makefile.in \
416 $(DIRECTORY)/src/GGI/*.[ch] \
417 $(DIRECTORY)/src/GGI/ggimesa.conf.in \
418 $(DIRECTORY)/src/GGI/default/*.c \
419 $(DIRECTORY)/src/GGI/default/Makefile.am \
420 $(DIRECTORY)/src/GGI/default/Makefile.in \
421 $(DIRECTORY)/src/GGI/default/genkgi.conf.in \
422 $(DIRECTORY)/src/GGI/display/*.c \
423 $(DIRECTORY)/src/GGI/display/Makefile.am \
424 $(DIRECTORY)/src/GGI/display/Makefile.in \
425 $(DIRECTORY)/src/GGI/display/fbdev.conf.in \
426 $(DIRECTORY)/src/GGI/include/Makefile.am \
427 $(DIRECTORY)/src/GGI/include/Makefile.in \
428 $(DIRECTORY)/src/GGI/include/ggi/Makefile.am \
429 $(DIRECTORY)/src/GGI/include/ggi/Makefile.in \
430 $(DIRECTORY)/src/GGI/include/ggi/mesa/Makefile.am \
431 $(DIRECTORY)/src/GGI/include/ggi/mesa/Makefile.in \
432 $(DIRECTORY)/src/GGI/include/ggi/mesa/*.h \
433 $(DIRECTORY)/src/KNOWN_BUGS \
434 $(DIRECTORY)/src/MGL/*.[ch] \
435 $(DIRECTORY)/src/MGL/*.txt \
436 $(DIRECTORY)/src/OSmesa/Makefile.am \
437 $(DIRECTORY)/src/OSmesa/Makefile.in \
438 $(DIRECTORY)/src/OSmesa/*.[ch] \
439 $(DIRECTORY)/src/S3/*.[ch] \
440 $(DIRECTORY)/src/S3/*.def \
441 $(DIRECTORY)/src/S3/*.mak \
442 $(DIRECTORY)/src/S3/*.rc \
443 $(DIRECTORY)/src/SVGA/Makefile.am \
444 $(DIRECTORY)/src/SVGA/Makefile.in \
445 $(DIRECTORY)/src/SVGA/*.[ch] \
446 $(DIRECTORY)/src/Windows/*.[ch] \
447 $(DIRECTORY)/src/Windows/*.def \
448 $(DIRECTORY)/src/X/Makefile.am \
449 $(DIRECTORY)/src/X/Makefile.in \
450 $(DIRECTORY)/src/X/*.[ch] \
451 $(DIRECTORY)/src/X86/*.[ch] \
452 $(DIRECTORY)/src/X86/Makefile.am \
453 $(DIRECTORY)/src/X86/Makefile.in \
454 $(DIRECTORY)/src/X86/*.m4 \
455 $(DIRECTORY)/src/X86/*.S \
456 $(DIRECTORY)/src/*.dja \
457 $(DIRECTORY)/src-glu/README[12] \
458 $(DIRECTORY)/src-glu/Makefile* \
459 $(DIRECTORY)/src-glu/descrip.mms \
460 $(DIRECTORY)/src-glu/mms_depend \
461 $(DIRECTORY)/src-glu/*.def \
462 $(DIRECTORY)/src-glu/*.dja \
463 $(DIRECTORY)/src-glu/depend \
464 $(DIRECTORY)/src-glu/*.[ch] \
465 $(DIRECTORY)/widgets-mesa \
466 $(DIRECTORY)/widgets-sgi \
467 $(DIRECTORY)/util/README \
468 $(DIRECTORY)/util/Makefile.am \
469 $(DIRECTORY)/util/Makefile.in \
470 $(DIRECTORY)/util/*.[ch] \
471 $(DIRECTORY)/util/sampleMakefile \
472 $(DIRECTORY)/BeOS/Makefile \
473 $(DIRECTORY)/BeOS/*.cpp
474
475 # old stuff
476 # $(DIRECTORY)/Win32 \
477 # $(DIRECTORY)/win32
478
479 # $(DIRECTORY)/OpenStep \
480 #
481 #
482
483
484 DEMO_FILES = \
485 $(DIRECTORY)/include/GL/glut.h \
486 $(DIRECTORY)/include/GL/glutf90.h \
487 $(DIRECTORY)/include/GL/glut_h.dja \
488 $(DIRECTORY)/src-glut/Makefile* \
489 $(DIRECTORY)/src-glut/depend \
490 $(DIRECTORY)/src-glut/*def \
491 $(DIRECTORY)/src-glut/descrip.mms \
492 $(DIRECTORY)/src-glut/mms_depend \
493 $(DIRECTORY)/src-glut/*.[ch] \
494 $(DIRECTORY)/src-glut.dja/* \
495 $(DIRECTORY)/src-glut.beos/Makefile \
496 $(DIRECTORY)/src-glut.beos/*.cpp \
497 $(DIRECTORY)/src-glut.beos/*.h \
498 $(DIRECTORY)/images/* \
499 $(DIRECTORY)/demos/Makefile* \
500 $(DIRECTORY)/demos/descrip.mms \
501 $(DIRECTORY)/demos/*.[ch] \
502 $(DIRECTORY)/demos/*.dat \
503 $(DIRECTORY)/xdemos/Makefile* \
504 $(DIRECTORY)/xdemos/descrip.mms \
505 $(DIRECTORY)/xdemos/*.[cf] \
506 $(DIRECTORY)/book/Makefile* \
507 $(DIRECTORY)/book/README \
508 $(DIRECTORY)/book/*.[ch] \
509 $(DIRECTORY)/samples/Makefile* \
510 $(DIRECTORY)/samples/README \
511 $(DIRECTORY)/samples/*.c \
512 $(DIRECTORY)/samples/*.dja \
513 $(DIRECTORY)/3Dfx \
514 $(DIRECTORY)/mtdemos \
515 $(DIRECTORY)/ggi
516
517
518 lib_tar:
519 cd .. ; \
520 tar -cvf $(LIB_NAME).tar $(LIB_FILES) ; \
521 gzip $(LIB_NAME).tar ; \
522 mv $(LIB_NAME).tar.gz $(DIRECTORY)
523
524 demo_tar:
525 cd .. ; \
526 tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) ; \
527 gzip $(DEMO_NAME).tar ; \
528 mv $(DEMO_NAME).tar.gz $(DIRECTORY)
529
530 lib_zip:
531 -rm $(LIB_NAME).zip
532 cd .. ; \
533 zip -r $(LIB_NAME).zip $(LIB_FILES) ; \
534 mv $(LIB_NAME).zip $(DIRECTORY)
535
536 demo_zip:
537 -rm $(DEMO_NAME).zip
538 cd .. ; \
539 zip -r $(DEMO_NAME).zip $(DEMO_FILES) ; \
540 mv $(DEMO_NAME).zip $(DIRECTORY)
541
542
543
544 SRC_FILES = \
545 RELNOTES \
546 src/Makefile* \
547 src/depend \
548 src/*.[chS] \
549 src/*/*.[ch] \
550 include/GL/*.h
551
552 srctar:
553 tar -cvf src.tar $(SRC_FILES) ; \
554 gzip src.tar
555
556 srctar.zip:
557 -rm src.zip
558 zip -r src.zip $(SRC_FILES) ; \