1 # Top-level Mesa makefile
8 default: $(TOP)/configs/current
9 @for dir in $(SUBDIRS) ; do \
10 if [ -d $$dir ] ; then \
11 (cd $$dir && $(MAKE)) || exit 1 ; \
22 -@touch $(TOP)/configs/current
23 -@for dir in $(SUBDIRS) ; do \
24 if [ -d $$dir ] ; then \
25 (cd $$dir && $(MAKE) clean) ; \
28 -@test -s $(TOP)/configs/current || rm -f $(TOP)/configs/current
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 '{}' ';'
41 @for dir in $(SUBDIRS) ; do \
42 if [ -d $$dir ] ; then \
43 (cd $$dir && $(MAKE) install) || exit 1 ; \
48 # DirectFBGL module installation
49 linux-directfb-install:
50 cd src/mesa/drivers/directfb && $(MAKE) install
52 .PHONY: default doxygen clean realclean install linux-directfb-install
54 # If there's no current configuration file
55 $(TOP)/configs/current:
58 @echo "Please choose a configuration from the following list:"
59 @ls -1 $(TOP)/configs | grep -v "current\|default\|CVS\|autoconf.*"
61 @echo "Then type 'make <config>' (ex: 'make linux-x86')"
63 @echo "Or, run './configure' then 'make'"
64 @echo "See './configure --help' for details"
66 @echo "(ignore the following error message)"
70 # Rules to set/install a specific build configuration
80 catamount-osmesa-pgi \
85 darwin-static-x86ppc \
95 hpux11-32-static-nothreads \
125 linux-ia64-icc-static \
131 linux-osmesa16-static \
149 linux-x86-64-profile \
150 linux-x86-64-static \
160 solaris-x86-gcc-static \
174 @ if test -f configs/current || test -L configs/current ; then \
175 echo "Please run 'make realclean' before changing configs" ; \
178 (cd configs && rm -f current && ln -s $@ current)
182 # Rules for making release tarballs
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
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
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]
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]
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]
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
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
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
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
454 LIB_FILES = $(MAIN_FILES) $(DRI_FILES) $(SGI_GLU_FILES) $(GLW_FILES)
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
462 # Helper for autoconf builds
467 aclocal.m4: configure.ac acinclude.m4
468 $(ACLOCAL) $(ACLOCAL_FLAGS)
469 configure: configure.ac aclocal.m4 acinclude.m4
470 $(AUTOCONF) $(AC_FLAGS)
473 @for dep in $(DEPEND_FILES) ; do \
479 rm -f configs/current ; \
480 rm -f configs/autoconf ; \
482 tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
483 gzip $(LIB_NAME).tar ; \
484 mv $(LIB_NAME).tar.gz $(DIRECTORY)
488 tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \
489 gzip $(DEMO_NAME).tar ; \
490 mv $(DEMO_NAME).tar.gz $(DIRECTORY)
494 tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \
495 gzip $(GLUT_NAME).tar ; \
496 mv $(GLUT_NAME).tar.gz $(DIRECTORY)
499 rm -f configs/current ; \
500 rm -f configs/autoconf ; \
502 tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
503 bzip2 $(LIB_NAME).tar ; \
504 mv $(LIB_NAME).tar.bz2 $(DIRECTORY)
508 tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \
509 bzip2 $(DEMO_NAME).tar ; \
510 mv $(DEMO_NAME).tar.bz2 $(DIRECTORY)
514 tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \
515 bzip2 $(GLUT_NAME).tar ; \
516 mv $(GLUT_NAME).tar.bz2 $(DIRECTORY)
519 rm -f configs/current ; \
520 rm -f configs/autoconf ; \
521 rm -f $(LIB_NAME).zip ; \
523 zip -qr $(LIB_NAME).zip $(LIB_FILES) ; \
524 mv $(LIB_NAME).zip $(DIRECTORY)
527 rm -f $(DEMO_NAME).zip ; \
529 zip -qr $(DEMO_NAME).zip $(DEMO_FILES) ; \
530 mv $(DEMO_NAME).zip $(DIRECTORY)
533 rm -f $(GLUT_NAME).zip ; \
535 zip -qr $(GLUT_NAME).zip $(GLUT_FILES) ; \
536 mv $(GLUT_NAME).zip $(DIRECTORY)
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
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