blob: a77825e8f9acd6bb28b8fbb550aca57caae6cd6c [file] [log] [blame]
Brian Paulde0ee312004-03-26 15:19:11 +00001# Top-level Mesa makefile
2
3TOP = .
4
5SUBDIRS = src progs
6
7
8default: $(TOP)/configs/current
9 @for dir in $(SUBDIRS) ; do \
Brian16c503f2007-05-09 16:22:53 -060010 if [ -d $$dir ] ; then \
11 (cd $$dir && $(MAKE)) || exit 1 ; \
12 fi \
Brian Paulde0ee312004-03-26 15:19:11 +000013 done
14
José Fonseca9df478d2008-02-18 16:47:35 +090015all: default
16
Brian Paulde0ee312004-03-26 15:19:11 +000017
Brian Paul6d50d912004-07-01 15:32:51 +000018doxygen:
Dan Nicholsoncba14d82008-05-06 12:29:53 -070019 cd doxygen && $(MAKE)
Brian Paul6d50d912004-07-01 15:32:51 +000020
Brian Paulde0ee312004-03-26 15:19:11 +000021clean:
Dan Nicholsona6464b32008-05-07 11:35:23 -070022 -@touch $(TOP)/configs/current
23 -@for dir in $(SUBDIRS) ; do \
Brian16c503f2007-05-09 16:22:53 -060024 if [ -d $$dir ] ; then \
25 (cd $$dir && $(MAKE) clean) ; \
26 fi \
Brian Paulde0ee312004-03-26 15:19:11 +000027 done
Dan Nicholsona6464b32008-05-07 11:35:23 -070028 -@test -s $(TOP)/configs/current || rm -f $(TOP)/configs/current
Brian Paulde0ee312004-03-26 15:19:11 +000029
30
Dan Nicholsona6464b32008-05-07 11:35:23 -070031realclean: clean
Brian Paulde0ee312004-03-26 15:19:11 +000032 -rm -rf lib*
33 -rm -f $(TOP)/configs/current
Dan Nicholsondca1b792007-10-23 09:25:58 -070034 -rm -f $(TOP)/configs/autoconf
35 -rm -rf autom4te.cache
Dan Nicholsonc5e2b852008-05-06 14:00:43 -070036 -find . '(' -name '*.o' -o -name '*.a' -o -name '*.so' -o \
37 -name depend -o -name depend.bak ')' -exec rm -f '{}' ';'
Keith Whitwellae68c322004-12-15 11:03:41 +000038
Brian Paulde0ee312004-03-26 15:19:11 +000039
Brian Paul666702b2009-04-16 09:31:45 -060040distclean: realclean
41
42
Brian Paulde0ee312004-03-26 15:19:11 +000043install:
Brian Paul0e794a12006-06-22 22:50:48 +000044 @for dir in $(SUBDIRS) ; do \
Brian16c503f2007-05-09 16:22:53 -060045 if [ -d $$dir ] ; then \
46 (cd $$dir && $(MAKE) install) || exit 1 ; \
47 fi \
Brian Paul0e794a12006-06-22 22:50:48 +000048 done
Brian Paul81ca6162005-01-03 15:35:00 +000049
Brian16c503f2007-05-09 16:22:53 -060050
Brian Paul666702b2009-04-16 09:31:45 -060051.PHONY: default doxygen clean realclean distclean install linux-directfb-install
Dan Nicholson50f7e6f2008-05-06 11:52:34 -070052
Brian Paulde0ee312004-03-26 15:19:11 +000053# 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:"
Dan Nicholson38c5b142008-05-06 15:46:40 -070058 @ls -1 $(TOP)/configs | grep -v "current\|default\|CVS\|autoconf.*"
Brian Paulde0ee312004-03-26 15:19:11 +000059 @echo
60 @echo "Then type 'make <config>' (ex: 'make linux-x86')"
Dan Nicholson38c5b142008-05-06 15:46:40 -070061 @echo
62 @echo "Or, run './configure' then 'make'"
63 @echo "See './configure --help' for details"
64 @echo
Brian Paulde0ee312004-03-26 15:19:11 +000065 @echo "(ignore the following error message)"
66 @exit 1
67
68
69# Rules to set/install a specific build configuration
70aix \
Karl Schultza16bdb52004-10-01 13:33:26 +000071aix-64 \
Brian Paul294d9ab2006-04-13 03:00:14 +000072aix-64-static \
Brian Paulde0ee312004-03-26 15:19:11 +000073aix-gcc \
Brian Paul6d50d912004-07-01 15:32:51 +000074aix-static \
Dan Nicholsondca1b792007-10-23 09:25:58 -070075autoconf \
Brian792b8822007-08-02 20:26:49 -060076bluegene-osmesa \
Briana5467fb2007-09-20 15:11:14 -060077bluegene-xlc-osmesa \
Philippe Houdoin92ec9972004-08-14 10:10:42 +000078beos \
Alex Neundorfcae5b7f2007-10-24 16:31:22 -060079catamount-osmesa-pgi \
Brian Paulde0ee312004-03-26 15:19:11 +000080darwin \
Jeremy Huddleston7c7fece2008-03-10 15:13:28 -070081darwin-fat-32bit \
82darwin-fat-all \
Brian Paulde0ee312004-03-26 15:19:11 +000083darwin-static \
Brian Paul294d9ab2006-04-13 03:00:14 +000084darwin-static-x86ppc \
Brian Paulde0ee312004-03-26 15:19:11 +000085freebsd \
Eric Anholtcc182212004-10-28 00:19:21 +000086freebsd-dri \
Eric Anholtf054fa82005-05-28 20:17:06 +000087freebsd-dri-amd64 \
Eric Anholtcc182212004-10-28 00:19:21 +000088freebsd-dri-x86 \
Brian Paulde0ee312004-03-26 15:19:11 +000089hpux10 \
90hpux10-gcc \
Brian Paulff7d3bb2004-03-30 14:56:47 +000091hpux10-static \
Karl Schultz786eef22004-10-01 20:19:16 +000092hpux11-32 \
Brian Paulde0ee312004-03-26 15:19:11 +000093hpux11-32-static \
94hpux11-32-static-nothreads \
Karl Schultz786eef22004-10-01 20:19:16 +000095hpux11-64 \
Brian Paulde0ee312004-03-26 15:19:11 +000096hpux11-64-static \
Brian Paul294d9ab2006-04-13 03:00:14 +000097hpux11-ia64 \
98hpux11-ia64-static \
Brian Paulde0ee312004-03-26 15:19:11 +000099hpux9 \
100hpux9-gcc \
101irix6-64 \
102irix6-64-static \
103irix6-n32 \
104irix6-n32-static \
105irix6-o32 \
106irix6-o32-static \
107linux \
108linux-alpha \
109linux-alpha-static \
Brian88b715b2007-12-02 15:23:51 -0700110linux-cell \
Brian Paulab93aa72008-09-03 09:08:19 -0600111linux-cell-debug \
Brian Paulde0ee312004-03-26 15:19:11 +0000112linux-debug \
Brian Paul81ca6162005-01-03 15:35:00 +0000113linux-directfb \
Keith Whitwelle61df582004-04-14 12:44:07 +0000114linux-dri \
Brian15b3bd12007-02-23 11:58:46 -0700115linux-dri-debug \
Dave Airlie898c03a2004-05-03 11:30:37 +0000116linux-dri-x86 \
Keith Whitwell69ab4fe2004-04-30 08:29:04 +0000117linux-dri-x86-64 \
Ian Romanick447cdd52004-10-13 19:56:15 +0000118linux-dri-ppc \
Jeremy Kolb97a30232006-02-19 22:30:46 +0000119linux-dri-xcb \
Jakob Bornecrantz9395fb62008-05-22 16:24:51 +0200120linux-egl \
Ian Romanickdc6e2c72005-07-29 17:25:50 +0000121linux-indirect \
Keith Whitwella5cb1aa2005-04-29 17:31:10 +0000122linux-fbdev \
Daniel Borcad3746ca2004-04-07 06:37:50 +0000123linux-glide \
Brian Paul294d9ab2006-04-13 03:00:14 +0000124linux-ia64-icc \
125linux-ia64-icc-static \
Brian Paulde0ee312004-03-26 15:19:11 +0000126linux-icc \
127linux-icc-static \
Zack Rusinb04430e2007-10-22 11:00:28 -0400128linux-llvm \
Brian Paul525eb0b2006-07-04 16:49:58 +0000129linux-osmesa \
Brian Paulde0ee312004-03-26 15:19:11 +0000130linux-osmesa16 \
131linux-osmesa16-static \
132linux-osmesa32 \
133linux-ppc \
134linux-ppc-static \
José Fonseca83a674a2007-09-19 23:43:36 +0100135linux-profile \
Brian Paulde0ee312004-03-26 15:19:11 +0000136linux-solo \
Dave Airliee520b722004-09-07 00:41:40 +0000137linux-solo-x86 \
Brian Pauladcb2282004-04-19 22:23:10 +0000138linux-solo-ia64 \
Brian Paulde0ee312004-03-26 15:19:11 +0000139linux-sparc \
140linux-sparc5 \
141linux-static \
142linux-ultrasparc \
Keith Whitwell6fb23562004-04-14 21:19:34 +0000143linux-tcc \
Brian Paulde0ee312004-03-26 15:19:11 +0000144linux-x86 \
Keith Whitwelle61df582004-04-14 12:44:07 +0000145linux-x86-debug \
Brian Paul7644bfb2005-03-03 01:44:42 +0000146linux-x86-32 \
Brian Paulde0ee312004-03-26 15:19:11 +0000147linux-x86-64 \
Brian Paul42fa8122005-05-07 16:59:58 +0000148linux-x86-64-debug \
José Fonseca59424e22007-09-28 17:17:11 +0000149linux-x86-64-profile \
Brian Paulde0ee312004-03-26 15:19:11 +0000150linux-x86-64-static \
Daniel Borcad3746ca2004-04-07 06:37:50 +0000151linux-x86-glide \
José Fonseca59424e22007-09-28 17:17:11 +0000152linux-x86-profile \
Brian Paulde0ee312004-03-26 15:19:11 +0000153linux-x86-static \
154netbsd \
155openbsd \
156osf1 \
Brian Paul294d9ab2006-04-13 03:00:14 +0000157osf1-static \
Brian Paulde0ee312004-03-26 15:19:11 +0000158solaris-x86 \
159solaris-x86-gcc \
Brian Paulc717ffa2006-05-17 22:51:44 +0000160solaris-x86-gcc-static \
Brian Paulde0ee312004-03-26 15:19:11 +0000161sunos4 \
162sunos4-gcc \
163sunos4-static \
164sunos5 \
165sunos5-gcc \
Brian Paul9073c402006-04-07 15:16:46 +0000166sunos5-64-gcc \
Brian Paulde0ee312004-03-26 15:19:11 +0000167sunos5-smp \
Brian Paul294d9ab2006-04-13 03:00:14 +0000168sunos5-v8 \
169sunos5-v8-static \
170sunos5-v9 \
171sunos5-v9-static \
Brian2c0b3d82007-07-31 09:32:10 -0600172sunos5-v9-cc-g++ \
Brian Paulde0ee312004-03-26 15:19:11 +0000173ultrix-gcc:
Brian1223b752007-08-07 21:51:46 +0100174 @ if test -f configs/current || test -L configs/current ; then \
Brian Paul31635422006-08-03 16:58:06 +0000175 echo "Please run 'make realclean' before changing configs" ; \
176 exit 1 ; \
177 fi
Keith Whitwelle61df582004-04-14 12:44:07 +0000178 (cd configs && rm -f current && ln -s $@ current)
Eric Anholt2fb5d152004-06-01 00:06:14 +0000179 $(MAKE) default
Brian Paulde0ee312004-03-26 15:19:11 +0000180
181
182# Rules for making release tarballs
183
Brian Paul681a13e2009-02-05 08:39:10 -0700184VERSION=7.5-devel
185DIRECTORY = Mesa-$(VERSION)
186LIB_NAME = MesaLib-$(VERSION)
187DEMO_NAME = MesaDemos-$(VERSION)
188GLUT_NAME = MesaGLUT-$(VERSION)
Brian Paulde0ee312004-03-26 15:19:11 +0000189
Brian Pauldff11bb2005-07-21 18:44:52 +0000190MAIN_FILES = \
Brian Paulde0ee312004-03-26 15:19:11 +0000191 $(DIRECTORY)/Makefile* \
Dan Nicholson72796232007-12-05 17:23:00 -0800192 $(DIRECTORY)/configure \
193 $(DIRECTORY)/configure.ac \
Dan Nicholsond368eed2008-05-05 18:24:21 -0700194 $(DIRECTORY)/acinclude.m4 \
Dan Nicholson72796232007-12-05 17:23:00 -0800195 $(DIRECTORY)/aclocal.m4 \
Dan Nicholson72796232007-12-05 17:23:00 -0800196 $(DIRECTORY)/bin/config.guess \
197 $(DIRECTORY)/bin/config.sub \
198 $(DIRECTORY)/bin/install-sh \
Brian Paulde0ee312004-03-26 15:19:11 +0000199 $(DIRECTORY)/bin/mklib \
Brian Paul73dd09f2006-10-22 22:37:30 +0000200 $(DIRECTORY)/bin/minstall \
Dan Nicholsonfbb96a02008-06-10 06:06:40 -0700201 $(DIRECTORY)/bin/version.mk \
Brian Paulde0ee312004-03-26 15:19:11 +0000202 $(DIRECTORY)/configs/[a-z]* \
203 $(DIRECTORY)/docs/*.html \
204 $(DIRECTORY)/docs/COPYING \
Brian Paulde0ee312004-03-26 15:19:11 +0000205 $(DIRECTORY)/docs/README.* \
206 $(DIRECTORY)/docs/RELNOTES* \
Brian Paulde0ee312004-03-26 15:19:11 +0000207 $(DIRECTORY)/docs/*.spec \
208 $(DIRECTORY)/include/GL/internal/glcore.h \
Brian Paul63dffa42005-08-08 21:30:12 +0000209 $(DIRECTORY)/include/GL/dmesa.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000210 $(DIRECTORY)/include/GL/ggimesa.h \
211 $(DIRECTORY)/include/GL/gl.h \
212 $(DIRECTORY)/include/GL/glext.h \
213 $(DIRECTORY)/include/GL/gl_mangle.h \
214 $(DIRECTORY)/include/GL/glu.h \
215 $(DIRECTORY)/include/GL/glu_mangle.h \
216 $(DIRECTORY)/include/GL/glx.h \
217 $(DIRECTORY)/include/GL/glxext.h \
218 $(DIRECTORY)/include/GL/glx_mangle.h \
Brian Paul159ca322006-03-30 14:27:25 +0000219 $(DIRECTORY)/include/GL/glfbdev.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000220 $(DIRECTORY)/include/GL/mesa_wgl.h \
221 $(DIRECTORY)/include/GL/mglmesa.h \
222 $(DIRECTORY)/include/GL/osmesa.h \
223 $(DIRECTORY)/include/GL/svgamesa.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000224 $(DIRECTORY)/include/GL/vms_x_fix.h \
Brian Paul3ba370a2009-03-05 08:33:50 -0700225 $(DIRECTORY)/include/GL/wglext.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000226 $(DIRECTORY)/include/GL/wmesa.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000227 $(DIRECTORY)/src/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000228 $(DIRECTORY)/src/mesa/Makefile* \
Brian Paul7fcf4c62009-02-24 14:27:43 -0700229 $(DIRECTORY)/src/mesa/sources.mak \
Brian Paulde0ee312004-03-26 15:19:11 +0000230 $(DIRECTORY)/src/mesa/descrip.mms \
Brianf3419d52007-09-13 09:27:10 -0600231 $(DIRECTORY)/src/mesa/gl.pc.in \
Brian Paul1598be52009-01-12 07:55:14 -0700232 $(DIRECTORY)/src/mesa/osmesa.pc.in \
Brian Paulde0ee312004-03-26 15:19:11 +0000233 $(DIRECTORY)/src/mesa/depend \
234 $(DIRECTORY)/src/mesa/main/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000235 $(DIRECTORY)/src/mesa/main/descrip.mms \
236 $(DIRECTORY)/src/mesa/glapi/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000237 $(DIRECTORY)/src/mesa/math/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000238 $(DIRECTORY)/src/mesa/math/descrip.mms \
Brian Paul02ca8fe2004-08-13 20:58:59 +0000239 $(DIRECTORY)/src/mesa/shader/*.[ch] \
Karl Schultzd48ef3e2004-08-14 21:42:50 +0000240 $(DIRECTORY)/src/mesa/shader/descrip.mms \
Karl Schultz5b10d712005-06-03 15:24:55 +0000241 $(DIRECTORY)/src/mesa/shader/grammar/*.[ch] \
Karl Schultz5b10d712005-06-03 15:24:55 +0000242 $(DIRECTORY)/src/mesa/shader/slang/*.[ch] \
243 $(DIRECTORY)/src/mesa/shader/slang/descrip.mms \
244 $(DIRECTORY)/src/mesa/shader/slang/library/*.[ch] \
Brian04c401c2007-05-02 08:29:14 -0600245 $(DIRECTORY)/src/mesa/shader/slang/library/*.gc \
246 $(DIRECTORY)/src/mesa/shader/slang/library/*.syn \
247 $(DIRECTORY)/src/mesa/shader/slang/library/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000248 $(DIRECTORY)/src/mesa/swrast/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000249 $(DIRECTORY)/src/mesa/swrast/descrip.mms \
250 $(DIRECTORY)/src/mesa/swrast_setup/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000251 $(DIRECTORY)/src/mesa/swrast_setup/descrip.mms \
Richard Hughese9c614a2007-04-07 08:39:24 -0600252 $(DIRECTORY)/src/mesa/vbo/*.[chS] \
253 $(DIRECTORY)/src/mesa/vbo/descrip.mms \
Brian Paul02ca8fe2004-08-13 20:58:59 +0000254 $(DIRECTORY)/src/mesa/tnl/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000255 $(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 \
Brian Paul44029f12008-07-08 16:16:57 -0600259 $(DIRECTORY)/src/mesa/drivers/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000260 $(DIRECTORY)/src/mesa/drivers/beos/*.cpp \
Brian Paul244af162004-08-14 21:12:37 +0000261 $(DIRECTORY)/src/mesa/drivers/beos/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000262 $(DIRECTORY)/src/mesa/drivers/common/*.[ch] \
263 $(DIRECTORY)/src/mesa/drivers/common/descrip.mms \
Karl Schultz5b10d712005-06-03 15:24:55 +0000264 $(DIRECTORY)/src/mesa/drivers/directfb/*.[ch] \
265 $(DIRECTORY)/src/mesa/drivers/directfb/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000266 $(DIRECTORY)/src/mesa/drivers/dos/*.[chS] \
Brian Paule4d9cc92008-07-08 16:28:33 -0600267 $(DIRECTORY)/src/mesa/drivers/fbdev/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000268 $(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c \
269 $(DIRECTORY)/src/mesa/drivers/glide/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000270 $(DIRECTORY)/src/mesa/drivers/ggi/*.[ch] \
271 $(DIRECTORY)/src/mesa/drivers/ggi/ggimesa.conf.in \
272 $(DIRECTORY)/src/mesa/drivers/ggi/default/*.c \
273 $(DIRECTORY)/src/mesa/drivers/ggi/default/genkgi.conf.in \
274 $(DIRECTORY)/src/mesa/drivers/ggi/display/*.c \
275 $(DIRECTORY)/src/mesa/drivers/ggi/display/fbdev.conf.in \
276 $(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/*.h \
Brian Paul7d3feef2008-07-08 16:26:06 -0600277 $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000278 $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win \
279 $(DIRECTORY)/src/mesa/drivers/osmesa/descrip.mms \
280 $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def \
Brian Paulde0ee312004-03-26 15:19:11 +0000281 $(DIRECTORY)/src/mesa/drivers/osmesa/*.[ch] \
282 $(DIRECTORY)/src/mesa/drivers/svga/*.[ch] \
283 $(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch] \
284 $(DIRECTORY)/src/mesa/drivers/windows/*/*.def \
Brian Paul7d3feef2008-07-08 16:26:06 -0600285 $(DIRECTORY)/src/mesa/drivers/x11/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000286 $(DIRECTORY)/src/mesa/drivers/x11/descrip.mms \
287 $(DIRECTORY)/src/mesa/drivers/x11/*.[ch] \
Brian Paul835a9fe2008-10-28 18:27:21 -0600288 $(DIRECTORY)/src/mesa/drivers/glslcompiler/Makefile \
289 $(DIRECTORY)/src/mesa/drivers/glslcompiler/glslcompiler.c \
Brian Paul03f52fe2005-07-01 01:55:30 +0000290 $(DIRECTORY)/src/mesa/ppc/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000291 $(DIRECTORY)/src/mesa/sparc/*.[chS] \
292 $(DIRECTORY)/src/mesa/x86/Makefile \
293 $(DIRECTORY)/src/mesa/x86/*.[ch] \
294 $(DIRECTORY)/src/mesa/x86/*.S \
Brian Paul03f52fe2005-07-01 01:55:30 +0000295 $(DIRECTORY)/src/mesa/x86/rtasm/*.[ch] \
296 $(DIRECTORY)/src/mesa/x86-64/*.[chS] \
297 $(DIRECTORY)/src/mesa/x86-64/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000298 $(DIRECTORY)/progs/Makefile \
299 $(DIRECTORY)/progs/util/README \
300 $(DIRECTORY)/progs/util/*.[ch] \
301 $(DIRECTORY)/progs/util/sampleMakefile \
Brian Pauldace4e32009-01-20 09:13:06 -0700302 $(DIRECTORY)/windows/VC8/
Brianb1b154c2007-04-24 08:58:12 -0600303
Brian Paul9dfc1b62009-02-24 15:00:14 -0700304EGL_FILES = \
Brian Paul70bebf82009-02-24 16:17:44 -0700305 $(DIRECTORY)/include/EGL/*.h \
Brian Paul8e6337f2009-02-24 17:21:45 -0700306 $(DIRECTORY)/include/GLES/*.h \
307 $(DIRECTORY)/include/GLES2/*.h \
Brian Paul9dfc1b62009-02-24 15:00:14 -0700308 $(DIRECTORY)/src/egl/Makefile \
309 $(DIRECTORY)/src/egl/*/Makefile \
310 $(DIRECTORY)/src/egl/*/*.[ch] \
311 $(DIRECTORY)/src/egl/*/*/Makefile \
312 $(DIRECTORY)/src/egl/*/*/*.[ch] \
313
314GALLIUM_FILES = \
315 $(DIRECTORY)/src/mesa/state_tracker/*[ch] \
316 $(DIRECTORY)/src/gallium/Makefile \
317 $(DIRECTORY)/src/gallium/Makefile.template \
318 $(DIRECTORY)/src/gallium/SConscript \
319 $(DIRECTORY)/src/gallium/*/Makefile \
320 $(DIRECTORY)/src/gallium/*/SConscript \
321 $(DIRECTORY)/src/gallium/*/*/Makefile \
322 $(DIRECTORY)/src/gallium/*/*/Makefile.template \
323 $(DIRECTORY)/src/gallium/*/*/SConscript \
324 $(DIRECTORY)/src/gallium/*/*/*.[ch] \
325 $(DIRECTORY)/src/gallium/*/*/*.py \
326 $(DIRECTORY)/src/gallium/*/*/*/Makefile \
327 $(DIRECTORY)/src/gallium/*/*/*/SConscript \
328 $(DIRECTORY)/src/gallium/*/*/*/*.[ch] \
329 $(DIRECTORY)/src/gallium/*/*/*/*.py \
330 $(DIRECTORY)/src/gallium/*/*/*/*/*.[ch] \
331
Brian Paulde0ee312004-03-26 15:19:11 +0000332
Brian Paul3e2419a2005-07-22 15:52:46 +0000333DRI_FILES = \
Brian Paul73020032005-10-17 22:38:44 +0000334 $(DIRECTORY)/include/GL/internal/dri_interface.h \
Brian Paula8ee35c2009-01-06 07:35:45 -0700335 $(DIRECTORY)/include/GL/internal/glcore.h \
Brian Paul73020032005-10-17 22:38:44 +0000336 $(DIRECTORY)/include/GL/internal/sarea.h \
Brian Paul3e2419a2005-07-22 15:52:46 +0000337 $(DIRECTORY)/src/glx/Makefile \
338 $(DIRECTORY)/src/glx/x11/Makefile \
339 $(DIRECTORY)/src/glx/x11/*.[ch] \
340 $(DIRECTORY)/src/mesa/drivers/dri/Makefile \
341 $(DIRECTORY)/src/mesa/drivers/dri/Makefile.template \
Dan Nicholsonf6da1452008-06-12 06:46:32 -0700342 $(DIRECTORY)/src/mesa/drivers/dri/dri.pc.in \
Brian Paul3e2419a2005-07-22 15:52:46 +0000343 $(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.[ch] \
344 $(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.po \
Brian Paul1e71d6a2005-08-22 14:27:13 +0000345 $(DIRECTORY)/src/mesa/drivers/dri/*/*.[chS] \
Brian Paul3e2419a2005-07-22 15:52:46 +0000346 $(DIRECTORY)/src/mesa/drivers/dri/*/Makefile \
347 $(DIRECTORY)/src/mesa/drivers/dri/*/Doxyfile \
348 $(DIRECTORY)/src/mesa/drivers/dri/*/server/*.[ch]
Brian Paulde0ee312004-03-26 15:19:11 +0000349
Brian Paul3e2419a2005-07-22 15:52:46 +0000350SGI_GLU_FILES = \
351 $(DIRECTORY)/src/glu/Makefile \
Brianf3419d52007-09-13 09:27:10 -0600352 $(DIRECTORY)/src/glu/glu.pc.in \
Brian Paul3e2419a2005-07-22 15:52:46 +0000353 $(DIRECTORY)/src/glu/sgi/Makefile \
Zhang76fb8082007-07-21 11:28:06 -0600354 $(DIRECTORY)/src/glu/sgi/Makefile.mgw \
Brian Paul3e2419a2005-07-22 15:52:46 +0000355 $(DIRECTORY)/src/glu/sgi/Makefile.win \
Brian Paul3e2419a2005-07-22 15:52:46 +0000356 $(DIRECTORY)/src/glu/sgi/glu.def \
357 $(DIRECTORY)/src/glu/sgi/dummy.cc \
Brian Paul5d762e12008-08-16 10:09:38 -0600358 $(DIRECTORY)/src/glu/sgi/glu.exports \
359 $(DIRECTORY)/src/glu/sgi/glu.exports.darwin \
Brian Paul3e2419a2005-07-22 15:52:46 +0000360 $(DIRECTORY)/src/glu/sgi/mesaglu.opt \
361 $(DIRECTORY)/src/glu/sgi/include/gluos.h \
362 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \
363 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc \
364 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h \
365 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc \
366 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.h \
367 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.cc \
368 $(DIRECTORY)/src/glu/sgi/libtess/README \
369 $(DIRECTORY)/src/glu/sgi/libtess/alg-outline \
370 $(DIRECTORY)/src/glu/sgi/libtess/*.[ch] \
371 $(DIRECTORY)/src/glu/sgi/libutil/*.[ch]
Brian Paul8e73b142005-01-03 15:36:27 +0000372
Brian Paul3e2419a2005-07-22 15:52:46 +0000373MESA_GLU_FILES = \
374 $(DIRECTORY)/src/glu/mesa/README[12] \
375 $(DIRECTORY)/src/glu/mesa/Makefile* \
376 $(DIRECTORY)/src/glu/mesa/descrip.mms \
377 $(DIRECTORY)/src/glu/mesa/mms_depend \
378 $(DIRECTORY)/src/glu/mesa/*.def \
379 $(DIRECTORY)/src/glu/mesa/depend \
380 $(DIRECTORY)/src/glu/mesa/*.[ch]
Brian Paul8e73b142005-01-03 15:36:27 +0000381
Brian Paul3e2419a2005-07-22 15:52:46 +0000382GLW_FILES = \
383 $(DIRECTORY)/src/glw/*.[ch] \
384 $(DIRECTORY)/src/glw/Makefile* \
385 $(DIRECTORY)/src/glw/README \
Brianb87ce5b2007-11-12 07:51:28 -0700386 $(DIRECTORY)/src/glw/glw.pc.in \
Brian Paul3e2419a2005-07-22 15:52:46 +0000387 $(DIRECTORY)/src/glw/depend
388
Brian Paul80cef692005-09-10 16:54:05 +0000389DEMO_FILES = \
Brian Paul244af162004-08-14 21:12:37 +0000390 $(DIRECTORY)/progs/beos/*.cpp \
391 $(DIRECTORY)/progs/beos/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000392 $(DIRECTORY)/progs/images/*.rgb \
393 $(DIRECTORY)/progs/images/*.rgba \
394 $(DIRECTORY)/progs/demos/Makefile* \
395 $(DIRECTORY)/progs/demos/descrip.mms \
396 $(DIRECTORY)/progs/demos/*.[ch] \
397 $(DIRECTORY)/progs/demos/*.cxx \
398 $(DIRECTORY)/progs/demos/*.dat \
399 $(DIRECTORY)/progs/demos/README \
Brian22b0b2f2007-07-03 15:46:38 -0600400 $(DIRECTORY)/progs/fbdev/Makefile \
401 $(DIRECTORY)/progs/fbdev/glfbdevtest.c \
Brian Paulbcf4ae72005-11-02 21:01:26 +0000402 $(DIRECTORY)/progs/osdemos/Makefile \
403 $(DIRECTORY)/progs/osdemos/*.c \
Brian Paulde0ee312004-03-26 15:19:11 +0000404 $(DIRECTORY)/progs/xdemos/Makefile* \
405 $(DIRECTORY)/progs/xdemos/descrip.mms \
406 $(DIRECTORY)/progs/xdemos/*.[chf] \
407 $(DIRECTORY)/progs/redbook/Makefile* \
408 $(DIRECTORY)/progs/redbook/README \
409 $(DIRECTORY)/progs/redbook/*.[ch] \
410 $(DIRECTORY)/progs/samples/Makefile* \
411 $(DIRECTORY)/progs/samples/README \
412 $(DIRECTORY)/progs/samples/*.c \
Briand9443c22007-04-18 08:52:18 -0600413 $(DIRECTORY)/progs/glsl/Makefile* \
414 $(DIRECTORY)/progs/glsl/*.c \
Brian Paul7970b2a2008-08-16 09:39:10 -0600415 $(DIRECTORY)/progs/glsl/*.frag \
416 $(DIRECTORY)/progs/glsl/*.vert \
Brian Paulde0ee312004-03-26 15:19:11 +0000417 $(DIRECTORY)/progs/windml/Makefile.ugl \
418 $(DIRECTORY)/progs/windml/*.c \
419 $(DIRECTORY)/progs/windml/*.bmp \
Karl Schultz5b10d712005-06-03 15:24:55 +0000420 $(DIRECTORY)/progs/ggi/*.c \
Karl Schultzc136b412005-07-01 20:31:41 +0000421 $(DIRECTORY)/windows/VC6/progs/demos/*.dsp \
Karl Schultzc136b412005-07-01 20:31:41 +0000422 $(DIRECTORY)/windows/VC6/progs/progs.dsw \
423 $(DIRECTORY)/windows/VC7/progs/demos/*.vcproj \
Karl Schultzc136b412005-07-01 20:31:41 +0000424 $(DIRECTORY)/windows/VC7/progs/progs.sln
Brian Paulde0ee312004-03-26 15:19:11 +0000425
Brian Paul3e2419a2005-07-22 15:52:46 +0000426GLUT_FILES = \
427 $(DIRECTORY)/include/GL/glut.h \
428 $(DIRECTORY)/include/GL/glutf90.h \
429 $(DIRECTORY)/src/glut/glx/Makefile* \
430 $(DIRECTORY)/src/glut/glx/depend \
Brianf3419d52007-09-13 09:27:10 -0600431 $(DIRECTORY)/src/glut/glx/glut.pc.in \
Brian Paul3e2419a2005-07-22 15:52:46 +0000432 $(DIRECTORY)/src/glut/glx/*def \
433 $(DIRECTORY)/src/glut/glx/descrip.mms \
434 $(DIRECTORY)/src/glut/glx/mms_depend \
435 $(DIRECTORY)/src/glut/glx/*.[ch] \
436 $(DIRECTORY)/src/glut/beos/*.[ch] \
437 $(DIRECTORY)/src/glut/beos/*.cpp \
438 $(DIRECTORY)/src/glut/beos/Makefile \
439 $(DIRECTORY)/src/glut/dos/*.[ch] \
440 $(DIRECTORY)/src/glut/dos/Makefile.DJ \
441 $(DIRECTORY)/src/glut/dos/PC_HW/*.[chS] \
442 $(DIRECTORY)/src/glut/ggi/*.[ch] \
Brian Paul80cef692005-09-10 16:54:05 +0000443 $(DIRECTORY)/src/glut/ggi/Makefile \
Brian Paul667dd3c2006-07-31 14:25:53 +0000444 $(DIRECTORY)/src/glut/fbdev/Makefile \
Brian Pauld21ccb42006-08-23 19:46:17 +0000445 $(DIRECTORY)/src/glut/fbdev/*[ch] \
Brian Paul83304322006-08-24 17:01:35 +0000446 $(DIRECTORY)/src/glut/mini/*[ch] \
Brian4875b402008-01-23 16:03:19 -0700447 $(DIRECTORY)/src/glut/mini/glut.pc.in \
Briane90dd4b2007-10-23 08:22:21 -0600448 $(DIRECTORY)/src/glut/directfb/Makefile \
449 $(DIRECTORY)/src/glut/directfb/NOTES \
450 $(DIRECTORY)/src/glut/directfb/*[ch] \
Brian Paul80cef692005-09-10 16:54:05 +0000451 $(DIRECTORY)/windows/VC6/progs/glut/glut.dsp \
452 $(DIRECTORY)/windows/VC7/progs/glut/glut.vcproj
Brian Paulde0ee312004-03-26 15:19:11 +0000453
Brian Paul3e2419a2005-07-22 15:52:46 +0000454DEPEND_FILES = \
455 $(TOP)/src/mesa/depend \
Brian Paulb10ea982006-06-28 21:58:47 +0000456 $(TOP)/src/glx/x11/depend \
Brian Paul3e2419a2005-07-22 15:52:46 +0000457 $(TOP)/src/glw/depend \
458 $(TOP)/src/glut/glx/depend \
459 $(TOP)/src/glu/sgi/depend
Brian Paul281f8552004-09-09 18:17:36 +0000460
461
Brian Paul9dfc1b62009-02-24 15:00:14 -0700462LIB_FILES = \
463 $(MAIN_FILES) \
464 $(EGL_FILES) \
465 $(GALLIUM_FILES) \
466 $(DRI_FILES) \
467 $(SGI_GLU_FILES) \
468 $(GLW_FILES)
Brian Paul3e2419a2005-07-22 15:52:46 +0000469
Brian Pauldff11bb2005-07-21 18:44:52 +0000470
Brian Paul281f8552004-09-09 18:17:36 +0000471# Everything for new a Mesa release:
Dan Nicholson72796232007-12-05 17:23:00 -0800472tarballs: rm_depend configure aclocal.m4 lib_gz demo_gz glut_gz \
473 lib_bz2 demo_bz2 glut_bz2 lib_zip demo_zip glut_zip md5
Brian Paul281f8552004-09-09 18:17:36 +0000474
475
Dan Nicholson72796232007-12-05 17:23:00 -0800476# Helper for autoconf builds
477ACLOCAL = aclocal
478ACLOCAL_FLAGS =
479AUTOCONF = autoconf
480AC_FLAGS =
Dan Nicholsond368eed2008-05-05 18:24:21 -0700481aclocal.m4: configure.ac acinclude.m4
Dan Nicholson72796232007-12-05 17:23:00 -0800482 $(ACLOCAL) $(ACLOCAL_FLAGS)
Dan Nicholsond368eed2008-05-05 18:24:21 -0700483configure: configure.ac aclocal.m4 acinclude.m4
Dan Nicholson72796232007-12-05 17:23:00 -0800484 $(AUTOCONF) $(AC_FLAGS)
485
Brian Paul3e2419a2005-07-22 15:52:46 +0000486rm_depend:
487 @for dep in $(DEPEND_FILES) ; do \
488 rm -f $$dep ; \
489 touch $$dep ; \
490 done
491
Brian Paulde0ee312004-03-26 15:19:11 +0000492lib_gz:
493 rm -f configs/current ; \
Dan Nicholson72796232007-12-05 17:23:00 -0800494 rm -f configs/autoconf ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000495 cd .. ; \
Brian Pauldff11bb2005-07-21 18:44:52 +0000496 tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000497 gzip $(LIB_NAME).tar ; \
498 mv $(LIB_NAME).tar.gz $(DIRECTORY)
499
500demo_gz:
501 cd .. ; \
Brian Paul3e2419a2005-07-22 15:52:46 +0000502 tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000503 gzip $(DEMO_NAME).tar ; \
504 mv $(DEMO_NAME).tar.gz $(DIRECTORY)
505
Brian Paul80cef692005-09-10 16:54:05 +0000506glut_gz:
507 cd .. ; \
508 tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \
509 gzip $(GLUT_NAME).tar ; \
510 mv $(GLUT_NAME).tar.gz $(DIRECTORY)
511
Brian Paulde0ee312004-03-26 15:19:11 +0000512lib_bz2:
513 rm -f configs/current ; \
Dan Nicholson72796232007-12-05 17:23:00 -0800514 rm -f configs/autoconf ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000515 cd .. ; \
Brian Pauldff11bb2005-07-21 18:44:52 +0000516 tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000517 bzip2 $(LIB_NAME).tar ; \
518 mv $(LIB_NAME).tar.bz2 $(DIRECTORY)
519
520demo_bz2:
521 cd .. ; \
Brian Paul3e2419a2005-07-22 15:52:46 +0000522 tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000523 bzip2 $(DEMO_NAME).tar ; \
524 mv $(DEMO_NAME).tar.bz2 $(DIRECTORY)
525
Brian Paul80cef692005-09-10 16:54:05 +0000526glut_bz2:
527 cd .. ; \
528 tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \
529 bzip2 $(GLUT_NAME).tar ; \
530 mv $(GLUT_NAME).tar.bz2 $(DIRECTORY)
531
Brian Paulde0ee312004-03-26 15:19:11 +0000532lib_zip:
533 rm -f configs/current ; \
Dan Nicholson72796232007-12-05 17:23:00 -0800534 rm -f configs/autoconf ; \
Brian Paul3e2419a2005-07-22 15:52:46 +0000535 rm -f $(LIB_NAME).zip ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000536 cd .. ; \
Brian Pauldff11bb2005-07-21 18:44:52 +0000537 zip -qr $(LIB_NAME).zip $(LIB_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000538 mv $(LIB_NAME).zip $(DIRECTORY)
539
540demo_zip:
Brian Paul3e2419a2005-07-22 15:52:46 +0000541 rm -f $(DEMO_NAME).zip ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000542 cd .. ; \
Brian Paul3e2419a2005-07-22 15:52:46 +0000543 zip -qr $(DEMO_NAME).zip $(DEMO_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000544 mv $(DEMO_NAME).zip $(DIRECTORY)
545
Brian Paul80cef692005-09-10 16:54:05 +0000546glut_zip:
547 rm -f $(GLUT_NAME).zip ; \
548 cd .. ; \
549 zip -qr $(GLUT_NAME).zip $(GLUT_FILES) ; \
550 mv $(GLUT_NAME).zip $(DIRECTORY)
551
Brian Paulde0ee312004-03-26 15:19:11 +0000552md5:
553 @-md5sum $(LIB_NAME).tar.gz
554 @-md5sum $(LIB_NAME).tar.bz2
555 @-md5sum $(LIB_NAME).zip
556 @-md5sum $(DEMO_NAME).tar.gz
557 @-md5sum $(DEMO_NAME).tar.bz2
558 @-md5sum $(DEMO_NAME).zip
Brian Paul80cef692005-09-10 16:54:05 +0000559 @-md5sum $(GLUT_NAME).tar.gz
560 @-md5sum $(GLUT_NAME).tar.bz2
561 @-md5sum $(GLUT_NAME).zip
Dan Nicholson50f7e6f2008-05-06 11:52:34 -0700562
563.PHONY: tarballs rm_depend lib_gz demo_gz glut_gz lib_bz2 demo_bz2 \
564 glut_bz2 lib_zip demo_zip glut_zip md5