tree builds
[mesa.git] / Makefile
1 # Top-level Mesa makefile
2
3 TOP = .
4
5 SUBDIRS = src progs
6
7
8 default: $(TOP)/configs/current
9 @for dir in $(SUBDIRS) ; do \
10 if [ -d $$dir ] ; then \
11 (cd $$dir && $(MAKE)) || exit 1 ; \
12 fi \
13 done
14
15 all: default
16
17
18 doxygen:
19 cd doxygen && $(MAKE)
20
21 clean:
22 -@touch $(TOP)/configs/current
23 -@for dir in $(SUBDIRS) ; do \
24 if [ -d $$dir ] ; then \
25 (cd $$dir && $(MAKE) clean) ; \
26 fi \
27 done
28 -@test -s $(TOP)/configs/current || rm -f $(TOP)/configs/current
29
30
31 realclean: clean
32 -rm -rf lib*
33 -rm -f $(TOP)/configs/current
34 -rm -f $(TOP)/configs/autoconf
35 -rm -rf autom4te.cache
36 -find . '(' -name '*.o' -o -name '*.a' -o -name '*.so' -o \
37 -name depend -o -name depend.bak ')' -exec rm -f '{}' ';'
38
39
40 install:
41 @for dir in $(SUBDIRS) ; do \
42 if [ -d $$dir ] ; then \
43 (cd $$dir && $(MAKE) install) || exit 1 ; \
44 fi \
45 done
46
47
48 # DirectFBGL module installation
49 linux-directfb-install:
50 cd src/mesa/drivers/directfb && $(MAKE) install
51
52 .PHONY: default doxygen clean realclean install linux-directfb-install
53
54 # If there's no current configuration file
55 $(TOP)/configs/current:
56 @echo
57 @echo
58 @echo "Please choose a configuration from the following list:"
59 @ls -1 $(TOP)/configs | grep -v "current\|default\|CVS\|autoconf.*"
60 @echo
61 @echo "Then type 'make <config>' (ex: 'make linux-x86')"
62 @echo
63 @echo "Or, run './configure' then 'make'"
64 @echo "See './configure --help' for details"
65 @echo
66 @echo "(ignore the following error message)"
67 @exit 1
68
69
70 # Rules to set/install a specific build configuration
71 aix \
72 aix-64 \
73 aix-64-static \
74 aix-gcc \
75 aix-static \
76 autoconf \
77 bluegene-osmesa \
78 bluegene-xlc-osmesa \
79 beos \
80 catamount-osmesa-pgi \
81 darwin \
82 darwin-fat-32bit \
83 darwin-fat-all \
84 darwin-static \
85 darwin-static-x86ppc \
86 freebsd \
87 freebsd-dri \
88 freebsd-dri-amd64 \
89 freebsd-dri-x86 \
90 hpux10 \
91 hpux10-gcc \
92 hpux10-static \
93 hpux11-32 \
94 hpux11-32-static \
95 hpux11-32-static-nothreads \
96 hpux11-64 \
97 hpux11-64-static \
98 hpux11-ia64 \
99 hpux11-ia64-static \
100 hpux9 \
101 hpux9-gcc \
102 irix6-64 \
103 irix6-64-static \
104 irix6-n32 \
105 irix6-n32-static \
106 irix6-o32 \
107 irix6-o32-static \
108 linux \
109 linux-alpha \
110 linux-alpha-static \
111 linux-cell \
112 linux-debug \
113 linux-directfb \
114 linux-dri \
115 linux-dri-debug \
116 linux-dri-x86 \
117 linux-dri-x86-64 \
118 linux-dri-ppc \
119 linux-dri-xcb \
120 linux-egl \
121 linux-indirect \
122 linux-fbdev \
123 linux-glide \
124 linux-ia64-icc \
125 linux-ia64-icc-static \
126 linux-icc \
127 linux-icc-static \
128 linux-llvm \
129 linux-osmesa \
130 linux-osmesa16 \
131 linux-osmesa16-static \
132 linux-osmesa32 \
133 linux-ppc \
134 linux-ppc-static \
135 linux-profile \
136 linux-solo \
137 linux-solo-x86 \
138 linux-solo-ia64 \
139 linux-sparc \
140 linux-sparc5 \
141 linux-static \
142 linux-ultrasparc \
143 linux-tcc \
144 linux-x86 \
145 linux-x86-debug \
146 linux-x86-32 \
147 linux-x86-64 \
148 linux-x86-64-debug \
149 linux-x86-64-profile \
150 linux-x86-64-static \
151 linux-x86-glide \
152 linux-x86-profile \
153 linux-x86-static \
154 netbsd \
155 openbsd \
156 osf1 \
157 osf1-static \
158 solaris-x86 \
159 solaris-x86-gcc \
160 solaris-x86-gcc-static \
161 sunos4 \
162 sunos4-gcc \
163 sunos4-static \
164 sunos5 \
165 sunos5-gcc \
166 sunos5-64-gcc \
167 sunos5-smp \
168 sunos5-v8 \
169 sunos5-v8-static \
170 sunos5-v9 \
171 sunos5-v9-static \
172 sunos5-v9-cc-g++ \
173 ultrix-gcc:
174 @ if test -f configs/current || test -L configs/current ; then \
175 echo "Please run 'make realclean' before changing configs" ; \
176 exit 1 ; \
177 fi
178 (cd configs && rm -f current && ln -s $@ current)
179 $(MAKE) default
180
181
182 # Rules for making release tarballs
183
184 DIRECTORY = Mesa-7.1-rc4
185 LIB_NAME = MesaLib-7.1-rc4
186 DEMO_NAME = MesaDemos-7.1-rc4
187 GLUT_NAME = MesaGLUT-7.1-rc4
188
189 MAIN_FILES = \
190 $(DIRECTORY)/Makefile* \
191 $(DIRECTORY)/configure \
192 $(DIRECTORY)/configure.ac \
193 $(DIRECTORY)/acinclude.m4 \
194 $(DIRECTORY)/aclocal.m4 \
195 $(DIRECTORY)/descrip.mms \
196 $(DIRECTORY)/mms-config. \
197 $(DIRECTORY)/bin/config.guess \
198 $(DIRECTORY)/bin/config.sub \
199 $(DIRECTORY)/bin/install-sh \
200 $(DIRECTORY)/bin/mklib \
201 $(DIRECTORY)/bin/minstall \
202 $(DIRECTORY)/bin/version.mk \
203 $(DIRECTORY)/configs/[a-z]* \
204 $(DIRECTORY)/docs/*.html \
205 $(DIRECTORY)/docs/COPYING \
206 $(DIRECTORY)/docs/README.* \
207 $(DIRECTORY)/docs/RELNOTES* \
208 $(DIRECTORY)/docs/*.spec \
209 $(DIRECTORY)/include/GL/internal/glcore.h \
210 $(DIRECTORY)/include/GL/amesa.h \
211 $(DIRECTORY)/include/GL/dmesa.h \
212 $(DIRECTORY)/include/GL/fxmesa.h \
213 $(DIRECTORY)/include/GL/ggimesa.h \
214 $(DIRECTORY)/include/GL/gl.h \
215 $(DIRECTORY)/include/GL/glext.h \
216 $(DIRECTORY)/include/GL/gl_mangle.h \
217 $(DIRECTORY)/include/GL/glu.h \
218 $(DIRECTORY)/include/GL/glu_mangle.h \
219 $(DIRECTORY)/include/GL/glx.h \
220 $(DIRECTORY)/include/GL/glxext.h \
221 $(DIRECTORY)/include/GL/glx_mangle.h \
222 $(DIRECTORY)/include/GL/glfbdev.h \
223 $(DIRECTORY)/include/GL/mesa_wgl.h \
224 $(DIRECTORY)/include/GL/mglmesa.h \
225 $(DIRECTORY)/include/GL/osmesa.h \
226 $(DIRECTORY)/include/GL/svgamesa.h \
227 $(DIRECTORY)/include/GL/ugl*.h \
228 $(DIRECTORY)/include/GL/vms_x_fix.h \
229 $(DIRECTORY)/include/GL/wmesa.h \
230 $(DIRECTORY)/include/GL/xmesa.h \
231 $(DIRECTORY)/include/GL/xmesa_x.h \
232 $(DIRECTORY)/include/GL/xmesa_xf86.h \
233 $(DIRECTORY)/include/GLView.h \
234 $(DIRECTORY)/src/Makefile \
235 $(DIRECTORY)/src/descrip.mms \
236 $(DIRECTORY)/src/mesa/Makefile* \
237 $(DIRECTORY)/src/mesa/sources \
238 $(DIRECTORY)/src/mesa/descrip.mms \
239 $(DIRECTORY)/src/mesa/gl.pc.in \
240 $(DIRECTORY)/src/mesa/depend \
241 $(DIRECTORY)/src/mesa/main/*.[chS] \
242 $(DIRECTORY)/src/mesa/main/descrip.mms \
243 $(DIRECTORY)/src/mesa/glapi/*.[chS] \
244 $(DIRECTORY)/src/mesa/glapi/descrip.mms \
245 $(DIRECTORY)/src/mesa/math/*.[ch] \
246 $(DIRECTORY)/src/mesa/math/descrip.mms \
247 $(DIRECTORY)/src/mesa/shader/*.[ch] \
248 $(DIRECTORY)/src/mesa/shader/descrip.mms \
249 $(DIRECTORY)/src/mesa/shader/grammar/*.[ch] \
250 $(DIRECTORY)/src/mesa/shader/grammar/descrip.mms \
251 $(DIRECTORY)/src/mesa/shader/slang/*.[ch] \
252 $(DIRECTORY)/src/mesa/shader/slang/descrip.mms \
253 $(DIRECTORY)/src/mesa/shader/slang/library/*.[ch] \
254 $(DIRECTORY)/src/mesa/shader/slang/library/*.gc \
255 $(DIRECTORY)/src/mesa/shader/slang/library/*.syn \
256 $(DIRECTORY)/src/mesa/shader/slang/library/Makefile \
257 $(DIRECTORY)/src/mesa/swrast/*.[ch] \
258 $(DIRECTORY)/src/mesa/swrast/descrip.mms \
259 $(DIRECTORY)/src/mesa/swrast_setup/*.[ch] \
260 $(DIRECTORY)/src/mesa/swrast_setup/descrip.mms \
261 $(DIRECTORY)/src/mesa/vbo/*.[chS] \
262 $(DIRECTORY)/src/mesa/vbo/descrip.mms \
263 $(DIRECTORY)/src/mesa/tnl/*.[chS] \
264 $(DIRECTORY)/src/mesa/tnl/descrip.mms \
265 $(DIRECTORY)/src/mesa/tnl_dd/*.[ch] \
266 $(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch] \
267 $(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm \
268 $(DIRECTORY)/src/mesa/drivers/Makefile \
269 $(DIRECTORY)/src/mesa/drivers/beos/*.cpp \
270 $(DIRECTORY)/src/mesa/drivers/beos/Makefile \
271 $(DIRECTORY)/src/mesa/drivers/common/*.[ch] \
272 $(DIRECTORY)/src/mesa/drivers/common/descrip.mms \
273 $(DIRECTORY)/src/mesa/drivers/directfb/*.[ch] \
274 $(DIRECTORY)/src/mesa/drivers/directfb/Makefile \
275 $(DIRECTORY)/src/mesa/drivers/dos/*.[chS] \
276 $(DIRECTORY)/src/mesa/drivers/fbdev/Makefile \
277 $(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c \
278 $(DIRECTORY)/src/mesa/drivers/glide/*.[ch] \
279 $(DIRECTORY)/src/mesa/drivers/ggi/*.[ch] \
280 $(DIRECTORY)/src/mesa/drivers/ggi/ggimesa.conf.in \
281 $(DIRECTORY)/src/mesa/drivers/ggi/default/*.c \
282 $(DIRECTORY)/src/mesa/drivers/ggi/default/genkgi.conf.in \
283 $(DIRECTORY)/src/mesa/drivers/ggi/display/*.c \
284 $(DIRECTORY)/src/mesa/drivers/ggi/display/fbdev.conf.in \
285 $(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/*.h \
286 $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile \
287 $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win \
288 $(DIRECTORY)/src/mesa/drivers/osmesa/descrip.mms \
289 $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def \
290 $(DIRECTORY)/src/mesa/drivers/osmesa/*.[ch] \
291 $(DIRECTORY)/src/mesa/drivers/svga/*.[ch] \
292 $(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch] \
293 $(DIRECTORY)/src/mesa/drivers/windows/*/*.def \
294 $(DIRECTORY)/src/mesa/drivers/x11/Makefile \
295 $(DIRECTORY)/src/mesa/drivers/x11/descrip.mms \
296 $(DIRECTORY)/src/mesa/drivers/x11/*.[ch] \
297 $(DIRECTORY)/src/mesa/ppc/*.[ch] \
298 $(DIRECTORY)/src/mesa/sparc/*.[chS] \
299 $(DIRECTORY)/src/mesa/x86/Makefile \
300 $(DIRECTORY)/src/mesa/x86/*.[ch] \
301 $(DIRECTORY)/src/mesa/x86/*.S \
302 $(DIRECTORY)/src/mesa/x86/rtasm/*.[ch] \
303 $(DIRECTORY)/src/mesa/x86-64/*.[chS] \
304 $(DIRECTORY)/src/mesa/x86-64/Makefile \
305 $(DIRECTORY)/progs/Makefile \
306 $(DIRECTORY)/progs/util/README \
307 $(DIRECTORY)/progs/util/*.[ch] \
308 $(DIRECTORY)/progs/util/sampleMakefile \
309 $(DIRECTORY)/vms/analyze_map.com \
310 $(DIRECTORY)/vms/xlib.opt \
311 $(DIRECTORY)/vms/xlib_share.opt \
312 $(DIRECTORY)/windows/VC8/mesa/mesa.sln \
313 $(DIRECTORY)/windows/VC8/mesa/gdi/gdi.vcproj \
314 $(DIRECTORY)/windows/VC8/mesa/glu/glu.vcproj \
315 $(DIRECTORY)/windows/VC8/mesa/mesa/mesa.vcproj \
316 $(DIRECTORY)/windows/VC8/mesa/osmesa/osmesa.vcproj \
317 $(DIRECTORY)/windows/VC8/progs/progs.sln \
318 $(DIRECTORY)/windows/VC8/progs/demos/gears.vcproj \
319 $(DIRECTORY)/windows/VC8/progs/glut/glut.vcproj
320
321
322 DRI_FILES = \
323 $(DIRECTORY)/include/GL/internal/dri_interface.h \
324 $(DIRECTORY)/include/GL/internal/dri_sarea.h \
325 $(DIRECTORY)/include/GL/internal/sarea.h \
326 $(DIRECTORY)/src/glx/Makefile \
327 $(DIRECTORY)/src/glx/x11/Makefile \
328 $(DIRECTORY)/src/glx/x11/*.[ch] \
329 $(DIRECTORY)/src/mesa/drivers/dri/Makefile \
330 $(DIRECTORY)/src/mesa/drivers/dri/Makefile.template \
331 $(DIRECTORY)/src/mesa/drivers/dri/dri.pc.in \
332 $(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.[ch] \
333 $(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.po \
334 $(DIRECTORY)/src/mesa/drivers/dri/*/*.[chS] \
335 $(DIRECTORY)/src/mesa/drivers/dri/*/Makefile \
336 $(DIRECTORY)/src/mesa/drivers/dri/*/Doxyfile \
337 $(DIRECTORY)/src/mesa/drivers/dri/*/server/*.[ch]
338
339 SGI_GLU_FILES = \
340 $(DIRECTORY)/src/glu/Makefile \
341 $(DIRECTORY)/src/glu/descrip.mms \
342 $(DIRECTORY)/src/glu/glu.pc.in \
343 $(DIRECTORY)/src/glu/sgi/Makefile \
344 $(DIRECTORY)/src/glu/sgi/Makefile.mgw \
345 $(DIRECTORY)/src/glu/sgi/Makefile.win \
346 $(DIRECTORY)/src/glu/sgi/Makefile.DJ \
347 $(DIRECTORY)/src/glu/sgi/glu.def \
348 $(DIRECTORY)/src/glu/sgi/dummy.cc \
349 $(DIRECTORY)/src/glu/sgi/descrip.mms \
350 $(DIRECTORY)/src/glu/sgi/glu.exports \
351 $(DIRECTORY)/src/glu/sgi/glu.exports.darwin \
352 $(DIRECTORY)/src/glu/sgi/mesaglu.opt \
353 $(DIRECTORY)/src/glu/sgi/include/gluos.h \
354 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \
355 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc \
356 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h \
357 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc \
358 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.h \
359 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.cc \
360 $(DIRECTORY)/src/glu/sgi/libtess/README \
361 $(DIRECTORY)/src/glu/sgi/libtess/alg-outline \
362 $(DIRECTORY)/src/glu/sgi/libtess/*.[ch] \
363 $(DIRECTORY)/src/glu/sgi/libutil/*.[ch]
364
365 MESA_GLU_FILES = \
366 $(DIRECTORY)/src/glu/mesa/README[12] \
367 $(DIRECTORY)/src/glu/mesa/Makefile* \
368 $(DIRECTORY)/src/glu/mesa/descrip.mms \
369 $(DIRECTORY)/src/glu/mesa/mms_depend \
370 $(DIRECTORY)/src/glu/mesa/*.def \
371 $(DIRECTORY)/src/glu/mesa/depend \
372 $(DIRECTORY)/src/glu/mesa/*.[ch]
373
374 GLW_FILES = \
375 $(DIRECTORY)/src/glw/*.[ch] \
376 $(DIRECTORY)/src/glw/Makefile* \
377 $(DIRECTORY)/src/glw/README \
378 $(DIRECTORY)/src/glw/glw.pc.in \
379 $(DIRECTORY)/src/glw/depend
380
381 DEMO_FILES = \
382 $(DIRECTORY)/progs/beos/*.cpp \
383 $(DIRECTORY)/progs/beos/Makefile \
384 $(DIRECTORY)/progs/images/*.rgb \
385 $(DIRECTORY)/progs/images/*.rgba \
386 $(DIRECTORY)/progs/demos/Makefile* \
387 $(DIRECTORY)/progs/demos/descrip.mms \
388 $(DIRECTORY)/progs/demos/*.[ch] \
389 $(DIRECTORY)/progs/demos/*.cxx \
390 $(DIRECTORY)/progs/demos/*.dat \
391 $(DIRECTORY)/progs/demos/README \
392 $(DIRECTORY)/progs/fbdev/Makefile \
393 $(DIRECTORY)/progs/fbdev/glfbdevtest.c \
394 $(DIRECTORY)/progs/osdemos/Makefile \
395 $(DIRECTORY)/progs/osdemos/*.c \
396 $(DIRECTORY)/progs/xdemos/Makefile* \
397 $(DIRECTORY)/progs/xdemos/descrip.mms \
398 $(DIRECTORY)/progs/xdemos/*.[chf] \
399 $(DIRECTORY)/progs/redbook/Makefile* \
400 $(DIRECTORY)/progs/redbook/README \
401 $(DIRECTORY)/progs/redbook/*.[ch] \
402 $(DIRECTORY)/progs/samples/Makefile* \
403 $(DIRECTORY)/progs/samples/README \
404 $(DIRECTORY)/progs/samples/*.c \
405 $(DIRECTORY)/progs/glsl/Makefile* \
406 $(DIRECTORY)/progs/glsl/*.c \
407 $(DIRECTORY)/progs/glsl/*.frag \
408 $(DIRECTORY)/progs/glsl/*.vert \
409 $(DIRECTORY)/progs/windml/Makefile.ugl \
410 $(DIRECTORY)/progs/windml/*.c \
411 $(DIRECTORY)/progs/windml/*.bmp \
412 $(DIRECTORY)/progs/ggi/*.c \
413 $(DIRECTORY)/windows/VC6/progs/demos/*.dsp \
414 $(DIRECTORY)/windows/VC6/progs/progs.dsw \
415 $(DIRECTORY)/windows/VC7/progs/demos/*.vcproj \
416 $(DIRECTORY)/windows/VC7/progs/progs.sln
417
418 GLUT_FILES = \
419 $(DIRECTORY)/include/GL/glut.h \
420 $(DIRECTORY)/include/GL/glutf90.h \
421 $(DIRECTORY)/src/glut/glx/Makefile* \
422 $(DIRECTORY)/src/glut/glx/depend \
423 $(DIRECTORY)/src/glut/glx/glut.pc.in \
424 $(DIRECTORY)/src/glut/glx/*def \
425 $(DIRECTORY)/src/glut/glx/descrip.mms \
426 $(DIRECTORY)/src/glut/glx/mms_depend \
427 $(DIRECTORY)/src/glut/glx/*.[ch] \
428 $(DIRECTORY)/src/glut/beos/*.[ch] \
429 $(DIRECTORY)/src/glut/beos/*.cpp \
430 $(DIRECTORY)/src/glut/beos/Makefile \
431 $(DIRECTORY)/src/glut/dos/*.[ch] \
432 $(DIRECTORY)/src/glut/dos/Makefile.DJ \
433 $(DIRECTORY)/src/glut/dos/PC_HW/*.[chS] \
434 $(DIRECTORY)/src/glut/ggi/*.[ch] \
435 $(DIRECTORY)/src/glut/ggi/Makefile \
436 $(DIRECTORY)/src/glut/fbdev/Makefile \
437 $(DIRECTORY)/src/glut/fbdev/*[ch] \
438 $(DIRECTORY)/src/glut/mini/*[ch] \
439 $(DIRECTORY)/src/glut/mini/glut.pc.in \
440 $(DIRECTORY)/src/glut/directfb/Makefile \
441 $(DIRECTORY)/src/glut/directfb/NOTES \
442 $(DIRECTORY)/src/glut/directfb/*[ch] \
443 $(DIRECTORY)/windows/VC6/progs/glut/glut.dsp \
444 $(DIRECTORY)/windows/VC7/progs/glut/glut.vcproj
445
446 DEPEND_FILES = \
447 $(TOP)/src/mesa/depend \
448 $(TOP)/src/glx/x11/depend \
449 $(TOP)/src/glw/depend \
450 $(TOP)/src/glut/glx/depend \
451 $(TOP)/src/glu/sgi/depend
452
453
454 LIB_FILES = $(MAIN_FILES) $(DRI_FILES) $(SGI_GLU_FILES) $(GLW_FILES)
455
456
457 # Everything for new a Mesa release:
458 tarballs: rm_depend configure aclocal.m4 lib_gz demo_gz glut_gz \
459 lib_bz2 demo_bz2 glut_bz2 lib_zip demo_zip glut_zip md5
460
461
462 # Helper for autoconf builds
463 ACLOCAL = aclocal
464 ACLOCAL_FLAGS =
465 AUTOCONF = autoconf
466 AC_FLAGS =
467 aclocal.m4: configure.ac acinclude.m4
468 $(ACLOCAL) $(ACLOCAL_FLAGS)
469 configure: configure.ac aclocal.m4 acinclude.m4
470 $(AUTOCONF) $(AC_FLAGS)
471
472 rm_depend:
473 @for dep in $(DEPEND_FILES) ; do \
474 rm -f $$dep ; \
475 touch $$dep ; \
476 done
477
478 lib_gz:
479 rm -f configs/current ; \
480 rm -f configs/autoconf ; \
481 cd .. ; \
482 tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
483 gzip $(LIB_NAME).tar ; \
484 mv $(LIB_NAME).tar.gz $(DIRECTORY)
485
486 demo_gz:
487 cd .. ; \
488 tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \
489 gzip $(DEMO_NAME).tar ; \
490 mv $(DEMO_NAME).tar.gz $(DIRECTORY)
491
492 glut_gz:
493 cd .. ; \
494 tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \
495 gzip $(GLUT_NAME).tar ; \
496 mv $(GLUT_NAME).tar.gz $(DIRECTORY)
497
498 lib_bz2:
499 rm -f configs/current ; \
500 rm -f configs/autoconf ; \
501 cd .. ; \
502 tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
503 bzip2 $(LIB_NAME).tar ; \
504 mv $(LIB_NAME).tar.bz2 $(DIRECTORY)
505
506 demo_bz2:
507 cd .. ; \
508 tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \
509 bzip2 $(DEMO_NAME).tar ; \
510 mv $(DEMO_NAME).tar.bz2 $(DIRECTORY)
511
512 glut_bz2:
513 cd .. ; \
514 tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \
515 bzip2 $(GLUT_NAME).tar ; \
516 mv $(GLUT_NAME).tar.bz2 $(DIRECTORY)
517
518 lib_zip:
519 rm -f configs/current ; \
520 rm -f configs/autoconf ; \
521 rm -f $(LIB_NAME).zip ; \
522 cd .. ; \
523 zip -qr $(LIB_NAME).zip $(LIB_FILES) ; \
524 mv $(LIB_NAME).zip $(DIRECTORY)
525
526 demo_zip:
527 rm -f $(DEMO_NAME).zip ; \
528 cd .. ; \
529 zip -qr $(DEMO_NAME).zip $(DEMO_FILES) ; \
530 mv $(DEMO_NAME).zip $(DIRECTORY)
531
532 glut_zip:
533 rm -f $(GLUT_NAME).zip ; \
534 cd .. ; \
535 zip -qr $(GLUT_NAME).zip $(GLUT_FILES) ; \
536 mv $(GLUT_NAME).zip $(DIRECTORY)
537
538 md5:
539 @-md5sum $(LIB_NAME).tar.gz
540 @-md5sum $(LIB_NAME).tar.bz2
541 @-md5sum $(LIB_NAME).zip
542 @-md5sum $(DEMO_NAME).tar.gz
543 @-md5sum $(DEMO_NAME).tar.bz2
544 @-md5sum $(DEMO_NAME).zip
545 @-md5sum $(GLUT_NAME).tar.gz
546 @-md5sum $(GLUT_NAME).tar.bz2
547 @-md5sum $(GLUT_NAME).zip
548
549 .PHONY: tarballs rm_depend lib_gz demo_gz glut_gz lib_bz2 demo_bz2 \
550 glut_bz2 lib_zip demo_zip glut_zip md5