blob: 2fd8d35af9bf67d33b4990fae7366cecf84e39ad [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 \
167 $(DIRECTORY)/configs/[a-z]* \
168 $(DIRECTORY)/docs/*.html \
169 $(DIRECTORY)/docs/COPYING \
Brian Paulde0ee312004-03-26 15:19:11 +0000170 $(DIRECTORY)/docs/README.* \
171 $(DIRECTORY)/docs/RELNOTES* \
Brian Paulde0ee312004-03-26 15:19:11 +0000172 $(DIRECTORY)/docs/*.spec \
173 $(DIRECTORY)/include/GL/internal/glcore.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000174 $(DIRECTORY)/include/GL/amesa.h \
Brian Paul63dffa42005-08-08 21:30:12 +0000175 $(DIRECTORY)/include/GL/dmesa.h \
176 $(DIRECTORY)/include/GL/directfbgl.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000177 $(DIRECTORY)/include/GL/fxmesa.h \
178 $(DIRECTORY)/include/GL/ggimesa.h \
179 $(DIRECTORY)/include/GL/gl.h \
180 $(DIRECTORY)/include/GL/glext.h \
181 $(DIRECTORY)/include/GL/gl_mangle.h \
182 $(DIRECTORY)/include/GL/glu.h \
183 $(DIRECTORY)/include/GL/glu_mangle.h \
184 $(DIRECTORY)/include/GL/glx.h \
185 $(DIRECTORY)/include/GL/glxext.h \
186 $(DIRECTORY)/include/GL/glx_mangle.h \
Brian Paul159ca322006-03-30 14:27:25 +0000187 $(DIRECTORY)/include/GL/glfbdev.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000188 $(DIRECTORY)/include/GL/mesa_wgl.h \
189 $(DIRECTORY)/include/GL/mglmesa.h \
190 $(DIRECTORY)/include/GL/osmesa.h \
191 $(DIRECTORY)/include/GL/svgamesa.h \
192 $(DIRECTORY)/include/GL/ugl*.h \
193 $(DIRECTORY)/include/GL/vms_x_fix.h \
194 $(DIRECTORY)/include/GL/wmesa.h \
195 $(DIRECTORY)/include/GL/xmesa.h \
196 $(DIRECTORY)/include/GL/xmesa_x.h \
197 $(DIRECTORY)/include/GL/xmesa_xf86.h \
Philippe Houdoin3e369862005-07-27 19:56:33 +0000198 $(DIRECTORY)/include/GLView.h \
Brian Paulde0ee312004-03-26 15:19:11 +0000199 $(DIRECTORY)/src/Makefile \
200 $(DIRECTORY)/src/descrip.mms \
201 $(DIRECTORY)/src/mesa/Makefile* \
202 $(DIRECTORY)/src/mesa/sources \
203 $(DIRECTORY)/src/mesa/descrip.mms \
204 $(DIRECTORY)/src/mesa/depend \
205 $(DIRECTORY)/src/mesa/main/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000206 $(DIRECTORY)/src/mesa/main/descrip.mms \
207 $(DIRECTORY)/src/mesa/glapi/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000208 $(DIRECTORY)/src/mesa/glapi/descrip.mms \
209 $(DIRECTORY)/src/mesa/array_cache/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000210 $(DIRECTORY)/src/mesa/array_cache/descrip.mms \
211 $(DIRECTORY)/src/mesa/math/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000212 $(DIRECTORY)/src/mesa/math/descrip.mms \
Brian Paul02ca8fe2004-08-13 20:58:59 +0000213 $(DIRECTORY)/src/mesa/shader/*.[ch] \
Karl Schultzd48ef3e2004-08-14 21:42:50 +0000214 $(DIRECTORY)/src/mesa/shader/descrip.mms \
Karl Schultz5b10d712005-06-03 15:24:55 +0000215 $(DIRECTORY)/src/mesa/shader/grammar/*.[ch] \
216 $(DIRECTORY)/src/mesa/shader/grammar/descrip.mms \
217 $(DIRECTORY)/src/mesa/shader/slang/*.[ch] \
218 $(DIRECTORY)/src/mesa/shader/slang/descrip.mms \
219 $(DIRECTORY)/src/mesa/shader/slang/library/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000220 $(DIRECTORY)/src/mesa/swrast/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000221 $(DIRECTORY)/src/mesa/swrast/descrip.mms \
222 $(DIRECTORY)/src/mesa/swrast_setup/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000223 $(DIRECTORY)/src/mesa/swrast_setup/descrip.mms \
Brian Paul02ca8fe2004-08-13 20:58:59 +0000224 $(DIRECTORY)/src/mesa/tnl/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000225 $(DIRECTORY)/src/mesa/tnl/descrip.mms \
226 $(DIRECTORY)/src/mesa/tnl_dd/*.[ch] \
227 $(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch] \
228 $(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm \
229 $(DIRECTORY)/src/mesa/drivers/beos/*.cpp \
Brian Paul244af162004-08-14 21:12:37 +0000230 $(DIRECTORY)/src/mesa/drivers/beos/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000231 $(DIRECTORY)/src/mesa/drivers/common/*.[ch] \
232 $(DIRECTORY)/src/mesa/drivers/common/descrip.mms \
Karl Schultz5b10d712005-06-03 15:24:55 +0000233 $(DIRECTORY)/src/mesa/drivers/directfb/*.[ch] \
234 $(DIRECTORY)/src/mesa/drivers/directfb/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000235 $(DIRECTORY)/src/mesa/drivers/dos/*.[chS] \
Brian Paulde0ee312004-03-26 15:19:11 +0000236 $(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c \
237 $(DIRECTORY)/src/mesa/drivers/glide/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000238 $(DIRECTORY)/src/mesa/drivers/ggi/*.[ch] \
239 $(DIRECTORY)/src/mesa/drivers/ggi/ggimesa.conf.in \
240 $(DIRECTORY)/src/mesa/drivers/ggi/default/*.c \
241 $(DIRECTORY)/src/mesa/drivers/ggi/default/genkgi.conf.in \
242 $(DIRECTORY)/src/mesa/drivers/ggi/display/*.c \
243 $(DIRECTORY)/src/mesa/drivers/ggi/display/fbdev.conf.in \
244 $(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/*.h \
245 $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win \
246 $(DIRECTORY)/src/mesa/drivers/osmesa/descrip.mms \
247 $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def \
Brian Paulde0ee312004-03-26 15:19:11 +0000248 $(DIRECTORY)/src/mesa/drivers/osmesa/*.[ch] \
249 $(DIRECTORY)/src/mesa/drivers/svga/*.[ch] \
250 $(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch] \
251 $(DIRECTORY)/src/mesa/drivers/windows/*/*.def \
Brian Paulde0ee312004-03-26 15:19:11 +0000252 $(DIRECTORY)/src/mesa/drivers/x11/descrip.mms \
253 $(DIRECTORY)/src/mesa/drivers/x11/*.[ch] \
Brian Paul03f52fe2005-07-01 01:55:30 +0000254 $(DIRECTORY)/src/mesa/ppc/*.[ch] \
Brian Paulde0ee312004-03-26 15:19:11 +0000255 $(DIRECTORY)/src/mesa/sparc/*.[chS] \
256 $(DIRECTORY)/src/mesa/x86/Makefile \
257 $(DIRECTORY)/src/mesa/x86/*.[ch] \
258 $(DIRECTORY)/src/mesa/x86/*.S \
Brian Paul03f52fe2005-07-01 01:55:30 +0000259 $(DIRECTORY)/src/mesa/x86/rtasm/*.[ch] \
260 $(DIRECTORY)/src/mesa/x86-64/*.[chS] \
261 $(DIRECTORY)/src/mesa/x86-64/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000262 $(DIRECTORY)/progs/Makefile \
263 $(DIRECTORY)/progs/util/README \
264 $(DIRECTORY)/progs/util/*.[ch] \
265 $(DIRECTORY)/progs/util/sampleMakefile \
266 $(DIRECTORY)/vms/analyze_map.com \
267 $(DIRECTORY)/vms/xlib.opt \
Karl Schultz5b10d712005-06-03 15:24:55 +0000268 $(DIRECTORY)/vms/xlib_share.opt \
Karl Schultzc136b412005-07-01 20:31:41 +0000269 $(DIRECTORY)/windows/VC6/mesa/gdi/gdi.dsp \
270 $(DIRECTORY)/windows/VC6/mesa/glu/*.txt \
271 $(DIRECTORY)/windows/VC6/mesa/glu/glu.dsp \
272 $(DIRECTORY)/windows/VC6/mesa/mesa.dsw \
273 $(DIRECTORY)/windows/VC6/mesa/mesa/mesa.dsp \
274 $(DIRECTORY)/windows/VC6/mesa/osmesa/osmesa.dsp \
275 $(DIRECTORY)/windows/VC7/mesa/gdi/gdi.vcproj \
276 $(DIRECTORY)/windows/VC7/mesa/glu/glu.vcproj \
277 $(DIRECTORY)/windows/VC7/mesa/mesa.sln \
278 $(DIRECTORY)/windows/VC7/mesa/mesa/mesa.vcproj \
279 $(DIRECTORY)/windows/VC7/mesa/osmesa/osmesa.vcproj
Brian Paulde0ee312004-03-26 15:19:11 +0000280
Brian Paul3e2419a2005-07-22 15:52:46 +0000281DRI_FILES = \
Brian Paul73020032005-10-17 22:38:44 +0000282 $(DIRECTORY)/include/GL/internal/dri_interface.h \
283 $(DIRECTORY)/include/GL/internal/sarea.h \
Brian Paul3e2419a2005-07-22 15:52:46 +0000284 $(DIRECTORY)/src/glx/Makefile \
285 $(DIRECTORY)/src/glx/x11/Makefile \
286 $(DIRECTORY)/src/glx/x11/*.[ch] \
287 $(DIRECTORY)/src/mesa/drivers/dri/Makefile \
288 $(DIRECTORY)/src/mesa/drivers/dri/Makefile.template \
Brian Paul3e2419a2005-07-22 15:52:46 +0000289 $(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.[ch] \
290 $(DIRECTORY)/src/mesa/drivers/dri/common/xmlpool/*.po \
Brian Paul1e71d6a2005-08-22 14:27:13 +0000291 $(DIRECTORY)/src/mesa/drivers/dri/*/*.[chS] \
Brian Paul3e2419a2005-07-22 15:52:46 +0000292 $(DIRECTORY)/src/mesa/drivers/dri/*/Makefile \
293 $(DIRECTORY)/src/mesa/drivers/dri/*/Doxyfile \
294 $(DIRECTORY)/src/mesa/drivers/dri/*/server/*.[ch]
Brian Paulde0ee312004-03-26 15:19:11 +0000295
Brian Paul3e2419a2005-07-22 15:52:46 +0000296SGI_GLU_FILES = \
297 $(DIRECTORY)/src/glu/Makefile \
298 $(DIRECTORY)/src/glu/descrip.mms \
299 $(DIRECTORY)/src/glu/sgi/Makefile \
300 $(DIRECTORY)/src/glu/sgi/Makefile.win \
301 $(DIRECTORY)/src/glu/sgi/Makefile.DJ \
302 $(DIRECTORY)/src/glu/sgi/glu.def \
303 $(DIRECTORY)/src/glu/sgi/dummy.cc \
304 $(DIRECTORY)/src/glu/sgi/descrip.mms \
305 $(DIRECTORY)/src/glu/sgi/mesaglu.opt \
306 $(DIRECTORY)/src/glu/sgi/include/gluos.h \
307 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \
308 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc \
309 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h \
310 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc \
311 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.h \
312 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.cc \
313 $(DIRECTORY)/src/glu/sgi/libtess/README \
314 $(DIRECTORY)/src/glu/sgi/libtess/alg-outline \
315 $(DIRECTORY)/src/glu/sgi/libtess/*.[ch] \
316 $(DIRECTORY)/src/glu/sgi/libutil/*.[ch]
Brian Paul8e73b142005-01-03 15:36:27 +0000317
Brian Paul3e2419a2005-07-22 15:52:46 +0000318MESA_GLU_FILES = \
319 $(DIRECTORY)/src/glu/mesa/README[12] \
320 $(DIRECTORY)/src/glu/mesa/Makefile* \
321 $(DIRECTORY)/src/glu/mesa/descrip.mms \
322 $(DIRECTORY)/src/glu/mesa/mms_depend \
323 $(DIRECTORY)/src/glu/mesa/*.def \
324 $(DIRECTORY)/src/glu/mesa/depend \
325 $(DIRECTORY)/src/glu/mesa/*.[ch]
Brian Paul8e73b142005-01-03 15:36:27 +0000326
Brian Paul3e2419a2005-07-22 15:52:46 +0000327GLW_FILES = \
328 $(DIRECTORY)/src/glw/*.[ch] \
329 $(DIRECTORY)/src/glw/Makefile* \
330 $(DIRECTORY)/src/glw/README \
331 $(DIRECTORY)/src/glw/depend
332
Brian Paul80cef692005-09-10 16:54:05 +0000333DEMO_FILES = \
Brian Paul244af162004-08-14 21:12:37 +0000334 $(DIRECTORY)/progs/beos/*.cpp \
335 $(DIRECTORY)/progs/beos/Makefile \
Brian Paulde0ee312004-03-26 15:19:11 +0000336 $(DIRECTORY)/progs/images/*.rgb \
337 $(DIRECTORY)/progs/images/*.rgba \
338 $(DIRECTORY)/progs/demos/Makefile* \
339 $(DIRECTORY)/progs/demos/descrip.mms \
340 $(DIRECTORY)/progs/demos/*.[ch] \
341 $(DIRECTORY)/progs/demos/*.cxx \
342 $(DIRECTORY)/progs/demos/*.dat \
343 $(DIRECTORY)/progs/demos/README \
Brian Paulbcf4ae72005-11-02 21:01:26 +0000344 $(DIRECTORY)/progs/osdemos/Makefile \
345 $(DIRECTORY)/progs/osdemos/*.c \
Brian Paulde0ee312004-03-26 15:19:11 +0000346 $(DIRECTORY)/progs/xdemos/Makefile* \
347 $(DIRECTORY)/progs/xdemos/descrip.mms \
348 $(DIRECTORY)/progs/xdemos/*.[chf] \
349 $(DIRECTORY)/progs/redbook/Makefile* \
350 $(DIRECTORY)/progs/redbook/README \
351 $(DIRECTORY)/progs/redbook/*.[ch] \
352 $(DIRECTORY)/progs/samples/Makefile* \
353 $(DIRECTORY)/progs/samples/README \
354 $(DIRECTORY)/progs/samples/*.c \
355 $(DIRECTORY)/progs/windml/Makefile.ugl \
356 $(DIRECTORY)/progs/windml/*.c \
357 $(DIRECTORY)/progs/windml/*.bmp \
Karl Schultz5b10d712005-06-03 15:24:55 +0000358 $(DIRECTORY)/progs/ggi/*.c \
Karl Schultzc136b412005-07-01 20:31:41 +0000359 $(DIRECTORY)/windows/VC6/progs/demos/*.dsp \
Karl Schultzc136b412005-07-01 20:31:41 +0000360 $(DIRECTORY)/windows/VC6/progs/progs.dsw \
361 $(DIRECTORY)/windows/VC7/progs/demos/*.vcproj \
Karl Schultzc136b412005-07-01 20:31:41 +0000362 $(DIRECTORY)/windows/VC7/progs/progs.sln
Brian Paulde0ee312004-03-26 15:19:11 +0000363
Brian Paul3e2419a2005-07-22 15:52:46 +0000364GLUT_FILES = \
365 $(DIRECTORY)/include/GL/glut.h \
366 $(DIRECTORY)/include/GL/glutf90.h \
367 $(DIRECTORY)/src/glut/glx/Makefile* \
368 $(DIRECTORY)/src/glut/glx/depend \
369 $(DIRECTORY)/src/glut/glx/*def \
370 $(DIRECTORY)/src/glut/glx/descrip.mms \
371 $(DIRECTORY)/src/glut/glx/mms_depend \
372 $(DIRECTORY)/src/glut/glx/*.[ch] \
373 $(DIRECTORY)/src/glut/beos/*.[ch] \
374 $(DIRECTORY)/src/glut/beos/*.cpp \
375 $(DIRECTORY)/src/glut/beos/Makefile \
376 $(DIRECTORY)/src/glut/dos/*.[ch] \
377 $(DIRECTORY)/src/glut/dos/Makefile.DJ \
378 $(DIRECTORY)/src/glut/dos/PC_HW/*.[chS] \
379 $(DIRECTORY)/src/glut/ggi/*.[ch] \
Brian Paul80cef692005-09-10 16:54:05 +0000380 $(DIRECTORY)/src/glut/ggi/Makefile \
Brian Paul667dd3c2006-07-31 14:25:53 +0000381 $(DIRECTORY)/src/glut/fbdev/Makefile \
Brian Pauld21ccb42006-08-23 19:46:17 +0000382 $(DIRECTORY)/src/glut/fbdev/*[ch] \
Brian Paul83304322006-08-24 17:01:35 +0000383 $(DIRECTORY)/src/glut/mini/*[ch] \
Brian Paul80cef692005-09-10 16:54:05 +0000384 $(DIRECTORY)/windows/VC6/progs/glut/glut.dsp \
385 $(DIRECTORY)/windows/VC7/progs/glut/glut.vcproj
Brian Paulde0ee312004-03-26 15:19:11 +0000386
Brian Paul3e2419a2005-07-22 15:52:46 +0000387DEPEND_FILES = \
388 $(TOP)/src/mesa/depend \
Brian Paulb10ea982006-06-28 21:58:47 +0000389 $(TOP)/src/glx/x11/depend \
Brian Paul3e2419a2005-07-22 15:52:46 +0000390 $(TOP)/src/glw/depend \
391 $(TOP)/src/glut/glx/depend \
392 $(TOP)/src/glu/sgi/depend
Brian Paul281f8552004-09-09 18:17:36 +0000393
394
Brian Paul3e2419a2005-07-22 15:52:46 +0000395LIB_FILES = $(MAIN_FILES) $(DRI_FILES) $(SGI_GLU_FILES) $(GLW_FILES)
396
Brian Pauldff11bb2005-07-21 18:44:52 +0000397
Brian Paul281f8552004-09-09 18:17:36 +0000398# Everything for new a Mesa release:
Brian Paul301c3dc2005-10-19 20:26:13 +0000399tarballs: 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 +0000400
401
Brian Paul3e2419a2005-07-22 15:52:46 +0000402rm_depend:
403 @for dep in $(DEPEND_FILES) ; do \
404 rm -f $$dep ; \
405 touch $$dep ; \
406 done
407
Brian Paulde0ee312004-03-26 15:19:11 +0000408lib_gz:
409 rm -f configs/current ; \
410 cd .. ; \
Brian Pauldff11bb2005-07-21 18:44:52 +0000411 tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000412 gzip $(LIB_NAME).tar ; \
413 mv $(LIB_NAME).tar.gz $(DIRECTORY)
414
415demo_gz:
416 cd .. ; \
Brian Paul3e2419a2005-07-22 15:52:46 +0000417 tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000418 gzip $(DEMO_NAME).tar ; \
419 mv $(DEMO_NAME).tar.gz $(DIRECTORY)
420
Brian Paul80cef692005-09-10 16:54:05 +0000421glut_gz:
422 cd .. ; \
423 tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \
424 gzip $(GLUT_NAME).tar ; \
425 mv $(GLUT_NAME).tar.gz $(DIRECTORY)
426
Brian Paulde0ee312004-03-26 15:19:11 +0000427lib_bz2:
428 rm -f configs/current ; \
429 cd .. ; \
Brian Pauldff11bb2005-07-21 18:44:52 +0000430 tar -cf $(LIB_NAME).tar $(LIB_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000431 bzip2 $(LIB_NAME).tar ; \
432 mv $(LIB_NAME).tar.bz2 $(DIRECTORY)
433
434demo_bz2:
435 cd .. ; \
Brian Paul3e2419a2005-07-22 15:52:46 +0000436 tar -cf $(DEMO_NAME).tar $(DEMO_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000437 bzip2 $(DEMO_NAME).tar ; \
438 mv $(DEMO_NAME).tar.bz2 $(DIRECTORY)
439
Brian Paul80cef692005-09-10 16:54:05 +0000440glut_bz2:
441 cd .. ; \
442 tar -cf $(GLUT_NAME).tar $(GLUT_FILES) ; \
443 bzip2 $(GLUT_NAME).tar ; \
444 mv $(GLUT_NAME).tar.bz2 $(DIRECTORY)
445
Brian Paulde0ee312004-03-26 15:19:11 +0000446lib_zip:
447 rm -f configs/current ; \
Brian Paul3e2419a2005-07-22 15:52:46 +0000448 rm -f $(LIB_NAME).zip ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000449 cd .. ; \
Brian Pauldff11bb2005-07-21 18:44:52 +0000450 zip -qr $(LIB_NAME).zip $(LIB_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000451 mv $(LIB_NAME).zip $(DIRECTORY)
452
453demo_zip:
Brian Paul3e2419a2005-07-22 15:52:46 +0000454 rm -f $(DEMO_NAME).zip ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000455 cd .. ; \
Brian Paul3e2419a2005-07-22 15:52:46 +0000456 zip -qr $(DEMO_NAME).zip $(DEMO_FILES) ; \
Brian Paulde0ee312004-03-26 15:19:11 +0000457 mv $(DEMO_NAME).zip $(DIRECTORY)
458
Brian Paul80cef692005-09-10 16:54:05 +0000459glut_zip:
460 rm -f $(GLUT_NAME).zip ; \
461 cd .. ; \
462 zip -qr $(GLUT_NAME).zip $(GLUT_FILES) ; \
463 mv $(GLUT_NAME).zip $(DIRECTORY)
464
Brian Paulde0ee312004-03-26 15:19:11 +0000465md5:
466 @-md5sum $(LIB_NAME).tar.gz
467 @-md5sum $(LIB_NAME).tar.bz2
468 @-md5sum $(LIB_NAME).zip
469 @-md5sum $(DEMO_NAME).tar.gz
470 @-md5sum $(DEMO_NAME).tar.bz2
471 @-md5sum $(DEMO_NAME).zip
Brian Paul80cef692005-09-10 16:54:05 +0000472 @-md5sum $(GLUT_NAME).tar.gz
473 @-md5sum $(GLUT_NAME).tar.bz2
474 @-md5sum $(GLUT_NAME).zip