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