1 # Makefile for core library for VMS
2 # contributed by Jouk Jansen joukj@hrem.stm.tudelft.nl
3 # Last revision : 17 November 2000
6 define gl [-.include.gl]
8 .include [-]mms-config.
16 CFLAGS = /include=($(INCDIR),[])/define=(PTHREADS=1)/name=(as_is,short)
18 CORE_SOURCES =accum.c \
78 DRIVER_SOURCES = [.x]glxapi.c [.x]fakeglx.c [.x]xfonts.c \
79 [.x]xm_api.c [.x]xm_dd.c [.x]xm_line.c [.x]xm_span.c [.x]xm_tri.c \
82 [.fx]fxapi.c [.fx]fxdd.c [.fx]fxddtex.c [.fx]fxvsetup.c [.fx]fxsetup.c \
83 [.fx]fxtrifuncs.c [.fx]fxfastpath.c [.fx]fxpipeline.c\
84 [.fx]fxtexman.c [.fx]fxddspan.c\
87 RASTER_SOURCES = [.swrast]s_aatriangle.c \
91 [.swrast]s_alphabuf.c \
94 [.swrast]s_buffers.c \
95 [.swrast]s_copypix.c \
96 [.swrast]s_context.c \
98 [.swrast]s_drawpix.c \
100 [.swrast]s_feedback.c \
101 [.swrast]s_histogram.c \
104 [.swrast]s_masking.c \
106 [.swrast]s_pixeltex.c \
107 [.swrast]s_points.c \
109 [.swrast]s_readpix.c \
110 [.swrast]s_scissor.c \
112 [.swrast]s_stencil.c \
113 [.swrast]s_texture.c \
114 [.swrast]s_triangle.c \
116 [.swrast_setup]ss_context.c \
117 [.swrast_setup]ss_triangle.c \
118 [.swrast_setup]ss_vb.c
122 TNL_SOURCES=[.tnl]t_bbox.c \
136 [.tnl]t_trans_elt.c \
141 [.tnl]t_vbindirect.c \
145 MATH_SOURCES=[.math]m_debug_xform.c \
147 [.math]m_translate.c \
149 [.math]m_vertices.c \
214 OBJECTS4=[.x]glxapi.obj,[.x]fakeglx.obj,[.x]xfonts.obj,\
215 [.x]xm_api.obj,[.x]xm_dd.obj,[.x]xm_line.obj,[.x]xm_span.obj,[.x]xm_tri.obj,\
216 [.osmesa]osmesa.obj,\
219 OBJECTS5=[.fx]fxapi.obj,[.fx]fxdd.obj,[.fx]fxddtex.obj,[.fx]fxvsetup.obj,\
220 [.fx]fxsetup.obj,[.fx]fxfastpath.obj,[.fx]fxpipeline.obj
222 OBJECTS6=[.fx]fxtrifuncs.obj,[.fx]fxglidew.obj,\
223 [.fx]fxtexman.obj,[.fx]fxddspan.obj
225 OBJECTS7=[.swrast]s_aatriangle.obj,\
226 [.swrast]s_accum.obj,\
227 [.swrast]s_alpha.obj,\
228 [.swrast]s_alphabuf.obj,\
229 [.swrast]s_bitmap.obj,\
230 [.swrast]s_blend.obj,\
231 [.swrast]s_buffers.obj,\
232 [.swrast]s_copypix.obj,\
233 [.swrast]s_context.obj,\
236 OBJECTS8=[.swrast]s_drawpix.obj,\
238 [.swrast]s_histogram.obj,\
239 [.swrast]s_lines.obj,\
240 [.swrast]s_logic.obj,\
241 [.swrast]s_masking.obj,\
243 [.swrast]s_pixeltex.obj,\
244 [.swrast]s_points.obj,\
247 OBJECTS9=[.swrast]s_readpix.obj,\
248 [.swrast]s_aaline.obj,\
249 [.swrast]s_scissor.obj,\
250 [.swrast]s_span.obj,\
251 [.swrast]s_stencil.obj,\
252 [.swrast]s_texture.obj,\
253 [.swrast]s_triangle.obj,\
254 [.swrast]s_feedback.obj,\
257 OBJECTS10=[.swrast_setup]ss_context.obj,\
258 [.swrast_setup]ss_triangle.obj,\
259 [.swrast_setup]ss_vb.obj
261 OBJECTS11=[.tnl]t_bbox.obj,\
263 [.tnl]t_context.obj,\
270 [.tnl]t_pipeline.obj,\
273 OBJECTS12=[.tnl]t_shade.obj,\
275 [.tnl]t_texture.obj,\
276 [.tnl]t_trans_elt.obj,\
281 [.tnl]t_vbindirect.obj,\
282 [.tnl]t_vbrender.obj,\
285 OBJECTS13=[.math]m_debug_xform.obj,\
286 [.math]m_matrix.obj,\
287 [.math]m_translate.obj,\
288 [.math]m_vector.obj,\
289 [.math]m_vertices.obj,\
298 $(LIBDIR)$(GL_LIB) : $(OBJECTS1),$(OBJECTS2) $(OBJECTS3) $(OBJECTS4)\
299 $(OBJECTS5) $(OBJECTS6) $(OBJECTS7) $(OBJECTS8) $(OBJECTS9)\
300 $(OBJECTS10) $(OBJECTS11) $(OBJECTS12) $(OBJECTS13)
302 @ WRITE_ SYS$OUTPUT " generating mesagl1.opt"
303 @ OPEN_/WRITE FILE mesagl1.opt
305 @ WRITE_ FILE "! mesagl1.opt generated by DESCRIP.$(MMS_EXT)"
307 @ WRITE_ FILE "IDENTIFICATION=""$(VERSION)"""
308 @ WRITE_ FILE "GSMATCH=LEQUAL,3,4
309 @ WRITE_ FILE "$(OBJECTS1)"
310 @ WRITE_ FILE "$(OBJECTS2)"
311 @ WRITE_ FILE "$(OBJECTS3)"
312 @ WRITE_ FILE "$(OBJECTS4)"
313 @ WRITE_ FILE "$(OBJECTS5)"
314 @ WRITE_ FILE "$(OBJECTS6)"
315 @ WRITE_ FILE "$(OBJECTS7)"
316 @ WRITE_ FILE "$(OBJECTS8)"
317 @ WRITE_ FILE "$(OBJECTS9)"
318 @ WRITE_ FILE "$(OBJECTS10)"
319 @ WRITE_ FILE "$(OBJECTS11)"
320 @ WRITE_ FILE "$(OBJECTS12)"
321 @ WRITE_ FILE "$(OBJECTS13)"
322 @ write_ file "sys$share:decw$xextlibshr/share"
323 @ write_ file "sys$share:decw$xlibshr/share"
324 @ write_ file "sys$share:pthread$rtl/share"
326 @ WRITE_ SYS$OUTPUT " generating mesagl.map ..."
327 @ LINK_/NODEB/NOSHARE/NOEXE/MAP=mesagl.map/FULL mesagl1.opt/OPT
328 @ WRITE_ SYS$OUTPUT " analyzing mesagl.map ..."
329 @ @[-.vms]ANALYZE_MAP.COM mesagl.map mesagl.opt
330 @ WRITE_ SYS$OUTPUT " linking $(GL_LIB) ..."
331 @ LINK_/NODEB/SHARE=$(GL_LIB)/MAP=mesagl.map/FULL mesagl1.opt/opt,mesagl.opt/opt
333 @ $(MAKELIB) $(GL_LIB) $(OBJECTS1)
334 @ library $(GL_LIB) $(OBJECTS2)
335 @ library $(GL_LIB) $(OBJECTS3)
336 @ library $(GL_LIB) $(OBJECTS4)
337 @ library $(GL_LIB) $(OBJECTS5)
338 @ library $(GL_LIB) $(OBJECTS6)
339 @ library $(GL_LIB) $(OBJECTS7)
340 @ library $(GL_LIB) $(OBJECTS8)
341 @ library $(GL_LIB) $(OBJECTS9)
342 @ library $(GL_LIB) $(OBJECTS10)
343 @ library $(GL_LIB) $(OBJECTS11)
344 @ library $(GL_LIB) $(OBJECTS12)
345 @ library $(GL_LIB) $(OBJECTS13)
347 @ rename $(GL_LIB)* $(LIBDIR)
353 pixeltex.obj : pixeltex.c
355 imports.obj : imports.c
357 [.x86]x86.obj : [.x86]x86.c
358 $(CC) $(CFLAGS) /obj=[.x86]x86.obj [.x86]x86.c
359 [.x]glxapi.obj : [.x]glxapi.c
360 $(CC) $(CFLAGS) /obj=[.x]glxapi.obj [.x]glxapi.c
361 [.x]fakeglx.obj : [.x]fakeglx.c
362 $(CC) $(CFLAGS) /obj=[.x]fakeglx.obj [.x]fakeglx.c
363 [.x]xfonts.obj : [.x]xfonts.c
364 $(CC) $(CFLAGS) /obj=[.x]xfonts.obj [.x]xfonts.c
365 [.x]xm_api.obj : [.x]xm_api.c
366 $(CC) $(CFLAGS) /obj=[.x]xm_api.obj [.x]xm_api.c
367 [.x]xm_dd.obj : [.x]xm_dd.c
368 $(CC) $(CFLAGS)/nowarn /obj=[.x]xm_dd.obj [.x]xm_dd.c
369 [.x]xm_line.obj : [.x]xm_line.c
370 $(CC) $(CFLAGS) /obj=[.x]xm_line.obj [.x]xm_line.c
371 [.x]xm_span.obj : [.x]xm_span.c
372 $(CC) $(CFLAGS) /obj=[.x]xm_span.obj [.x]xm_span.c
373 [.x]xm_tri.obj : [.x]xm_tri.c
374 $(CC) $(CFLAGS) /obj=[.x]xm_tri.obj [.x]xm_tri.c
375 [.osmesa]osmesa.obj : [.osmesa]osmesa.c
376 $(CC) $(CFLAGS) /obj=[.osmesa]osmesa.obj [.osmesa]osmesa.c
377 [.svga]svgamesa.obj : [.svga]svgamesa.c
378 $(CC) $(CFLAGS) /obj=[.svga]svgamesa.obj [.svga]svgamesa.c
379 [.fx]fxapi.obj : [.fx]fxapi.c
380 $(CC) $(CFLAGS) /obj=[.fx]fxapi.obj [.fx]fxapi.c
381 [.fx]fxdd.obj : [.fx]fxdd.c
382 $(CC) $(CFLAGS) /obj=[.fx]fxdd.obj [.fx]fxdd.c
383 [.fx]fxddtex.obj : [.fx]fxddtex.c
384 $(CC) $(CFLAGS) /obj=[.fx]fxddtex.obj [.fx]fxddtex.c
385 [.fx]fxfastpath.obj : [.fx]fxfastpath.c
386 $(CC) $(CFLAGS) /obj=[.fx]fxfastpath.obj [.fx]fxfastpath.c
387 [.fx]fxpipeline.obj : [.fx]fxpipeline.c
388 $(CC) $(CFLAGS) /obj=[.fx]fxpipeline.obj [.fx]fxpipeline.c
389 [.fx]fxvsetup.obj : [.fx]fxvsetup.c
390 $(CC) $(CFLAGS) /obj=[.fx]fxvsetup.obj [.fx]fxvsetup.c
391 [.fx]fxsetup.obj : [.fx]fxsetup.c
392 $(CC) $(CFLAGS) /obj=[.fx]fxsetup.obj [.fx]fxsetup.c
393 [.fx]fxtrifuncs.obj : [.fx]fxtrifuncs.c
394 $(CC) $(CFLAGS) /obj=[.fx]fxtrifuncs.obj [.fx]fxtrifuncs.c
395 [.fx]fxtexman.obj : [.fx]fxtexman.c
396 $(CC) $(CFLAGS) /obj=[.fx]fxtexman.obj [.fx]fxtexman.c
397 [.fx]fxddspan.obj : [.fx]fxddspan.c
398 $(CC) $(CFLAGS) /obj=[.fx]fxddspan.obj [.fx]fxddspan.c
399 [.fx]fxglidew.obj : [.fx]fxglidew.c
400 $(CC) $(CFLAGS) /obj=[.fx]fxglidew.obj [.fx]fxglidew.c
402 [.swrast]s_aaline.obj : [.swrast]s_aaline.c
403 $(CC) $(CFLAGS) /obj=[.swrast]s_aaline.obj [.swrast]s_aaline.c
404 [.swrast]s_aatriangle.obj : [.swrast]s_aatriangle.c
405 $(CC) $(CFLAGS) /obj=[.swrast]s_aatriangle.obj [.swrast]s_aatriangle.c
406 [.swrast]s_accum.obj : [.swrast]s_accum.c
407 $(CC) $(CFLAGS) /obj=[.swrast]s_accum.obj [.swrast]s_accum.c
408 [.swrast]s_alpha.obj : [.swrast]s_alpha.c
409 $(CC) $(CFLAGS) /obj=[.swrast]s_alpha.obj [.swrast]s_alpha.c
410 [.swrast]s_alphabuf.obj : [.swrast]s_alphabuf.c
411 $(CC) $(CFLAGS) /obj=[.swrast]s_alphabuf.obj [.swrast]s_alphabuf.c
412 [.swrast]s_bitmap.obj : [.swrast]s_bitmap.c
413 $(CC) $(CFLAGS) /obj=[.swrast]s_bitmap.obj [.swrast]s_bitmap.c
414 [.swrast]s_blend.obj : [.swrast]s_blend.c
415 $(CC) $(CFLAGS) /obj=[.swrast]s_blend.obj [.swrast]s_blend.c
416 [.swrast]s_buffers.obj : [.swrast]s_buffers.c
417 $(CC) $(CFLAGS) /obj=[.swrast]s_buffers.obj [.swrast]s_buffers.c
418 [.swrast]s_copypix.obj : [.swrast]s_copypix.c
419 $(CC) $(CFLAGS) /obj=[.swrast]s_copypix.obj [.swrast]s_copypix.c
420 [.swrast]s_context.obj : [.swrast]s_context.c
421 $(CC) $(CFLAGS) /obj=[.swrast]s_context.obj [.swrast]s_context.c
422 [.swrast]s_depth.obj : [.swrast]s_depth.c
423 $(CC) $(CFLAGS) /obj=[.swrast]s_depth.obj [.swrast]s_depth.c
424 [.swrast]s_drawpix.obj : [.swrast]s_drawpix.c
425 $(CC) $(CFLAGS) /obj=[.swrast]s_drawpix.obj [.swrast]s_drawpix.c
426 [.swrast]s_feedback.obj : [.swrast]s_feedback.c
427 $(CC) $(CFLAGS) /obj=[.swrast]s_feedback.obj [.swrast]s_feedback.c
428 [.swrast]s_fog.obj : [.swrast]s_fog.c
429 $(CC) $(CFLAGS) /obj=[.swrast]s_fog.obj [.swrast]s_fog.c
430 [.swrast]s_histogram.obj : [.swrast]s_histogram.c
431 $(CC) $(CFLAGS) /obj=[.swrast]s_histogram.obj [.swrast]s_histogram.c
432 [.swrast]s_lines.obj : [.swrast]s_lines.c
433 $(CC) $(CFLAGS) /obj=[.swrast]s_lines.obj [.swrast]s_lines.c
434 [.swrast]s_logic.obj : [.swrast]s_logic.c
435 $(CC) $(CFLAGS) /obj=[.swrast]s_logic.obj [.swrast]s_logic.c
436 [.swrast]s_masking.obj : [.swrast]s_masking.c
437 $(CC) $(CFLAGS) /obj=[.swrast]s_masking.obj [.swrast]s_masking.c
438 [.swrast]s_pb.obj : [.swrast]s_pb.c
439 $(CC) $(CFLAGS) /obj=[.swrast]s_pb.obj [.swrast]s_pb.c
440 [.swrast]s_pixeltex.obj : [.swrast]s_pixeltex.c
441 $(CC) $(CFLAGS) /obj=[.swrast]s_pixeltex.obj [.swrast]s_pixeltex.c
442 [.swrast]s_points.obj : [.swrast]s_points.c
443 $(CC) $(CFLAGS) /obj=[.swrast]s_points.obj [.swrast]s_points.c
444 [.swrast]s_quads.obj : [.swrast]s_quads.c
445 $(CC) $(CFLAGS) /obj=[.swrast]s_quads.obj [.swrast]s_quads.c
446 [.swrast]s_readpix.obj : [.swrast]s_readpix.c
447 $(CC) $(CFLAGS) /obj=[.swrast]s_readpix.obj [.swrast]s_readpix.c
448 [.swrast]s_scissor.obj : [.swrast]s_scissor.c
449 $(CC) $(CFLAGS) /obj=[.swrast]s_scissor.obj [.swrast]s_scissor.c
450 [.swrast]s_span.obj : [.swrast]s_span.c
451 $(CC) $(CFLAGS) /obj=[.swrast]s_span.obj [.swrast]s_span.c
452 [.swrast]s_stencil.obj : [.swrast]s_stencil.c
453 $(CC) $(CFLAGS) /obj=[.swrast]s_stencil.obj [.swrast]s_stencil.c
454 [.swrast]s_texture.obj : [.swrast]s_texture.c
455 $(CC) $(CFLAGS) /obj=[.swrast]s_texture.obj [.swrast]s_texture.c
456 [.swrast]s_triangle.obj : [.swrast]s_triangle.c
457 $(CC) $(CFLAGS) /obj=[.swrast]s_triangle.obj [.swrast]s_triangle.c
458 [.swrast]s_zoom.obj : [.swrast]s_zoom.c
459 $(CC) $(CFLAGS) /obj=[.swrast]s_zoom.obj [.swrast]s_zoom.c
460 [.swrast_setup]ss_context.obj : [.swrast_setup]ss_context.c
461 $(CC) $(CFLAGS) /obj=[.swrast_setup]ss_context.obj [.swrast_setup]ss_context.c
462 [.swrast_setup]ss_triangle.obj : [.swrast_setup]ss_triangle.c
463 $(CC) $(CFLAGS) /obj=[.swrast_setup]ss_triangle.obj [.swrast_setup]ss_triangle.c
464 [.swrast_setup]ss_vb.obj : [.swrast_setup]ss_vb.c
465 $(CC) $(CFLAGS) /obj=[.swrast_setup]ss_vb.obj [.swrast_setup]ss_vb.c
466 [.tnl]t_bbox.obj : [.tnl]t_bbox.c
467 $(CC) $(CFLAGS) /obj=[.tnl]t_bbox.obj [.tnl]t_bbox.c
468 [.tnl]t_clip.obj : [.tnl]t_clip.c
469 $(CC) $(CFLAGS) /obj=[.tnl]t_clip.obj [.tnl]t_clip.c
470 [.tnl]t_context.obj : [.tnl]t_context.c
471 $(CC) $(CFLAGS) /obj=[.tnl]t_context.obj [.tnl]t_context.c
472 [.tnl]t_cva.obj : [.tnl]t_cva.c
473 $(CC) $(CFLAGS) /obj=[.tnl]t_cva.obj [.tnl]t_cva.c
474 [.tnl]t_debug.obj : [.tnl]t_debug.c
475 $(CC) $(CFLAGS) /obj=[.tnl]t_debug.obj [.tnl]t_debug.c
476 [.tnl]t_dlist.obj : [.tnl]t_dlist.c
477 $(CC) $(CFLAGS) /obj=[.tnl]t_dlist.obj [.tnl]t_dlist.c
478 [.tnl]t_eval.obj : [.tnl]t_eval.c
479 $(CC) $(CFLAGS) /obj=[.tnl]t_eval.obj [.tnl]t_eval.c
480 [.tnl]t_fog.obj : [.tnl]t_fog.c
481 $(CC) $(CFLAGS) /obj=[.tnl]t_fog.obj [.tnl]t_fog.c
482 [.tnl]t_light.obj : [.tnl]t_light.c
483 $(CC) $(CFLAGS) /obj=[.tnl]t_light.obj [.tnl]t_light.c
484 [.tnl]t_pipeline.obj : [.tnl]t_pipeline.c
485 $(CC) $(CFLAGS) /obj=[.tnl]t_pipeline.obj [.tnl]t_pipeline.c
486 [.tnl]t_rect.obj : [.tnl]t_rect.c
487 $(CC) $(CFLAGS) /obj=[.tnl]t_rect.obj [.tnl]t_rect.c
488 [.tnl]t_shade.obj : [.tnl]t_shade.c
489 $(CC) $(CFLAGS) /obj=[.tnl]t_shade.obj [.tnl]t_shade.c
490 [.tnl]t_stages.obj : [.tnl]t_stages.c
491 $(CC) $(CFLAGS) /obj=[.tnl]t_stages.obj [.tnl]t_stages.c
492 [.tnl]t_texture.obj : [.tnl]t_texture.c
493 $(CC) $(CFLAGS) /obj=[.tnl]t_texture.obj [.tnl]t_texture.c
494 [.tnl]t_trans_elt.obj : [.tnl]t_trans_elt.c
495 $(CC) $(CFLAGS) /obj=[.tnl]t_trans_elt.obj [.tnl]t_trans_elt.c
496 [.tnl]t_varray.obj : [.tnl]t_varray.c
497 $(CC) $(CFLAGS) /obj=[.tnl]t_varray.obj [.tnl]t_varray.c
498 [.tnl]t_vb.obj : [.tnl]t_vb.c
499 $(CC) $(CFLAGS) /obj=[.tnl]t_vb.obj [.tnl]t_vb.c
500 [.tnl]t_vbcull.obj : [.tnl]t_vbcull.c
501 $(CC) $(CFLAGS) /obj=[.tnl]t_vbcull.obj [.tnl]t_vbcull.c
502 [.tnl]t_vbfill.obj : [.tnl]t_vbfill.c
503 $(CC) $(CFLAGS) /obj=[.tnl]t_vbfill.obj [.tnl]t_vbfill.c
504 [.tnl]t_vbindirect.obj : [.tnl]t_vbindirect.c
505 $(CC) $(CFLAGS) /obj=[.tnl]t_vbindirect.obj [.tnl]t_vbindirect.c
506 [.tnl]t_vbrender.obj : [.tnl]t_vbrender.c
507 $(CC) $(CFLAGS) /obj=[.tnl]t_vbrender.obj [.tnl]t_vbrender.c
508 [.tnl]t_vbxform.obj : [.tnl]t_vbxform.c
509 $(CC) $(CFLAGS) /obj=[.tnl]t_vbxform.obj [.tnl]t_vbxform.c
510 [.math]m_debug_xform.obj : [.math]m_debug_xform.c
511 $(CC) $(CFLAGS) /obj=[.math]m_debug_xform.obj [.math]m_debug_xform.c
512 [.math]m_matrix.obj : [.math]m_matrix.c
513 $(CC) $(CFLAGS) /obj=[.math]m_matrix.obj [.math]m_matrix.c
514 [.math]m_translate.obj : [.math]m_translate.c
515 $(CC) $(CFLAGS) /obj=[.math]m_translate.obj [.math]m_translate.c
516 [.math]m_vector.obj : [.math]m_vector.c
517 $(CC) $(CFLAGS) /obj=[.math]m_vector.obj [.math]m_vector.c
518 [.math]m_vertices.obj : [.math]m_vertices.c
519 $(CC) $(CFLAGS) /obj=[.math]m_vertices.obj [.math]m_vertices.c
520 [.math]m_xform.obj : [.math]m_xform.c
521 $(CC) $(CFLAGS) /obj=[.math]m_xform.obj [.math]m_xform.c