blob: cb9943d7a2128ba1c84c3ca7d2f1aba2dda86cb1 [file] [log] [blame]
Brian Paulde0ee312004-03-26 15:19:11 +00001# Top-level Mesa makefile
2
3TOP = .
4
Brian Paul0a401b52010-06-04 17:36:17 -06005SUBDIRS = src
Brian Paulde0ee312004-03-26 15:19:11 +00006
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
Kristian Høgsberg43875802010-02-25 15:49:18 -050051.PHONY: default doxygen clean realclean distclean 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 +000083freebsd \
Eric Anholtcc182212004-10-28 00:19:21 +000084freebsd-dri \
Eric Anholtf054fa82005-05-28 20:17:06 +000085freebsd-dri-amd64 \
Eric Anholtcc182212004-10-28 00:19:21 +000086freebsd-dri-x86 \
Brian Paulde0ee312004-03-26 15:19:11 +000087hpux10 \
88hpux10-gcc \
Brian Paulff7d3bb2004-03-30 14:56:47 +000089hpux10-static \
Karl Schultz786eef22004-10-01 20:19:16 +000090hpux11-32 \
Brian Paulde0ee312004-03-26 15:19:11 +000091hpux11-32-static \
92hpux11-32-static-nothreads \
Karl Schultz786eef22004-10-01 20:19:16 +000093hpux11-64 \
Brian Paulde0ee312004-03-26 15:19:11 +000094hpux11-64-static \
Brian Paul294d9ab2006-04-13 03:00:14 +000095hpux11-ia64 \
96hpux11-ia64-static \
Brian Paulde0ee312004-03-26 15:19:11 +000097hpux9 \
98hpux9-gcc \
99irix6-64 \
100irix6-64-static \
101irix6-n32 \
102irix6-n32-static \
103irix6-o32 \
104irix6-o32-static \
105linux \
Keith Whitwell211d7ab2009-11-04 13:03:35 +0000106linux-i965 \
Brian Paulde0ee312004-03-26 15:19:11 +0000107linux-alpha \
108linux-alpha-static \
Brian88b715b2007-12-02 15:23:51 -0700109linux-cell \
Brian Paulab93aa72008-09-03 09:08:19 -0600110linux-cell-debug \
Brian Paulde0ee312004-03-26 15:19:11 +0000111linux-debug \
Keith Whitwelle61df582004-04-14 12:44:07 +0000112linux-dri \
Brian15b3bd12007-02-23 11:58:46 -0700113linux-dri-debug \
Dave Airlie898c03a2004-05-03 11:30:37 +0000114linux-dri-x86 \
Keith Whitwell69ab4fe2004-04-30 08:29:04 +0000115linux-dri-x86-64 \
Ian Romanick447cdd52004-10-13 19:56:15 +0000116linux-dri-ppc \
Jeremy Kolb97a30232006-02-19 22:30:46 +0000117linux-dri-xcb \
Jakob Bornecrantz9395fb62008-05-22 16:24:51 +0200118linux-egl \
Ian Romanickdc6e2c72005-07-29 17:25:50 +0000119linux-indirect \
Keith Whitwella5cb1aa2005-04-29 17:31:10 +0000120linux-fbdev \
Brian Paul294d9ab2006-04-13 03:00:14 +0000121linux-ia64-icc \
122linux-ia64-icc-static \
Brian Paulde0ee312004-03-26 15:19:11 +0000123linux-icc \
124linux-icc-static \
Zack Rusinb04430e2007-10-22 11:00:28 -0400125linux-llvm \
Brian Paul6a7b6a52009-12-18 11:17:06 -0700126linux-llvm-debug \
Chia-I Wu97ea8e92009-11-06 16:27:19 +0800127linux-opengl-es \
Brian Paul525eb0b2006-07-04 16:49:58 +0000128linux-osmesa \
Brian Pauldf37cde2009-05-18 08:46:17 -0600129linux-osmesa-static \
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-sparc \
137linux-sparc5 \
138linux-static \
139linux-ultrasparc \
Keith Whitwell6fb23562004-04-14 21:19:34 +0000140linux-tcc \
Brian Paulde0ee312004-03-26 15:19:11 +0000141linux-x86 \
Keith Whitwelle61df582004-04-14 12:44:07 +0000142linux-x86-debug \
Brian Paul7644bfb2005-03-03 01:44:42 +0000143linux-x86-32 \
Brian Paulde0ee312004-03-26 15:19:11 +0000144linux-x86-64 \
Brian Paul42fa8122005-05-07 16:59:58 +0000145linux-x86-64-debug \
José Fonseca59424e22007-09-28 17:17:11 +0000146linux-x86-64-profile \
Brian Paulde0ee312004-03-26 15:19:11 +0000147linux-x86-64-static \
José Fonseca59424e22007-09-28 17:17:11 +0000148linux-x86-profile \
Brian Paulde0ee312004-03-26 15:19:11 +0000149linux-x86-static \
150netbsd \
151openbsd \
152osf1 \
Brian Paul294d9ab2006-04-13 03:00:14 +0000153osf1-static \
Brian Paulde0ee312004-03-26 15:19:11 +0000154solaris-x86 \
155solaris-x86-gcc \
Brian Paulc717ffa2006-05-17 22:51:44 +0000156solaris-x86-gcc-static \
Brian Paulde0ee312004-03-26 15:19:11 +0000157sunos4 \
158sunos4-gcc \
159sunos4-static \
160sunos5 \
161sunos5-gcc \
Brian Paul9073c402006-04-07 15:16:46 +0000162sunos5-64-gcc \
Brian Paulde0ee312004-03-26 15:19:11 +0000163sunos5-smp \
Brian Paul294d9ab2006-04-13 03:00:14 +0000164sunos5-v8 \
165sunos5-v8-static \
166sunos5-v9 \
167sunos5-v9-static \
Brian2c0b3d82007-07-31 09:32:10 -0600168sunos5-v9-cc-g++ \
Brian Paulde0ee312004-03-26 15:19:11 +0000169ultrix-gcc:
José Fonsecac3168e02010-02-14 13:15:49 +0000170 @ 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 ; \
Brian Paul31635422006-08-03 16:58:06 +0000177 fi
Eric Anholt2fb5d152004-06-01 00:06:14 +0000178 $(MAKE) default
Brian Paulde0ee312004-03-26 15:19:11 +0000179
180
181# Rules for making release tarballs
182
Vinson Leebecd9802011-01-05 23:27:30 -0800183VERSION=7.11-devel
Brian Paul681a13e2009-02-05 08:39:10 -0700184DIRECTORY = Mesa-$(VERSION)
185LIB_NAME = MesaLib-$(VERSION)
Brian Paul681a13e2009-02-05 08:39:10 -0700186GLUT_NAME = MesaGLUT-$(VERSION)
Brian Paulde0ee312004-03-26 15:19:11 +0000187
Chia-I Wu238f7822010-05-07 22:09:45 +0800188# This is part of MAIN_FILES
189MAIN_ES_FILES = \
Chia-I Wu238f7822010-05-07 22:09:45 +0800190 $(DIRECTORY)/src/mesa/main/*.xml \
191 $(DIRECTORY)/src/mesa/main/*.py \
192 $(DIRECTORY)/src/mesa/main/*.dtd
193
Brian Pauldff11bb2005-07-21 18:44:52 +0000194MAIN_FILES = \
Brian Paulde0ee312004-03-26 15:19:11 +0000195 $(DIRECTORY)/Makefile* \
Dan Nicholson72796232007-12-05 17:23:00 -0800196 $(DIRECTORY)/configure \
197 $(DIRECTORY)/configure.ac \
Dan Nicholsond368eed2008-05-05 18:24:21 -0700198 $(DIRECTORY)/acinclude.m4 \
Dan Nicholson72796232007-12-05 17:23:00 -0800199 $(DIRECTORY)/aclocal.m4 \
Dan Nicholson72796232007-12-05 17:23:00 -0800200 $(DIRECTORY)/bin/config.guess \
201 $(DIRECTORY)/bin/config.sub \
202 $(DIRECTORY)/bin/install-sh \
Brian Paulde0ee312004-03-26 15:19:11 +0000203 $(DIRECTORY)/bin/mklib \
Brian Paul73dd09f2006-10-22 22:37:30 +0000204 $(DIRECTORY)/bin/minstall \
Dan Nicholsonfbb96a02008-06-10 06:06:40 -0700205 $(DIRECTORY)/bin/version.mk \
Brian Paulde0ee312004-03-26 15:19:11 +0000206 $(DIRECTORY)/configs/[a-z]* \
207 $(DIRECTORY)/docs/*.html \
208 $(DIRECTORY)/docs/COPYING \
Brian Paulde0ee312004-03-26 15:19:11 +0000209 $(DIRECTORY)/docs/README.* \
210 $(DIRECTORY)/docs/RELNOTES* \
Brian Paulde0ee312004-03-26 15:19:11 +0000211 $(DIRECTORY)/docs/*.spec \
212 $(DIRECTORY)/include/GL/internal/glcore.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000213 $(DIRECTORY)/include/GL/gl.h \
214 $(DIRECTORY)/include/GL/glext.h \
215 $(DIRECTORY)/include/GL/gl_mangle.h \
216 $(DIRECTORY)/include/GL/glu.h \
217 $(DIRECTORY)/include/GL/glu_mangle.h \
218 $(DIRECTORY)/include/GL/glx.h \
219 $(DIRECTORY)/include/GL/glxext.h \
220 $(DIRECTORY)/include/GL/glx_mangle.h \
Brian Paul159ca3212006-03-30 14:27:25 +0000221 $(DIRECTORY)/include/GL/glfbdev.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000222 $(DIRECTORY)/include/GL/mesa_wgl.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000223 $(DIRECTORY)/include/GL/osmesa.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 \
michal068596c2009-12-10 01:03:15 +0100227 $(DIRECTORY)/src/glsl/Makefile \
Brian Paulc9a210f2010-01-07 08:42:43 -0700228 $(DIRECTORY)/src/glsl/Makefile.template \
Brian Paule2158302010-02-26 08:21:44 -0700229 $(DIRECTORY)/src/glsl/SConscript \
Eric Anholt284ce202010-08-20 10:52:14 -0700230 $(DIRECTORY)/src/glsl/*.[ch] \
231 $(DIRECTORY)/src/glsl/*.[cly]pp \
232 $(DIRECTORY)/src/glsl/README \
Chia-I Wuc3422592010-09-12 02:20:39 +0800233 $(DIRECTORY)/src/glsl/glcpp/*.[chly] \
Eric Anholt284ce202010-08-20 10:52:14 -0700234 $(DIRECTORY)/src/glsl/glcpp/README \
Thierry Vignaudd3d6bee2011-01-28 12:31:04 -0800235 $(DIRECTORY)/src/glsl/builtins \
Brian Paulde0ee312004-03-26 15:19:11 +0000236 $(DIRECTORY)/src/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000237 $(DIRECTORY)/src/mesa/Makefile* \
Brian Paul7fcf4c62009-02-24 14:27:43 -0700238 $(DIRECTORY)/src/mesa/sources.mak \
Brian Paulde0ee312004-03-26 15:19:11 +0000239 $(DIRECTORY)/src/mesa/descrip.mms \
Brianf3419d52007-09-13 09:27:10 -0600240 $(DIRECTORY)/src/mesa/gl.pc.in \
Brian Paul1598be52009-01-12 07:55:14 -0700241 $(DIRECTORY)/src/mesa/osmesa.pc.in \
Brian Paulde0ee312004-03-26 15:19:11 +0000242 $(DIRECTORY)/src/mesa/depend \
Chia-I Wu238f7822010-05-07 22:09:45 +0800243 $(MAIN_ES_FILES) \
Brian Paulde0ee312004-03-26 15:19:11 +0000244 $(DIRECTORY)/src/mesa/main/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000245 $(DIRECTORY)/src/mesa/main/descrip.mms \
Brian Paulde0ee312004-03-26 15:19:11 +0000246 $(DIRECTORY)/src/mesa/math/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000247 $(DIRECTORY)/src/mesa/math/descrip.mms \
Brian Paulec2b92f2010-06-10 23:02:41 -0600248 $(DIRECTORY)/src/mesa/program/*.[chly] \
Chia-I Wuc3422592010-09-12 02:20:39 +0800249 $(DIRECTORY)/src/mesa/program/*.cpp \
Brian Paulec2b92f2010-06-10 23:02:41 -0600250 $(DIRECTORY)/src/mesa/program/Makefile \
251 $(DIRECTORY)/src/mesa/program/descrip.mms \
Brian Paulde0ee312004-03-26 15:19:11 +0000252 $(DIRECTORY)/src/mesa/swrast/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000253 $(DIRECTORY)/src/mesa/swrast/descrip.mms \
254 $(DIRECTORY)/src/mesa/swrast_setup/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000255 $(DIRECTORY)/src/mesa/swrast_setup/descrip.mms \
Richard Hughese9c614a2007-04-07 08:39:24 -0600256 $(DIRECTORY)/src/mesa/vbo/*.[chS] \
257 $(DIRECTORY)/src/mesa/vbo/descrip.mms \
Brian Paul02ca8fe2004-08-13 20:58:59 +0000258 $(DIRECTORY)/src/mesa/tnl/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000259 $(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 \
Brian Paul44029f12008-07-08 16:16:57 -0600263 $(DIRECTORY)/src/mesa/drivers/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000264 $(DIRECTORY)/src/mesa/drivers/beos/*.cpp \
Brian Paul244af162004-08-14 21:12:37 +0000265 $(DIRECTORY)/src/mesa/drivers/beos/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000266 $(DIRECTORY)/src/mesa/drivers/common/*.[ch] \
267 $(DIRECTORY)/src/mesa/drivers/common/descrip.mms \
Brian Paule4d9cc92008-07-08 16:28:33 -0600268 $(DIRECTORY)/src/mesa/drivers/fbdev/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000269 $(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c \
Brian Paul7d3feef2008-07-08 16:26:06 -0600270 $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000271 $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win \
272 $(DIRECTORY)/src/mesa/drivers/osmesa/descrip.mms \
273 $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def \
Brian Paulde0ee312004-03-26 15:19:11 +0000274 $(DIRECTORY)/src/mesa/drivers/osmesa/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000275 $(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch] \
276 $(DIRECTORY)/src/mesa/drivers/windows/*/*.def \
Brian Paul7d3feef2008-07-08 16:26:06 -0600277 $(DIRECTORY)/src/mesa/drivers/x11/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000278 $(DIRECTORY)/src/mesa/drivers/x11/descrip.mms \
279 $(DIRECTORY)/src/mesa/drivers/x11/*.[ch] \
Brian Paul03f52fe2005-07-01 01:55:30 +0000280 $(DIRECTORY)/src/mesa/ppc/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000281 $(DIRECTORY)/src/mesa/sparc/*.[chS] \
282 $(DIRECTORY)/src/mesa/x86/Makefile \
283 $(DIRECTORY)/src/mesa/x86/*.[ch] \
284 $(DIRECTORY)/src/mesa/x86/*.S \
Brian Paul03f52fe2005-07-01 01:55:30 +0000285 $(DIRECTORY)/src/mesa/x86/rtasm/*.[ch] \
286 $(DIRECTORY)/src/mesa/x86-64/*.[chS] \
Brian Paulf2471752011-01-28 13:29:50 -0700287 $(DIRECTORY)/src/mesa/x86-64/Makefile
Brianb1b154c2007-04-24 08:58:12 -0600288
Chia-I Wu238f7822010-05-07 22:09:45 +0800289MAPI_FILES = \
Brian Paul8e6337f2009-02-24 17:21:45 -0700290 $(DIRECTORY)/include/GLES/*.h \
291 $(DIRECTORY)/include/GLES2/*.h \
Chia-I Wu238f7822010-05-07 22:09:45 +0800292 $(DIRECTORY)/include/VG/*.h \
293 $(DIRECTORY)/src/mapi/es?api/Makefile \
294 $(DIRECTORY)/src/mapi/es?api/*.pc.in \
295 $(DIRECTORY)/src/mapi/glapi/gen/Makefile \
296 $(DIRECTORY)/src/mapi/glapi/gen/*.xml \
297 $(DIRECTORY)/src/mapi/glapi/gen/*.py \
298 $(DIRECTORY)/src/mapi/glapi/gen/*.dtd \
299 $(DIRECTORY)/src/mapi/glapi/gen-es/Makefile \
300 $(DIRECTORY)/src/mapi/glapi/gen-es/*.xml \
301 $(DIRECTORY)/src/mapi/glapi/gen-es/*.py \
302 $(DIRECTORY)/src/mapi/glapi/Makefile \
303 $(DIRECTORY)/src/mapi/glapi/SConscript \
304 $(DIRECTORY)/src/mapi/glapi/sources.mak \
305 $(DIRECTORY)/src/mapi/glapi/*.[chS] \
306 $(DIRECTORY)/src/mapi/mapi/mapi_abi.py \
307 $(DIRECTORY)/src/mapi/mapi/sources.mak \
308 $(DIRECTORY)/src/mapi/mapi/*.[ch] \
309 $(DIRECTORY)/src/mapi/vgapi/Makefile \
310 $(DIRECTORY)/src/mapi/vgapi/vgapi.csv \
311 $(DIRECTORY)/src/mapi/vgapi/vg.pc.in \
312 $(DIRECTORY)/src/mapi/vgapi/*.h
Chia-I Wubfa66bd2009-09-21 17:57:57 +0800313
314EGL_FILES = \
Chia-I Wu238f7822010-05-07 22:09:45 +0800315 $(DIRECTORY)/include/KHR/*.h \
Chia-I Wubfa66bd2009-09-21 17:57:57 +0800316 $(DIRECTORY)/include/EGL/*.h \
Brian Paul9dfc1b62009-02-24 15:00:14 -0700317 $(DIRECTORY)/src/egl/Makefile \
318 $(DIRECTORY)/src/egl/*/Makefile \
Brian Paule2158302010-02-26 08:21:44 -0700319 $(DIRECTORY)/src/egl/*/Makefile.template \
Brian Paul9dfc1b62009-02-24 15:00:14 -0700320 $(DIRECTORY)/src/egl/*/*.[ch] \
321 $(DIRECTORY)/src/egl/*/*/Makefile \
Chia-I Wuc3422592010-09-12 02:20:39 +0800322 $(DIRECTORY)/src/egl/*/*/*.[ch] \
323 $(DIRECTORY)/src/egl/main/*.pc.in \
324 $(DIRECTORY)/src/egl/main/*.def
Brian Paul9dfc1b62009-02-24 15:00:14 -0700325
326GALLIUM_FILES = \
327 $(DIRECTORY)/src/mesa/state_tracker/*[ch] \
328 $(DIRECTORY)/src/gallium/Makefile \
329 $(DIRECTORY)/src/gallium/Makefile.template \
330 $(DIRECTORY)/src/gallium/SConscript \
Thierry Vignaud7fc3a762010-04-05 17:31:18 -0600331 $(DIRECTORY)/src/gallium/targets/Makefile.dri \
Marek Olšák69889382010-09-29 04:02:27 -0700332 $(DIRECTORY)/src/gallium/targets/Makefile.xorg \
333 $(DIRECTORY)/src/gallium/targets/SConscript.dri \
Brian Paul9dfc1b62009-02-24 15:00:14 -0700334 $(DIRECTORY)/src/gallium/*/Makefile \
335 $(DIRECTORY)/src/gallium/*/SConscript \
336 $(DIRECTORY)/src/gallium/*/*/Makefile \
Brian Paul9dfc1b62009-02-24 15:00:14 -0700337 $(DIRECTORY)/src/gallium/*/*/SConscript \
338 $(DIRECTORY)/src/gallium/*/*/*.[ch] \
Chia-I Wuc3422592010-09-12 02:20:39 +0800339 $(DIRECTORY)/src/gallium/auxiliary/gallivm/*.cpp \
Brian Paul9dfc1b62009-02-24 15:00:14 -0700340 $(DIRECTORY)/src/gallium/*/*/*.py \
Brian Paul2b692cd2009-09-09 12:01:28 -0600341 $(DIRECTORY)/src/gallium/*/*/*.csv \
Brian Paul9dfc1b62009-02-24 15:00:14 -0700342 $(DIRECTORY)/src/gallium/*/*/*/Makefile \
343 $(DIRECTORY)/src/gallium/*/*/*/SConscript \
344 $(DIRECTORY)/src/gallium/*/*/*/*.[ch] \
Chia-I Wu238f7822010-05-07 22:09:45 +0800345 $(DIRECTORY)/src/gallium/*/*/*/*.py
Brian Paul9dfc1b62009-02-24 15:00:14 -0700346
Brian Paulde0ee312004-03-26 15:19:11 +0000347
Brian Paul3e2419a2005-07-22 15:52:46 +0000348DRI_FILES = \
Brian Paul73020032005-10-17 22:38:44 +0000349 $(DIRECTORY)/include/GL/internal/dri_interface.h \
350 $(DIRECTORY)/include/GL/internal/sarea.h \
Brian Paul3e2419a2005-07-22 15:52:46 +0000351 $(DIRECTORY)/src/glx/Makefile \
Kristian Høgsberg6e8897f2010-02-09 09:58:36 -0500352 $(DIRECTORY)/src/glx/*.[ch] \
Brian Paul3e2419a2005-07-22 15:52:46 +0000353 $(DIRECTORY)/src/mesa/drivers/dri/Makefile \
354 $(DIRECTORY)/src/mesa/drivers/dri/Makefile.template \
Dan Nicholsonf6da1452008-06-12 06:46:32 -0700355 $(DIRECTORY)/src/mesa/drivers/dri/dri.pc.in \
Brian Paul3e2419a2005-07-22 15:52:46 +0000356 $(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.po \
Brian Paul1e71d6a2005-08-22 14:27:13 +0000357 $(DIRECTORY)/src/mesa/drivers/dri/*/*.[chS] \
Ian Romanick923c3332010-09-27 14:11:07 -0700358 $(DIRECTORY)/src/mesa/drivers/dri/*/*.cpp \
Thierry Vignaud2674d1b2009-08-14 08:16:35 -0600359 $(DIRECTORY)/src/mesa/drivers/dri/*/*/*.[chS] \
Brian Paul3e2419a2005-07-22 15:52:46 +0000360 $(DIRECTORY)/src/mesa/drivers/dri/*/Makefile \
Thierry Vignaud2674d1b2009-08-14 08:16:35 -0600361 $(DIRECTORY)/src/mesa/drivers/dri/*/*/Makefile \
Julien Cristaue86b4c92010-11-13 06:05:45 -0800362 $(DIRECTORY)/src/mesa/drivers/dri/*/Doxyfile
Brian Paulde0ee312004-03-26 15:19:11 +0000363
Brian Paul3e2419a2005-07-22 15:52:46 +0000364SGI_GLU_FILES = \
365 $(DIRECTORY)/src/glu/Makefile \
Brianf3419d52007-09-13 09:27:10 -0600366 $(DIRECTORY)/src/glu/glu.pc.in \
Brian Paul3e2419a2005-07-22 15:52:46 +0000367 $(DIRECTORY)/src/glu/sgi/Makefile \
Zhang76fb8082007-07-21 11:28:06 -0600368 $(DIRECTORY)/src/glu/sgi/Makefile.mgw \
Brian Paul3e2419a2005-07-22 15:52:46 +0000369 $(DIRECTORY)/src/glu/sgi/Makefile.win \
Brian Paul3e2419a2005-07-22 15:52:46 +0000370 $(DIRECTORY)/src/glu/sgi/glu.def \
371 $(DIRECTORY)/src/glu/sgi/dummy.cc \
Brian Paul5d762e12008-08-16 10:09:38 -0600372 $(DIRECTORY)/src/glu/sgi/glu.exports \
373 $(DIRECTORY)/src/glu/sgi/glu.exports.darwin \
Brian Paul3e2419a2005-07-22 15:52:46 +0000374 $(DIRECTORY)/src/glu/sgi/mesaglu.opt \
375 $(DIRECTORY)/src/glu/sgi/include/gluos.h \
376 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \
377 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc \
378 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h \
379 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc \
380 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.h \
381 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.cc \
382 $(DIRECTORY)/src/glu/sgi/libtess/README \
383 $(DIRECTORY)/src/glu/sgi/libtess/alg-outline \
384 $(DIRECTORY)/src/glu/sgi/libtess/*.[ch] \
385 $(DIRECTORY)/src/glu/sgi/libutil/*.[ch]
Brian Paul8e73b142005-01-03 15:36:27 +0000386
Brian Paul3e2419a2005-07-22 15:52:46 +0000387GLW_FILES = \
388 $(DIRECTORY)/src/glw/*.[ch] \
389 $(DIRECTORY)/src/glw/Makefile* \
390 $(DIRECTORY)/src/glw/README \
Brianb87ce5b2007-11-12 07:51:28 -0700391 $(DIRECTORY)/src/glw/glw.pc.in \
Brian Paul3e2419a2005-07-22 15:52:46 +0000392 $(DIRECTORY)/src/glw/depend
393
Brian Paul3e2419a2005-07-22 15:52:46 +0000394GLUT_FILES = \
395 $(DIRECTORY)/include/GL/glut.h \
396 $(DIRECTORY)/include/GL/glutf90.h \
397 $(DIRECTORY)/src/glut/glx/Makefile* \
398 $(DIRECTORY)/src/glut/glx/depend \
Brianf3419d52007-09-13 09:27:10 -0600399 $(DIRECTORY)/src/glut/glx/glut.pc.in \
Brian Paul3e2419a2005-07-22 15:52:46 +0000400 $(DIRECTORY)/src/glut/glx/*def \
Brian Paul3e2419a2005-07-22 15:52:46 +0000401 $(DIRECTORY)/src/glut/glx/*.[ch] \
402 $(DIRECTORY)/src/glut/beos/*.[ch] \
403 $(DIRECTORY)/src/glut/beos/*.cpp \
Ian Romanickc1c9fad2010-03-16 07:48:14 -0700404 $(DIRECTORY)/src/glut/beos/Makefile
Brian Paulde0ee312004-03-26 15:19:11 +0000405
Brian Paul3e2419a2005-07-22 15:52:46 +0000406DEPEND_FILES = \
407 $(TOP)/src/mesa/depend \
Kristian Høgsberg6e8897f2010-02-09 09:58:36 -0500408 $(TOP)/src/glx/depend \
Brian Paul3e2419a2005-07-22 15:52:46 +0000409 $(TOP)/src/glw/depend \
410 $(TOP)/src/glut/glx/depend \
411 $(TOP)/src/glu/sgi/depend
Brian Paul281f8552004-09-09 18:17:36 +0000412
413
Brian Paul9dfc1b62009-02-24 15:00:14 -0700414LIB_FILES = \
415 $(MAIN_FILES) \
Chia-I Wu238f7822010-05-07 22:09:45 +0800416 $(MAPI_FILES) \
Chia-I Wubfa66bd2009-09-21 17:57:57 +0800417 $(ES_FILES) \
Brian Paul9dfc1b62009-02-24 15:00:14 -0700418 $(EGL_FILES) \
419 $(GALLIUM_FILES) \
420 $(DRI_FILES) \
421 $(SGI_GLU_FILES) \
422 $(GLW_FILES)
Brian Paul3e2419a2005-07-22 15:52:46 +0000423
Brian Pauldff11bb2005-07-21 18:44:52 +0000424
Brian Paul281f8552004-09-09 18:17:36 +0000425# Everything for new a Mesa release:
Brian Paul0a401b52010-06-04 17:36:17 -0600426tarballs: rm_depend configure aclocal.m4 lib_gz glut_gz \
427 lib_bz2 glut_bz2 lib_zip glut_zip md5
Brian Paul281f8552004-09-09 18:17:36 +0000428
429
Dan Nicholson72796232007-12-05 17:23:00 -0800430# Helper for autoconf builds
431ACLOCAL = aclocal
432ACLOCAL_FLAGS =
433AUTOCONF = autoconf
434AC_FLAGS =
Dan Nicholsond368eed2008-05-05 18:24:21 -0700435aclocal.m4: configure.ac acinclude.m4
Dan Nicholson72796232007-12-05 17:23:00 -0800436 $(ACLOCAL) $(ACLOCAL_FLAGS)
Dan Nicholsond368eed2008-05-05 18:24:21 -0700437configure: configure.ac aclocal.m4 acinclude.m4
Dan Nicholson72796232007-12-05 17:23:00 -0800438 $(AUTOCONF) $(AC_FLAGS)
439
Brian Paul3e2419a2005-07-22 15:52:46 +0000440rm_depend:
441 @for dep in $(DEPEND_FILES) ; do \
442 rm -f $$dep ; \
443 touch $$dep ; \
444 done
445
Brian Paul24e2f612009-10-14 10:56:29 -0600446rm_config:
447 rm -f configs/current
448 rm -f configs/autoconf
449
450lib_gz: rm_config
Brian Paulde0ee312004-03-26 15:19:11 +0000451 cd .. ; \
Brian Pauldff11bb2005-07-21 18:44:52 +0000452 tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000453 gzip $(LIB_NAME).tar ; \
454 mv $(LIB_NAME).tar.gz $(DIRECTORY)
455
Brian Paul80cef692005-09-10 16:54:05 +0000456glut_gz:
457 cd .. ; \
458 tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \
459 gzip $(GLUT_NAME).tar ; \
460 mv $(GLUT_NAME).tar.gz $(DIRECTORY)
461
Brian Paul24e2f612009-10-14 10:56:29 -0600462lib_bz2: rm_config
Brian Paulde0ee312004-03-26 15:19:11 +0000463 cd .. ; \
Brian Pauldff11bb2005-07-21 18:44:52 +0000464 tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000465 bzip2 $(LIB_NAME).tar ; \
466 mv $(LIB_NAME).tar.bz2 $(DIRECTORY)
467
Brian Paul80cef692005-09-10 16:54:05 +0000468glut_bz2:
469 cd .. ; \
470 tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \
471 bzip2 $(GLUT_NAME).tar ; \
472 mv $(GLUT_NAME).tar.bz2 $(DIRECTORY)
473
Brian Paul24e2f612009-10-14 10:56:29 -0600474lib_zip: rm_config
Brian Paul3e2419a2005-07-22 15:52:46 +0000475 rm -f $(LIB_NAME).zip ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000476 cd .. ; \
Brian Pauldff11bb2005-07-21 18:44:52 +0000477 zip -qr $(LIB_NAME).zip $(LIB_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000478 mv $(LIB_NAME).zip $(DIRECTORY)
479
Brian Paul80cef692005-09-10 16:54:05 +0000480glut_zip:
481 rm -f $(GLUT_NAME).zip ; \
482 cd .. ; \
483 zip -qr $(GLUT_NAME).zip $(GLUT_FILES) ; \
484 mv $(GLUT_NAME).zip $(DIRECTORY)
485
Brian Paulde0ee312004-03-26 15:19:11 +0000486md5:
487 @-md5sum $(LIB_NAME).tar.gz
488 @-md5sum $(LIB_NAME).tar.bz2
489 @-md5sum $(LIB_NAME).zip
Brian Paul80cef692005-09-10 16:54:05 +0000490 @-md5sum $(GLUT_NAME).tar.gz
491 @-md5sum $(GLUT_NAME).tar.bz2
492 @-md5sum $(GLUT_NAME).zip
Dan Nicholson50f7e6f2008-05-06 11:52:34 -0700493
Brian Paul24e2f612009-10-14 10:56:29 -0600494.PHONY: tarballs rm_depend rm_config md5 \
Brian Paul0a401b52010-06-04 17:36:17 -0600495 lib_gz glut_gz \
496 lib_bz2 glut_bz2 \
497 lib_zip glut_zip