blob: 2de764592abcfa8ade590ec2c443fb185df5913d [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
15
Brian Paul6d50d912004-07-01 15:32:51 +000016doxygen:
17 (cd doxygen ; make) ; \
18
Brian Paulde0ee312004-03-26 15:19:11 +000019clean:
20 @for dir in $(SUBDIRS) ; do \
Brian16c503f2007-05-09 16:22:53 -060021 if [ -d $$dir ] ; then \
22 (cd $$dir && $(MAKE) clean) ; \
23 fi \
Brian Paulde0ee312004-03-26 15:19:11 +000024 done
25
26
Brian Paul46727c72004-03-26 20:31:05 +000027realclean:
28 touch $(TOP)/configs/current
Eric Anholt2fb5d152004-06-01 00:06:14 +000029 $(MAKE) clean
Brian Paulde0ee312004-03-26 15:19:11 +000030 -rm -rf lib*
31 -rm -f $(TOP)/configs/current
Keith Whitwellae68c322004-12-15 11:03:41 +000032 -rm -f `find . -name \*.o`
33 -rm -f `find . -name \*.a`
34 -rm -f `find . -name \*.so`
Keith Whitwell7e8e4c52005-06-10 10:43:02 +000035 -rm -f `find . -name depend`
Keith Whitwellae68c322004-12-15 11:03:41 +000036
Brian Paulde0ee312004-03-26 15:19:11 +000037
38
39install:
Brian Paul0e794a12006-06-22 22:50:48 +000040 @for dir in $(SUBDIRS) ; do \
Brian16c503f2007-05-09 16:22:53 -060041 if [ -d $$dir ] ; then \
42 (cd $$dir && $(MAKE) install) || exit 1 ; \
43 fi \
Brian Paul0e794a12006-06-22 22:50:48 +000044 done
Brian Paul81ca6162005-01-03 15:35:00 +000045
Brian16c503f2007-05-09 16:22:53 -060046
Brian Paul81ca6162005-01-03 15:35:00 +000047# DirectFBGL module installation
48linux-directfb-install:
49 cd src/mesa/drivers/directfb && $(MAKE) install
Brian Paulde0ee312004-03-26 15:19:11 +000050
51# If there's no current configuration file
52$(TOP)/configs/current:
53 @echo
54 @echo
55 @echo "Please choose a configuration from the following list:"
Brian Paul22388c12004-03-26 15:31:44 +000056 @ls -1 $(TOP)/configs | grep -v "current\|default\|CVS"
Brian Paulde0ee312004-03-26 15:19:11 +000057 @echo
58 @echo "Then type 'make <config>' (ex: 'make linux-x86')"
59 @echo "(ignore the following error message)"
60 @exit 1
61
62
63# Rules to set/install a specific build configuration
64aix \
Karl Schultza16bdb52004-10-01 13:33:26 +000065aix-64 \
Brian Paul294d9ab2006-04-13 03:00:14 +000066aix-64-static \
Brian Paulde0ee312004-03-26 15:19:11 +000067aix-gcc \
Brian Paul6d50d912004-07-01 15:32:51 +000068aix-static \
Brian792b8822007-08-02 20:26:49 -060069bluegene-osmesa \
Philippe Houdoin92ec9972004-08-14 10:10:42 +000070beos \
Brian Paulde0ee312004-03-26 15:19:11 +000071darwin \
72darwin-static \
Brian Paul294d9ab2006-04-13 03:00:14 +000073darwin-static-x86ppc \
74darwin-x86ppc \
Brian Paulde0ee312004-03-26 15:19:11 +000075freebsd \
Eric Anholtcc182212004-10-28 00:19:21 +000076freebsd-dri \
Eric Anholtf054fa82005-05-28 20:17:06 +000077freebsd-dri-amd64 \
Eric Anholtcc182212004-10-28 00:19:21 +000078freebsd-dri-x86 \
Brian Paulde0ee312004-03-26 15:19:11 +000079hpux10 \
80hpux10-gcc \
Brian Paulff7d3bb2004-03-30 14:56:47 +000081hpux10-static \
Karl Schultz786eef22004-10-01 20:19:16 +000082hpux11-32 \
Brian Paulde0ee312004-03-26 15:19:11 +000083hpux11-32-static \
84hpux11-32-static-nothreads \
Karl Schultz786eef22004-10-01 20:19:16 +000085hpux11-64 \
Brian Paulde0ee312004-03-26 15:19:11 +000086hpux11-64-static \
Brian Paul294d9ab2006-04-13 03:00:14 +000087hpux11-ia64 \
88hpux11-ia64-static \
Brian Paulde0ee312004-03-26 15:19:11 +000089hpux9 \
90hpux9-gcc \
91irix6-64 \
92irix6-64-static \
93irix6-n32 \
94irix6-n32-static \
95irix6-o32 \
96irix6-o32-static \
97linux \
98linux-alpha \
99linux-alpha-static \
100linux-debug \
Brian Paul81ca6162005-01-03 15:35:00 +0000101linux-directfb \
Keith Whitwelle61df582004-04-14 12:44:07 +0000102linux-dri \
Brian15b3bd12007-02-23 11:58:46 -0700103linux-dri-debug \
Dave Airlie898c03a2004-05-03 11:30:37 +0000104linux-dri-x86 \
Keith Whitwell69ab4fe2004-04-30 08:29:04 +0000105linux-dri-x86-64 \
Ian Romanick447cdd52004-10-13 19:56:15 +0000106linux-dri-ppc \
Jeremy Kolb97a30232006-02-19 22:30:46 +0000107linux-dri-xcb \
Ian Romanickdc6e2c72005-07-29 17:25:50 +0000108linux-indirect \
Keith Whitwella5cb1aa2005-04-29 17:31:10 +0000109linux-fbdev \
Daniel Borcad3746ca2004-04-07 06:37:50 +0000110linux-glide \
Brian Paul294d9ab2006-04-13 03:00:14 +0000111linux-ia64-icc \
112linux-ia64-icc-static \
Brian Paulde0ee312004-03-26 15:19:11 +0000113linux-icc \
114linux-icc-static \
Brian Paul525eb0b2006-07-04 16:49:58 +0000115linux-osmesa \
Brian Paulde0ee312004-03-26 15:19:11 +0000116linux-osmesa16 \
117linux-osmesa16-static \
118linux-osmesa32 \
119linux-ppc \
120linux-ppc-static \
121linux-solo \
Dave Airliee520b722004-09-07 00:41:40 +0000122linux-solo-x86 \
Brian Pauladcb2282004-04-19 22:23:10 +0000123linux-solo-ia64 \
Brian Paulde0ee312004-03-26 15:19:11 +0000124linux-sparc \
125linux-sparc5 \
126linux-static \
127linux-ultrasparc \
Keith Whitwell6fb23562004-04-14 21:19:34 +0000128linux-tcc \
Brian Paulde0ee312004-03-26 15:19:11 +0000129linux-x86 \
Keith Whitwelle61df582004-04-14 12:44:07 +0000130linux-x86-debug \
Brian Paul7644bfb2005-03-03 01:44:42 +0000131linux-x86-32 \
Brian Paulde0ee312004-03-26 15:19:11 +0000132linux-x86-64 \
Brian Paul42fa8122005-05-07 16:59:58 +0000133linux-x86-64-debug \
Brian Paulde0ee312004-03-26 15:19:11 +0000134linux-x86-64-static \
Daniel Borcad3746ca2004-04-07 06:37:50 +0000135linux-x86-glide \
Brian Paulde0ee312004-03-26 15:19:11 +0000136linux-x86-static \
137netbsd \
138openbsd \
139osf1 \
Brian Paul294d9ab2006-04-13 03:00:14 +0000140osf1-static \
Brian Paulde0ee312004-03-26 15:19:11 +0000141solaris-x86 \
142solaris-x86-gcc \
Brian Paulc717ffa2006-05-17 22:51:44 +0000143solaris-x86-gcc-static \
Brian Paulde0ee312004-03-26 15:19:11 +0000144sunos4 \
145sunos4-gcc \
146sunos4-static \
147sunos5 \
148sunos5-gcc \
Brian Paul9073c402006-04-07 15:16:46 +0000149sunos5-64-gcc \
Brian Paulde0ee312004-03-26 15:19:11 +0000150sunos5-smp \
Brian Paul294d9ab2006-04-13 03:00:14 +0000151sunos5-v8 \
152sunos5-v8-static \
153sunos5-v9 \
154sunos5-v9-static \
Brian2c0b3d82007-07-31 09:32:10 -0600155sunos5-v9-cc-g++ \
Brian Paulde0ee312004-03-26 15:19:11 +0000156ultrix-gcc:
Brian1223b752007-08-07 21:51:46 +0100157 @ if test -f configs/current || test -L configs/current ; then \
Brian Paul31635422006-08-03 16:58:06 +0000158 echo "Please run 'make realclean' before changing configs" ; \
159 exit 1 ; \
160 fi
Keith Whitwelle61df582004-04-14 12:44:07 +0000161 (cd configs && rm -f current && ln -s $@ current)
Eric Anholt2fb5d152004-06-01 00:06:14 +0000162 $(MAKE) default
Brian Paulde0ee312004-03-26 15:19:11 +0000163
164
165# Rules for making release tarballs
166
Brianc128c3c2007-05-14 14:30:36 -0600167DIRECTORY = Mesa-7.1pre
168LIB_NAME = MesaLib-7.1pre
169DEMO_NAME = MesaDemos-7.1pre
170GLUT_NAME = MesaGLUT-7.1pre
Brian Paulde0ee312004-03-26 15:19:11 +0000171
Brian Pauldff11bb2005-07-21 18:44:52 +0000172MAIN_FILES = \
Brian Paulde0ee312004-03-26 15:19:11 +0000173 $(DIRECTORY)/Makefile* \
174 $(DIRECTORY)/descrip.mms \
175 $(DIRECTORY)/mms-config. \
Brian Paulde0ee312004-03-26 15:19:11 +0000176 $(DIRECTORY)/bin/mklib \
Brian Paul73dd09f2006-10-22 22:37:30 +0000177 $(DIRECTORY)/bin/minstall \
Brian Paulde0ee312004-03-26 15:19:11 +0000178 $(DIRECTORY)/configs/[a-z]* \
179 $(DIRECTORY)/docs/*.html \
180 $(DIRECTORY)/docs/COPYING \
Brian Paulde0ee312004-03-26 15:19:11 +0000181 $(DIRECTORY)/docs/README.* \
182 $(DIRECTORY)/docs/RELNOTES* \
Brian Paulde0ee312004-03-26 15:19:11 +0000183 $(DIRECTORY)/docs/*.spec \
184 $(DIRECTORY)/include/GL/internal/glcore.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000185 $(DIRECTORY)/include/GL/amesa.h \
Brian Paul63dffa42005-08-08 21:30:12 +0000186 $(DIRECTORY)/include/GL/dmesa.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000187 $(DIRECTORY)/include/GL/fxmesa.h \
188 $(DIRECTORY)/include/GL/ggimesa.h \
189 $(DIRECTORY)/include/GL/gl.h \
190 $(DIRECTORY)/include/GL/glext.h \
191 $(DIRECTORY)/include/GL/gl_mangle.h \
192 $(DIRECTORY)/include/GL/glu.h \
193 $(DIRECTORY)/include/GL/glu_mangle.h \
194 $(DIRECTORY)/include/GL/glx.h \
195 $(DIRECTORY)/include/GL/glxext.h \
196 $(DIRECTORY)/include/GL/glx_mangle.h \
Brian Paul159ca322006-03-30 14:27:25 +0000197 $(DIRECTORY)/include/GL/glfbdev.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000198 $(DIRECTORY)/include/GL/mesa_wgl.h \
199 $(DIRECTORY)/include/GL/mglmesa.h \
200 $(DIRECTORY)/include/GL/osmesa.h \
201 $(DIRECTORY)/include/GL/svgamesa.h \
202 $(DIRECTORY)/include/GL/ugl*.h \
203 $(DIRECTORY)/include/GL/vms_x_fix.h \
204 $(DIRECTORY)/include/GL/wmesa.h \
205 $(DIRECTORY)/include/GL/xmesa.h \
206 $(DIRECTORY)/include/GL/xmesa_x.h \
207 $(DIRECTORY)/include/GL/xmesa_xf86.h \
Philippe Houdoin3e369862005-07-27 19:56:33 +0000208 $(DIRECTORY)/include/GLView.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000209 $(DIRECTORY)/src/Makefile \
210 $(DIRECTORY)/src/descrip.mms \
211 $(DIRECTORY)/src/mesa/Makefile* \
212 $(DIRECTORY)/src/mesa/sources \
213 $(DIRECTORY)/src/mesa/descrip.mms \
214 $(DIRECTORY)/src/mesa/depend \
215 $(DIRECTORY)/src/mesa/main/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000216 $(DIRECTORY)/src/mesa/main/descrip.mms \
Brian Paulb24320b2006-11-20 17:09:04 +0000217 $(DIRECTORY)/src/mesa/main/sources \
Brian Paulde0ee312004-03-26 15:19:11 +0000218 $(DIRECTORY)/src/mesa/glapi/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000219 $(DIRECTORY)/src/mesa/glapi/descrip.mms \
Brian Paulb24320b2006-11-20 17:09:04 +0000220 $(DIRECTORY)/src/mesa/glapi/sources \
Brian Paulde0ee312004-03-26 15:19:11 +0000221 $(DIRECTORY)/src/mesa/math/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000222 $(DIRECTORY)/src/mesa/math/descrip.mms \
Brian Paulb24320b2006-11-20 17:09:04 +0000223 $(DIRECTORY)/src/mesa/math/sources \
Brian Paul02ca8fe2004-08-13 20:58:59 +0000224 $(DIRECTORY)/src/mesa/shader/*.[ch] \
Karl Schultzd48ef3e2004-08-14 21:42:50 +0000225 $(DIRECTORY)/src/mesa/shader/descrip.mms \
Brian Paulb24320b2006-11-20 17:09:04 +0000226 $(DIRECTORY)/src/mesa/shader/sources \
Karl Schultz5b10d712005-06-03 15:24:55 +0000227 $(DIRECTORY)/src/mesa/shader/grammar/*.[ch] \
228 $(DIRECTORY)/src/mesa/shader/grammar/descrip.mms \
Brian Paulb24320b2006-11-20 17:09:04 +0000229 $(DIRECTORY)/src/mesa/shader/grammar/sources \
Karl Schultz5b10d712005-06-03 15:24:55 +0000230 $(DIRECTORY)/src/mesa/shader/slang/*.[ch] \
231 $(DIRECTORY)/src/mesa/shader/slang/descrip.mms \
Brian Paulb24320b2006-11-20 17:09:04 +0000232 $(DIRECTORY)/src/mesa/shader/slang/sources \
Karl Schultz5b10d712005-06-03 15:24:55 +0000233 $(DIRECTORY)/src/mesa/shader/slang/library/*.[ch] \
Brian04c401c2007-05-02 08:29:14 -0600234 $(DIRECTORY)/src/mesa/shader/slang/library/*.gc \
235 $(DIRECTORY)/src/mesa/shader/slang/library/*.syn \
236 $(DIRECTORY)/src/mesa/shader/slang/library/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000237 $(DIRECTORY)/src/mesa/swrast/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000238 $(DIRECTORY)/src/mesa/swrast/descrip.mms \
Brian Paulb24320b2006-11-20 17:09:04 +0000239 $(DIRECTORY)/src/mesa/swrast/sources \
Brian Paulde0ee312004-03-26 15:19:11 +0000240 $(DIRECTORY)/src/mesa/swrast_setup/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000241 $(DIRECTORY)/src/mesa/swrast_setup/descrip.mms \
Brian Paulb24320b2006-11-20 17:09:04 +0000242 $(DIRECTORY)/src/mesa/swrast_setup/sources \
Richard Hughese9c614a2007-04-07 08:39:24 -0600243 $(DIRECTORY)/src/mesa/vbo/*.[chS] \
244 $(DIRECTORY)/src/mesa/vbo/descrip.mms \
Brian Paul02ca8fe2004-08-13 20:58:59 +0000245 $(DIRECTORY)/src/mesa/tnl/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000246 $(DIRECTORY)/src/mesa/tnl/descrip.mms \
Brian Paulb24320b2006-11-20 17:09:04 +0000247 $(DIRECTORY)/src/mesa/tnl/sources \
Brian Paulde0ee312004-03-26 15:19:11 +0000248 $(DIRECTORY)/src/mesa/tnl_dd/*.[ch] \
249 $(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch] \
250 $(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm \
251 $(DIRECTORY)/src/mesa/drivers/beos/*.cpp \
Brian Paul244af162004-08-14 21:12:37 +0000252 $(DIRECTORY)/src/mesa/drivers/beos/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000253 $(DIRECTORY)/src/mesa/drivers/common/*.[ch] \
254 $(DIRECTORY)/src/mesa/drivers/common/descrip.mms \
Brian Paulb24320b2006-11-20 17:09:04 +0000255 $(DIRECTORY)/src/mesa/drivers/common/sources \
Karl Schultz5b10d712005-06-03 15:24:55 +0000256 $(DIRECTORY)/src/mesa/drivers/directfb/*.[ch] \
257 $(DIRECTORY)/src/mesa/drivers/directfb/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000258 $(DIRECTORY)/src/mesa/drivers/dos/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000259 $(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c \
260 $(DIRECTORY)/src/mesa/drivers/glide/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000261 $(DIRECTORY)/src/mesa/drivers/ggi/*.[ch] \
262 $(DIRECTORY)/src/mesa/drivers/ggi/ggimesa.conf.in \
263 $(DIRECTORY)/src/mesa/drivers/ggi/default/*.c \
264 $(DIRECTORY)/src/mesa/drivers/ggi/default/genkgi.conf.in \
265 $(DIRECTORY)/src/mesa/drivers/ggi/display/*.c \
266 $(DIRECTORY)/src/mesa/drivers/ggi/display/fbdev.conf.in \
267 $(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/*.h \
268 $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win \
269 $(DIRECTORY)/src/mesa/drivers/osmesa/descrip.mms \
270 $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def \
Brian Paulde0ee312004-03-26 15:19:11 +0000271 $(DIRECTORY)/src/mesa/drivers/osmesa/*.[ch] \
272 $(DIRECTORY)/src/mesa/drivers/svga/*.[ch] \
273 $(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch] \
274 $(DIRECTORY)/src/mesa/drivers/windows/*/*.def \
Brian Paulde0ee312004-03-26 15:19:11 +0000275 $(DIRECTORY)/src/mesa/drivers/x11/descrip.mms \
Brian Paulb24320b2006-11-20 17:09:04 +0000276 $(DIRECTORY)/src/mesa/drivers/x11/sources \
Brian Paulde0ee312004-03-26 15:19:11 +0000277 $(DIRECTORY)/src/mesa/drivers/x11/*.[ch] \
Brian Paul03f52fe2005-07-01 01:55:30 +0000278 $(DIRECTORY)/src/mesa/ppc/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000279 $(DIRECTORY)/src/mesa/sparc/*.[chS] \
280 $(DIRECTORY)/src/mesa/x86/Makefile \
281 $(DIRECTORY)/src/mesa/x86/*.[ch] \
282 $(DIRECTORY)/src/mesa/x86/*.S \
Brian Paul03f52fe2005-07-01 01:55:30 +0000283 $(DIRECTORY)/src/mesa/x86/rtasm/*.[ch] \
284 $(DIRECTORY)/src/mesa/x86-64/*.[chS] \
285 $(DIRECTORY)/src/mesa/x86-64/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000286 $(DIRECTORY)/progs/Makefile \
287 $(DIRECTORY)/progs/util/README \
288 $(DIRECTORY)/progs/util/*.[ch] \
289 $(DIRECTORY)/progs/util/sampleMakefile \
290 $(DIRECTORY)/vms/analyze_map.com \
291 $(DIRECTORY)/vms/xlib.opt \
Karl Schultz5b10d712005-06-03 15:24:55 +0000292 $(DIRECTORY)/vms/xlib_share.opt \
Brianf38dcc82007-04-24 10:19:19 -0600293 $(DIRECTORY)/windows/VC8/mesa/mesa.sln \
Brianb1b154c2007-04-24 08:58:12 -0600294 $(DIRECTORY)/windows/VC8/mesa/gdi/gdi.vcproj \
295 $(DIRECTORY)/windows/VC8/mesa/glu/glu.vcproj \
296 $(DIRECTORY)/windows/VC8/mesa/mesa/mesa.vcproj \
297 $(DIRECTORY)/windows/VC8/mesa/osmesa/osmesa.vcproj \
Brian3e5eda92007-04-24 10:21:10 -0600298 $(DIRECTORY)/windows/VC8/progs/progs.sln \
Brianb1b154c2007-04-24 08:58:12 -0600299 $(DIRECTORY)/windows/VC8/progs/demos/gears.vcproj \
300 $(DIRECTORY)/windows/VC8/progs/glut/glut.vcproj
301
Brian Paulde0ee312004-03-26 15:19:11 +0000302
Brian Paul3e2419a2005-07-22 15:52:46 +0000303DRI_FILES = \
Brian Paul73020032005-10-17 22:38:44 +0000304 $(DIRECTORY)/include/GL/internal/dri_interface.h \
305 $(DIRECTORY)/include/GL/internal/sarea.h \
Brian Paul3e2419a2005-07-22 15:52:46 +0000306 $(DIRECTORY)/src/glx/Makefile \
307 $(DIRECTORY)/src/glx/x11/Makefile \
308 $(DIRECTORY)/src/glx/x11/*.[ch] \
309 $(DIRECTORY)/src/mesa/drivers/dri/Makefile \
310 $(DIRECTORY)/src/mesa/drivers/dri/Makefile.template \
Brian Paul3e2419a2005-07-22 15:52:46 +0000311 $(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.[ch] \
312 $(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.po \
Brian Paul1e71d6a2005-08-22 14:27:13 +0000313 $(DIRECTORY)/src/mesa/drivers/dri/*/*.[chS] \
Brian Paul3e2419a2005-07-22 15:52:46 +0000314 $(DIRECTORY)/src/mesa/drivers/dri/*/Makefile \
315 $(DIRECTORY)/src/mesa/drivers/dri/*/Doxyfile \
316 $(DIRECTORY)/src/mesa/drivers/dri/*/server/*.[ch]
Brian Paulde0ee312004-03-26 15:19:11 +0000317
Brian Paul3e2419a2005-07-22 15:52:46 +0000318SGI_GLU_FILES = \
319 $(DIRECTORY)/src/glu/Makefile \
320 $(DIRECTORY)/src/glu/descrip.mms \
321 $(DIRECTORY)/src/glu/sgi/Makefile \
Zhang76fb8082007-07-21 11:28:06 -0600322 $(DIRECTORY)/src/glu/sgi/Makefile.mgw \
Brian Paul3e2419a2005-07-22 15:52:46 +0000323 $(DIRECTORY)/src/glu/sgi/Makefile.win \
324 $(DIRECTORY)/src/glu/sgi/Makefile.DJ \
325 $(DIRECTORY)/src/glu/sgi/glu.def \
326 $(DIRECTORY)/src/glu/sgi/dummy.cc \
327 $(DIRECTORY)/src/glu/sgi/descrip.mms \
328 $(DIRECTORY)/src/glu/sgi/mesaglu.opt \
329 $(DIRECTORY)/src/glu/sgi/include/gluos.h \
330 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \
331 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc \
332 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h \
333 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc \
334 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.h \
335 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.cc \
336 $(DIRECTORY)/src/glu/sgi/libtess/README \
337 $(DIRECTORY)/src/glu/sgi/libtess/alg-outline \
338 $(DIRECTORY)/src/glu/sgi/libtess/*.[ch] \
339 $(DIRECTORY)/src/glu/sgi/libutil/*.[ch]
Brian Paul8e73b142005-01-03 15:36:27 +0000340
Brian Paul3e2419a2005-07-22 15:52:46 +0000341MESA_GLU_FILES = \
342 $(DIRECTORY)/src/glu/mesa/README[12] \
343 $(DIRECTORY)/src/glu/mesa/Makefile* \
344 $(DIRECTORY)/src/glu/mesa/descrip.mms \
345 $(DIRECTORY)/src/glu/mesa/mms_depend \
346 $(DIRECTORY)/src/glu/mesa/*.def \
347 $(DIRECTORY)/src/glu/mesa/depend \
348 $(DIRECTORY)/src/glu/mesa/*.[ch]
Brian Paul8e73b142005-01-03 15:36:27 +0000349
Brian Paul3e2419a2005-07-22 15:52:46 +0000350GLW_FILES = \
351 $(DIRECTORY)/src/glw/*.[ch] \
352 $(DIRECTORY)/src/glw/Makefile* \
353 $(DIRECTORY)/src/glw/README \
354 $(DIRECTORY)/src/glw/depend
355
Brian Paul80cef692005-09-10 16:54:05 +0000356DEMO_FILES = \
Brian Paul244af162004-08-14 21:12:37 +0000357 $(DIRECTORY)/progs/beos/*.cpp \
358 $(DIRECTORY)/progs/beos/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000359 $(DIRECTORY)/progs/images/*.rgb \
360 $(DIRECTORY)/progs/images/*.rgba \
361 $(DIRECTORY)/progs/demos/Makefile* \
362 $(DIRECTORY)/progs/demos/descrip.mms \
363 $(DIRECTORY)/progs/demos/*.[ch] \
364 $(DIRECTORY)/progs/demos/*.cxx \
365 $(DIRECTORY)/progs/demos/*.dat \
366 $(DIRECTORY)/progs/demos/README \
Brian22b0b2f2007-07-03 15:46:38 -0600367 $(DIRECTORY)/progs/fbdev/Makefile \
368 $(DIRECTORY)/progs/fbdev/glfbdevtest.c \
Brian Paulbcf4ae72005-11-02 21:01:26 +0000369 $(DIRECTORY)/progs/osdemos/Makefile \
370 $(DIRECTORY)/progs/osdemos/*.c \
Brian Paulde0ee312004-03-26 15:19:11 +0000371 $(DIRECTORY)/progs/xdemos/Makefile* \
372 $(DIRECTORY)/progs/xdemos/descrip.mms \
373 $(DIRECTORY)/progs/xdemos/*.[chf] \
374 $(DIRECTORY)/progs/redbook/Makefile* \
375 $(DIRECTORY)/progs/redbook/README \
376 $(DIRECTORY)/progs/redbook/*.[ch] \
377 $(DIRECTORY)/progs/samples/Makefile* \
378 $(DIRECTORY)/progs/samples/README \
379 $(DIRECTORY)/progs/samples/*.c \
Briand9443c22007-04-18 08:52:18 -0600380 $(DIRECTORY)/progs/glsl/Makefile* \
381 $(DIRECTORY)/progs/glsl/*.c \
382 $(DIRECTORY)/progs/glsl/*.txt \
Brian Paulde0ee312004-03-26 15:19:11 +0000383 $(DIRECTORY)/progs/windml/Makefile.ugl \
384 $(DIRECTORY)/progs/windml/*.c \
385 $(DIRECTORY)/progs/windml/*.bmp \
Karl Schultz5b10d712005-06-03 15:24:55 +0000386 $(DIRECTORY)/progs/ggi/*.c \
Karl Schultzc136b412005-07-01 20:31:41 +0000387 $(DIRECTORY)/windows/VC6/progs/demos/*.dsp \
Karl Schultzc136b412005-07-01 20:31:41 +0000388 $(DIRECTORY)/windows/VC6/progs/progs.dsw \
389 $(DIRECTORY)/windows/VC7/progs/demos/*.vcproj \
Karl Schultzc136b412005-07-01 20:31:41 +0000390 $(DIRECTORY)/windows/VC7/progs/progs.sln
Brian Paulde0ee312004-03-26 15:19:11 +0000391
Brian Paul3e2419a2005-07-22 15:52:46 +0000392GLUT_FILES = \
393 $(DIRECTORY)/include/GL/glut.h \
394 $(DIRECTORY)/include/GL/glutf90.h \
395 $(DIRECTORY)/src/glut/glx/Makefile* \
396 $(DIRECTORY)/src/glut/glx/depend \
397 $(DIRECTORY)/src/glut/glx/*def \
398 $(DIRECTORY)/src/glut/glx/descrip.mms \
399 $(DIRECTORY)/src/glut/glx/mms_depend \
400 $(DIRECTORY)/src/glut/glx/*.[ch] \
401 $(DIRECTORY)/src/glut/beos/*.[ch] \
402 $(DIRECTORY)/src/glut/beos/*.cpp \
403 $(DIRECTORY)/src/glut/beos/Makefile \
404 $(DIRECTORY)/src/glut/dos/*.[ch] \
405 $(DIRECTORY)/src/glut/dos/Makefile.DJ \
406 $(DIRECTORY)/src/glut/dos/PC_HW/*.[chS] \
407 $(DIRECTORY)/src/glut/ggi/*.[ch] \
Brian Paul80cef692005-09-10 16:54:05 +0000408 $(DIRECTORY)/src/glut/ggi/Makefile \
Brian Paul667dd3c2006-07-31 14:25:53 +0000409 $(DIRECTORY)/src/glut/fbdev/Makefile \
Brian Pauld21ccb42006-08-23 19:46:17 +0000410 $(DIRECTORY)/src/glut/fbdev/*[ch] \
Brian Paul83304322006-08-24 17:01:35 +0000411 $(DIRECTORY)/src/glut/mini/*[ch] \
Brian Paul80cef692005-09-10 16:54:05 +0000412 $(DIRECTORY)/windows/VC6/progs/glut/glut.dsp \
413 $(DIRECTORY)/windows/VC7/progs/glut/glut.vcproj
Brian Paulde0ee312004-03-26 15:19:11 +0000414
Brian Paul3e2419a2005-07-22 15:52:46 +0000415DEPEND_FILES = \
416 $(TOP)/src/mesa/depend \
Brian Paulb10ea982006-06-28 21:58:47 +0000417 $(TOP)/src/glx/x11/depend \
Brian Paul3e2419a2005-07-22 15:52:46 +0000418 $(TOP)/src/glw/depend \
419 $(TOP)/src/glut/glx/depend \
420 $(TOP)/src/glu/sgi/depend
Brian Paul281f8552004-09-09 18:17:36 +0000421
422
Brian Paul3e2419a2005-07-22 15:52:46 +0000423LIB_FILES = $(MAIN_FILES) $(DRI_FILES) $(SGI_GLU_FILES) $(GLW_FILES)
424
Brian Pauldff11bb2005-07-21 18:44:52 +0000425
Brian Paul281f8552004-09-09 18:17:36 +0000426# Everything for new a Mesa release:
Brian Paul301c3dc2005-10-19 20:26:13 +0000427tarballs: rm_depend lib_gz demo_gz glut_gz lib_bz2 demo_bz2 glut_bz2 lib_zip demo_zip glut_zip md5
Brian Paul281f8552004-09-09 18:17:36 +0000428
429
Brian Paul3e2419a2005-07-22 15:52:46 +0000430rm_depend:
431 @for dep in $(DEPEND_FILES) ; do \
432 rm -f $$dep ; \
433 touch $$dep ; \
434 done
435
Brian Paulde0ee312004-03-26 15:19:11 +0000436lib_gz:
437 rm -f configs/current ; \
438 cd .. ; \
Brian Pauldff11bb2005-07-21 18:44:52 +0000439 tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000440 gzip $(LIB_NAME).tar ; \
441 mv $(LIB_NAME).tar.gz $(DIRECTORY)
442
443demo_gz:
444 cd .. ; \
Brian Paul3e2419a2005-07-22 15:52:46 +0000445 tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000446 gzip $(DEMO_NAME).tar ; \
447 mv $(DEMO_NAME).tar.gz $(DIRECTORY)
448
Brian Paul80cef692005-09-10 16:54:05 +0000449glut_gz:
450 cd .. ; \
451 tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \
452 gzip $(GLUT_NAME).tar ; \
453 mv $(GLUT_NAME).tar.gz $(DIRECTORY)
454
Brian Paulde0ee312004-03-26 15:19:11 +0000455lib_bz2:
456 rm -f configs/current ; \
457 cd .. ; \
Brian Pauldff11bb2005-07-21 18:44:52 +0000458 tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000459 bzip2 $(LIB_NAME).tar ; \
460 mv $(LIB_NAME).tar.bz2 $(DIRECTORY)
461
462demo_bz2:
463 cd .. ; \
Brian Paul3e2419a2005-07-22 15:52:46 +0000464 tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000465 bzip2 $(DEMO_NAME).tar ; \
466 mv $(DEMO_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 Paulde0ee312004-03-26 15:19:11 +0000474lib_zip:
475 rm -f configs/current ; \
Brian Paul3e2419a2005-07-22 15:52:46 +0000476 rm -f $(LIB_NAME).zip ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000477 cd .. ; \
Brian Pauldff11bb2005-07-21 18:44:52 +0000478 zip -qr $(LIB_NAME).zip $(LIB_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000479 mv $(LIB_NAME).zip $(DIRECTORY)
480
481demo_zip:
Brian Paul3e2419a2005-07-22 15:52:46 +0000482 rm -f $(DEMO_NAME).zip ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000483 cd .. ; \
Brian Paul3e2419a2005-07-22 15:52:46 +0000484 zip -qr $(DEMO_NAME).zip $(DEMO_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000485 mv $(DEMO_NAME).zip $(DIRECTORY)
486
Brian Paul80cef692005-09-10 16:54:05 +0000487glut_zip:
488 rm -f $(GLUT_NAME).zip ; \
489 cd .. ; \
490 zip -qr $(GLUT_NAME).zip $(GLUT_FILES) ; \
491 mv $(GLUT_NAME).zip $(DIRECTORY)
492
Brian Paulde0ee312004-03-26 15:19:11 +0000493md5:
494 @-md5sum $(LIB_NAME).tar.gz
495 @-md5sum $(LIB_NAME).tar.bz2
496 @-md5sum $(LIB_NAME).zip
497 @-md5sum $(DEMO_NAME).tar.gz
498 @-md5sum $(DEMO_NAME).tar.bz2
499 @-md5sum $(DEMO_NAME).zip
Brian Paul80cef692005-09-10 16:54:05 +0000500 @-md5sum $(GLUT_NAME).tar.gz
501 @-md5sum $(GLUT_NAME).tar.bz2
502 @-md5sum $(GLUT_NAME).zip