egl: Add Makefile.template for EGL drivers.
[mesa/nouveau-pmpeg.git] / Makefile
blob16395bcc8b99f4863a2f5ea717e7683a3c827901
1 # Top-level Mesa makefile
3 TOP = .
5 SUBDIRS = src progs
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
15 all: default
18 doxygen:
19 cd doxygen && $(MAKE)
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
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 '{}' ';'
40 distclean: realclean
43 install:
44 @for dir in $(SUBDIRS) ; do \
45 if [ -d $$dir ] ; then \
46 (cd $$dir && $(MAKE) install) || exit 1 ; \
47 fi \
48 done
51 .PHONY: default doxygen clean realclean distclean install linux-directfb-install
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
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 darwin-static \
84 darwin-static-x86ppc \
85 freebsd \
86 freebsd-dri \
87 freebsd-dri-amd64 \
88 freebsd-dri-x86 \
89 hpux10 \
90 hpux10-gcc \
91 hpux10-static \
92 hpux11-32 \
93 hpux11-32-static \
94 hpux11-32-static-nothreads \
95 hpux11-64 \
96 hpux11-64-static \
97 hpux11-ia64 \
98 hpux11-ia64-static \
99 hpux9 \
100 hpux9-gcc \
101 irix6-64 \
102 irix6-64-static \
103 irix6-n32 \
104 irix6-n32-static \
105 irix6-o32 \
106 irix6-o32-static \
107 linux \
108 linux-i965 \
109 linux-alpha \
110 linux-alpha-static \
111 linux-cell \
112 linux-cell-debug \
113 linux-debug \
114 linux-directfb \
115 linux-dri \
116 linux-dri-debug \
117 linux-dri-x86 \
118 linux-dri-x86-64 \
119 linux-dri-ppc \
120 linux-dri-xcb \
121 linux-egl \
122 linux-indirect \
123 linux-fbdev \
124 linux-glide \
125 linux-ia64-icc \
126 linux-ia64-icc-static \
127 linux-icc \
128 linux-icc-static \
129 linux-llvm \
130 linux-opengl-es \
131 linux-osmesa \
132 linux-osmesa-static \
133 linux-osmesa16 \
134 linux-osmesa16-static \
135 linux-osmesa32 \
136 linux-ppc \
137 linux-ppc-static \
138 linux-profile \
139 linux-solo \
140 linux-solo-x86 \
141 linux-solo-ia64 \
142 linux-sparc \
143 linux-sparc5 \
144 linux-static \
145 linux-ultrasparc \
146 linux-tcc \
147 linux-x86 \
148 linux-x86-debug \
149 linux-x86-32 \
150 linux-x86-64 \
151 linux-x86-64-debug \
152 linux-x86-64-profile \
153 linux-x86-64-static \
154 linux-x86-glide \
155 linux-x86-profile \
156 linux-x86-static \
157 netbsd \
158 openbsd \
159 osf1 \
160 osf1-static \
161 solaris-x86 \
162 solaris-x86-gcc \
163 solaris-x86-gcc-static \
164 sunos4 \
165 sunos4-gcc \
166 sunos4-static \
167 sunos5 \
168 sunos5-gcc \
169 sunos5-64-gcc \
170 sunos5-smp \
171 sunos5-v8 \
172 sunos5-v8-static \
173 sunos5-v9 \
174 sunos5-v9-static \
175 sunos5-v9-cc-g++ \
176 ultrix-gcc:
177 @ if test -f configs/current || test -L configs/current ; then \
178 echo "Please run 'make realclean' before changing configs" ; \
179 exit 1 ; \
181 (cd configs && rm -f current && ln -s $@ current)
182 $(MAKE) default
185 # Rules for making release tarballs
187 VERSION=7.7
188 DIRECTORY = Mesa-$(VERSION)
189 LIB_NAME = MesaLib-$(VERSION)
190 DEMO_NAME = MesaDemos-$(VERSION)
191 GLUT_NAME = MesaGLUT-$(VERSION)
193 MAIN_FILES = \
194 $(DIRECTORY)/Makefile* \
195 $(DIRECTORY)/configure \
196 $(DIRECTORY)/configure.ac \
197 $(DIRECTORY)/acinclude.m4 \
198 $(DIRECTORY)/aclocal.m4 \
199 $(DIRECTORY)/bin/config.guess \
200 $(DIRECTORY)/bin/config.sub \
201 $(DIRECTORY)/bin/install-sh \
202 $(DIRECTORY)/bin/mklib \
203 $(DIRECTORY)/bin/minstall \
204 $(DIRECTORY)/bin/version.mk \
205 $(DIRECTORY)/configs/[a-z]* \
206 $(DIRECTORY)/docs/*.html \
207 $(DIRECTORY)/docs/COPYING \
208 $(DIRECTORY)/docs/README.* \
209 $(DIRECTORY)/docs/RELNOTES* \
210 $(DIRECTORY)/docs/*.spec \
211 $(DIRECTORY)/include/GL/internal/glcore.h \
212 $(DIRECTORY)/include/GL/dmesa.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/vms_x_fix.h \
228 $(DIRECTORY)/include/GL/wglext.h \
229 $(DIRECTORY)/include/GL/wmesa.h \
230 $(DIRECTORY)/src/glsl/Makefile \
231 $(DIRECTORY)/src/glsl/Makefile.template \
232 $(DIRECTORY)/src/glsl/*/Makefile \
233 $(DIRECTORY)/src/glsl/*/SConscript \
234 $(DIRECTORY)/src/glsl/*/*.[ch] \
235 $(DIRECTORY)/src/Makefile \
236 $(DIRECTORY)/src/mesa/Makefile* \
237 $(DIRECTORY)/src/mesa/sources.mak \
238 $(DIRECTORY)/src/mesa/descrip.mms \
239 $(DIRECTORY)/src/mesa/gl.pc.in \
240 $(DIRECTORY)/src/mesa/osmesa.pc.in \
241 $(DIRECTORY)/src/mesa/depend \
242 $(DIRECTORY)/src/mesa/main/*.[chS] \
243 $(DIRECTORY)/src/mesa/main/descrip.mms \
244 $(DIRECTORY)/src/mesa/glapi/*.[chS] \
245 $(DIRECTORY)/src/mesa/math/*.[ch] \
246 $(DIRECTORY)/src/mesa/math/descrip.mms \
247 $(DIRECTORY)/src/mesa/shader/*.[chly] \
248 $(DIRECTORY)/src/mesa/shader/Makefile \
249 $(DIRECTORY)/src/mesa/shader/descrip.mms \
250 $(DIRECTORY)/src/mesa/shader/slang/*.[ch] \
251 $(DIRECTORY)/src/mesa/shader/slang/descrip.mms \
252 $(DIRECTORY)/src/mesa/shader/slang/library/*.[ch] \
253 $(DIRECTORY)/src/mesa/shader/slang/library/*.gc \
254 $(DIRECTORY)/src/mesa/shader/slang/library/*.syn \
255 $(DIRECTORY)/src/mesa/shader/slang/library/Makefile \
256 $(DIRECTORY)/src/mesa/swrast/*.[ch] \
257 $(DIRECTORY)/src/mesa/swrast/descrip.mms \
258 $(DIRECTORY)/src/mesa/swrast_setup/*.[ch] \
259 $(DIRECTORY)/src/mesa/swrast_setup/descrip.mms \
260 $(DIRECTORY)/src/mesa/vbo/*.[chS] \
261 $(DIRECTORY)/src/mesa/vbo/descrip.mms \
262 $(DIRECTORY)/src/mesa/tnl/*.[chS] \
263 $(DIRECTORY)/src/mesa/tnl/descrip.mms \
264 $(DIRECTORY)/src/mesa/tnl_dd/*.[ch] \
265 $(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch] \
266 $(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm \
267 $(DIRECTORY)/src/mesa/drivers/Makefile \
268 $(DIRECTORY)/src/mesa/drivers/beos/*.cpp \
269 $(DIRECTORY)/src/mesa/drivers/beos/Makefile \
270 $(DIRECTORY)/src/mesa/drivers/common/*.[ch] \
271 $(DIRECTORY)/src/mesa/drivers/common/descrip.mms \
272 $(DIRECTORY)/src/mesa/drivers/directfb/*.[ch] \
273 $(DIRECTORY)/src/mesa/drivers/directfb/Makefile \
274 $(DIRECTORY)/src/mesa/drivers/dos/*.[chS] \
275 $(DIRECTORY)/src/mesa/drivers/fbdev/Makefile \
276 $(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c \
277 $(DIRECTORY)/src/mesa/drivers/glide/*.[ch] \
278 $(DIRECTORY)/src/mesa/drivers/ggi/*.[ch] \
279 $(DIRECTORY)/src/mesa/drivers/ggi/ggimesa.conf.in \
280 $(DIRECTORY)/src/mesa/drivers/ggi/default/*.c \
281 $(DIRECTORY)/src/mesa/drivers/ggi/default/genkgi.conf.in \
282 $(DIRECTORY)/src/mesa/drivers/ggi/display/*.c \
283 $(DIRECTORY)/src/mesa/drivers/ggi/display/fbdev.conf.in \
284 $(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/*.h \
285 $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile \
286 $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win \
287 $(DIRECTORY)/src/mesa/drivers/osmesa/descrip.mms \
288 $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def \
289 $(DIRECTORY)/src/mesa/drivers/osmesa/*.[ch] \
290 $(DIRECTORY)/src/mesa/drivers/svga/*.[ch] \
291 $(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch] \
292 $(DIRECTORY)/src/mesa/drivers/windows/*/*.def \
293 $(DIRECTORY)/src/mesa/drivers/x11/Makefile \
294 $(DIRECTORY)/src/mesa/drivers/x11/descrip.mms \
295 $(DIRECTORY)/src/mesa/drivers/x11/*.[ch] \
296 $(DIRECTORY)/src/mesa/drivers/glslcompiler/Makefile \
297 $(DIRECTORY)/src/mesa/drivers/glslcompiler/glslcompiler.c \
298 $(DIRECTORY)/src/mesa/ppc/*.[ch] \
299 $(DIRECTORY)/src/mesa/sparc/*.[chS] \
300 $(DIRECTORY)/src/mesa/x86/Makefile \
301 $(DIRECTORY)/src/mesa/x86/*.[ch] \
302 $(DIRECTORY)/src/mesa/x86/*.S \
303 $(DIRECTORY)/src/mesa/x86/rtasm/*.[ch] \
304 $(DIRECTORY)/src/mesa/x86-64/*.[chS] \
305 $(DIRECTORY)/src/mesa/x86-64/Makefile \
306 $(DIRECTORY)/progs/Makefile \
307 $(DIRECTORY)/progs/util/README \
308 $(DIRECTORY)/progs/util/*.[ch] \
309 $(DIRECTORY)/progs/util/sampleMakefile \
310 $(DIRECTORY)/windows/VC8/
312 ES_FILES = \
313 $(DIRECTORY)/include/GLES/*.h \
314 $(DIRECTORY)/include/GLES2/*.h \
315 $(DIRECTORY)/src/mesa/glapi/*.xml \
316 $(DIRECTORY)/src/mesa/glapi/*.py \
317 $(DIRECTORY)/src/mesa/glapi/*.dtd \
318 $(DIRECTORY)/src/mesa/es/glapi/Makefile \
319 $(DIRECTORY)/src/mesa/es/glapi/*.xml \
320 $(DIRECTORY)/src/mesa/es/glapi/*.py \
321 $(DIRECTORY)/src/mesa/es/state_tracker/*.[ch] \
322 $(DIRECTORY)/src/mesa/es/main/*.[ch] \
323 $(DIRECTORY)/src/mesa/es/main/*.xml \
324 $(DIRECTORY)/src/mesa/es/main/*.py \
325 $(DIRECTORY)/src/mesa/es/main/*.dtd \
326 $(DIRECTORY)/src/mesa/es/Makefile \
327 $(DIRECTORY)/src/mesa/es/sources.mak \
329 EGL_FILES = \
330 $(DIRECTORY)/include/EGL/*.h \
331 $(DIRECTORY)/src/egl/Makefile \
332 $(DIRECTORY)/src/egl/*/Makefile \
333 $(DIRECTORY)/src/egl/*/*.[ch] \
334 $(DIRECTORY)/src/egl/*/*/Makefile \
335 $(DIRECTORY)/src/egl/*/*/*.[ch] \
337 GALLIUM_FILES = \
338 $(DIRECTORY)/src/mesa/state_tracker/*[ch] \
339 $(DIRECTORY)/src/gallium/Makefile \
340 $(DIRECTORY)/src/gallium/Makefile.template \
341 $(DIRECTORY)/src/gallium/SConscript \
342 $(DIRECTORY)/src/gallium/*/Makefile \
343 $(DIRECTORY)/src/gallium/*/SConscript \
344 $(DIRECTORY)/src/gallium/*/*/Makefile \
345 $(DIRECTORY)/src/gallium/*/*/Makefile.template \
346 $(DIRECTORY)/src/gallium/*/*/SConscript \
347 $(DIRECTORY)/src/gallium/*/*/*.[ch] \
348 $(DIRECTORY)/src/gallium/*/*/*.py \
349 $(DIRECTORY)/src/gallium/*/*/*.csv \
350 $(DIRECTORY)/src/gallium/*/*/*/Makefile \
351 $(DIRECTORY)/src/gallium/*/*/*/SConscript \
352 $(DIRECTORY)/src/gallium/*/*/*/*.[ch] \
353 $(DIRECTORY)/src/gallium/*/*/*/*.py \
354 $(DIRECTORY)/src/gallium/*/*/*/*/Makefile \
355 $(DIRECTORY)/src/gallium/*/*/*/*/*.[ch] \
358 DRI_FILES = \
359 $(DIRECTORY)/include/GL/internal/dri_interface.h \
360 $(DIRECTORY)/include/GL/internal/glcore.h \
361 $(DIRECTORY)/include/GL/internal/sarea.h \
362 $(DIRECTORY)/src/glx/Makefile \
363 $(DIRECTORY)/src/glx/x11/Makefile \
364 $(DIRECTORY)/src/glx/x11/*.[ch] \
365 $(DIRECTORY)/src/mesa/drivers/dri/Makefile \
366 $(DIRECTORY)/src/mesa/drivers/dri/Makefile.template \
367 $(DIRECTORY)/src/mesa/drivers/dri/dri.pc.in \
368 $(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.[ch] \
369 $(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.po \
370 $(DIRECTORY)/src/mesa/drivers/dri/*/*.[chS] \
371 $(DIRECTORY)/src/mesa/drivers/dri/*/*/*.[chS] \
372 $(DIRECTORY)/src/mesa/drivers/dri/*/Makefile \
373 $(DIRECTORY)/src/mesa/drivers/dri/*/*/Makefile \
374 $(DIRECTORY)/src/mesa/drivers/dri/*/Doxyfile \
375 $(DIRECTORY)/src/mesa/drivers/dri/*/server/*.[ch]
377 SGI_GLU_FILES = \
378 $(DIRECTORY)/src/glu/Makefile \
379 $(DIRECTORY)/src/glu/glu.pc.in \
380 $(DIRECTORY)/src/glu/sgi/Makefile \
381 $(DIRECTORY)/src/glu/sgi/Makefile.mgw \
382 $(DIRECTORY)/src/glu/sgi/Makefile.win \
383 $(DIRECTORY)/src/glu/sgi/glu.def \
384 $(DIRECTORY)/src/glu/sgi/dummy.cc \
385 $(DIRECTORY)/src/glu/sgi/glu.exports \
386 $(DIRECTORY)/src/glu/sgi/glu.exports.darwin \
387 $(DIRECTORY)/src/glu/sgi/mesaglu.opt \
388 $(DIRECTORY)/src/glu/sgi/include/gluos.h \
389 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \
390 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc \
391 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h \
392 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc \
393 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.h \
394 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.cc \
395 $(DIRECTORY)/src/glu/sgi/libtess/README \
396 $(DIRECTORY)/src/glu/sgi/libtess/alg-outline \
397 $(DIRECTORY)/src/glu/sgi/libtess/*.[ch] \
398 $(DIRECTORY)/src/glu/sgi/libutil/*.[ch]
400 MESA_GLU_FILES = \
401 $(DIRECTORY)/src/glu/mesa/README[12] \
402 $(DIRECTORY)/src/glu/mesa/Makefile* \
403 $(DIRECTORY)/src/glu/mesa/descrip.mms \
404 $(DIRECTORY)/src/glu/mesa/mms_depend \
405 $(DIRECTORY)/src/glu/mesa/*.def \
406 $(DIRECTORY)/src/glu/mesa/depend \
407 $(DIRECTORY)/src/glu/mesa/*.[ch]
409 GLW_FILES = \
410 $(DIRECTORY)/src/glw/*.[ch] \
411 $(DIRECTORY)/src/glw/Makefile* \
412 $(DIRECTORY)/src/glw/README \
413 $(DIRECTORY)/src/glw/glw.pc.in \
414 $(DIRECTORY)/src/glw/depend
416 GLEW_FILES = \
417 $(DIRECTORY)/include/GL/glew.h \
418 $(DIRECTORY)/include/GL/glxew.h \
419 $(DIRECTORY)/include/GL/wglew.h \
420 $(DIRECTORY)/src/glew/*.c \
421 $(DIRECTORY)/src/glew/Makefile \
422 $(DIRECTORY)/src/glew/SConscript \
423 $(DIRECTORY)/src/glew/LICENSE.txt
425 DEMO_FILES = \
426 $(GLEW_FILES) \
427 $(DIRECTORY)/progs/beos/*.cpp \
428 $(DIRECTORY)/progs/beos/Makefile \
429 $(DIRECTORY)/progs/images/*.rgb \
430 $(DIRECTORY)/progs/images/*.rgba \
431 $(DIRECTORY)/progs/demos/Makefile* \
432 $(DIRECTORY)/progs/demos/descrip.mms \
433 $(DIRECTORY)/progs/demos/*.[ch] \
434 $(DIRECTORY)/progs/demos/*.cxx \
435 $(DIRECTORY)/progs/demos/*.dat \
436 $(DIRECTORY)/progs/demos/README \
437 $(DIRECTORY)/progs/fbdev/Makefile \
438 $(DIRECTORY)/progs/fbdev/glfbdevtest.c \
439 $(DIRECTORY)/progs/objviewer/*.[ch] \
440 $(DIRECTORY)/progs/objviewer/*.obj \
441 $(DIRECTORY)/progs/objviewer/*.mtl \
442 $(DIRECTORY)/progs/objviewer/*.rgb \
443 $(DIRECTORY)/progs/objviewer/Makefile \
444 $(DIRECTORY)/progs/objviewer/README.txt \
445 $(DIRECTORY)/progs/osdemos/Makefile \
446 $(DIRECTORY)/progs/osdemos/*.c \
447 $(DIRECTORY)/progs/xdemos/Makefile* \
448 $(DIRECTORY)/progs/xdemos/*.[chf] \
449 $(DIRECTORY)/progs/redbook/Makefile* \
450 $(DIRECTORY)/progs/redbook/README \
451 $(DIRECTORY)/progs/redbook/*.[ch] \
452 $(DIRECTORY)/progs/samples/Makefile* \
453 $(DIRECTORY)/progs/samples/README \
454 $(DIRECTORY)/progs/samples/*.c \
455 $(DIRECTORY)/progs/glsl/Makefile* \
456 $(DIRECTORY)/progs/glsl/*.c \
457 $(DIRECTORY)/progs/glsl/*.frag \
458 $(DIRECTORY)/progs/glsl/*.vert \
459 $(DIRECTORY)/progs/glsl/*.shtest \
460 $(DIRECTORY)/progs/windml/Makefile.ugl \
461 $(DIRECTORY)/progs/windml/*.c \
462 $(DIRECTORY)/progs/windml/*.bmp \
463 $(DIRECTORY)/progs/ggi/*.c
465 GLUT_FILES = \
466 $(DIRECTORY)/include/GL/glut.h \
467 $(DIRECTORY)/include/GL/glutf90.h \
468 $(DIRECTORY)/src/glut/glx/Makefile* \
469 $(DIRECTORY)/src/glut/glx/depend \
470 $(DIRECTORY)/src/glut/glx/glut.pc.in \
471 $(DIRECTORY)/src/glut/glx/*def \
472 $(DIRECTORY)/src/glut/glx/*.[ch] \
473 $(DIRECTORY)/src/glut/beos/*.[ch] \
474 $(DIRECTORY)/src/glut/beos/*.cpp \
475 $(DIRECTORY)/src/glut/beos/Makefile \
476 $(DIRECTORY)/src/glut/dos/*.[ch] \
477 $(DIRECTORY)/src/glut/dos/PC_HW/*.[chS] \
478 $(DIRECTORY)/src/glut/ggi/*.[ch] \
479 $(DIRECTORY)/src/glut/ggi/Makefile \
480 $(DIRECTORY)/src/glut/fbdev/Makefile \
481 $(DIRECTORY)/src/glut/fbdev/*[ch] \
482 $(DIRECTORY)/src/glut/mini/*[ch] \
483 $(DIRECTORY)/src/glut/mini/glut.pc.in \
484 $(DIRECTORY)/src/glut/directfb/Makefile \
485 $(DIRECTORY)/src/glut/directfb/NOTES \
486 $(DIRECTORY)/src/glut/directfb/*[ch]
488 DEPEND_FILES = \
489 $(TOP)/src/mesa/depend \
490 $(TOP)/src/glx/x11/depend \
491 $(TOP)/src/glw/depend \
492 $(TOP)/src/glut/glx/depend \
493 $(TOP)/src/glu/sgi/depend
496 LIB_FILES = \
497 $(MAIN_FILES) \
498 $(ES_FILES) \
499 $(EGL_FILES) \
500 $(GALLIUM_FILES) \
501 $(DRI_FILES) \
502 $(SGI_GLU_FILES) \
503 $(GLW_FILES)
506 # Everything for new a Mesa release:
507 tarballs: rm_depend configure aclocal.m4 lib_gz demo_gz glut_gz \
508 lib_bz2 demo_bz2 glut_bz2 lib_zip demo_zip glut_zip md5
511 # Helper for autoconf builds
512 ACLOCAL = aclocal
513 ACLOCAL_FLAGS =
514 AUTOCONF = autoconf
515 AC_FLAGS =
516 aclocal.m4: configure.ac acinclude.m4
517 $(ACLOCAL) $(ACLOCAL_FLAGS)
518 configure: configure.ac aclocal.m4 acinclude.m4
519 $(AUTOCONF) $(AC_FLAGS)
521 rm_depend:
522 @for dep in $(DEPEND_FILES) ; do \
523 rm -f $$dep ; \
524 touch $$dep ; \
525 done
527 rm_config:
528 rm -f configs/current
529 rm -f configs/autoconf
531 lib_gz: rm_config
532 cd .. ; \
533 tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
534 gzip $(LIB_NAME).tar ; \
535 mv $(LIB_NAME).tar.gz $(DIRECTORY)
537 demo_gz:
538 cd .. ; \
539 tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \
540 gzip $(DEMO_NAME).tar ; \
541 mv $(DEMO_NAME).tar.gz $(DIRECTORY)
543 glut_gz:
544 cd .. ; \
545 tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \
546 gzip $(GLUT_NAME).tar ; \
547 mv $(GLUT_NAME).tar.gz $(DIRECTORY)
549 lib_bz2: rm_config
550 cd .. ; \
551 tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
552 bzip2 $(LIB_NAME).tar ; \
553 mv $(LIB_NAME).tar.bz2 $(DIRECTORY)
555 demo_bz2:
556 cd .. ; \
557 tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \
558 bzip2 $(DEMO_NAME).tar ; \
559 mv $(DEMO_NAME).tar.bz2 $(DIRECTORY)
561 glut_bz2:
562 cd .. ; \
563 tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \
564 bzip2 $(GLUT_NAME).tar ; \
565 mv $(GLUT_NAME).tar.bz2 $(DIRECTORY)
567 lib_zip: rm_config
568 rm -f $(LIB_NAME).zip ; \
569 cd .. ; \
570 zip -qr $(LIB_NAME).zip $(LIB_FILES) ; \
571 mv $(LIB_NAME).zip $(DIRECTORY)
573 demo_zip:
574 rm -f $(DEMO_NAME).zip ; \
575 cd .. ; \
576 zip -qr $(DEMO_NAME).zip $(DEMO_FILES) ; \
577 mv $(DEMO_NAME).zip $(DIRECTORY)
579 glut_zip:
580 rm -f $(GLUT_NAME).zip ; \
581 cd .. ; \
582 zip -qr $(GLUT_NAME).zip $(GLUT_FILES) ; \
583 mv $(GLUT_NAME).zip $(DIRECTORY)
585 md5:
586 @-md5sum $(LIB_NAME).tar.gz
587 @-md5sum $(LIB_NAME).tar.bz2
588 @-md5sum $(LIB_NAME).zip
589 @-md5sum $(DEMO_NAME).tar.gz
590 @-md5sum $(DEMO_NAME).tar.bz2
591 @-md5sum $(DEMO_NAME).zip
592 @-md5sum $(GLUT_NAME).tar.gz
593 @-md5sum $(GLUT_NAME).tar.bz2
594 @-md5sum $(GLUT_NAME).zip
596 .PHONY: tarballs rm_depend rm_config md5 \
597 lib_gz demo_gz glut_gz \
598 lib_bz2 demo_bz2 glut_bz2 \
599 lib_zip demo_zip glut_zip