blob: 21bfca68ac5bdf7c7fb1c543d1fdb146cb4cd9c9 [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 \
Eric Anholt2fb5d152004-06-01 00:06:14 +000010 (cd $$dir ; $(MAKE)) || exit 1 ; \
Brian Paulde0ee312004-03-26 15:19:11 +000011 done
12
13
Brian Paul6d50d912004-07-01 15:32:51 +000014doxygen:
15 (cd doxygen ; make) ; \
16
Brian Paulde0ee312004-03-26 15:19:11 +000017clean:
18 @for dir in $(SUBDIRS) ; do \
Eric Anholt2fb5d152004-06-01 00:06:14 +000019 (cd $$dir ; $(MAKE) clean) ; \
Brian Paulde0ee312004-03-26 15:19:11 +000020 done
21
22
Brian Paul46727c72004-03-26 20:31:05 +000023realclean:
24 touch $(TOP)/configs/current
Eric Anholt2fb5d152004-06-01 00:06:14 +000025 $(MAKE) clean
Brian Paulde0ee312004-03-26 15:19:11 +000026 -rm -rf lib*
27 -rm -f $(TOP)/configs/current
Keith Whitwellae68c322004-12-15 11:03:41 +000028 -rm -f `find . -name \*.o`
29 -rm -f `find . -name \*.a`
30 -rm -f `find . -name \*.so`
Keith Whitwell7e8e4c52005-06-10 10:43:02 +000031 -rm -f `find . -name depend`
Keith Whitwellae68c322004-12-15 11:03:41 +000032
Brian Paulde0ee312004-03-26 15:19:11 +000033
34
35install:
Brian Paul0e794a12006-06-22 22:50:48 +000036 @for dir in $(SUBDIRS) ; do \
37 (cd $$dir ; $(MAKE) install) || exit 1 ; \
38 done
Brian Paul81ca6162005-01-03 15:35:00 +000039
40# DirectFBGL module installation
41linux-directfb-install:
42 cd src/mesa/drivers/directfb && $(MAKE) install
Brian Paulde0ee312004-03-26 15:19:11 +000043
44# If there's no current configuration file
45$(TOP)/configs/current:
46 @echo
47 @echo
48 @echo "Please choose a configuration from the following list:"
Brian Paul22388c12004-03-26 15:31:44 +000049 @ls -1 $(TOP)/configs | grep -v "current\|default\|CVS"
Brian Paulde0ee312004-03-26 15:19:11 +000050 @echo
51 @echo "Then type 'make <config>' (ex: 'make linux-x86')"
52 @echo "(ignore the following error message)"
53 @exit 1
54
55
56# Rules to set/install a specific build configuration
57aix \
Karl Schultza16bdb52004-10-01 13:33:26 +000058aix-64 \
Brian Paul294d9ab2006-04-13 03:00:14 +000059aix-64-static \
Brian Paulde0ee312004-03-26 15:19:11 +000060aix-gcc \
Brian Paul6d50d912004-07-01 15:32:51 +000061aix-static \
Philippe Houdoin92ec9972004-08-14 10:10:42 +000062beos \
Brian Paulde0ee312004-03-26 15:19:11 +000063darwin \
64darwin-static \
Brian Paul294d9ab2006-04-13 03:00:14 +000065darwin-static-x86ppc \
66darwin-x86ppc \
Brian Paulde0ee312004-03-26 15:19:11 +000067freebsd \
Eric Anholtcc182212004-10-28 00:19:21 +000068freebsd-dri \
Eric Anholtf054fa82005-05-28 20:17:06 +000069freebsd-dri-amd64 \
Eric Anholtcc182212004-10-28 00:19:21 +000070freebsd-dri-x86 \
Brian Paulde0ee312004-03-26 15:19:11 +000071hpux10 \
72hpux10-gcc \
Brian Paulff7d3bb2004-03-30 14:56:47 +000073hpux10-static \
Karl Schultz786eef22004-10-01 20:19:16 +000074hpux11-32 \
Brian Paulde0ee312004-03-26 15:19:11 +000075hpux11-32-static \
76hpux11-32-static-nothreads \
Karl Schultz786eef22004-10-01 20:19:16 +000077hpux11-64 \
Brian Paulde0ee312004-03-26 15:19:11 +000078hpux11-64-static \
Brian Paul294d9ab2006-04-13 03:00:14 +000079hpux11-ia64 \
80hpux11-ia64-static \
Brian Paulde0ee312004-03-26 15:19:11 +000081hpux9 \
82hpux9-gcc \
83irix6-64 \
84irix6-64-static \
85irix6-n32 \
86irix6-n32-static \
87irix6-o32 \
88irix6-o32-static \
89linux \
90linux-alpha \
91linux-alpha-static \
92linux-debug \
Brian Paul81ca6162005-01-03 15:35:00 +000093linux-directfb \
Keith Whitwelle61df582004-04-14 12:44:07 +000094linux-dri \
Dave Airlie898c03a2004-05-03 11:30:37 +000095linux-dri-x86 \
Keith Whitwell69ab4fe2004-04-30 08:29:04 +000096linux-dri-x86-64 \
Ian Romanick447cdd52004-10-13 19:56:15 +000097linux-dri-ppc \
Jeremy Kolb97a30232006-02-19 22:30:46 +000098linux-dri-xcb \
Ian Romanickdc6e2c72005-07-29 17:25:50 +000099linux-indirect \
Keith Whitwella5cb1aa2005-04-29 17:31:10 +0000100linux-fbdev \
Daniel Borcad3746ca2004-04-07 06:37:50 +0000101linux-glide \
Brian Paul294d9ab2006-04-13 03:00:14 +0000102linux-ia64-icc \
103linux-ia64-icc-static \
Brian Paulde0ee312004-03-26 15:19:11 +0000104linux-icc \
105linux-icc-static \
Brian Paul525eb0b2006-07-04 16:49:58 +0000106linux-osmesa \
Brian Paulde0ee312004-03-26 15:19:11 +0000107linux-osmesa16 \
108linux-osmesa16-static \
109linux-osmesa32 \
110linux-ppc \
111linux-ppc-static \
112linux-solo \
Dave Airliee520b722004-09-07 00:41:40 +0000113linux-solo-x86 \
Brian Pauladcb2282004-04-19 22:23:10 +0000114linux-solo-ia64 \
Brian Paulde0ee312004-03-26 15:19:11 +0000115linux-sparc \
116linux-sparc5 \
117linux-static \
118linux-ultrasparc \
Keith Whitwell6fb23562004-04-14 21:19:34 +0000119linux-tcc \
Brian Paulde0ee312004-03-26 15:19:11 +0000120linux-x86 \
Keith Whitwelle61df582004-04-14 12:44:07 +0000121linux-x86-debug \
Brian Paul7644bfb2005-03-03 01:44:42 +0000122linux-x86-32 \
Brian Paulde0ee312004-03-26 15:19:11 +0000123linux-x86-64 \
Brian Paul42fa8122005-05-07 16:59:58 +0000124linux-x86-64-debug \
Brian Paulde0ee312004-03-26 15:19:11 +0000125linux-x86-64-static \
Daniel Borcad3746ca2004-04-07 06:37:50 +0000126linux-x86-glide \
Brian Paulde0ee312004-03-26 15:19:11 +0000127linux-x86-static \
128netbsd \
129openbsd \
130osf1 \
Brian Paul294d9ab2006-04-13 03:00:14 +0000131osf1-static \
Brian Paulde0ee312004-03-26 15:19:11 +0000132solaris-x86 \
133solaris-x86-gcc \
Brian Paulc717ffa2006-05-17 22:51:44 +0000134solaris-x86-gcc-static \
Brian Paulde0ee312004-03-26 15:19:11 +0000135sunos4 \
136sunos4-gcc \
137sunos4-static \
138sunos5 \
139sunos5-gcc \
Brian Paul9073c402006-04-07 15:16:46 +0000140sunos5-64-gcc \
Brian Paulde0ee312004-03-26 15:19:11 +0000141sunos5-smp \
Brian Paul294d9ab2006-04-13 03:00:14 +0000142sunos5-v8 \
143sunos5-v8-static \
144sunos5-v9 \
145sunos5-v9-static \
Brian Paulde0ee312004-03-26 15:19:11 +0000146ultrix-gcc:
Brian Paul31635422006-08-03 16:58:06 +0000147 @ if [ -e configs/current ] ; then \
148 echo "Please run 'make realclean' before changing configs" ; \
149 exit 1 ; \
150 fi
Keith Whitwelle61df582004-04-14 12:44:07 +0000151 (cd configs && rm -f current && ln -s $@ current)
Eric Anholt2fb5d152004-06-01 00:06:14 +0000152 $(MAKE) default
Brian Paulde0ee312004-03-26 15:19:11 +0000153
154
155# Rules for making release tarballs
156
Brian Paul9f3bcd82006-04-07 14:29:52 +0000157DIRECTORY = Mesa-6.5.1
158LIB_NAME = MesaLib-6.5.1
159DEMO_NAME = MesaDemos-6.5.1
160GLUT_NAME = MesaGLUT-6.5.1
Brian Paulde0ee312004-03-26 15:19:11 +0000161
Brian Pauldff11bb2005-07-21 18:44:52 +0000162MAIN_FILES = \
Brian Paulde0ee312004-03-26 15:19:11 +0000163 $(DIRECTORY)/Makefile* \
164 $(DIRECTORY)/descrip.mms \
165 $(DIRECTORY)/mms-config. \
Brian Paulde0ee312004-03-26 15:19:11 +0000166 $(DIRECTORY)/bin/mklib \
Brian Paula5bc6422004-08-27 15:31:20 +0000167 $(DIRECTORY)/bin/installmesa \
Brian Paulde0ee312004-03-26 15:19:11 +0000168 $(DIRECTORY)/configs/[a-z]* \
169 $(DIRECTORY)/docs/*.html \
170 $(DIRECTORY)/docs/COPYING \
Brian Paulde0ee312004-03-26 15:19:11 +0000171 $(DIRECTORY)/docs/README.* \
172 $(DIRECTORY)/docs/RELNOTES* \
173 $(DIRECTORY)/docs/VERSIONS \
174 $(DIRECTORY)/docs/*.spec \
175 $(DIRECTORY)/include/GL/internal/glcore.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000176 $(DIRECTORY)/include/GL/amesa.h \
Brian Paul63dffa42005-08-08 21:30:12 +0000177 $(DIRECTORY)/include/GL/dmesa.h \
178 $(DIRECTORY)/include/GL/directfbgl.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000179 $(DIRECTORY)/include/GL/fxmesa.h \
180 $(DIRECTORY)/include/GL/ggimesa.h \
181 $(DIRECTORY)/include/GL/gl.h \
182 $(DIRECTORY)/include/GL/glext.h \
183 $(DIRECTORY)/include/GL/gl_mangle.h \
184 $(DIRECTORY)/include/GL/glu.h \
185 $(DIRECTORY)/include/GL/glu_mangle.h \
186 $(DIRECTORY)/include/GL/glx.h \
187 $(DIRECTORY)/include/GL/glxext.h \
188 $(DIRECTORY)/include/GL/glx_mangle.h \
Brian Paul159ca322006-03-30 14:27:25 +0000189 $(DIRECTORY)/include/GL/glfbdev.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000190 $(DIRECTORY)/include/GL/mesa_wgl.h \
191 $(DIRECTORY)/include/GL/mglmesa.h \
192 $(DIRECTORY)/include/GL/osmesa.h \
193 $(DIRECTORY)/include/GL/svgamesa.h \
194 $(DIRECTORY)/include/GL/ugl*.h \
195 $(DIRECTORY)/include/GL/vms_x_fix.h \
196 $(DIRECTORY)/include/GL/wmesa.h \
197 $(DIRECTORY)/include/GL/xmesa.h \
198 $(DIRECTORY)/include/GL/xmesa_x.h \
199 $(DIRECTORY)/include/GL/xmesa_xf86.h \
Philippe Houdoin3e369862005-07-27 19:56:33 +0000200 $(DIRECTORY)/include/GLView.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000201 $(DIRECTORY)/src/Makefile \
202 $(DIRECTORY)/src/descrip.mms \
203 $(DIRECTORY)/src/mesa/Makefile* \
204 $(DIRECTORY)/src/mesa/sources \
205 $(DIRECTORY)/src/mesa/descrip.mms \
206 $(DIRECTORY)/src/mesa/depend \
207 $(DIRECTORY)/src/mesa/main/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000208 $(DIRECTORY)/src/mesa/main/descrip.mms \
209 $(DIRECTORY)/src/mesa/glapi/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000210 $(DIRECTORY)/src/mesa/glapi/descrip.mms \
211 $(DIRECTORY)/src/mesa/array_cache/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000212 $(DIRECTORY)/src/mesa/array_cache/descrip.mms \
213 $(DIRECTORY)/src/mesa/math/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000214 $(DIRECTORY)/src/mesa/math/descrip.mms \
Brian Paul02ca8fe2004-08-13 20:58:59 +0000215 $(DIRECTORY)/src/mesa/shader/*.[ch] \
Karl Schultzd48ef3e2004-08-14 21:42:50 +0000216 $(DIRECTORY)/src/mesa/shader/descrip.mms \
Karl Schultz5b10d712005-06-03 15:24:55 +0000217 $(DIRECTORY)/src/mesa/shader/grammar/*.[ch] \
218 $(DIRECTORY)/src/mesa/shader/grammar/descrip.mms \
219 $(DIRECTORY)/src/mesa/shader/slang/*.[ch] \
220 $(DIRECTORY)/src/mesa/shader/slang/descrip.mms \
221 $(DIRECTORY)/src/mesa/shader/slang/library/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000222 $(DIRECTORY)/src/mesa/swrast/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000223 $(DIRECTORY)/src/mesa/swrast/descrip.mms \
224 $(DIRECTORY)/src/mesa/swrast_setup/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000225 $(DIRECTORY)/src/mesa/swrast_setup/descrip.mms \
Brian Paul02ca8fe2004-08-13 20:58:59 +0000226 $(DIRECTORY)/src/mesa/tnl/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000227 $(DIRECTORY)/src/mesa/tnl/descrip.mms \
228 $(DIRECTORY)/src/mesa/tnl_dd/*.[ch] \
229 $(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch] \
230 $(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm \
231 $(DIRECTORY)/src/mesa/drivers/beos/*.cpp \
Brian Paul244af162004-08-14 21:12:37 +0000232 $(DIRECTORY)/src/mesa/drivers/beos/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000233 $(DIRECTORY)/src/mesa/drivers/common/*.[ch] \
234 $(DIRECTORY)/src/mesa/drivers/common/descrip.mms \
Karl Schultz5b10d712005-06-03 15:24:55 +0000235 $(DIRECTORY)/src/mesa/drivers/directfb/*.[ch] \
236 $(DIRECTORY)/src/mesa/drivers/directfb/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000237 $(DIRECTORY)/src/mesa/drivers/dos/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000238 $(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c \
239 $(DIRECTORY)/src/mesa/drivers/glide/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000240 $(DIRECTORY)/src/mesa/drivers/ggi/*.[ch] \
241 $(DIRECTORY)/src/mesa/drivers/ggi/ggimesa.conf.in \
242 $(DIRECTORY)/src/mesa/drivers/ggi/default/*.c \
243 $(DIRECTORY)/src/mesa/drivers/ggi/default/genkgi.conf.in \
244 $(DIRECTORY)/src/mesa/drivers/ggi/display/*.c \
245 $(DIRECTORY)/src/mesa/drivers/ggi/display/fbdev.conf.in \
246 $(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/*.h \
247 $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win \
248 $(DIRECTORY)/src/mesa/drivers/osmesa/descrip.mms \
249 $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def \
Brian Paulde0ee312004-03-26 15:19:11 +0000250 $(DIRECTORY)/src/mesa/drivers/osmesa/*.[ch] \
251 $(DIRECTORY)/src/mesa/drivers/svga/*.[ch] \
252 $(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch] \
253 $(DIRECTORY)/src/mesa/drivers/windows/*/*.def \
Brian Paulde0ee312004-03-26 15:19:11 +0000254 $(DIRECTORY)/src/mesa/drivers/x11/descrip.mms \
255 $(DIRECTORY)/src/mesa/drivers/x11/*.[ch] \
Brian Paul03f52fe2005-07-01 01:55:30 +0000256 $(DIRECTORY)/src/mesa/ppc/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000257 $(DIRECTORY)/src/mesa/sparc/*.[chS] \
258 $(DIRECTORY)/src/mesa/x86/Makefile \
259 $(DIRECTORY)/src/mesa/x86/*.[ch] \
260 $(DIRECTORY)/src/mesa/x86/*.S \
Brian Paul03f52fe2005-07-01 01:55:30 +0000261 $(DIRECTORY)/src/mesa/x86/rtasm/*.[ch] \
262 $(DIRECTORY)/src/mesa/x86-64/*.[chS] \
263 $(DIRECTORY)/src/mesa/x86-64/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000264 $(DIRECTORY)/progs/Makefile \
265 $(DIRECTORY)/progs/util/README \
266 $(DIRECTORY)/progs/util/*.[ch] \
267 $(DIRECTORY)/progs/util/sampleMakefile \
268 $(DIRECTORY)/vms/analyze_map.com \
269 $(DIRECTORY)/vms/xlib.opt \
Karl Schultz5b10d712005-06-03 15:24:55 +0000270 $(DIRECTORY)/vms/xlib_share.opt \
Karl Schultzc136b412005-07-01 20:31:41 +0000271 $(DIRECTORY)/windows/VC6/mesa/gdi/gdi.dsp \
272 $(DIRECTORY)/windows/VC6/mesa/glu/*.txt \
273 $(DIRECTORY)/windows/VC6/mesa/glu/glu.dsp \
274 $(DIRECTORY)/windows/VC6/mesa/mesa.dsw \
275 $(DIRECTORY)/windows/VC6/mesa/mesa/mesa.dsp \
276 $(DIRECTORY)/windows/VC6/mesa/osmesa/osmesa.dsp \
277 $(DIRECTORY)/windows/VC7/mesa/gdi/gdi.vcproj \
278 $(DIRECTORY)/windows/VC7/mesa/glu/glu.vcproj \
279 $(DIRECTORY)/windows/VC7/mesa/mesa.sln \
280 $(DIRECTORY)/windows/VC7/mesa/mesa/mesa.vcproj \
281 $(DIRECTORY)/windows/VC7/mesa/osmesa/osmesa.vcproj
Brian Paulde0ee312004-03-26 15:19:11 +0000282
Brian Paul3e2419a2005-07-22 15:52:46 +0000283DRI_FILES = \
Brian Paul73020032005-10-17 22:38:44 +0000284 $(DIRECTORY)/include/GL/internal/dri_interface.h \
285 $(DIRECTORY)/include/GL/internal/sarea.h \
Brian Paul3e2419a2005-07-22 15:52:46 +0000286 $(DIRECTORY)/src/glx/Makefile \
287 $(DIRECTORY)/src/glx/x11/Makefile \
288 $(DIRECTORY)/src/glx/x11/*.[ch] \
289 $(DIRECTORY)/src/mesa/drivers/dri/Makefile \
290 $(DIRECTORY)/src/mesa/drivers/dri/Makefile.template \
Brian Paul3e2419a2005-07-22 15:52:46 +0000291 $(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.[ch] \
292 $(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.po \
Brian Paul1e71d6a2005-08-22 14:27:13 +0000293 $(DIRECTORY)/src/mesa/drivers/dri/*/*.[chS] \
Brian Paul3e2419a2005-07-22 15:52:46 +0000294 $(DIRECTORY)/src/mesa/drivers/dri/*/Makefile \
295 $(DIRECTORY)/src/mesa/drivers/dri/*/Doxyfile \
296 $(DIRECTORY)/src/mesa/drivers/dri/*/server/*.[ch]
Brian Paulde0ee312004-03-26 15:19:11 +0000297
Brian Paul3e2419a2005-07-22 15:52:46 +0000298SGI_GLU_FILES = \
299 $(DIRECTORY)/src/glu/Makefile \
300 $(DIRECTORY)/src/glu/descrip.mms \
301 $(DIRECTORY)/src/glu/sgi/Makefile \
302 $(DIRECTORY)/src/glu/sgi/Makefile.win \
303 $(DIRECTORY)/src/glu/sgi/Makefile.DJ \
304 $(DIRECTORY)/src/glu/sgi/glu.def \
305 $(DIRECTORY)/src/glu/sgi/dummy.cc \
306 $(DIRECTORY)/src/glu/sgi/descrip.mms \
307 $(DIRECTORY)/src/glu/sgi/mesaglu.opt \
308 $(DIRECTORY)/src/glu/sgi/include/gluos.h \
309 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \
310 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc \
311 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h \
312 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc \
313 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.h \
314 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.cc \
315 $(DIRECTORY)/src/glu/sgi/libtess/README \
316 $(DIRECTORY)/src/glu/sgi/libtess/alg-outline \
317 $(DIRECTORY)/src/glu/sgi/libtess/*.[ch] \
318 $(DIRECTORY)/src/glu/sgi/libutil/*.[ch]
Brian Paul8e73b142005-01-03 15:36:27 +0000319
Brian Paul3e2419a2005-07-22 15:52:46 +0000320MESA_GLU_FILES = \
321 $(DIRECTORY)/src/glu/mesa/README[12] \
322 $(DIRECTORY)/src/glu/mesa/Makefile* \
323 $(DIRECTORY)/src/glu/mesa/descrip.mms \
324 $(DIRECTORY)/src/glu/mesa/mms_depend \
325 $(DIRECTORY)/src/glu/mesa/*.def \
326 $(DIRECTORY)/src/glu/mesa/depend \
327 $(DIRECTORY)/src/glu/mesa/*.[ch]
Brian Paul8e73b142005-01-03 15:36:27 +0000328
Brian Paul3e2419a2005-07-22 15:52:46 +0000329GLW_FILES = \
330 $(DIRECTORY)/src/glw/*.[ch] \
331 $(DIRECTORY)/src/glw/Makefile* \
332 $(DIRECTORY)/src/glw/README \
333 $(DIRECTORY)/src/glw/depend
334
Brian Paul80cef692005-09-10 16:54:05 +0000335DEMO_FILES = \
Brian Paul244af162004-08-14 21:12:37 +0000336 $(DIRECTORY)/progs/beos/*.cpp \
337 $(DIRECTORY)/progs/beos/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000338 $(DIRECTORY)/progs/images/*.rgb \
339 $(DIRECTORY)/progs/images/*.rgba \
340 $(DIRECTORY)/progs/demos/Makefile* \
341 $(DIRECTORY)/progs/demos/descrip.mms \
342 $(DIRECTORY)/progs/demos/*.[ch] \
343 $(DIRECTORY)/progs/demos/*.cxx \
344 $(DIRECTORY)/progs/demos/*.dat \
345 $(DIRECTORY)/progs/demos/README \
Brian Paulbcf4ae72005-11-02 21:01:26 +0000346 $(DIRECTORY)/progs/osdemos/Makefile \
347 $(DIRECTORY)/progs/osdemos/*.c \
Brian Paulde0ee312004-03-26 15:19:11 +0000348 $(DIRECTORY)/progs/xdemos/Makefile* \
349 $(DIRECTORY)/progs/xdemos/descrip.mms \
350 $(DIRECTORY)/progs/xdemos/*.[chf] \
351 $(DIRECTORY)/progs/redbook/Makefile* \
352 $(DIRECTORY)/progs/redbook/README \
353 $(DIRECTORY)/progs/redbook/*.[ch] \
354 $(DIRECTORY)/progs/samples/Makefile* \
355 $(DIRECTORY)/progs/samples/README \
356 $(DIRECTORY)/progs/samples/*.c \
357 $(DIRECTORY)/progs/windml/Makefile.ugl \
358 $(DIRECTORY)/progs/windml/*.c \
359 $(DIRECTORY)/progs/windml/*.bmp \
Karl Schultz5b10d712005-06-03 15:24:55 +0000360 $(DIRECTORY)/progs/ggi/*.c \
Karl Schultzc136b412005-07-01 20:31:41 +0000361 $(DIRECTORY)/windows/VC6/progs/demos/*.dsp \
Karl Schultzc136b412005-07-01 20:31:41 +0000362 $(DIRECTORY)/windows/VC6/progs/progs.dsw \
363 $(DIRECTORY)/windows/VC7/progs/demos/*.vcproj \
Karl Schultzc136b412005-07-01 20:31:41 +0000364 $(DIRECTORY)/windows/VC7/progs/progs.sln
Brian Paulde0ee312004-03-26 15:19:11 +0000365
Brian Paul3e2419a2005-07-22 15:52:46 +0000366GLUT_FILES = \
367 $(DIRECTORY)/include/GL/glut.h \
368 $(DIRECTORY)/include/GL/glutf90.h \
369 $(DIRECTORY)/src/glut/glx/Makefile* \
370 $(DIRECTORY)/src/glut/glx/depend \
371 $(DIRECTORY)/src/glut/glx/*def \
372 $(DIRECTORY)/src/glut/glx/descrip.mms \
373 $(DIRECTORY)/src/glut/glx/mms_depend \
374 $(DIRECTORY)/src/glut/glx/*.[ch] \
375 $(DIRECTORY)/src/glut/beos/*.[ch] \
376 $(DIRECTORY)/src/glut/beos/*.cpp \
377 $(DIRECTORY)/src/glut/beos/Makefile \
378 $(DIRECTORY)/src/glut/dos/*.[ch] \
379 $(DIRECTORY)/src/glut/dos/Makefile.DJ \
380 $(DIRECTORY)/src/glut/dos/PC_HW/*.[chS] \
381 $(DIRECTORY)/src/glut/ggi/*.[ch] \
Brian Paul80cef692005-09-10 16:54:05 +0000382 $(DIRECTORY)/src/glut/ggi/Makefile \
Brian Paul667dd3c2006-07-31 14:25:53 +0000383 $(DIRECTORY)/src/glut/fbdev/Makefile \
Brian Pauld21ccb42006-08-23 19:46:17 +0000384 $(DIRECTORY)/src/glut/fbdev/*[ch] \
Brian Paul83304322006-08-24 17:01:35 +0000385 $(DIRECTORY)/src/glut/mini/*[ch] \
Brian Paul80cef692005-09-10 16:54:05 +0000386 $(DIRECTORY)/windows/VC6/progs/glut/glut.dsp \
387 $(DIRECTORY)/windows/VC7/progs/glut/glut.vcproj
Brian Paulde0ee312004-03-26 15:19:11 +0000388
Brian Paul3e2419a2005-07-22 15:52:46 +0000389DEPEND_FILES = \
390 $(TOP)/src/mesa/depend \
Brian Paulb10ea982006-06-28 21:58:47 +0000391 $(TOP)/src/glx/x11/depend \
Brian Paul3e2419a2005-07-22 15:52:46 +0000392 $(TOP)/src/glw/depend \
393 $(TOP)/src/glut/glx/depend \
394 $(TOP)/src/glu/sgi/depend
Brian Paul281f8552004-09-09 18:17:36 +0000395
396
Brian Paul3e2419a2005-07-22 15:52:46 +0000397LIB_FILES = $(MAIN_FILES) $(DRI_FILES) $(SGI_GLU_FILES) $(GLW_FILES)
398
Brian Pauldff11bb2005-07-21 18:44:52 +0000399
Brian Paul281f8552004-09-09 18:17:36 +0000400# Everything for new a Mesa release:
Brian Paul301c3dc2005-10-19 20:26:13 +0000401tarballs: 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 +0000402
403
Brian Paul3e2419a2005-07-22 15:52:46 +0000404rm_depend:
405 @for dep in $(DEPEND_FILES) ; do \
406 rm -f $$dep ; \
407 touch $$dep ; \
408 done
409
Brian Paulde0ee312004-03-26 15:19:11 +0000410lib_gz:
411 rm -f configs/current ; \
412 cd .. ; \
Brian Pauldff11bb2005-07-21 18:44:52 +0000413 tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000414 gzip $(LIB_NAME).tar ; \
415 mv $(LIB_NAME).tar.gz $(DIRECTORY)
416
417demo_gz:
418 cd .. ; \
Brian Paul3e2419a2005-07-22 15:52:46 +0000419 tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000420 gzip $(DEMO_NAME).tar ; \
421 mv $(DEMO_NAME).tar.gz $(DIRECTORY)
422
Brian Paul80cef692005-09-10 16:54:05 +0000423glut_gz:
424 cd .. ; \
425 tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \
426 gzip $(GLUT_NAME).tar ; \
427 mv $(GLUT_NAME).tar.gz $(DIRECTORY)
428
Brian Paulde0ee312004-03-26 15:19:11 +0000429lib_bz2:
430 rm -f configs/current ; \
431 cd .. ; \
Brian Pauldff11bb2005-07-21 18:44:52 +0000432 tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000433 bzip2 $(LIB_NAME).tar ; \
434 mv $(LIB_NAME).tar.bz2 $(DIRECTORY)
435
436demo_bz2:
437 cd .. ; \
Brian Paul3e2419a2005-07-22 15:52:46 +0000438 tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000439 bzip2 $(DEMO_NAME).tar ; \
440 mv $(DEMO_NAME).tar.bz2 $(DIRECTORY)
441
Brian Paul80cef692005-09-10 16:54:05 +0000442glut_bz2:
443 cd .. ; \
444 tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \
445 bzip2 $(GLUT_NAME).tar ; \
446 mv $(GLUT_NAME).tar.bz2 $(DIRECTORY)
447
Brian Paulde0ee312004-03-26 15:19:11 +0000448lib_zip:
449 rm -f configs/current ; \
Brian Paul3e2419a2005-07-22 15:52:46 +0000450 rm -f $(LIB_NAME).zip ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000451 cd .. ; \
Brian Pauldff11bb2005-07-21 18:44:52 +0000452 zip -qr $(LIB_NAME).zip $(LIB_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000453 mv $(LIB_NAME).zip $(DIRECTORY)
454
455demo_zip:
Brian Paul3e2419a2005-07-22 15:52:46 +0000456 rm -f $(DEMO_NAME).zip ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000457 cd .. ; \
Brian Paul3e2419a2005-07-22 15:52:46 +0000458 zip -qr $(DEMO_NAME).zip $(DEMO_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000459 mv $(DEMO_NAME).zip $(DIRECTORY)
460
Brian Paul80cef692005-09-10 16:54:05 +0000461glut_zip:
462 rm -f $(GLUT_NAME).zip ; \
463 cd .. ; \
464 zip -qr $(GLUT_NAME).zip $(GLUT_FILES) ; \
465 mv $(GLUT_NAME).zip $(DIRECTORY)
466
Brian Paulde0ee312004-03-26 15:19:11 +0000467md5:
468 @-md5sum $(LIB_NAME).tar.gz
469 @-md5sum $(LIB_NAME).tar.bz2
470 @-md5sum $(LIB_NAME).zip
471 @-md5sum $(DEMO_NAME).tar.gz
472 @-md5sum $(DEMO_NAME).tar.bz2
473 @-md5sum $(DEMO_NAME).zip
Brian Paul80cef692005-09-10 16:54:05 +0000474 @-md5sum $(GLUT_NAME).tar.gz
475 @-md5sum $(GLUT_NAME).tar.bz2
476 @-md5sum $(GLUT_NAME).zip