1 # Top-level Mesa makefile
8 default: $(TOP)/configs/current
9 @for dir in $(SUBDIRS) ; do \
10 (cd $$dir ; $(MAKE)) || exit 1 ; \
15 (cd doxygen ; make) ; \
18 @for dir in $(SUBDIRS) ; do \
19 (cd $$dir ; $(MAKE) clean) ; \
24 touch $(TOP)/configs/current
27 -rm -f $(TOP)/configs/current
28 -rm -f `find . -name \*.o`
29 -rm -f `find . -name \*.a`
30 -rm -f `find . -name \*.so`
36 $(TOP)/bin/installmesa
38 # DirectFBGL module installation
39 linux-directfb-install:
40 cd src/mesa/drivers/directfb && $(MAKE) install
42 # If there's no current configuration file
43 $(TOP)/configs/current:
46 @echo "Please choose a configuration from the following list:"
47 @ls -1 $(TOP)/configs | grep -v "current\|default\|CVS"
49 @echo "Then type 'make <config>' (ex: 'make linux-x86')"
50 @echo "(ignore the following error message)"
54 # Rules to set/install a specific build configuration
70 hpux11-32-static-nothreads \
94 linux-osmesa16-static \
109 linux-x86-64-static \
124 (cd configs && rm -f current && ln -s $@ current)
128 # Rules for making release tarballs
131 LIB_NAME = MesaLib-6.2
132 DEMO_NAME = MesaDemos-6.2
135 $(DIRECTORY)/Makefile* \
136 $(DIRECTORY)/descrip.mms \
137 $(DIRECTORY)/mms-config. \
138 $(DIRECTORY)/Mesa.dsw \
139 $(DIRECTORY)/bin/mklib \
140 $(DIRECTORY)/bin/installmesa \
141 $(DIRECTORY)/configs/[a-z]* \
142 $(DIRECTORY)/docs/*.html \
143 $(DIRECTORY)/docs/COPYING \
144 $(DIRECTORY)/docs/INSTALL.GNU \
145 $(DIRECTORY)/docs/README.* \
146 $(DIRECTORY)/docs/RELNOTES* \
147 $(DIRECTORY)/docs/VERSIONS \
148 $(DIRECTORY)/docs/*.spec \
149 $(DIRECTORY)/include/GL/internal/glcore.h \
150 $(DIRECTORY)/include/GL/dmesa.h \
151 $(DIRECTORY)/include/GL/amesa.h \
152 $(DIRECTORY)/include/GL/fxmesa.h \
153 $(DIRECTORY)/include/GL/ggimesa.h \
154 $(DIRECTORY)/include/GL/gl.h \
155 $(DIRECTORY)/include/GL/glext.h \
156 $(DIRECTORY)/include/GL/gl_mangle.h \
157 $(DIRECTORY)/include/GL/glu.h \
158 $(DIRECTORY)/include/GL/glu_mangle.h \
159 $(DIRECTORY)/include/GL/glx.h \
160 $(DIRECTORY)/include/GL/glxext.h \
161 $(DIRECTORY)/include/GL/glx_mangle.h \
162 $(DIRECTORY)/include/GL/mesa_wgl.h \
163 $(DIRECTORY)/include/GL/mglmesa.h \
164 $(DIRECTORY)/include/GL/osmesa.h \
165 $(DIRECTORY)/include/GL/svgamesa.h \
166 $(DIRECTORY)/include/GL/ugl*.h \
167 $(DIRECTORY)/include/GL/vms_x_fix.h \
168 $(DIRECTORY)/include/GL/wmesa.h \
169 $(DIRECTORY)/include/GL/xmesa.h \
170 $(DIRECTORY)/include/GL/xmesa_x.h \
171 $(DIRECTORY)/include/GL/xmesa_xf86.h \
172 $(DIRECTORY)/src/Makefile \
173 $(DIRECTORY)/src/descrip.mms \
174 $(DIRECTORY)/src/mesa/Makefile* \
175 $(DIRECTORY)/src/mesa/sources \
176 $(DIRECTORY)/src/mesa/descrip.mms \
177 $(DIRECTORY)/src/mesa/depend \
178 $(DIRECTORY)/src/mesa/main/*.[chS] \
179 $(DIRECTORY)/src/mesa/main/main.dsp \
180 $(DIRECTORY)/src/mesa/main/descrip.mms \
181 $(DIRECTORY)/src/mesa/glapi/*.[chS] \
182 $(DIRECTORY)/src/mesa/glapi/glapi.dsp \
183 $(DIRECTORY)/src/mesa/glapi/descrip.mms \
184 $(DIRECTORY)/src/mesa/array_cache/*.[ch] \
185 $(DIRECTORY)/src/mesa/array_cache/array_cache.dsp \
186 $(DIRECTORY)/src/mesa/array_cache/descrip.mms \
187 $(DIRECTORY)/src/mesa/math/*.[ch] \
188 $(DIRECTORY)/src/mesa/math/math.dsp \
189 $(DIRECTORY)/src/mesa/math/descrip.mms \
190 $(DIRECTORY)/src/mesa/shader/*.[ch] \
191 $(DIRECTORY)/src/mesa/shader/shader.dsp \
192 $(DIRECTORY)/src/mesa/shader/descrip.mms \
193 $(DIRECTORY)/src/mesa/swrast/*.[ch] \
194 $(DIRECTORY)/src/mesa/swrast/swrast.dsp \
195 $(DIRECTORY)/src/mesa/swrast/descrip.mms \
196 $(DIRECTORY)/src/mesa/swrast_setup/*.[ch] \
197 $(DIRECTORY)/src/mesa/swrast_setup/swrast_setup.dsp \
198 $(DIRECTORY)/src/mesa/swrast_setup/descrip.mms \
199 $(DIRECTORY)/src/mesa/tnl/*.[chS] \
200 $(DIRECTORY)/src/mesa/tnl/tnl.dsp \
201 $(DIRECTORY)/src/mesa/tnl/descrip.mms \
202 $(DIRECTORY)/src/mesa/tnl_dd/*.[ch] \
203 $(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch] \
204 $(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm \
205 $(DIRECTORY)/src/mesa/drivers/beos/*.cpp \
206 $(DIRECTORY)/src/mesa/drivers/beos/Makefile \
207 $(DIRECTORY)/src/mesa/drivers/common/*.[ch] \
208 $(DIRECTORY)/src/mesa/drivers/common/descrip.mms \
209 $(DIRECTORY)/src/mesa/drivers/directfb/*.[ch] \
210 $(DIRECTORY)/src/mesa/drivers/directfb/Makefile \
211 $(DIRECTORY)/src/mesa/drivers/dos/*.[chS] \
212 $(DIRECTORY)/src/mesa/drivers/dri/common/*.[ch] \
213 $(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c \
214 $(DIRECTORY)/src/mesa/drivers/glide/*.[ch] \
215 $(DIRECTORY)/src/mesa/drivers/glide/*.def \
216 $(DIRECTORY)/src/mesa/drivers/ggi/*.[ch] \
217 $(DIRECTORY)/src/mesa/drivers/ggi/ggimesa.conf.in \
218 $(DIRECTORY)/src/mesa/drivers/ggi/default/*.c \
219 $(DIRECTORY)/src/mesa/drivers/ggi/default/genkgi.conf.in \
220 $(DIRECTORY)/src/mesa/drivers/ggi/display/*.c \
221 $(DIRECTORY)/src/mesa/drivers/ggi/display/fbdev.conf.in \
222 $(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/*.h \
223 $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win \
224 $(DIRECTORY)/src/mesa/drivers/osmesa/descrip.mms \
225 $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def \
226 $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.dsp \
227 $(DIRECTORY)/src/mesa/drivers/osmesa/*.[ch] \
228 $(DIRECTORY)/src/mesa/drivers/svga/*.[ch] \
229 $(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch] \
230 $(DIRECTORY)/src/mesa/drivers/windows/*/*.def \
231 $(DIRECTORY)/src/mesa/drivers/windows/*/*.dsp \
232 $(DIRECTORY)/src/mesa/drivers/x11/descrip.mms \
233 $(DIRECTORY)/src/mesa/drivers/x11/*.[ch] \
234 $(DIRECTORY)/src/mesa/sparc/*.[chS] \
235 $(DIRECTORY)/src/mesa/x86/Makefile \
236 $(DIRECTORY)/src/mesa/x86/*.[ch] \
237 $(DIRECTORY)/src/mesa/x86/*.S \
238 $(DIRECTORY)/src/glu/Makefile \
239 $(DIRECTORY)/src/glu/descrip.mms \
240 $(DIRECTORY)/src/glu/sgi/Makefile \
241 $(DIRECTORY)/src/glu/sgi/Makefile.win \
242 $(DIRECTORY)/src/glu/sgi/Makefile.DJ \
243 $(DIRECTORY)/src/glu/sgi/cc*.txt \
244 $(DIRECTORY)/src/glu/sgi/glu.def \
245 $(DIRECTORY)/src/glu/sgi/glu.dsp \
246 $(DIRECTORY)/src/glu/sgi/dummy.cc \
247 $(DIRECTORY)/src/glu/sgi/descrip.mms \
248 $(DIRECTORY)/src/glu/sgi/mesaglu.opt \
249 $(DIRECTORY)/src/glu/sgi/include/gluos.h \
250 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \
251 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc \
252 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h \
253 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc \
254 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.h \
255 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.cc \
256 $(DIRECTORY)/src/glu/sgi/libtess/README \
257 $(DIRECTORY)/src/glu/sgi/libtess/alg-outline \
258 $(DIRECTORY)/src/glu/sgi/libtess/*.[ch] \
259 $(DIRECTORY)/src/glu/sgi/libutil/*.[ch] \
260 $(DIRECTORY)/src/glu/mesa/README[12] \
261 $(DIRECTORY)/src/glu/mesa/Makefile* \
262 $(DIRECTORY)/src/glu/mesa/descrip.mms \
263 $(DIRECTORY)/src/glu/mesa/mms_depend \
264 $(DIRECTORY)/src/glu/mesa/*.def \
265 $(DIRECTORY)/src/glu/mesa/depend \
266 $(DIRECTORY)/src/glu/mesa/*.[ch] \
267 $(DIRECTORY)/src/glw/*.[ch] \
268 $(DIRECTORY)/src/glw/Makefile* \
269 $(DIRECTORY)/src/glw/README \
270 $(DIRECTORY)/src/glw/depend \
271 $(DIRECTORY)/progs/Makefile \
272 $(DIRECTORY)/progs/util/README \
273 $(DIRECTORY)/progs/util/*.[ch] \
274 $(DIRECTORY)/progs/util/sampleMakefile \
275 $(DIRECTORY)/vms/analyze_map.com \
276 $(DIRECTORY)/vms/xlib.opt \
277 $(DIRECTORY)/vms/xlib_share.opt
281 $(DIRECTORY)/include/GL/glut.h \
282 $(DIRECTORY)/include/GL/glutf90.h \
283 $(DIRECTORY)/src/glut/glx/Makefile* \
284 $(DIRECTORY)/src/glut/glx/depend \
285 $(DIRECTORY)/src/glut/glx/*def \
286 $(DIRECTORY)/src/glut/glx/descrip.mms \
287 $(DIRECTORY)/src/glut/glx/mms_depend \
288 $(DIRECTORY)/src/glut/glx/glut.dsp \
289 $(DIRECTORY)/src/glut/glx/*.[ch] \
290 $(DIRECTORY)/src/glut/beos/*.[ch] \
291 $(DIRECTORY)/src/glut/beos/*.cpp \
292 $(DIRECTORY)/src/glut/beos/Makefile \
293 $(DIRECTORY)/src/glut/dos/*.[ch] \
294 $(DIRECTORY)/src/glut/dos/Makefile.DJ \
295 $(DIRECTORY)/src/glut/dos/PC_HW/*.[chS] \
296 $(DIRECTORY)/src/glut/ggi/*.[ch] \
297 $(DIRECTORY)/src/glut/ggi/Makefile \
298 $(DIRECTORY)/progs/beos/*.cpp \
299 $(DIRECTORY)/progs/beos/Makefile \
300 $(DIRECTORY)/progs/images/*.rgb \
301 $(DIRECTORY)/progs/images/*.rgba \
302 $(DIRECTORY)/progs/demos/Makefile* \
303 $(DIRECTORY)/progs/demos/descrip.mms \
304 $(DIRECTORY)/progs/demos/*.[ch] \
305 $(DIRECTORY)/progs/demos/*.cxx \
306 $(DIRECTORY)/progs/demos/*.dat \
307 $(DIRECTORY)/progs/demos/README \
308 $(DIRECTORY)/progs/demos/Windows/*.dsp \
309 $(DIRECTORY)/progs/demos/Windows/*.dsw \
310 $(DIRECTORY)/progs/xdemos/Makefile* \
311 $(DIRECTORY)/progs/xdemos/descrip.mms \
312 $(DIRECTORY)/progs/xdemos/*.[chf] \
313 $(DIRECTORY)/progs/redbook/Makefile* \
314 $(DIRECTORY)/progs/redbook/README \
315 $(DIRECTORY)/progs/redbook/*.[ch] \
316 $(DIRECTORY)/progs/samples/Makefile* \
317 $(DIRECTORY)/progs/samples/README \
318 $(DIRECTORY)/progs/samples/*.c \
319 $(DIRECTORY)/progs/windml/Makefile.ugl \
320 $(DIRECTORY)/progs/windml/*.c \
321 $(DIRECTORY)/progs/windml/*.bmp \
322 $(DIRECTORY)/progs/ggi/*.c
326 $(DIRECTORY)/src/glx/Makefile \
327 $(DIRECTORY)/src/glx/mini/*.[ch] \
328 $(DIRECTORY)/src/glx/mini/example.miniglx.conf \
329 $(DIRECTORY)/src/glx/mini/NOTES \
330 $(DIRECTORY)/src/mesa/drivers/dri/Makefile \
331 $(DIRECTORY)/src/mesa/drivers/dri/Makefile.template \
332 $(DIRECTORY)/src/mesa/drivers/dri/common/*.[ch] \
333 $(DIRECTORY)/src/mesa/drivers/dri/dri_client/imports/*.h \
334 $(DIRECTORY)/src/mesa/drivers/dri/*/*.[ch] \
335 $(DIRECTORY)/src/mesa/drivers/dri/*/depend \
336 $(DIRECTORY)/src/mesa/drivers/dri/*/Makefile \
337 $(DIRECTORY)/src/mesa/drivers/dri/*/Doxyfile \
338 $(DIRECTORY)/src/mesa/drivers/dri/*/server/*.[ch]
341 # Everything for new a Mesa release:
342 tarballs: lib_gz demo_gz lib_bz2 demo_bz2 lib_zip demo_zip md5
346 rm -f configs/current ; \
348 tar -cvf $(LIB_NAME).tar $(LIB_FILES) ; \
349 gzip $(LIB_NAME).tar ; \
350 mv $(LIB_NAME).tar.gz $(DIRECTORY)
354 tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) ; \
355 gzip $(DEMO_NAME).tar ; \
356 mv $(DEMO_NAME).tar.gz $(DIRECTORY)
359 rm -f configs/current ; \
361 tar -cvf $(LIB_NAME).tar $(LIB_FILES) ; \
362 bzip2 $(LIB_NAME).tar ; \
363 mv $(LIB_NAME).tar.bz2 $(DIRECTORY)
367 tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) ; \
368 bzip2 $(DEMO_NAME).tar ; \
369 mv $(DEMO_NAME).tar.bz2 $(DIRECTORY)
372 rm -f configs/current ; \
373 -rm $(LIB_NAME).zip ; \
375 zip -r $(LIB_NAME).zip $(LIB_FILES) ; \
376 mv $(LIB_NAME).zip $(DIRECTORY)
379 -rm $(DEMO_NAME).zip ; \
381 zip -r $(DEMO_NAME).zip $(DEMO_FILES) ; \
382 mv $(DEMO_NAME).zip $(DIRECTORY)
385 @-md5sum $(LIB_NAME).tar.gz
386 @-md5sum $(LIB_NAME).tar.bz2
387 @-md5sum $(LIB_NAME).zip
388 @-md5sum $(DEMO_NAME).tar.gz
389 @-md5sum $(DEMO_NAME).tar.bz2
390 @-md5sum $(DEMO_NAME).zip