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