Makefile.X11 25.4 KB
Newer Older
1
# $Id: Makefile.X11,v 1.78 2003/06/10 14:46:24 brianp Exp $
jtg's avatar
jtg committed
2
3

# Mesa 3-D graphics library
Brian Paul's avatar
Brian Paul committed
4
# Version:  5.1
jtg's avatar
jtg committed
5
# 
Brian Paul's avatar
Brian Paul committed
6
# Copyright (C) 1999-2003  Brian Paul   All Rights Reserved.
jtg's avatar
jtg committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
# BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


# Top-level makefile for Mesa
# To add a new configuration for your system add it to the list below
# then update the Make-config file.

SHELL = /bin/sh



default:
	@echo "Type one of the following:"
	@echo "  make aix                  for IBM RS/6000 with AIX"
	@echo "  make aix-sl               for IBM RS/6000, make shared libs"
	@echo "  make beos-r4              for BeOS R4"
	@echo "  make cygnus               for Win95/NT using Cygnus-Win32"
	@echo "  make cygnus-linux         for Win95/NT using Cygnus-Win32 under Linux"
Karl Schultz's avatar
Karl Schultz committed
41
	@echo "  make darwin               for Darwin - Mac OS X"
jtg's avatar
jtg committed
42
43
44
45
46
47
	@echo "  make freebsd              for FreeBSD systems with GCC"
	@echo "  make freebsd-386          for FreeBSD systems with GCC, w/ Intel assembly"
	@echo "  make hpux9                for HP systems with HPUX 9.x"
	@echo "  make hpux9-sl             for HP systems with HPUX 9.x, make shared libs"
	@echo "  make hpux9-gcc            for HP systems with HPUX 9.x using GCC"
	@echo "  make hpux9-gcc-sl         for HP systems with HPUX 9.x, GCC, make shared libs"
48
49
	@echo "  make hpux10               for HP systems with HPUX 10.x and 11.x"
	@echo "  make hpux10-sl            for HP systems with HPUX 10.x and 11.x, shared libs"
jtg's avatar
jtg committed
50
51
52
53
54
55
56
57
58
59
	@echo "  make hpux10-gcc           for HP systems with HPUX 10.x w/ GCC"
	@echo "  make hpux10-gcc-sl        for HP systems with HPUX 10.x w/ GCC, shared libs"
	@echo "  make irix6-o32            for SGI systems with IRIX 6.x, make o32-bit libs"
	@echo "  make irix6-o32-dso        for SGI systems with IRIX 6.x, make o32-bit DSOs"
	@echo "  make irix6-n32            for SGI systems with IRIX 6.x, make n32-bit libs"
	@echo "  make irix6-n32-dso        for SGI systems with IRIX 6.x, make n32-bit DSOs"
	@echo "  make irix6-gcc-n32-sl     for SGI systems with IRIX 6.x, GCC, make n32 DSOs"
	@echo "  make irix6-64             for SGI systems with IRIX 6.x, make 64-bit libs"
	@echo "  make irix6-64-dso         for SGI systems with IRIX 6.x, make 64-bit DSOs"

60
61
62
63
64
65
66
67
68
69
70
71
72
	@echo "  make linux                for Linux"
	@echo "  make linux-x86            for Linux with x86 optimizations"
	@echo "  make linux-ggi            for Linux with libggi driver"
	@echo "  make linux-x86-ggi        for Linux with libggi driver and x86 optimizations"
	@echo "  make linux-glide          for Linux with 3Dfx Glide driver"
	@echo "  make linux-x86-glide      for Linux with 3Dfx Glide driver and x86 opts"
	@echo "  make linux-alpha          for Linux with Alpha optimizations"
	@echo "  make linux-alpha-static   for Linux with Alpha opts, make static libs"
	@echo "  make linux-ppc            for Linux with PowerPC opts"
	@echo "  make linux-ppc-static     for Linux with PowerPC opts, make static libs"
	@echo "  make linux-sparc          for Linux with Sparc optimzations"
	@echo "  make linux-sparc5         for Linux with Sparc5 optimizations"
	@echo "  make linux-sparc-ultra    for Linux with UltraSparc optimizations"
73
	@echo "  make linux-osmesa16       for 16-bit/channel OSMesa"
Brian Paul's avatar
Brian Paul committed
74
	@echo "  make linux-osmesa32       for 32-bit/channel OSMesa"
75
	@echo "  make linux-icc            for Linux with the Intel C/C++ compiler"
