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
32 $(TOP)/bin/installmesa
34 # If there's no current configuration file
35 $(TOP)/configs/current:
38 @echo "Please choose a configuration from the following list:"
39 @ls -1 $(TOP)/configs | grep -v "current\|default\|CVS"
41 @echo "Then type 'make <config>' (ex: 'make linux-x86')"
42 @echo "(ignore the following error message)"
46 # Rules to set/install a specific build configuration
58 hpux11-32-static-nothreads \
79 linux-osmesa16-static \
108 (cd configs && rm -f current && ln -s $@ current)
112 # Rules for making release tarballs
115 LIB_NAME = MesaLib-6.1
116 DEMO_NAME = MesaDemos-6.1
119 $(DIRECTORY)/Makefile* \
120 $(DIRECTORY)/descrip.mms \
121 $(DIRECTORY)/mms-config. \
122 $(DIRECTORY)/Mesa.dsw \
123 $(DIRECTORY)/bin/mklib \
124 $(DIRECTORY)/configs/[a-z]* \
125 $(DIRECTORY)/docs/*.html \
126 $(DIRECTORY)/docs/COPYING \
127 $(DIRECTORY)/docs/INSTALL.GNU \
128 $(DIRECTORY)/docs/README.* \
129 $(DIRECTORY)/docs/RELNOTES* \
130 $(DIRECTORY)/docs/VERSIONS \
131 $(DIRECTORY)/docs/*.spec \
132 $(DIRECTORY)/include/GL/internal/glcore.h \
133 $(DIRECTORY)/include/GL/dmesa.h \
134 $(DIRECTORY)/include/GL/amesa.h \
135 $(DIRECTORY)/include/GL/fxmesa.h \
136 $(DIRECTORY)/include/GL/ggimesa.h \
137 $(DIRECTORY)/include/GL/gl.h \
138 $(DIRECTORY)/include/GL/glext.h \
139 $(DIRECTORY)/include/GL/gl_mangle.h \
140 $(DIRECTORY)/include/GL/glu.h \
141 $(DIRECTORY)/include/GL/glu_mangle.h \
142 $(DIRECTORY)/include/GL/glx.h \
143 $(DIRECTORY)/include/GL/glxext.h \
144 $(DIRECTORY)/include/GL/glx_mangle.h \
145 $(DIRECTORY)/include/GL/mesa_wgl.h \
146 $(DIRECTORY)/include/GL/mglmesa.h \
147 $(DIRECTORY)/include/GL/osmesa.h \
148 $(DIRECTORY)/include/GL/svgamesa.h \
149 $(DIRECTORY)/include/GL/ugl*.h \
150 $(DIRECTORY)/include/GL/vms_x_fix.h \
151 $(DIRECTORY)/include/GL/wmesa.h \
152 $(DIRECTORY)/include/GL/xmesa.h \
153 $(DIRECTORY)/include/GL/xmesa_x.h \
154 $(DIRECTORY)/include/GL/xmesa_xf86.h \
155 $(DIRECTORY)/src/Makefile \
156 $(DIRECTORY)/src/descrip.mms \
157 $(DIRECTORY)/src/mesa/Makefile* \
158 $(DIRECTORY)/src/mesa/sources \
159 $(DIRECTORY)/src/mesa/descrip.mms \
160 $(DIRECTORY)/src/mesa/depend \
161 $(DIRECTORY)/src/mesa/main/*.[chS] \
162 $(DIRECTORY)/src/mesa/main/main.dsp \
163 $(DIRECTORY)/src/mesa/main/descrip.mms \
164 $(DIRECTORY)/src/mesa/glapi/*.[chS] \
165 $(DIRECTORY)/src/mesa/glapi/glapi.dsp \
166 $(DIRECTORY)/src/mesa/glapi/descrip.mms \
167 $(DIRECTORY)/src/mesa/array_cache/*.[ch] \
168 $(DIRECTORY)/src/mesa/array_cache/array_cache.dsp \
169 $(DIRECTORY)/src/mesa/array_cache/descrip.mms \
170 $(DIRECTORY)/src/mesa/math/*.[ch] \
171 $(DIRECTORY)/src/mesa/math/math.dsp \
172 $(DIRECTORY)/src/mesa/math/descrip.mms \
173 $(DIRECTORY)/src/mesa/shader/*.[ch] \
174 $(DIRECTORY)/src/mesa/shader/shader.dsp \
175 $(DIRECTORY)/src/mesa/shader/descrip.mms \
176 $(DIRECTORY)/src/mesa/swrast/*.[ch] \
177 $(DIRECTORY)/src/mesa/swrast/swrast.dsp \
178 $(DIRECTORY)/src/mesa/swrast/descrip.mms \
179 $(DIRECTORY)/src/mesa/swrast_setup/*.[ch] \
180 $(DIRECTORY)/src/mesa/swrast_setup/swrast_setup.dsp \
181 $(DIRECTORY)/src/mesa/swrast_setup/descrip.mms \
182 $(DIRECTORY)/src/mesa/tnl/*.[chS] \
183 $(DIRECTORY)/src/mesa/tnl/tnl.dsp \
184 $(DIRECTORY)/src/mesa/tnl/descrip.mms \
185 $(DIRECTORY)/src/mesa/tnl_dd/*.[ch] \
186 $(DIRECTORY)/src/mesa/tnl_dd/imm/*.[ch] \
187 $(DIRECTORY)/src/mesa/tnl_dd/imm/NOTES.imm \
188 $(DIRECTORY)/src/mesa/drivers/beos/*.cpp \
189 $(DIRECTORY)/src/mesa/drivers/beos/*.h \
190 $(DIRECTORY)/src/mesa/drivers/beos/Makefile \
191 $(DIRECTORY)/src/mesa/drivers/common/*.[ch] \
192 $(DIRECTORY)/src/mesa/drivers/common/descrip.mms \
193 $(DIRECTORY)/src/mesa/drivers/dos/*.[chS] \
194 $(DIRECTORY)/src/mesa/drivers/dri/common/*.[ch] \
195 $(DIRECTORY)/src/mesa/drivers/fbdev/glfbdev.c \
196 $(DIRECTORY)/src/mesa/drivers/glide/*.[ch] \
197 $(DIRECTORY)/src/mesa/drivers/glide/*.def \
198 $(DIRECTORY)/src/mesa/drivers/ggi/*.[ch] \
199 $(DIRECTORY)/src/mesa/drivers/ggi/ggimesa.conf.in \
200 $(DIRECTORY)/src/mesa/drivers/ggi/default/*.c \
201 $(DIRECTORY)/src/mesa/drivers/ggi/default/genkgi.conf.in \
202 $(DIRECTORY)/src/mesa/drivers/ggi/display/*.c \
203 $(DIRECTORY)/src/mesa/drivers/ggi/display/fbdev.conf.in \
204 $(DIRECTORY)/src/mesa/drivers/ggi/include/ggi/mesa/*.h \
205 $(DIRECTORY)/src/mesa/drivers/osmesa/Makefile.win \
206 $(DIRECTORY)/src/mesa/drivers/osmesa/descrip.mms \
207 $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.def \
208 $(DIRECTORY)/src/mesa/drivers/osmesa/osmesa.dsp \
209 $(DIRECTORY)/src/mesa/drivers/osmesa/*.[ch] \
210 $(DIRECTORY)/src/mesa/drivers/svga/*.[ch] \
211 $(DIRECTORY)/src/mesa/drivers/windows/*/*.[ch] \
212 $(DIRECTORY)/src/mesa/drivers/windows/*/*.def \
213 $(DIRECTORY)/src/mesa/drivers/windows/*/*.dsp \
214 $(DIRECTORY)/src/mesa/drivers/x11/descrip.mms \
215 $(DIRECTORY)/src/mesa/drivers/x11/*.[ch] \
216 $(DIRECTORY)/src/mesa/sparc/*.[chS] \
217 $(DIRECTORY)/src/mesa/x86/Makefile \
218 $(DIRECTORY)/src/mesa/x86/*.[ch] \
219 $(DIRECTORY)/src/mesa/x86/*.S \
220 $(DIRECTORY)/src/glu/Makefile \
221 $(DIRECTORY)/src/glu/descrip.mms \
222 $(DIRECTORY)/src/glu/sgi/Makefile \
223 $(DIRECTORY)/src/glu/sgi/Makefile.win \
224 $(DIRECTORY)/src/glu/sgi/Makefile.DJ \
225 $(DIRECTORY)/src/glu/sgi/cc*.txt \
226 $(DIRECTORY)/src/glu/sgi/glu.def \
227 $(DIRECTORY)/src/glu/sgi/glu.dsp \
228 $(DIRECTORY)/src/glu/sgi/dummy.cc \
229 $(DIRECTORY)/src/glu/sgi/descrip.mms \
230 $(DIRECTORY)/src/glu/sgi/mesaglu.opt \
231 $(DIRECTORY)/src/glu/sgi/include/gluos.h \
232 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.h \
233 $(DIRECTORY)/src/glu/sgi/libnurbs/interface/*.cc \
234 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.h \
235 $(DIRECTORY)/src/glu/sgi/libnurbs/internals/*.cc \
236 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.h \
237 $(DIRECTORY)/src/glu/sgi/libnurbs/nurbtess/*.cc \
238 $(DIRECTORY)/src/glu/sgi/libtess/README \
239 $(DIRECTORY)/src/glu/sgi/libtess/alg-outline \
240 $(DIRECTORY)/src/glu/sgi/libtess/*.[ch] \
241 $(DIRECTORY)/src/glu/sgi/libutil/*.[ch] \
242 $(DIRECTORY)/src/glu/mesa/README[12] \
243 $(DIRECTORY)/src/glu/mesa/Makefile* \
244 $(DIRECTORY)/src/glu/mesa/descrip.mms \
245 $(DIRECTORY)/src/glu/mesa/mms_depend \
246 $(DIRECTORY)/src/glu/mesa/*.def \
247 $(DIRECTORY)/src/glu/mesa/depend \
248 $(DIRECTORY)/src/glu/mesa/*.[ch] \
249 $(DIRECTORY)/src/glw/*.[ch] \
250 $(DIRECTORY)/src/glw/Makefile* \
251 $(DIRECTORY)/src/glw/README \
252 $(DIRECTORY)/progs/Makefile \
253 $(DIRECTORY)/progs/util/README \
254 $(DIRECTORY)/progs/util/*.[ch] \
255 $(DIRECTORY)/progs/util/sampleMakefile \
256 $(DIRECTORY)/vms/analyze_map.com \
257 $(DIRECTORY)/vms/xlib.opt \
258 $(DIRECTORY)/vms/xlib_share.opt
262 $(DIRECTORY)/include/GL/glut.h \
263 $(DIRECTORY)/include/GL/glutf90.h \
264 $(DIRECTORY)/src/glut/glx/Makefile* \
265 $(DIRECTORY)/src/glut/glx/depend \
266 $(DIRECTORY)/src/glut/glx/*def \
267 $(DIRECTORY)/src/glut/glx/descrip.mms \
268 $(DIRECTORY)/src/glut/glx/mms_depend \
269 $(DIRECTORY)/src/glut/glx/glut.dsp \
270 $(DIRECTORY)/src/glut/glx/*.[ch] \
271 $(DIRECTORY)/src/glut/beos/*.[ch] \
272 $(DIRECTORY)/src/glut/beos/*.cpp \
273 $(DIRECTORY)/src/glut/beos/Makefile \
274 $(DIRECTORY)/src/glut/dos/*.[ch] \
275 $(DIRECTORY)/src/glut/dos/Makefile.DJ \
276 $(DIRECTORY)/src/glut/dos/PC_HW/*.[chS] \
277 $(DIRECTORY)/progs/beos/*.cpp \
278 $(DIRECTORY)/progs/beos/Makefile \
279 $(DIRECTORY)/progs/images/*.rgb \
280 $(DIRECTORY)/progs/images/*.rgba \
281 $(DIRECTORY)/progs/demos/Makefile* \
282 $(DIRECTORY)/progs/demos/descrip.mms \
283 $(DIRECTORY)/progs/demos/*.[ch] \
284 $(DIRECTORY)/progs/demos/*.cxx \
285 $(DIRECTORY)/progs/demos/*.dat \
286 $(DIRECTORY)/progs/demos/README \
287 $(DIRECTORY)/progs/demos/Windows/*.dsp \
288 $(DIRECTORY)/progs/demos/Windows/*.dsw \
289 $(DIRECTORY)/progs/xdemos/Makefile* \
290 $(DIRECTORY)/progs/xdemos/descrip.mms \
291 $(DIRECTORY)/progs/xdemos/*.[chf] \
292 $(DIRECTORY)/progs/redbook/Makefile* \
293 $(DIRECTORY)/progs/redbook/README \
294 $(DIRECTORY)/progs/redbook/*.[ch] \
295 $(DIRECTORY)/progs/samples/Makefile* \
296 $(DIRECTORY)/progs/samples/README \
297 $(DIRECTORY)/progs/samples/*.c \
298 $(DIRECTORY)/progs/windml/Makefile.ugl \
299 $(DIRECTORY)/progs/windml/*.c \
300 $(DIRECTORY)/progs/windml/*.bmp \
301 $(DIRECTORY)/progs/ggi/*.c
305 rm -f configs/current ; \
307 tar -cvf $(LIB_NAME).tar $(LIB_FILES) ; \
308 gzip $(LIB_NAME).tar ; \
309 mv $(LIB_NAME).tar.gz $(DIRECTORY)
313 tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) ; \
314 gzip $(DEMO_NAME).tar ; \
315 mv $(DEMO_NAME).tar.gz $(DIRECTORY)
318 rm -f configs/current ; \
320 tar -cvf $(LIB_NAME).tar $(LIB_FILES) ; \
321 bzip2 $(LIB_NAME).tar ; \
322 mv $(LIB_NAME).tar.bz2 $(DIRECTORY)
326 tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) ; \
327 bzip2 $(DEMO_NAME).tar ; \
328 mv $(DEMO_NAME).tar.bz2 $(DIRECTORY)
331 rm -f configs/current ; \
332 -rm $(LIB_NAME).zip ; \
334 zip -r $(LIB_NAME).zip $(LIB_FILES) ; \
335 mv $(LIB_NAME).zip $(DIRECTORY)
338 -rm $(DEMO_NAME).zip ; \
340 zip -r $(DEMO_NAME).zip $(DEMO_FILES) ; \
341 mv $(DEMO_NAME).zip $(DIRECTORY)
344 @-md5sum $(LIB_NAME).tar.gz
345 @-md5sum $(LIB_NAME).tar.bz2
346 @-md5sum $(LIB_NAME).zip
347 @-md5sum $(DEMO_NAME).tar.gz
348 @-md5sum $(DEMO_NAME).tar.bz2
349 @-md5sum $(DEMO_NAME).zip
351 # Everything for new a Mesa release:
352 tarballs: lib_gz demo_gz lib_bz2 demo_bz2 lib_zip demo_zip md5