| 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 linux-directfb-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 |
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 |
mine \ |
| 109 |
mine-dri \ |
| 110 |
linux-alpha \ |
| 111 |
linux-alpha-static \ |
| 112 |
linux-cell \ |
| 113 |
linux-cell-debug \ |
| 114 |
linux-debug \ |
| 115 |
linux-directfb \ |
| 116 |
linux-dri \ |
| 117 |
linux-dri-debug \ |
| 118 |
linux-dri-x86 \ |
| 119 |
linux-dri-x86-64 \ |
| 120 |
linux-dri-ppc \ |
| 121 |
linux-dri-xcb \ |
| 122 |
linux-egl \ |
| 123 |
linux-indirect \ |
| 124 |
linux-fbdev \ |
| 125 |
linux-glide \ |
| 126 |
linux-ia64-icc \ |
| 127 |
linux-ia64-icc-static \ |
| 128 |
linux-icc \ |
| 129 |
linux-icc-static \ |
| 130 |
linux-llvm \ |
| 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 ; \ |
| 180 |
fi |
| 181 |
(cd configs && rm -f current && ln -s $@ current) |
| 182 |
$(MAKE) default |
| 183 |
|
| 184 |
|
| 185 |
# Rules for making release tarballs |
| 186 |
|
| 187 |
VERSION=7.7-devel |
| 188 |
DIRECTORY = Mesa-$(VERSION) |
| 189 |
LIB_NAME = MesaLib-$(VERSION) |
| 190 |
DEMO_NAME = MesaDemos-$(VERSION) |
| 191 |
GLUT_NAME = MesaGLUT-$(VERSION) |
| 192 |
|
| 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/Makefile \ |
| 231 |
$(DIRECTORY)/src/mesa/Makefile* \ |
| 232 |
$(DIRECTORY)/src/mesa/sources.mak \ |
| 233 |
$(DIRECTORY)/src/mesa/descrip.mms \ |
| 234 |
$(DIRECTORY)/src/mesa/gl.pc.in \ |
| 235 |
$(DIRECTORY)/src/mesa/osmesa.pc.in \ |
| 236 |
$(DIRECTORY)/src/mesa/depend \ |
| 237 |
$(DIRECTORY)/src/mesa/main/*.[chS] \ |
| 238 |
$(DIRECTORY)/src/mesa/main/descrip.mms \ |
| 239 |
$(DIRECTORY)/src/mesa/glapi/*.[chS] \ |
| 240 |
$(DIRECTORY)/src/mesa/math/*.[ch] \ |
| 241 |
$(DIRECTORY)/src/mesa/math/descrip.mms \ |
| 242 |
$(DIRECTORY)/src/mesa/shader/*.[chly] \ |
| 243 |
$(DIRECTORY)/src/mesa/shader/Makefile \ |
| 244 |
$(DIRECTORY)/src/mesa/shader/descrip.mms \ |
| 245 |
$(DIRECTORY)/src/mesa/shader/grammar/*.[ch] \ |
| 246 |
$(DIRECTORY)/src/mesa/shader/slang/*.[ch] \ |
| 247 |
$(DIRECTORY)/src/mesa/shader/slang/descrip.mms \ |
| 248 |
$(DIRECTORY)/src/mesa/shader/slang/library/*.[ch] \ |
| 249 |
$(DIRECTORY)/src/mesa/shader/slang/library/*.gc \ |
| 250 |
$(DIRECTORY)/src/mesa/shader/slang/library/*.syn \ |
| 251 |
$(DIRECTORY)/src/mesa/shader/slang/library/Makefile \ |
| 252 |
$(DIRECTORY)/src/mesa/swrast/*.[ch] \ |
| 253 |
$(DIRECTORY)/src/mesa/swrast/descrip.mms \ |
| 254 |
$(DIRECTORY)/src/mesa/swrast_setup/*.[ch] \ |
| 255 |
$(DIRECTORY)/src/mesa/swrast_setup/descrip.mms \ |
| 256 |
$(DIRECTORY)/src/mesa/vbo/*.[chS] \ |
| 257 |
$(DIRECTORY)/src/mesa/vbo/descrip.mms \ |
| 258 |
$(DIRECTORY)/src/mesa/tnl/*.[chS] \ |
| 259 |
$(DIRECTORY)/src/mesa/tnl/descrip.mms \ |
| 260 |
$(DIRECTORY)/src/mesa/tnl_dd/*.[ch] \ |
| 261 |
$(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch] \ |
| 262 |
$(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm \ |
| 263 |
$(DIRECTORY)/src/mesa/drivers/Makefile \ |
| 264 |
$(DIRECTORY)/src/mesa/drivers/beos/*.cpp \ |
| 265 |
$(DIRECTORY)/src/mesa/drivers/beos/Makefile \ |
| 266 |
$(DIRECTORY)/src/mesa/drivers/common/*.[ch] \ |
| 267 |
$(DIRECTORY)/src/mesa/drivers/common/descrip.mms \ |
| 268 |
$(DIRECTORY)/src/mesa/drivers/directfb/*.[ch] \ |
| 269 |
$(DIRECTORY)/src/mesa/drivers/directfb/Makefile \ |
| 270 |
$(DIRECTORY)/src/mesa/drivers/dos/*.[chS] \ |
| 271 |
$(DIRECTORY)/src/mesa/drivers/fbdev/Makefile \ |
| 272 |
$(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c \ |
| 273 |
$(DIRECTORY)/src/mesa/drivers/glide/*.[ch] \ |
| 274 |
$(DIRECTORY)/src/mesa/drivers/ggi/*.[ch] \ |
| 275 |
$(DIRECTORY)/src/mesa/drivers/ggi/ggimesa.conf.in \ |
| 276 |
$(DIRECTORY)/src/mesa/drivers/ggi/default/*.c \ |
| 277 |
$(DIRECTORY)/src/mesa/drivers/ggi/default/genkgi.conf.in \ |
| 278 |
$(DIRECTORY)/src/mesa/drivers/ggi/display/*.c \ |
| 279 |
$(DIRECTORY)/src/mesa/drivers/ggi/display/fbdev.conf.in \ |
| 280 |
$(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/*.h \ |
| 281 |
$(DIRECTORY)/src/mesa/drivers/osmesa/Makefile \ |
| 282 |
$(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win \ |
| 283 |
$(DIRECTORY)/src/mesa/drivers/osmesa/descrip.mms \ |
| 284 |
$(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def \ |
| 285 |
$(DIRECTORY)/src/mesa/drivers/osmesa/*.[ch] \ |
| 286 |
$(DIRECTORY)/src/mesa/drivers/svga/*.[ch] \ |
| 287 |
$(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch] \ |
| 288 |
$(DIRECTORY)/src/mesa/drivers/windows/*/*.def \ |
| 289 |
$(DIRECTORY)/src/mesa/drivers/x11/Makefile \ |
| 290 |
$(DIRECTORY)/src/mesa/drivers/x11/descrip.mms \ |
| 291 |
$(DIRECTORY)/src/mesa/drivers/x11/*.[ch] \ |
| 292 |
$(DIRECTORY)/src/mesa/drivers/glslcompiler/Makefile \ |
| 293 |
$(DIRECTORY)/src/mesa/drivers/glslcompiler/glslcompiler.c \ |
| 294 |
$(DIRECTORY)/src/mesa/ppc/*.[ch] \ |
| 295 |
$(DIRECTORY)/src/mesa/sparc/*.[chS] \ |
| 296 |
$(DIRECTORY)/src/mesa/x86/Makefile \ |
| 297 |
$(DIRECTORY)/src/mesa/x86/*.[ch] \ |
| 298 |
$(DIRECTORY)/src/mesa/x86/*.S \ |
| 299 |
$(DIRECTORY)/src/mesa/x86/rtasm/*.[ch] \ |
| 300 |
$(DIRECTORY)/src/mesa/x86-64/*.[chS] \ |
| 301 |
$(DIRECTORY)/src/mesa/x86-64/Makefile \ |
| 302 |
$(DIRECTORY)/progs/Makefile \ |
| 303 |
$(DIRECTORY)/progs/util/README \ |
| 304 |
$(DIRECTORY)/progs/util/*.[ch] \ |
| 305 |
$(DIRECTORY)/progs/util/sampleMakefile \ |
| 306 |
$(DIRECTORY)/windows/VC8/ |
| 307 |
|
| 308 |
ES_FILES = \ |
| 309 |
$(DIRECTORY)/include/GLES/*.h \ |
| 310 |
$(DIRECTORY)/include/GLES2/*.h \ |
| 311 |
$(DIRECTORY)/src/mesa/glapi/*.xml \ |
| 312 |
$(DIRECTORY)/src/mesa/glapi/*.py \ |
| 313 |
$(DIRECTORY)/src/mesa/glapi/*.dtd \ |
| 314 |
$(DIRECTORY)/src/mesa/es/glapi/Makefile \ |
| 315 |
$(DIRECTORY)/src/mesa/es/glapi/*.xml \ |
| 316 |
$(DIRECTORY)/src/mesa/es/glapi/*.py \ |
| 317 |
$(DIRECTORY)/src/mesa/es/state_tracker/*.[ch] \ |
| 318 |
$(DIRECTORY)/src/mesa/es/main/*.[ch] \ |
| 319 |
$(DIRECTORY)/src/mesa/es/main/*.py \ |
| 320 |
$(DIRECTORY)/src/mesa/es/main/*.txt \ |
| 321 |
$(DIRECTORY)/src/mesa/es/main/es*_special \ |
| 322 |
$(DIRECTORY)/src/mesa/es/Makefile \ |
| 323 |
$(DIRECTORY)/src/mesa/es/sources.mak \ |
| 324 |
|
| 325 |
EGL_FILES = \ |
| 326 |
$(DIRECTORY)/include/EGL/*.h \ |
| 327 |
$(DIRECTORY)/src/egl/Makefile \ |
| 328 |
$(DIRECTORY)/src/egl/*/Makefile \ |
| 329 |
$(DIRECTORY)/src/egl/*/*.[ch] \ |
| 330 |
$(DIRECTORY)/src/egl/*/*/Makefile \ |
| 331 |
$(DIRECTORY)/src/egl/*/*/*.[ch] \ |
| 332 |
|
| 333 |
GALLIUM_FILES = \ |
| 334 |
$(DIRECTORY)/src/mesa/state_tracker/*[ch] \ |
| 335 |
$(DIRECTORY)/src/gallium/Makefile \ |
| 336 |
$(DIRECTORY)/src/gallium/Makefile.template \ |
| 337 |
$(DIRECTORY)/src/gallium/SConscript \ |
| 338 |
$(DIRECTORY)/src/gallium/*/Makefile \ |
| 339 |
$(DIRECTORY)/src/gallium/*/SConscript \ |
| 340 |
$(DIRECTORY)/src/gallium/*/*/Makefile \ |
| 341 |
$(DIRECTORY)/src/gallium/*/*/Makefile.template \ |
| 342 |
$(DIRECTORY)/src/gallium/*/*/SConscript \ |
| 343 |
$(DIRECTORY)/src/gallium/*/*/*.[ch] \ |
| 344 |
$(DIRECTORY)/src/gallium/*/*/*.py \ |
| 345 |
$(DIRECTORY)/src/gallium/*/*/*.csv \ |
| 346 |
$(DIRECTORY)/src/gallium/*/*/*/Makefile \ |
| 347 |
$(DIRECTORY)/src/gallium/*/*/*/SConscript \ |
| 348 |
$(DIRECTORY)/src/gallium/*/*/*/*.[ch] \ |
| 349 |
$(DIRECTORY)/src/gallium/*/*/*/*.py \ |
| 350 |
$(DIRECTORY)/src/gallium/*/*/*/*/Makefile \ |
| 351 |
$(DIRECTORY)/src/gallium/*/*/*/*/*.[ch] \ |
| 352 |
|
| 353 |
|
| 354 |
DRI_FILES = \ |
| 355 |
$(DIRECTORY)/include/GL/internal/dri_interface.h \ |
| 356 |
$(DIRECTORY)/include/GL/internal/glcore.h \ |
| 357 |
$(DIRECTORY)/include/GL/internal/sarea.h \ |
| 358 |
$(DIRECTORY)/src/glx/Makefile \ |
| 359 |
$(DIRECTORY)/src/glx/x11/Makefile \ |
| 360 |
$(DIRECTORY)/src/glx/x11/*.[ch] \ |
| 361 |
$(DIRECTORY)/src/mesa/drivers/dri/Makefile \ |
| 362 |
$(DIRECTORY)/src/mesa/drivers/dri/Makefile.template \ |
| 363 |
$(DIRECTORY)/src/mesa/drivers/dri/dri.pc.in \ |
| 364 |
$(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.[ch] \ |
| 365 |
$(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.po \ |
| 366 |
$(DIRECTORY)/src/mesa/drivers/dri/*/*.[chS] \ |
| 367 |
$(DIRECTORY)/src/mesa/drivers/dri/*/*/*.[chS] \ |
| 368 |
$(DIRECTORY)/src/mesa/drivers/dri/*/Makefile \ |
| 369 |
$(DIRECTORY)/src/mesa/drivers/dri/*/*/Makefile \ |
| 370 |
$(DIRECTORY)/src/mesa/drivers/dri/*/Doxyfile \ |
| 371 |
$(DIRECTORY)/src/mesa/drivers/dri/*/server/*.[ch] |
| 372 |
|
| 373 |
SGI_GLU_FILES = \ |
| 374 |
$(DIRECTORY)/src/glu/Makefile \ |
| 375 |
$(DIRECTORY)/src/glu/glu.pc.in \ |
| 376 |
$(DIRECTORY)/src/glu/sgi/Makefile \ |
| 377 |
$(DIRECTORY)/src/glu/sgi/Makefile.mgw \ |
| 378 |
$(DIRECTORY)/src/glu/sgi/Makefile.win \ |
| 379 |
$(DIRECTORY)/src/glu/sgi/glu.def \ |
| 380 |
$(DIRECTORY)/src/glu/sgi/dummy.cc \ |
| 381 |
$(DIRECTORY)/src/glu/sgi/glu.exports \ |
| 382 |
$(DIRECTORY)/src/glu/sgi/glu.exports.darwin \ |
| 383 |
$(DIRECTORY)/src/glu/sgi/mesaglu.opt \ |
| 384 |
$(DIRECTORY)/src/glu/sgi/include/gluos.h \ |
| 385 |
$(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \ |
| 386 |
$(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc \ |
| 387 |
$(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h \ |
| 388 |
$(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc \ |
| 389 |
$(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.h \ |
| 390 |
$(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.cc \ |
| 391 |
$(DIRECTORY)/src/glu/sgi/libtess/README \ |
| 392 |
$(DIRECTORY)/src/glu/sgi/libtess/alg-outline \ |
| 393 |
$(DIRECTORY)/src/glu/sgi/libtess/*.[ch] \ |
| 394 |
$(DIRECTORY)/src/glu/sgi/libutil/*.[ch] |
| 395 |
|
| 396 |
MESA_GLU_FILES = \ |
| 397 |
$(DIRECTORY)/src/glu/mesa/README[12] \ |
| 398 |
$(DIRECTORY)/src/glu/mesa/Makefile* \ |
| 399 |
$(DIRECTORY)/src/glu/mesa/descrip.mms \ |
| 400 |
$(DIRECTORY)/src/glu/mesa/mms_depend \ |
| 401 |
$(DIRECTORY)/src/glu/mesa/*.def \ |
| 402 |
$(DIRECTORY)/src/glu/mesa/depend \ |
| 403 |
$(DIRECTORY)/src/glu/mesa/*.[ch] |
| 404 |
|
| 405 |
GLW_FILES = \ |
| 406 |
$(DIRECTORY)/src/glw/*.[ch] \ |
| 407 |
$(DIRECTORY)/src/glw/Makefile* \ |
| 408 |
$(DIRECTORY)/src/glw/README \ |
| 409 |
$(DIRECTORY)/src/glw/glw.pc.in \ |
| 410 |
$(DIRECTORY)/src/glw/depend |
| 411 |
|
| 412 |
GLEW_FILES = \ |
| 413 |
$(DIRECTORY)/include/GL/glew.h \ |
| 414 |
$(DIRECTORY)/include/GL/glxew.h \ |
| 415 |
$(DIRECTORY)/include/GL/wglew.h \ |
| 416 |
$(DIRECTORY)/src/glew/*.c \ |
| 417 |
$(DIRECTORY)/src/glew/Makefile \ |
| 418 |
$(DIRECTORY)/src/glew/SConscript \ |
| 419 |
$(DIRECTORY)/src/glew/LICENSE.txt |
| 420 |
|
| 421 |
DEMO_FILES = \ |
| 422 |
$(GLEW_FILES) \ |
| 423 |
$(DIRECTORY)/progs/beos/*.cpp \ |
| 424 |
$(DIRECTORY)/progs/beos/Makefile \ |
| 425 |
$(DIRECTORY)/progs/images/*.rgb \ |
| 426 |
$(DIRECTORY)/progs/images/*.rgba \ |
| 427 |
$(DIRECTORY)/progs/demos/Makefile* \ |
| 428 |
$(DIRECTORY)/progs/demos/descrip.mms \ |
| 429 |
$(DIRECTORY)/progs/demos/*.[ch] \ |
| 430 |
$(DIRECTORY)/progs/demos/*.cxx \ |
| 431 |
$(DIRECTORY)/progs/demos/*.dat \ |
| 432 |
$(DIRECTORY)/progs/demos/README \ |
| 433 |
$(DIRECTORY)/progs/fbdev/Makefile \ |
| 434 |
$(DIRECTORY)/progs/fbdev/glfbdevtest.c \ |
| 435 |
$(DIRECTORY)/progs/osdemos/Makefile \ |
| 436 |
$(DIRECTORY)/progs/osdemos/*.c \ |
| 437 |
$(DIRECTORY)/progs/xdemos/Makefile* \ |
| 438 |
$(DIRECTORY)/progs/xdemos/*.[chf] \ |
| 439 |
$(DIRECTORY)/progs/redbook/Makefile* \ |
| 440 |
$(DIRECTORY)/progs/redbook/README \ |
| 441 |
$(DIRECTORY)/progs/redbook/*.[ch] \ |
| 442 |
$(DIRECTORY)/progs/samples/Makefile* \ |
| 443 |
$(DIRECTORY)/progs/samples/README \ |
| 444 |
$(DIRECTORY)/progs/samples/*.c \ |
| 445 |
$(DIRECTORY)/progs/glsl/Makefile* \ |
| 446 |
$(DIRECTORY)/progs/glsl/*.c \ |
| 447 |
$(DIRECTORY)/progs/glsl/*.frag \ |
| 448 |
$(DIRECTORY)/progs/glsl/*.vert \ |
| 449 |
$(DIRECTORY)/progs/glsl/*.shtest \ |
| 450 |
$(DIRECTORY)/progs/windml/Makefile.ugl \ |
| 451 |
$(DIRECTORY)/progs/windml/*.c \ |
| 452 |
$(DIRECTORY)/progs/windml/*.bmp \ |
| 453 |
$(DIRECTORY)/progs/ggi/*.c \ |
| 454 |
$(DIRECTORY)/windows/VC7/progs/progs.sln |
| 455 |
|
| 456 |
GLUT_FILES = \ |
| 457 |
$(DIRECTORY)/include/GL/glut.h \ |
| 458 |
$(DIRECTORY)/include/GL/glutf90.h \ |
| 459 |
$(DIRECTORY)/src/glut/glx/Makefile* \ |
| 460 |
$(DIRECTORY)/src/glut/glx/depend \ |
| 461 |
$(DIRECTORY)/src/glut/glx/glut.pc.in \ |
| 462 |
$(DIRECTORY)/src/glut/glx/*def \ |
| 463 |
$(DIRECTORY)/src/glut/glx/*.[ch] \ |
| 464 |
$(DIRECTORY)/src/glut/beos/*.[ch] \ |
| 465 |
$(DIRECTORY)/src/glut/beos/*.cpp \ |
| 466 |
$(DIRECTORY)/src/glut/beos/Makefile \ |
| 467 |
$(DIRECTORY)/src/glut/dos/*.[ch] \ |
| 468 |
$(DIRECTORY)/src/glut/dos/PC_HW/*.[chS] \ |
| 469 |
$(DIRECTORY)/src/glut/ggi/*.[ch] \ |
| 470 |
$(DIRECTORY)/src/glut/ggi/Makefile \ |
| 471 |
$(DIRECTORY)/src/glut/fbdev/Makefile \ |
| 472 |
$(DIRECTORY)/src/glut/fbdev/*[ch] \ |
| 473 |
$(DIRECTORY)/src/glut/mini/*[ch] \ |
| 474 |
$(DIRECTORY)/src/glut/mini/glut.pc.in \ |
| 475 |
$(DIRECTORY)/src/glut/directfb/Makefile \ |
| 476 |
$(DIRECTORY)/src/glut/directfb/NOTES \ |
| 477 |
$(DIRECTORY)/src/glut/directfb/*[ch] \ |
| 478 |
$(DIRECTORY)/windows/VC6/progs/glut/glut.dsp \ |
| 479 |
$(DIRECTORY)/windows/VC7/progs/glut/glut.vcproj |
| 480 |
|
| 481 |
DEPEND_FILES = \ |
| 482 |
$(TOP)/src/mesa/depend \ |
| 483 |
$(TOP)/src/glx/x11/depend \ |
| 484 |
$(TOP)/src/glw/depend \ |
| 485 |
$(TOP)/src/glut/glx/depend \ |
| 486 |
$(TOP)/src/glu/sgi/depend |
| 487 |
|
| 488 |
|
| 489 |
LIB_FILES = \ |
| 490 |
$(MAIN_FILES) \ |
| 491 |
$(ES_FILES) \ |
| 492 |
$(EGL_FILES) \ |
| 493 |
$(GALLIUM_FILES) \ |
| 494 |
$(DRI_FILES) \ |
| 495 |
$(SGI_GLU_FILES) \ |
| 496 |
$(GLW_FILES) |
| 497 |
|
| 498 |
|
| 499 |
# Everything for new a Mesa release: |
| 500 |
tarballs: rm_depend configure aclocal.m4 lib_gz demo_gz glut_gz \ |
| 501 |
lib_bz2 demo_bz2 glut_bz2 lib_zip demo_zip glut_zip md5 |
| 502 |
|
| 503 |
|
| 504 |
# Helper for autoconf builds |
| 505 |
ACLOCAL = aclocal |
| 506 |
ACLOCAL_FLAGS = |
| 507 |
AUTOCONF = autoconf |
| 508 |
AC_FLAGS = |
| 509 |
aclocal.m4: configure.ac acinclude.m4 |
| 510 |
$(ACLOCAL) $(ACLOCAL_FLAGS) |
| 511 |
configure: configure.ac aclocal.m4 acinclude.m4 |
| 512 |
$(AUTOCONF) $(AC_FLAGS) |
| 513 |
|
| 514 |
rm_depend: |
| 515 |
@for dep in $(DEPEND_FILES) ; do \ |
| 516 |
rm -f $$dep ; \ |
| 517 |
touch $$dep ; \ |
| 518 |
done |
| 519 |
|
| 520 |
lib_gz: |
| 521 |
rm -f configs/current ; \ |
| 522 |
rm -f configs/autoconf ; \ |
| 523 |
cd .. ; \ |
| 524 |
tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \ |
| 525 |
gzip $(LIB_NAME).tar ; \ |
| 526 |
mv $(LIB_NAME).tar.gz $(DIRECTORY) |
| 527 |
|
| 528 |
demo_gz: |
| 529 |
cd .. ; \ |
| 530 |
tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \ |
| 531 |
gzip $(DEMO_NAME).tar ; \ |
| 532 |
mv $(DEMO_NAME).tar.gz $(DIRECTORY) |
| 533 |
|
| 534 |
glut_gz: |
| 535 |
cd .. ; \ |
| 536 |
tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \ |
| 537 |
gzip $(GLUT_NAME).tar ; \ |
| 538 |
mv $(GLUT_NAME).tar.gz $(DIRECTORY) |
| 539 |
|
| 540 |
lib_bz2: |
| 541 |
rm -f configs/current ; \ |
| 542 |
rm -f configs/autoconf ; \ |
| 543 |
cd .. ; \ |
| 544 |
tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \ |
| 545 |
bzip2 $(LIB_NAME).tar ; \ |
| 546 |
mv $(LIB_NAME).tar.bz2 $(DIRECTORY) |
| 547 |
|
| 548 |
demo_bz2: |
| 549 |
cd .. ; \ |
| 550 |
tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \ |
| 551 |
bzip2 $(DEMO_NAME).tar ; \ |
| 552 |
mv $(DEMO_NAME).tar.bz2 $(DIRECTORY) |
| 553 |
|
| 554 |
glut_bz2: |
| 555 |
cd .. ; \ |
| 556 |
tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \ |
| 557 |
bzip2 $(GLUT_NAME).tar ; \ |
| 558 |
mv $(GLUT_NAME).tar.bz2 $(DIRECTORY) |
| 559 |
|
| 560 |
lib_zip: |
| 561 |
rm -f configs/current ; \ |
| 562 |
rm -f configs/autoconf ; \ |
| 563 |
rm -f $(LIB_NAME).zip ; \ |
| 564 |
cd .. ; \ |
| 565 |
zip -qr $(LIB_NAME).zip $(LIB_FILES) ; \ |
| 566 |
mv $(LIB_NAME).zip $(DIRECTORY) |
| 567 |
|
| 568 |
demo_zip: |
| 569 |
rm -f $(DEMO_NAME).zip ; \ |
| 570 |
cd .. ; \ |
| 571 |
zip -qr $(DEMO_NAME).zip $(DEMO_FILES) ; \ |
| 572 |
mv $(DEMO_NAME).zip $(DIRECTORY) |
| 573 |
|
| 574 |
glut_zip: |
| 575 |
rm -f $(GLUT_NAME).zip ; \ |
| 576 |
cd .. ; \ |
| 577 |
zip -qr $(GLUT_NAME).zip $(GLUT_FILES) ; \ |
| 578 |
mv $(GLUT_NAME).zip $(DIRECTORY) |
| 579 |
|
| 580 |
md5: |
| 581 |
@-md5sum $(LIB_NAME).tar.gz |
| 582 |
@-md5sum $(LIB_NAME).tar.bz2 |
| 583 |
@-md5sum $(LIB_NAME).zip |
| 584 |
@-md5sum $(DEMO_NAME).tar.gz |
| 585 |
@-md5sum $(DEMO_NAME).tar.bz2 |
| 586 |
@-md5sum $(DEMO_NAME).zip |
| 587 |
@-md5sum $(GLUT_NAME).tar.gz |
| 588 |
@-md5sum $(GLUT_NAME).tar.bz2 |
| 589 |
@-md5sum $(GLUT_NAME).zip |
| 590 |
|
| 591 |
.PHONY: tarballs rm_depend lib_gz demo_gz glut_gz lib_bz2 demo_bz2 \ |
| 592 |
glut_bz2 lib_zip demo_zip glut_zip md5 |