jtg's avatar
jtg committed
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
	@echo "  make lynxos               for LynxOS systems with GCC"
	@echo "  make mklinux              for Linux on Power Macintosh"
	@echo "  make netbsd               for NetBSD 1.0 systems with GCC"
	@echo "  make openbsd              for OpenBSD systems"
	@echo "  make openstep             for OpenStep/MacOSX Server systems"
	@echo "  make osf1                 for DEC Alpha systems with OSF/1"
	@echo "  make qnx                  for QNX V4 systems with Watcom compiler"
	@echo "  make solaris-x86          for PCs with Solaris"
	@echo "  make solaris-x86-gcc      for PCs with Solaris using GCC"
	@echo "  make sunos4               for Suns with SunOS 4.x"
	@echo "  make sunos4-sl            for Suns with SunOS 4.x, make shared libs"
	@echo "  make sunos4-gcc           for Suns with SunOS 4.x and GCC"
	@echo "  make sunos4-gcc-sl        for Suns with SunOS 4.x, GCC, make shared libs"
	@echo "  make sunos5               for Suns with SunOS 5.x"
	@echo "  make sunos5-gcc           for Suns with SunOS 5.x and GCC"
	@echo "  make ultrix-gcc           for DEC systems with Ultrix and GCC"
	@echo "  make unixware             for PCs running UnixWare"
	@echo "  make unixware-shared      for PCs running UnixWare, shared libs"
	@echo "  make clean                remove .o files"
	@echo "  make realclean            remove .o, library and executable files"



Brian Paul's avatar
Brian Paul committed
99
100
101
# XXX we may have to split up this group of targets into those that
# have a C++ compiler and those that don't for the SI-GLU library.

102
aix aix-sl darwin freebsd freebsd-386 \
jtg's avatar
jtg committed
103
104
hpux9 hpux9-sl hpux9-gcc hpux9-gcc-sl \
hpux10 hpux10-sl hpux10-gcc hpux10-gcc-sl \
105
106
107
linux linux-debug \
linux-x86 linux-x86-sse linux-icc linux-x86-static linux-x86-debug \
linux-glide linux-x86-glide linux-glide-debug \
Brian Paul's avatar
Brian Paul committed
108
109
linux-alpha-static linux-alpha \
linux-ppc-static linux-ppc \
110
111
112
linux-sparc linux-sparc5 linux-sparc-ultra \
mklinux netbsd osf1 openbsd qnx \
solaris-x86 solaris-x86-gcc \
jtg's avatar
jtg committed
113
sunos4 sunos4-sl sunos4-gcc sunos4-gcc-sl sunos4-gcc-x11r6-sl \
114
115
sunos5 sunos5-gcc \
ultrix-gcc unixware:
jtg's avatar
jtg committed
116
	-mkdir lib
117
118
119
120
121
122
123
124
125
126
127
128
	if [ -d src/mesa     ] ; then touch src/mesa/depend     ; fi
	if [ -d src/glu/sgi  ] ; then touch src/glu/sgi/depend  ; fi
	if [ -d src/glut/glx ] ; then touch src/glut/glx/depend ; fi
	if [ -d src/glw      ] ; then touch src/glw/depend      ; fi
	if [ -d src/mesa      ] ; then cd src/mesa      ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d src/glu/sgi   ] ; then cd src/glu/sgi   ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d src/glut/glx  ] ; then cd src/glut/glx  ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/demos   ] ; then cd progs/demos   ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/xdemos  ] ; then cd progs/xdemos  ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/samples ] ; then cd progs/samples ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/redbook ] ; then cd progs/redbook ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d src/glw       ] ; then cd src/glw       ; $(MAKE) -f Makefile.X11 $@ ; fi
jtg's avatar
jtg committed
129

130
irix6-o32 irix6-o32-dso irix6-n32 irix6-n32-dso irix6-gcc-n32-sl:
jtg's avatar
jtg committed
131
	-mkdir lib32
132
133
134
135
136
137
138
139
140
141
142
143
	if [ -d src/mesa      ] ; then touch src/mesa/depend      ; fi
	if [ -d src/glu/sgi   ] ; then touch src/glu/sgi/depend   ; fi
	if [ -d src/glut/glx ] ; then touch src/glut/glx/depend ; fi
	if [ -d src/glw ] ; then touch src/glw/depend ; fi
	if [ -d src/mesa      ] ; then cd src/mesa      ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d src/glu/sgi   ] ; then cd src/glu/sgi   ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d src/glut/glx ] ; then cd src/glut/glx ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/demos    ] ; then cd progs/demos    ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/xdemos   ] ; then cd progs/xdemos   ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/samples  ] ; then cd progs/samples  ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/redbook     ] ; then cd progs/redbook     ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d src/glw ] ; then cd src/glw; $(MAKE) -f Makefile.X11 $@ ; fi
jtg's avatar
jtg committed
144
145
146

irix6-64 irix6-64-dso:
	-mkdir lib64
147
148
149
150
151
152
153
154
155
156
157
158
	if [ -d src/mesa     ] ; then touch src/mesa/depend     ; fi
	if [ -d src/glu/sgi  ] ; then touch src/glu/sgi/depend  ; fi
	if [ -d src/glut/glx ] ; then touch src/glut/glx/depend ; fi
	if [ -d src/glw      ] ; then touch src/glw/depend      ; fi
	if [ -d src/mesa      ] ; then cd src/mesa      ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d src/glu/sgi   ] ; then cd src/glu/sgi   ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d src/glut/glx  ] ; then cd src/glut/glx  ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/demos   ] ; then cd progs/demos   ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/xdemos  ] ; then cd progs/xdemos  ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/samples ] ; then cd progs/samples ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/redbook ] ; then cd progs/redbook ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d src/glw ] ; then cd src/glw; $(MAKE) -f Makefile.X11 $@ ; fi
jtg's avatar
jtg committed
159
160
161
162


beos-r4:
	-mkdir lib
163
164
165
166
167
168
169
170
171
172
173
174
	-rm src/mesa/depend
	touch src/mesa/depend
	-rm src/glu/sgi/depend
	touch src/glu/sgi/depend
	if [ -d src/mesa      ] ; then cd src/mesa      ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
	if [ -d src/glu/sgi   ] ; then cd src/glu/sgi   ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
	if [ -d src/glut/beos ] ; then cd src/glut/beos ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
	if [ -d src/glut/beos ] ; then cp src/glut/beos/obj*/libglut.so lib  ; fi
	if [ -d progs/beos    ] ; then cd progs/beos    ; $(MAKE)                        ; fi
	if [ -d progs/demos   ] ; then cd progs/demos   ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
	if [ -d progs/samples ] ; then cd progs/samples ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
	if [ -d progs/redbook ] ; then cd progs/redbook ; $(MAKE) -f Makefile.BeOS-R4 $@ ; fi
jtg's avatar
jtg committed
175
176
177
178
179

cygnus cygnus-linux:
	-mkdir lib
	touch src/depend
	touch src-glu/depend
180
181
182
183
184
185
	if [ -d src/mesa     ] ; then cd src/mesa     ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d src/glu/sgi  ] ; then cd src/glu/sgi  ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d src/glut/glx ] ; then cd src/glut/glx ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/demos  ] ; then cd progs/demos  ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/xdemos ] ; then cd progs/xdemos ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d src/glw      ] ; then cd src/glw      ; $(MAKE) -f Makefile.X11 $@ ; fi
jtg's avatar
jtg committed
186
187
188

openstep:
	-mkdir lib
189
190
	cd src/mesa    ; $(MAKE) -f Makefile.X11 "MYCC=${CC}" $@
	cd src/glu/sgi ; $(MAKE) -f Makefile.X11 "MYCC=${CC}" $@
jtg's avatar
jtg committed
191

192
linux-ggi linux-x86-ggi:
jtg's avatar
jtg committed
193
194
	-mkdir lib
	touch src/depend
195
196
197
198
199
200
201
202
203
204
205
206
	touch src/glu/sgi/depend
	if [ -d src/glut/glx    ] ; then touch src/glut/glx/depend ; fi
	if [ -d src/glw         ] ; then touch src/glw/depend ; fi
	if [ -d src/mesa        ] ; then cd src            ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d src/glu/sgi     ] ; then cd src/glu/sgi    ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d src/glut/glx    ] ; then cd src/glut/glx   ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d ggi/demos       ] ; then cd ggi/demos      ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/demos     ] ; then cd progs/demos    ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/xdemos    ] ; then cd progs/xdemos   ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/samples   ] ; then cd progs/samples  ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d progs/redbook   ] ; then cd progs/redbook  ; $(MAKE) -f Makefile.X11 $@ ; fi
	if [ -d src/glw ] ; then cd src/glw; $(MAKE) -f Makefile.X11 $@ ; fi
jtg's avatar
jtg committed
207
208
209
210
211

# if you change GGI_DEST please change it in ggimesa.conf, too.
DESTDIR=/usr/local
GGI_DEST=lib/ggi/mesa

212
linux-ggi-install linux-x86-ggi-install:
jtg's avatar
jtg committed
213
214
215
216
217
218
219
220
	install -d $(DESTDIR)/$(GGI_DEST)/default $(DESTDIR)/$(GGI_DEST)/display $(DESTDIR)/etc/ggi
	install -m 0755 src/GGI/default/*.so $(DESTDIR)/$(GGI_DEST)/default
	install -m 0755 src/GGI/display/*.so $(DESTDIR)/$(GGI_DEST)/display
	install -m 0644 src/GGI/ggimesa.conf $(DESTDIR)/etc/ggi
#	if [ -z "`grep ggimesa $(DESTDIR)/etc/ggi/libggi.conf`" ]; then \
#	echo ".include $(DESTDIR)/etc/ggi/ggimesa.conf" >> $(DESTDIR)/etc/ggi/libggi.conf ; \
#	fi

Brian Paul's avatar
Brian Paul committed
221
linux-osmesa16 linux-osmesa32:
222
223
224
225
226
	-mkdir lib
	if [ -d src ] ; then touch src/depend ; fi
	if [ -d src ] ; then cd src ; $(MAKE) -f Makefile.OSMesa16 $@ ; fi
	

jtg's avatar
jtg committed
227
228
# Remove .o files, emacs backup files, etc.
clean:
229
230
231
	-rm -f src/mesa/*/*.o
	-rm -f src/mesa/drivers/*/*.o
	-rm -f src/mesa/drivers/*/*.o
jtg's avatar
jtg committed
232
233
	-rm -f include/*~
	-rm -f include/GL/*~
234
235
236
237
238
239
240
241
	-rm -f src/glu/mesa/*.o src/glu/mesa/*~ src-glu/*.a
	-rm -f src/glu/sgi/*/*.o src/glu/sgi/*/*/*.o
	-rm -f src/glut/glx/*.o
	-rm -f progs/demos/*.o
	-rm -f progs/redbook/*.o progs/redbook/*~
	-rm -f progs/xdemos/*.o progs/xdemos/*~
	-rm -f progs/samples/*.o progs/samples/*~
	-rm -f src/glw/*.o
jtg's avatar
jtg committed
242
243
244

# Remove everything that can be remade
realclean: clean
245
	-rm -fr lib lib32 lib64
246
247
248
249
	cd progs/demos       && $(MAKE) -f Makefile.X11 realclean || true
	cd progs/xdemos      && $(MAKE) -f Makefile.X11 realclean || true
	cd progs/redbook     && $(MAKE) -f Makefile.X11 realclean || true
	cd progs/samples     && $(MAKE) -f Makefile.X11 realclean || true
jtg's avatar
jtg committed
250

Brian Paul's avatar
Brian Paul committed
251
252
253
254
255
256
257
# Remove everything not in CVS
cvsclean: realclean
	-rm -f acinclude.m4 aclocal.m4
	-rm -f conf.h conf.h.in config.guess config.log config.status
	-rm -f config.sub configure
	-rm -f install-sh libtool ltmain.sh Makefile.in
	-rm -f missing mkinstalldirs stamp-h stamp-h.in
jtg's avatar
jtg committed
258

259
260
261



Brian Paul's avatar
Brian Paul committed
262
263
264
265
DIRECTORY = Mesa-5.1
LIB_NAME = MesaLib-5.1
DEMO_NAME = MesaDemos-5.1
GLU_NAME = MesaGLU-5.1
266
GLUT_NAME = GLUT-3.7
jtg's avatar
jtg committed
267
268
269


LIB_FILES =	\
Brian Paul's avatar
Brian Paul committed
270
271
	$(DIRECTORY)/Makefile*						\
	$(DIRECTORY)/Make-config					\
272
	$(DIRECTORY)/docs/*.html					\
Brian Paul's avatar
Brian Paul committed
273
274
275
276
277
278
279
280
281
282
283
284
285
286
	$(DIRECTORY)/docs/COPYING					\
	$(DIRECTORY)/docs/INSTALL.GNU					\
	$(DIRECTORY)/docs/README.*					\
	$(DIRECTORY)/docs/RELNOTES*					\
	$(DIRECTORY)/docs/VERSIONS					\
	$(DIRECTORY)/docs/*.spec					\
	$(DIRECTORY)/bin/README						\
	$(DIRECTORY)/bin/mklib*						\
	$(DIRECTORY)/descrip.mms					\
	$(DIRECTORY)/mms-config						\
	$(DIRECTORY)/xlib.opt						\
	$(DIRECTORY)/include/GL/internal/glcore.h			\
	$(DIRECTORY)/include/GL/Makefile.in				\
	$(DIRECTORY)/include/GL/Makefile.am				\
287
	$(DIRECTORY)/include/GL/dmesa.h					\
Brian Paul's avatar
Brian Paul committed
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
	$(DIRECTORY)/include/GL/amesa.h					\
	$(DIRECTORY)/include/GL/fxmesa.h				\
	$(DIRECTORY)/include/GL/ggimesa.h				\
	$(DIRECTORY)/include/GL/gl.h					\
	$(DIRECTORY)/include/GL/glext.h					\
	$(DIRECTORY)/include/GL/gl_mangle.h				\
	$(DIRECTORY)/include/GL/glu.h					\
	$(DIRECTORY)/include/GL/glu_mangle.h				\
	$(DIRECTORY)/include/GL/glx.h					\
	$(DIRECTORY)/include/GL/glxext.h				\
	$(DIRECTORY)/include/GL/glx_mangle.h				\
	$(DIRECTORY)/include/GL/mesa_wgl.h				\
	$(DIRECTORY)/include/GL/mglmesa.h				\
	$(DIRECTORY)/include/GL/osmesa.h				\
	$(DIRECTORY)/include/GL/svgamesa.h				\
Brian Paul's avatar
Brian Paul committed
303
	$(DIRECTORY)/include/GL/ugl*.h					\
304
	$(DIRECTORY)/include/GL/vms_x_fix.h				\
Brian Paul's avatar
Brian Paul committed
305
306
307
308
309
310
311
	$(DIRECTORY)/include/GL/wmesa.h					\
	$(DIRECTORY)/include/GL/xmesa.h					\
	$(DIRECTORY)/include/GL/xmesa_x.h				\
	$(DIRECTORY)/include/GL/xmesa_xf86.h				\
	$(DIRECTORY)/include/GLView.h					\
	$(DIRECTORY)/include/Makefile.in				\
	$(DIRECTORY)/include/Makefile.am				\
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
	$(DIRECTORY)/src/mesa/Makefile*					\
	$(DIRECTORY)/src/mesa/descrip.mms					\
	$(DIRECTORY)/src/mesa/mesa.conf						\
	$(DIRECTORY)/src/mesa/*.def						\
	$(DIRECTORY)/src/mesa/depend						\
	$(DIRECTORY)/src/mesa/*.[chS]						\
	$(DIRECTORY)/src/mesa/array_cache/*.[ch]				\
	$(DIRECTORY)/src/mesa/array_cache/Makefile*				\
	$(DIRECTORY)/src/mesa/math/*.[ch]					\
	$(DIRECTORY)/src/mesa/math/Makefile*					\
	$(DIRECTORY)/src/mesa/swrast/*.[ch]					\
	$(DIRECTORY)/src/mesa/swrast/Makefile*					\
	$(DIRECTORY)/src/mesa/swrast_setup/*.[ch]				\
	$(DIRECTORY)/src/mesa/swrast_setup/Makefile*				\
	$(DIRECTORY)/src/mesa/tnl/*.[ch]					\
	$(DIRECTORY)/src/mesa/tnl/Makefile*					\
	$(DIRECTORY)/src/mesa/tnl_dd/*.[ch]					\
	$(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch]					\
	$(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm				\
	$(DIRECTORY)/src/mesa/drivers/windml/*.[ch]				\
	$(DIRECTORY)/src/mesa/drivers/windml/tornado/*.c			\
	$(DIRECTORY)/src/mesa/drivers/windml/tornado/*.cdf			\
	$(DIRECTORY)/src/mesa/drivers/windml/man3/*.3				\
	$(DIRECTORY)/src/mesa/drivers/windml/man3/*.html			\
	$(DIRECTORY)/src/mesa/drivers/dos/*.[chS]				\
	$(DIRECTORY)/src/mesa/drivers/dos/mga/*.[ch]				\
	$(DIRECTORY)/src/mesa/drivers/beos/*.cpp				\
	$(DIRECTORY)/src/mesa/drivers/glide/Makefile.am				\
	$(DIRECTORY)/src/mesa/drivers/glide/Makefile.in				\
	$(DIRECTORY)/src/mesa/drivers/glide/*.[ch]				\
	$(DIRECTORY)/src/mesa/drivers/glide/*.def				\
	$(DIRECTORY)/src/mesa/drivers/glide/X86/Makefile.am			\
	$(DIRECTORY)/src/mesa/drivers/glide/X86/Makefile.in			\
	$(DIRECTORY)/src/mesa/drivers/glide/X86/*.[Shc]				\
	$(DIRECTORY)/src/mesa/drivers/ggi/Makefile.am				\
	$(DIRECTORY)/src/mesa/drivers/ggi/Makefile.in				\
	$(DIRECTORY)/src/mesa/drivers/ggi/*.[ch]				\
	$(DIRECTORY)/src/mesa/drivers/ggi/ggimesa.conf.in			\
	$(DIRECTORY)/src/mesa/drivers/ggi/default/*.c				\
	$(DIRECTORY)/src/mesa/drivers/ggi/default/Makefile.am			\
	$(DIRECTORY)/src/mesa/drivers/ggi/default/Makefile.in			\
	$(DIRECTORY)/src/mesa/drivers/ggi/default/genkgi.conf.in		\
	$(DIRECTORY)/src/mesa/drivers/ggi/display/*.c				\
	$(DIRECTORY)/src/mesa/drivers/ggi/display/Makefile.am			\
	$(DIRECTORY)/src/mesa/drivers/ggi/display/Makefile.in			\
	$(DIRECTORY)/src/mesa/drivers/ggi/display/fbdev.conf.in			\
	$(DIRECTORY)/src/mesa/drivers/ggi/include/Makefile.am			\
	$(DIRECTORY)/src/mesa/drivers/ggi/include/Makefile.in			\
	$(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/Makefile.am		\
	$(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/Makefile.in		\
	$(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/Makefile.am		\
	$(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/Makefile.in		\
	$(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/*.h			\
  	$(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.am			\
	$(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.in			\
	$(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win			\
	$(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def				\
	$(DIRECTORY)/src/mesa/drivers/osmesa/*.[ch]				\
	$(DIRECTORY)/src/mesa/sparc/*.[chS]					\
	$(DIRECTORY)/src/mesa/sparc/Makefile.am					\
	$(DIRECTORY)/src/mesa/sparc/Makefile.in					\
	$(DIRECTORY)/src/mesa/drivers/svga/Makefile.am				\
	$(DIRECTORY)/src/mesa/drivers/svga/Makefile.in				\
	$(DIRECTORY)/src/mesa/drivers/svga/*.[ch]				\
	$(DIRECTORY)/src/mesa/drivers/windows/*.[ch]				\
	$(DIRECTORY)/src/mesa/drivers/windows/*.def				\
	$(DIRECTORY)/src/mesa/drivers/x11/Makefile.am				\
	$(DIRECTORY)/src/mesa/drivers/x11/Makefile.in				\
	$(DIRECTORY)/src/mesa/drivers/x11/*.[ch]				\
	$(DIRECTORY)/src/mesa/x86/*.[ch]					\
	$(DIRECTORY)/src/mesa/x86/Makefile.am					\
	$(DIRECTORY)/src/mesa/x86/Makefile.in					\
	$(DIRECTORY)/src/mesa/x86/*.S						\
	$(DIRECTORY)/src/glu/sgi/Makefile.am					\
	$(DIRECTORY)/src/glu/sgi/Makefile.in					\
	$(DIRECTORY)/src/glu/sgi/Makefile.X11					\
	$(DIRECTORY)/src/glu/sgi/Makefile.win					\
	$(DIRECTORY)/src/glu/sgi/Makefile.DJ					\
	$(DIRECTORY)/src/glu/sgi/glu.def					\
	$(DIRECTORY)/src/glu/sgi/dummy.cc					\
	$(DIRECTORY)/src/glu/sgi/descrip.mms					\
	$(DIRECTORY)/src/glu/sgi/mesaglu.opt					\
	$(DIRECTORY)/src/glu/sgi/include/gluos.h				\
	$(DIRECTORY)/src/glu/sgi/include/Makefile.am				\
	$(DIRECTORY)/src/glu/sgi/include/Makefile.in				\
	$(DIRECTORY)/src/glu/sgi/libnurbs/Makefile.am				\
	$(DIRECTORY)/src/glu/sgi/libnurbs/Makefile.in				\
	$(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h				\
	$(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc			\
	$(DIRECTORY)/src/glu/sgi/libnurbs/interface/Makefile.am			\
	$(DIRECTORY)/src/glu/sgi/libnurbs/interface/Makefile.in			\
	$(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h				\
	$(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc			\
	$(DIRECTORY)/src/glu/sgi/libnurbs/internals/Makefile.am			\
	$(DIRECTORY)/src/glu/sgi/libnurbs/internals/Makefile.in			\
	$(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.h				\
	$(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.cc				\
	$(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/Makefile.am			\
	$(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/Makefile.in			\
	$(DIRECTORY)/src/glu/sgi/libtess/README					\
	$(DIRECTORY)/src/glu/sgi/libtess/alg-outline				\
	$(DIRECTORY)/src/glu/sgi/libtess/*.[ch]					\
	$(DIRECTORY)/src/glu/sgi/libtess/libtess_la_SOURCES			\
	$(DIRECTORY)/src/glu/sgi/libtess/Makefile.am				\
	$(DIRECTORY)/src/glu/sgi/libtess/Makefile.in				\
	$(DIRECTORY)/src/glu/sgi/libutil/*.[ch]					\
	$(DIRECTORY)/src/glu/sgi/libutil/libutil_la_SOURCES			\
	$(DIRECTORY)/src/glu/sgi/libutil/Makefile.am				\
	$(DIRECTORY)/src/glu/sgi/libutil/Makefile.in				\
	$(DIRECTORY)/src/glu/mesa/README[12]					\
	$(DIRECTORY)/src/glu/mesa/Makefile*					\
	$(DIRECTORY)/src/glu/mesa/descrip.mms					\
	$(DIRECTORY)/src/glu/mesa/mms_depend					\
	$(DIRECTORY)/src/glu/mesa/*.def						\
	$(DIRECTORY)/src/glu/mesa/depend					\
	$(DIRECTORY)/src/glu/mesa/*.[ch]					\
	$(DIRECTORY)/src/glw/*.[ch]						\
	$(DIRECTORY)/src/glw/Makefile*						\
	$(DIRECTORY)/src/glw/README						\
	$(DIRECTORY)/progs/util/README						\
	$(DIRECTORY)/progs/util/Makefile.am					\
	$(DIRECTORY)/progs/util/Makefile.in					\
	$(DIRECTORY)/progs/util/*.[ch]						\
	$(DIRECTORY)/progs/util/sampleMakefile					\
	$(DIRECTORY)/vms/analyze_map.com					\
	$(DIRECTORY)/vms/xlib.opt						\
	$(DIRECTORY)/vms/xlib_share.opt
439
440


jtg's avatar
jtg committed
441
DEMO_FILES =	\
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
	$(DIRECTORY)/include/GL/glut.h			\
	$(DIRECTORY)/include/GL/glutf90.h		\
	$(DIRECTORY)/src/glut/glx/Makefile*		\
	$(DIRECTORY)/src/glut/glx/depend		\
	$(DIRECTORY)/src/glut/glx/*def			\
	$(DIRECTORY)/src/glut/glx/descrip.mms		\
	$(DIRECTORY)/src/glut/glx/mms_depend		\
	$(DIRECTORY)/src/glut/glx/*.[ch]		\
	$(DIRECTORY)/src/glut/glx.dos/*.[ch]		\
	$(DIRECTORY)/src/glut/glx.dos/Makefile.DJ	\
	$(DIRECTORY)/src/glut/glx.dos/PC_HW/*.[chS]	\
	$(DIRECTORY)/progs/images/*			\
	$(DIRECTORY)/progs/demos/Makefile*		\
	$(DIRECTORY)/progs/demos/descrip.mms		\
	$(DIRECTORY)/progs/demos/*.[ch]			\
	$(DIRECTORY)/progs/demos/*.cxx			\
	$(DIRECTORY)/progs/demos/*.dat			\
	$(DIRECTORY)/progs/demos/README			\
	$(DIRECTORY)/progs/xdemos/Makefile*		\
	$(DIRECTORY)/progs/xdemos/descrip.mms		\
	$(DIRECTORY)/progs/xdemos/*.[chf]		\
	$(DIRECTORY)/progs/redbook/Makefile*		\
	$(DIRECTORY)/progs/redbook/README		\
	$(DIRECTORY)/progs/redbook/*.[ch]		\
	$(DIRECTORY)/progs/samples/Makefile*		\
	$(DIRECTORY)/progs/samples/README		\
	$(DIRECTORY)/progs/samples/*.c			\
	$(DIRECTORY)/progs/windml/Makefile.ugl		\
	$(DIRECTORY)/progs/windml/*.c			\
	$(DIRECTORY)/progs/windml/*.bmp			\
	$(DIRECTORY)/progs/ggi/*.c
473

Brian Paul's avatar
Brian Paul committed
474
SI_GLU_FILES = \
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
	$(DIRECTORY)/Makefile*					\
	$(DIRECTORY)/Make-config				\
	$(DIRECTORY)/bin/mklib*					\
	$(DIRECTORY)/include/GL/glu.h				\
	$(DIRECTORY)/src/glu/sgi/Makefile.X11			\
	$(DIRECTORY)/src/glu/sgi/include/gluos.h		\
	$(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h		\
	$(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc	\
	$(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h		\
	$(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc	\
	$(DIRECTORY)/src/glu/sgi/libnurbs/nurbstess/*.h		\
	$(DIRECTORY)/src/glu/sgi/libnurbs/nurbstess/*.cc	\
	$(DIRECTORY)/src/glu/sgi/libtess/README			\
	$(DIRECTORY)/src/glu/sgi/libtess/alg-outline		\
	$(DIRECTORY)/src/glu/sgi/libtess/*.[ch]			\
	$(DIRECTORY)/src/glu/sgi/libutil/*.[ch]
Brian Paul's avatar
Brian Paul committed
491

492
493
494
495
496
497
GLU_FILES = \
	$(DIRECTORY)/Makefile*			\
	$(DIRECTORY)/Make-config		\
	$(DIRECTORY)/bin/mklib*			\
	$(DIRECTORY)/include/GL/gl.h		\
	$(DIRECTORY)/include/GL/gl_mangle.h	\
498
	$(DIRECTORY)/include/GL/glext.h		\
499
500
	$(DIRECTORY)/include/GL/glu.h		\
	$(DIRECTORY)/include/GL/glu_mangle.h	\
501
502
503
504
505
506
507
	$(DIRECTORY)/src/glu/mesa/README[12]	\
	$(DIRECTORY)/src/glu/mesa/Makefile*	\
	$(DIRECTORY)/src/glu/mesa/descrip.mms	\
	$(DIRECTORY)/src/glu/mesa/mms_depend	\
	$(DIRECTORY)/src/glu/mesa/*.def		\
	$(DIRECTORY)/src/glu/mesa/depend	\
	$(DIRECTORY)/src/glu/mesa/*.[ch]
508
509
510
511
512
513
514

GLUT_FILES = \
	$(DIRECTORY)/Makefile*			\
	$(DIRECTORY)/Make-config		\
	$(DIRECTORY)/bin/mklib*			\
	$(DIRECTORY)/include/GL/gl.h		\
	$(DIRECTORY)/include/GL/gl_mangle.h	\
515
	$(DIRECTORY)/include/GL/glext.h		\
516
517
518
519
	$(DIRECTORY)/include/GL/glu.h		\
	$(DIRECTORY)/include/GL/glu_mangle.h	\
	$(DIRECTORY)/include/GL/glut.h		\
	$(DIRECTORY)/include/GL/glutf90.h	\
520
521
522
523
524
525
526
	$(DIRECTORY)/src/glut/glx/Makefile*	\
	$(DIRECTORY)/src/glut/glx/depend	\
	$(DIRECTORY)/src/glut/glx/*def		\
	$(DIRECTORY)/src/glut/glx/descrip.mms	\
	$(DIRECTORY)/src/glut/glx/mms_depend	\
	$(DIRECTORY)/src/glut/glx/*.[ch]

527

jtg's avatar
jtg committed
528

529
lib_gz:
530
	cp Makefile.X11 Makefile ; \
jtg's avatar
jtg committed
531
532
533
534
535
	cd .. ; \
	tar -cvf $(LIB_NAME).tar $(LIB_FILES) ; \
	gzip $(LIB_NAME).tar ; \
	mv $(LIB_NAME).tar.gz $(DIRECTORY)

536
demo_gz:
jtg's avatar
jtg committed
537
538
539
540
541
	cd .. ; \
	tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) ; \
	gzip $(DEMO_NAME).tar ; \
	mv $(DEMO_NAME).tar.gz $(DIRECTORY)

542
lib_bz2:
543
544
	cp Makefile.X11 Makefile ; \
	cd .. ; \
545
546
547
	tar -cvf $(LIB_NAME).tar $(LIB_FILES) ; \
	bzip2 $(LIB_NAME).tar ; \
	mv $(LIB_NAME).tar.bz2 $(DIRECTORY)
548

549
demo_bz2:
550
	cd .. ; \
551
552
553
	tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) ; \
	bzip2 $(DEMO_NAME).tar ; \
	mv $(DEMO_NAME).tar.bz2 $(DIRECTORY)
554

jtg's avatar
jtg committed
555
lib_zip:
Brian Paul's avatar
Brian Paul committed
556
	-rm $(LIB_NAME).zip ; \
557
	cp Makefile.X11 Makefile ; \
jtg's avatar
jtg committed
558
559
560
561
562
	cd .. ; \
	zip -r $(LIB_NAME).zip $(LIB_FILES) ; \
	mv $(LIB_NAME).zip $(DIRECTORY)

demo_zip:
Brian Paul's avatar
Brian Paul committed
563
	-rm $(DEMO_NAME).zip ; \
jtg's avatar
jtg committed
564
565
566
567
	cd .. ; \
	zip -r $(DEMO_NAME).zip $(DEMO_FILES) ; \
	mv $(DEMO_NAME).zip $(DIRECTORY)

568
569
570
571
572
573
574
md5:
	@-md5sum $(LIB_NAME).tar.gz
	@-md5sum $(LIB_NAME).tar.bz2
	@-md5sum $(LIB_NAME).zip
	@-md5sum $(DEMO_NAME).tar.gz
	@-md5sum $(DEMO_NAME).tar.bz2
	@-md5sum $(DEMO_NAME).zip
jtg's avatar
jtg committed
575

576
577
# Everything for new Mesa release:
tarballs: lib_gz demo_gz lib_bz2 demo_bz2 lib_zip demo_zip md5
jtg's avatar
jtg committed
578
579


580
581
582
583
584
585
586
# not used
glu_gz:
	cp Makefile.X11 Makefile ; \
	cd .. ; \
	tar -cvf $(GLU_NAME).tar $(GLU_FILES) ; \
	gzip $(GLU_NAME).tar ; \
	mv $(GLU_NAME).tar.gz $(DIRECTORY)
jtg's avatar
jtg committed
587

588
589
590
591
592
593
glut_gz:
	cp Makefile.X11 Makefile ; \
	cd .. ; \
	tar -cvf $(GLUT_NAME).tar $(GLUT_FILES) ; \
	gzip $(GLUT_NAME).tar ; \
	mv $(GLUT_NAME).tar.gz $(DIRECTORY)