summaryrefslogtreecommitdiff
path: root/xc/lib/GL/mesa
diff options
context:
space:
mode:
authordawes <dawes>2002-02-28 18:22:13 +0000
committerdawes <dawes>2002-02-28 18:22:13 +0000
commitf9e0d949cf0a0a54b2e66ad8aab15197c431f5dd (patch)
treeb422d8fa6ca0fa0c68047c4db0d5d60397f96951 /xc/lib/GL/mesa
parentf2bdb0b0998a0933268bf6e2c7602ce45e43f378 (diff)
GL/mesa build cleanups/fixes.
Diffstat (limited to 'xc/lib/GL/mesa')
-rw-r--r--xc/lib/GL/mesa/src/Imakefile20
-rw-r--r--xc/lib/GL/mesa/src/Imakefile.inc302
-rw-r--r--xc/lib/GL/mesa/src/OSmesa/Imakefile8
-rw-r--r--xc/lib/GL/mesa/src/SPARC/Imakefile17
-rw-r--r--xc/lib/GL/mesa/src/X/Imakefile37
-rw-r--r--xc/lib/GL/mesa/src/X/Imakefile.inc155
-rw-r--r--xc/lib/GL/mesa/src/X86/Imakefile17
-rw-r--r--xc/lib/GL/mesa/src/X86/Imakefile.inc4
-rw-r--r--xc/lib/GL/mesa/src/array_cache/Imakefile31
-rw-r--r--xc/lib/GL/mesa/src/drv/ffb/Imakefile8
-rw-r--r--xc/lib/GL/mesa/src/drv/ffb/Imakefile.inc146
-rw-r--r--xc/lib/GL/mesa/src/drv/gamma/Imakefile9
-rw-r--r--xc/lib/GL/mesa/src/drv/i810/Imakefile9
-rw-r--r--xc/lib/GL/mesa/src/drv/i830/Imakefile9
-rw-r--r--xc/lib/GL/mesa/src/drv/mga/Imakefile9
-rw-r--r--xc/lib/GL/mesa/src/drv/r128/Imakefile9
-rw-r--r--xc/lib/GL/mesa/src/drv/radeon/Imakefile8
-rw-r--r--xc/lib/GL/mesa/src/drv/sis/Imakefile11
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/Imakefile8
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.h4
-rw-r--r--xc/lib/GL/mesa/src/math/Imakefile74
-rw-r--r--xc/lib/GL/mesa/src/math/Imakefile.inc80
-rw-r--r--xc/lib/GL/mesa/src/swrast/Imakefile140
-rw-r--r--xc/lib/GL/mesa/src/swrast/Imakefile.inc200
-rw-r--r--xc/lib/GL/mesa/src/swrast_setup/Imakefile51
-rw-r--r--xc/lib/GL/mesa/src/swrast_setup/Imakefile.inc38
-rw-r--r--xc/lib/GL/mesa/src/tnl/Imakefile113
-rw-r--r--xc/lib/GL/mesa/src/tnl/Imakefile.inc146
-rw-r--r--xc/lib/GL/mesa/src/tnl_dd/Imakefile29
-rw-r--r--xc/lib/GL/mesa/src/tnl_dd/Imakefile.inc38
30 files changed, 986 insertions, 744 deletions
diff --git a/xc/lib/GL/mesa/src/Imakefile b/xc/lib/GL/mesa/src/Imakefile
index 145babf29..a73cb5b4a 100644
--- a/xc/lib/GL/mesa/src/Imakefile
+++ b/xc/lib/GL/mesa/src/Imakefile
@@ -1,14 +1,18 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/Imakefile,v 1.26 2001/05/02 15:06:02 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/Imakefile,v 1.30 2002/02/27 00:51:14 dawes Exp $
#include <Threads.tmpl>
/*
- * Only need SharedLib build unless OSMesa lib is built, or driver is built
- * in to libGL
+ * Need both shared and unshared Mesa objects in the following cases:
+ * GlxDriverUsesMesa
+ * GlxBuiltInXMesa
+ * BuildOSMesaLib
+ *
+ * In other cases, only the shared version is needed to link in to loadable
+ * driver modules.
*/
-#if BuildXF86DRI && !GlxUseSGISI && \
- (GlxUseBuiltInDRIDriver || \
- !GlxBuiltInMesa || !defined(GlxDriverUsesMesa))
+
+#if GlxDriverUsesMesa || GlxBuiltInXMesa || BuildOSMesaLib
#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
#define DoExtraLib SharedLibGlx
@@ -31,7 +35,7 @@ ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#include "X86/Imakefile.inc"
ASM_SUBDIRS = X86
#endif
-#ifdef Sparcrchitecture
+#ifdef SparcArchitecture
#define MesaSparcBuildDir /**/
#include "SPARC/Imakefile.inc"
ASM_SUBDIRS = SPARC
@@ -62,7 +66,7 @@ NormalLintTarget($(SRCS))
#define IHaveSubdirs
#define PassCDebugFlags
-SUBDIRS = $(ASM_SUBDIRS) math array_cache swrast swrast_setup tnl tnl_dd X
+SUBDIRS = $(ASM_SUBDIRS) math array_cache swrast swrast_setup tnl /*tnl_dd*/ X
MakeSubdirs($(SUBDIRS))
diff --git a/xc/lib/GL/mesa/src/Imakefile.inc b/xc/lib/GL/mesa/src/Imakefile.inc
index 57473d867..e435bef36 100644
--- a/xc/lib/GL/mesa/src/Imakefile.inc
+++ b/xc/lib/GL/mesa/src/Imakefile.inc
@@ -1,4 +1,4 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/Imakefile.inc,v 1.5 2001/04/02 22:15:47 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/Imakefile.inc,v 1.7 2002/02/23 00:45:46 dawes Exp $
#ifndef MesaBuildDir
#define MesaBuildDir $(GLXLIBSRC)/mesa/src/
@@ -262,72 +262,11 @@ COREMESABASEOBJS = \
$(MESABUILDDIR)vtxfmt.o
COREMESAOBJS = $(COREMESABASEOBJS) \
- $(MESABUILDDIR)array_cache/ac_context.o \
- $(MESABUILDDIR)array_cache/ac_import.o \
- $(MESABUILDDIR)math/m_debug_clip.o \
- $(MESABUILDDIR)math/m_debug_norm.o \
- $(MESABUILDDIR)math/m_debug_vertex.o \
- $(MESABUILDDIR)math/m_debug_xform.o \
- $(MESABUILDDIR)math/m_eval.o \
- $(MESABUILDDIR)math/m_matrix.o \
- $(MESABUILDDIR)math/m_translate.o \
- $(MESABUILDDIR)math/m_vector.o \
- $(MESABUILDDIR)math/m_vertices.o \
- $(MESABUILDDIR)math/m_xform.o \
- $(MESABUILDDIR)swrast/s_aaline.o \
- $(MESABUILDDIR)swrast/s_aatriangle.o \
- $(MESABUILDDIR)swrast/s_accum.o \
- $(MESABUILDDIR)swrast/s_alpha.o \
- $(MESABUILDDIR)swrast/s_alphabuf.o \
- $(MESABUILDDIR)swrast/s_bitmap.o \
- $(MESABUILDDIR)swrast/s_blend.o \
- $(MESABUILDDIR)swrast/s_buffers.o \
- $(MESABUILDDIR)swrast/s_copypix.o \
- $(MESABUILDDIR)swrast/s_context.o \
- $(MESABUILDDIR)swrast/s_depth.o \
- $(MESABUILDDIR)swrast/s_drawpix.o \
- $(MESABUILDDIR)swrast/s_feedback.o \
- $(MESABUILDDIR)swrast/s_fog.o \
- $(MESABUILDDIR)swrast/s_histogram.o \
- $(MESABUILDDIR)swrast/s_imaging.o \
- $(MESABUILDDIR)swrast/s_lines.o \
- $(MESABUILDDIR)swrast/s_logic.o \
- $(MESABUILDDIR)swrast/s_masking.o \
- $(MESABUILDDIR)swrast/s_pb.o \
- $(MESABUILDDIR)swrast/s_pixeltex.o \
- $(MESABUILDDIR)swrast/s_points.o \
- $(MESABUILDDIR)swrast/s_readpix.o \
- $(MESABUILDDIR)swrast/s_scissor.o \
- $(MESABUILDDIR)swrast/s_span.o \
- $(MESABUILDDIR)swrast/s_stencil.o \
- $(MESABUILDDIR)swrast/s_texture.o \
- $(MESABUILDDIR)swrast/s_texstore.o \
- $(MESABUILDDIR)swrast/s_triangle.o \
- $(MESABUILDDIR)swrast/s_zoom.o \
- $(MESABUILDDIR)swrast_setup/ss_context.o \
- $(MESABUILDDIR)swrast_setup/ss_triangle.o \
- $(MESABUILDDIR)swrast_setup/ss_vb.o \
- $(MESABUILDDIR)tnl/t_array_api.o \
- $(MESABUILDDIR)tnl/t_array_import.o \
- $(MESABUILDDIR)tnl/t_context.o \
- $(MESABUILDDIR)tnl/t_eval_api.o \
- $(MESABUILDDIR)tnl/t_imm_alloc.o \
- $(MESABUILDDIR)tnl/t_imm_api.o \
- $(MESABUILDDIR)tnl/t_imm_debug.o \
- $(MESABUILDDIR)tnl/t_imm_dlist.o \
- $(MESABUILDDIR)tnl/t_imm_elt.o \
- $(MESABUILDDIR)tnl/t_imm_eval.o \
- $(MESABUILDDIR)tnl/t_imm_exec.o \
- $(MESABUILDDIR)tnl/t_imm_fixup.o \
- $(MESABUILDDIR)tnl/t_pipeline.o \
- $(MESABUILDDIR)tnl/t_vb_fog.o \
- $(MESABUILDDIR)tnl/t_vb_light.o \
- $(MESABUILDDIR)tnl/t_vb_normals.o \
- $(MESABUILDDIR)tnl/t_vb_points.o \
- $(MESABUILDDIR)tnl/t_vb_render.o \
- $(MESABUILDDIR)tnl/t_vb_texgen.o \
- $(MESABUILDDIR)tnl/t_vb_texmat.o \
- $(MESABUILDDIR)tnl/t_vb_vertex.o
+ $(MESA_AC_OBJS) \
+ $(MESA_MATH_OBJS) \
+ $(MESA_SWRAST_OBJS) \
+ $(MESA_SWR_SETUP_OBJS) \
+ $(MESA_TNL_OBJS)
#ifdef NeedAllMesaSrc
DISPATCHUOBJS = $(MESABUILDDIR)unshared/dispatch.o
@@ -336,7 +275,8 @@ GLAPINOOPUOBJS = $(MESABUILDDIR)unshared/glapinoop.o
GLTHREADUOBJS = $(MESABUILDDIR)unshared/glthread.o
#endif
-COREMESAUOBJS = $(MESABUILDDIR)unshared/accum.o \
+#if DoSharedLib
+COREMESABASEUOBJS = $(MESABUILDDIR)unshared/accum.o \
$(MESABUILDDIR)unshared/api_arrayelt.o \
$(MESABUILDDIR)unshared/api_eval.o \
$(MESABUILDDIR)unshared/api_loopback.o \
@@ -388,72 +328,16 @@ COREMESAUOBJS = $(MESABUILDDIR)unshared/accum.o \
$(MESABUILDDIR)unshared/texutil.o \
$(MESABUILDDIR)unshared/varray.o \
$(MESABUILDDIR)unshared/vtxfmt.o \
- $(MESABUILDDIR)array_cache/unshared/ac_context.o \
- $(MESABUILDDIR)array_cache/unshared/ac_import.o \
- $(MESABUILDDIR)math/unshared/m_debug_clip.o \
- $(MESABUILDDIR)math/unshared/m_debug_norm.o \
- $(MESABUILDDIR)math/unshared/m_debug_vertex.o \
- $(MESABUILDDIR)math/unshared/m_debug_xform.o \
- $(MESABUILDDIR)math/unshared/m_eval.o \
- $(MESABUILDDIR)math/unshared/m_matrix.o \
- $(MESABUILDDIR)math/unshared/m_translate.o \
- $(MESABUILDDIR)math/unshared/m_vector.o \
- $(MESABUILDDIR)math/unshared/m_vertices.o \
- $(MESABUILDDIR)math/unshared/m_xform.o \
- $(MESABUILDDIR)swrast/unshared/s_aaline.o \
- $(MESABUILDDIR)swrast/unshared/s_aatriangle.o \
- $(MESABUILDDIR)swrast/unshared/s_accum.o \
- $(MESABUILDDIR)swrast/unshared/s_alpha.o \
- $(MESABUILDDIR)swrast/unshared/s_alphabuf.o \
- $(MESABUILDDIR)swrast/unshared/s_bitmap.o \
- $(MESABUILDDIR)swrast/unshared/s_blend.o \
- $(MESABUILDDIR)swrast/unshared/s_buffers.o \
- $(MESABUILDDIR)swrast/unshared/s_copypix.o \
- $(MESABUILDDIR)swrast/unshared/s_context.o \
- $(MESABUILDDIR)swrast/unshared/s_depth.o \
- $(MESABUILDDIR)swrast/unshared/s_drawpix.o \
- $(MESABUILDDIR)swrast/unshared/s_feedback.o \
- $(MESABUILDDIR)swrast/unshared/s_fog.o \
- $(MESABUILDDIR)swrast/unshared/s_histogram.o \
- $(MESABUILDDIR)swrast/unshared/s_imaging.o \
- $(MESABUILDDIR)swrast/unshared/s_lines.o \
- $(MESABUILDDIR)swrast/unshared/s_logic.o \
- $(MESABUILDDIR)swrast/unshared/s_masking.o \
- $(MESABUILDDIR)swrast/unshared/s_pb.o \
- $(MESABUILDDIR)swrast/unshared/s_pixeltex.o \
- $(MESABUILDDIR)swrast/unshared/s_points.o \
- $(MESABUILDDIR)swrast/unshared/s_readpix.o \
- $(MESABUILDDIR)swrast/unshared/s_scissor.o \
- $(MESABUILDDIR)swrast/unshared/s_span.o \
- $(MESABUILDDIR)swrast/unshared/s_stencil.o \
- $(MESABUILDDIR)swrast/unshared/s_texture.o \
- $(MESABUILDDIR)swrast/unshared/s_texstore.o \
- $(MESABUILDDIR)swrast/unshared/s_triangle.o \
- $(MESABUILDDIR)swrast/unshared/s_zoom.o \
- $(MESABUILDDIR)swrast_setup/unshared/ss_context.o \
- $(MESABUILDDIR)swrast_setup/unshared/ss_triangle.o \
- $(MESABUILDDIR)swrast_setup/unshared/ss_vb.o \
- $(MESABUILDDIR)tnl/unshared/t_array_api.o \
- $(MESABUILDDIR)tnl/unshared/t_array_import.o \
- $(MESABUILDDIR)tnl/unshared/t_context.o \
- $(MESABUILDDIR)tnl/unshared/t_eval_api.o \
- $(MESABUILDDIR)tnl/unshared/t_imm_alloc.o \
- $(MESABUILDDIR)tnl/unshared/t_imm_api.o \
- $(MESABUILDDIR)tnl/unshared/t_imm_debug.o \
- $(MESABUILDDIR)tnl/unshared/t_imm_dlist.o \
- $(MESABUILDDIR)tnl/unshared/t_imm_elt.o \
- $(MESABUILDDIR)tnl/unshared/t_imm_eval.o \
- $(MESABUILDDIR)tnl/unshared/t_imm_exec.o \
- $(MESABUILDDIR)tnl/unshared/t_imm_fixup.o \
- $(MESABUILDDIR)tnl/unshared/t_pipeline.o \
- $(MESABUILDDIR)tnl/unshared/t_vb_fog.o \
- $(MESABUILDDIR)tnl/unshared/t_vb_light.o \
- $(MESABUILDDIR)tnl/unshared/t_vb_normals.o \
- $(MESABUILDDIR)tnl/unshared/t_vb_points.o \
- $(MESABUILDDIR)tnl/unshared/t_vb_render.o \
- $(MESABUILDDIR)tnl/unshared/t_vb_texgen.o \
- $(MESABUILDDIR)tnl/unshared/t_vb_texmat.o \
- $(MESABUILDDIR)tnl/unshared/t_vb_vertex.o
+#else
+COREMESABASEUOBJS = $(COREMESABASEOBJS)
+#endif
+
+COREMESAUOBJS = $(COREMESABASEUOBJS) \
+ $(MESA_AC_UOBJS) \
+ $(MESA_MATH_UOBJS) \
+ $(MESA_SWRAST_UOBJS) \
+ $(MESA_SWR_SETUP_UOBJS) \
+ $(MESA_TNL_UOBJS)
#ifdef NeedAllMesaSrc
DISPATCHDOBJS = $(MESABUILDDIR)debugger/dispatch.o
@@ -462,7 +346,7 @@ GLAPINOOPDOBJS = $(MESABUILDDIR)debugger/glapinoop.o
GLTHREADDOBJS = $(MESABUILDDIR)debugger/glthread.o
#endif
-COREMESADOBJS = $(MESABUILDDIR)debugger/accum.o \
+COREMESABASEDOBJS = $(MESABUILDDIR)debugger/accum.o \
$(MESABUILDDIR)debugger/api_arrayelt.o \
$(MESABUILDDIR)debugger/api_eval.o \
$(MESABUILDDIR)debugger/api_loopback.o \
@@ -514,72 +398,13 @@ COREMESADOBJS = $(MESABUILDDIR)debugger/accum.o \
$(MESABUILDDIR)debugger/texutil.o \
$(MESABUILDDIR)debugger/varray.o \
$(MESABUILDDIR)debugger/vtxfmt.o \
- $(MESABUILDDIR)array_cache/debugger/ac_context.o \
- $(MESABUILDDIR)array_cache/debugger/ac_import.o \
- $(MESABUILDDIR)math/debugger/m_debug_clip.o \
- $(MESABUILDDIR)math/debugger/m_debug_norm.o \
- $(MESABUILDDIR)math/debugger/m_debug_vertex.o \
- $(MESABUILDDIR)math/debugger/m_debug_xform.o \
- $(MESABUILDDIR)math/debugger/m_eval.o \
- $(MESABUILDDIR)math/debugger/m_matrix.o \
- $(MESABUILDDIR)math/debugger/m_translate.o \
- $(MESABUILDDIR)math/debugger/m_vector.o \
- $(MESABUILDDIR)math/debugger/m_vertices.o \
- $(MESABUILDDIR)math/debugger/m_xform.o \
- $(MESABUILDDIR)swrast/debugger/s_aaline.o \
- $(MESABUILDDIR)swrast/debugger/s_aatriangle.o \
- $(MESABUILDDIR)swrast/debugger/s_accum.o \
- $(MESABUILDDIR)swrast/debugger/s_alpha.o \
- $(MESABUILDDIR)swrast/debugger/s_alphabuf.o \
- $(MESABUILDDIR)swrast/debugger/s_bitmap.o \
- $(MESABUILDDIR)swrast/debugger/s_blend.o \
- $(MESABUILDDIR)swrast/debugger/s_buffers.o \
- $(MESABUILDDIR)swrast/debugger/s_copypix.o \
- $(MESABUILDDIR)swrast/debugger/s_context.o \
- $(MESABUILDDIR)swrast/debugger/s_depth.o \
- $(MESABUILDDIR)swrast/debugger/s_drawpix.o \
- $(MESABUILDDIR)swrast/debugger/s_feedback.o \
- $(MESABUILDDIR)swrast/debugger/s_fog.o \
- $(MESABUILDDIR)swrast/debugger/s_histogram.o \
- $(MESABUILDDIR)swrast/debugger/s_imaging.o \
- $(MESABUILDDIR)swrast/debugger/s_lines.o \
- $(MESABUILDDIR)swrast/debugger/s_logic.o \
- $(MESABUILDDIR)swrast/debugger/s_masking.o \
- $(MESABUILDDIR)swrast/debugger/s_pb.o \
- $(MESABUILDDIR)swrast/debugger/s_pixeltex.o \
- $(MESABUILDDIR)swrast/debugger/s_points.o \
- $(MESABUILDDIR)swrast/debugger/s_readpix.o \
- $(MESABUILDDIR)swrast/debugger/s_scissor.o \
- $(MESABUILDDIR)swrast/debugger/s_span.o \
- $(MESABUILDDIR)swrast/debugger/s_stencil.o \
- $(MESABUILDDIR)swrast/debugger/s_texture.o \
- $(MESABUILDDIR)swrast/debugger/s_texstore.o \
- $(MESABUILDDIR)swrast/debugger/s_triangle.o \
- $(MESABUILDDIR)swrast/debugger/s_zoom.o \
- $(MESABUILDDIR)swrast_setup/debugger/ss_context.o \
- $(MESABUILDDIR)swrast_setup/debugger/ss_triangle.o \
- $(MESABUILDDIR)swrast_setup/debugger/ss_vb.o \
- $(MESABUILDDIR)tnl/debugger/t_array_api.o \
- $(MESABUILDDIR)tnl/debugger/t_array_import.o \
- $(MESABUILDDIR)tnl/debugger/t_context.o \
- $(MESABUILDDIR)tnl/debugger/t_eval_api.o \
- $(MESABUILDDIR)tnl/debugger/t_imm_alloc.o \
- $(MESABUILDDIR)tnl/debugger/t_imm_api.o \
- $(MESABUILDDIR)tnl/debugger/t_imm_debug.o \
- $(MESABUILDDIR)tnl/debugger/t_imm_dlist.o \
- $(MESABUILDDIR)tnl/debugger/t_imm_elt.o \
- $(MESABUILDDIR)tnl/debugger/t_imm_eval.o \
- $(MESABUILDDIR)tnl/debugger/t_imm_exec.o \
- $(MESABUILDDIR)tnl/debugger/t_imm_fixup.o \
- $(MESABUILDDIR)tnl/debugger/t_pipeline.o \
- $(MESABUILDDIR)tnl/debugger/t_vb_fog.o \
- $(MESABUILDDIR)tnl/debugger/t_vb_light.o \
- $(MESABUILDDIR)tnl/debugger/t_vb_normals.o \
- $(MESABUILDDIR)tnl/debugger/t_vb_points.o \
- $(MESABUILDDIR)tnl/debugger/t_vb_render.o \
- $(MESABUILDDIR)tnl/debugger/t_vb_texgen.o \
- $(MESABUILDDIR)tnl/debugger/t_vb_texmat.o \
- $(MESABUILDDIR)tnl/debugger/t_vb_vertex.o
+
+COREMESADOBJS = $(COREMESABASEDOBJS) \
+ $(MESA_AC_DOBJS) \
+ $(MESA_MATH_DOBJS) \
+ $(MESA_SWRAST_DOBJS) \
+ $(MESA_SWR_SETUP_DOBJS) \
+ $(MESA_TNL_DOBJS)
#ifdef NeedAllMesaSrc
DISPATCHPOBJS = $(MESABUILDDIR)profiled/dispatch.o
@@ -588,7 +413,7 @@ GLAPINOOPPOBJS = $(MESABUILDDIR)profiled/glapinoop.o
GLTHREADPOBJS = $(MESABUILDDIR)profiled/glthread.o
#endif
-COREMESAPOBJS = $(MESABUILDDIR)profiled/accum.o \
+COREMESABASEPOBJS = $(MESABUILDDIR)profiled/accum.o \
$(MESABUILDDIR)profiled/api_arrayelt.o \
$(MESABUILDDIR)profiled/api_eval.o \
$(MESABUILDDIR)profiled/api_loopback.o \
@@ -640,70 +465,11 @@ COREMESAPOBJS = $(MESABUILDDIR)profiled/accum.o \
$(MESABUILDDIR)profiled/texutil.o \
$(MESABUILDDIR)profiled/varray.o \
$(MESABUILDDIR)profiled/vtxfmt.o \
- $(MESABUILDDIR)array_cache/profiled/ac_context.o \
- $(MESABUILDDIR)array_cache/profiled/ac_import.o \
- $(MESABUILDDIR)math/profiled/m_debug_clip.o \
- $(MESABUILDDIR)math/profiled/m_debug_norm.o \
- $(MESABUILDDIR)math/profiled/m_debug_vertex.o \
- $(MESABUILDDIR)math/profiled/m_debug_xform.o \
- $(MESABUILDDIR)math/profiled/m_eval.o \
- $(MESABUILDDIR)math/profiled/m_matrix.o \
- $(MESABUILDDIR)math/profiled/m_translate.o \
- $(MESABUILDDIR)math/profiled/m_vector.o \
- $(MESABUILDDIR)math/profiled/m_vertices.o \
- $(MESABUILDDIR)math/profiled/m_xform.o \
- $(MESABUILDDIR)swrast/profiled/s_aaline.o \
- $(MESABUILDDIR)swrast/profiled/s_aatriangle.o \
- $(MESABUILDDIR)swrast/profiled/s_accum.o \
- $(MESABUILDDIR)swrast/profiled/s_alpha.o \
- $(MESABUILDDIR)swrast/profiled/s_alphabuf.o \
- $(MESABUILDDIR)swrast/profiled/s_bitmap.o \
- $(MESABUILDDIR)swrast/profiled/s_blend.o \
- $(MESABUILDDIR)swrast/profiled/s_buffers.o \
- $(MESABUILDDIR)swrast/profiled/s_copypix.o \
- $(MESABUILDDIR)swrast/profiled/s_context.o \
- $(MESABUILDDIR)swrast/profiled/s_depth.o \
- $(MESABUILDDIR)swrast/profiled/s_drawpix.o \
- $(MESABUILDDIR)swrast/profiled/s_feedback.o \
- $(MESABUILDDIR)swrast/profiled/s_fog.o \
- $(MESABUILDDIR)swrast/profiled/s_histogram.o \
- $(MESABUILDDIR)swrast/profiled/s_imaging.o \
- $(MESABUILDDIR)swrast/profiled/s_lines.o \
- $(MESABUILDDIR)swrast/profiled/s_logic.o \
- $(MESABUILDDIR)swrast/profiled/s_masking.o \
- $(MESABUILDDIR)swrast/profiled/s_pb.o \
- $(MESABUILDDIR)swrast/profiled/s_pixeltex.o \
- $(MESABUILDDIR)swrast/profiled/s_points.o \
- $(MESABUILDDIR)swrast/profiled/s_readpix.o \
- $(MESABUILDDIR)swrast/profiled/s_scissor.o \
- $(MESABUILDDIR)swrast/profiled/s_span.o \
- $(MESABUILDDIR)swrast/profiled/s_stencil.o \
- $(MESABUILDDIR)swrast/profiled/s_texture.o \
- $(MESABUILDDIR)swrast/profiled/s_texstore.o \
- $(MESABUILDDIR)swrast/profiled/s_triangle.o \
- $(MESABUILDDIR)swrast/profiled/s_zoom.o \
- $(MESABUILDDIR)swrast_setup/profiled/ss_context.o \
- $(MESABUILDDIR)swrast_setup/profiled/ss_triangle.o \
- $(MESABUILDDIR)swrast_setup/profiled/ss_vb.o \
- $(MESABUILDDIR)tnl/profiled/t_array_api.o \
- $(MESABUILDDIR)tnl/profiled/t_array_import.o \
- $(MESABUILDDIR)tnl/profiled/t_context.o \
- $(MESABUILDDIR)tnl/profiled/t_eval_api.o \
- $(MESABUILDDIR)tnl/profiled/t_imm_alloc.o \
- $(MESABUILDDIR)tnl/profiled/t_imm_api.o \
- $(MESABUILDDIR)tnl/profiled/t_imm_debug.o \
- $(MESABUILDDIR)tnl/profiled/t_imm_dlist.o \
- $(MESABUILDDIR)tnl/profiled/t_imm_elt.o \
- $(MESABUILDDIR)tnl/profiled/t_imm_eval.o \
- $(MESABUILDDIR)tnl/profiled/t_imm_exec.o \
- $(MESABUILDDIR)tnl/profiled/t_imm_fixup.o \
- $(MESABUILDDIR)tnl/profiled/t_pipeline.o \
- $(MESABUILDDIR)tnl/profiled/t_vb_fog.o \
- $(MESABUILDDIR)tnl/profiled/t_vb_light.o \
- $(MESABUILDDIR)tnl/profiled/t_vb_normals.o \
- $(MESABUILDDIR)tnl/profiled/t_vb_points.o \
- $(MESABUILDDIR)tnl/profiled/t_vb_render.o \
- $(MESABUILDDIR)tnl/profiled/t_vb_texgen.o \
- $(MESABUILDDIR)tnl/profiled/t_vb_texmat.o \
- $(MESABUILDDIR)tnl/profiled/t_vb_vertex.o
+
+COREMESAPOBJS = $(COREMESABASEPOBJS) \
+ $(MESA_AC_POBJS) \
+ $(MESA_MATH_POBJS) \
+ $(MESA_SWRAST_POBJS) \
+ $(MESA_SWR_SETUP_POBJS) \
+ $(MESA_TNL_POBJS)
diff --git a/xc/lib/GL/mesa/src/OSmesa/Imakefile b/xc/lib/GL/mesa/src/OSmesa/Imakefile
index 374807548..a2c704dce 100644
--- a/xc/lib/GL/mesa/src/OSmesa/Imakefile
+++ b/xc/lib/GL/mesa/src/OSmesa/Imakefile
@@ -1,4 +1,4 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/OSmesa/Imakefile,v 1.11 2001/06/04 20:43:30 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/OSmesa/Imakefile,v 1.13 2002/02/23 00:45:47 dawes Exp $
#include <Threads.tmpl>
@@ -8,6 +8,12 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/OSmesa/Imakefile,v 1.11 2001/06/04 20:43:30 d
#define DoDebugLib DebugLibGlx
#define DoProfileLib ProfileLibGlx
+#include "../array_cache/Imakefile.inc"
+#include "../math/Imakefile.inc"
+#include "../swrast/Imakefile.inc"
+#include "../swrast_setup/Imakefile.inc"
+#include "../tnl/Imakefile.inc"
+#include "../tnl_dd/Imakefile.inc"
#include "../Imakefile.inc"
#ifdef i386Architecture
#include "../X86/Imakefile.inc"
diff --git a/xc/lib/GL/mesa/src/SPARC/Imakefile b/xc/lib/GL/mesa/src/SPARC/Imakefile
index f2201099b..7c958924b 100644
--- a/xc/lib/GL/mesa/src/SPARC/Imakefile
+++ b/xc/lib/GL/mesa/src/SPARC/Imakefile
@@ -1,12 +1,16 @@
-XCOMM $XFree86$
+XCOMM $XFree86: xc/lib/GL/mesa/src/SPARC/Imakefile,v 1.2 2002/02/27 00:51:14 dawes Exp $
/*
- * Only need SharedLib build unless OSMesa lib is built, or driver is built
- * in to libGL
+ * Need both shared and unshared Mesa objects in the following cases:
+ * GlxDriverUsesMesa
+ * GlxBuiltInXMesa
+ * BuildOSMesaLib
+ *
+ * In other cases, only the shared version is needed to link in to loadable
+ * driver modules.
*/
-#if BuildXF86DRI && !GlxUseSGISI && \
- (GlxUseBuiltInDRIDriver || \
- !GlxBuiltInMesa || !defined(GlxDriverUsesMesa))
+
+#if GlxDriverUsesMesa || GlxBuiltInXMesa || BuildOSMesaLib
#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
#define DoExtraLib SharedLibGlx
@@ -20,6 +24,7 @@ XCOMM $XFree86$
#define DoProfileLib NO
#endif
+
#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#endif
diff --git a/xc/lib/GL/mesa/src/X/Imakefile b/xc/lib/GL/mesa/src/X/Imakefile
index 14ed71d02..2fc8bfd22 100644
--- a/xc/lib/GL/mesa/src/X/Imakefile
+++ b/xc/lib/GL/mesa/src/X/Imakefile
@@ -1,16 +1,18 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.6 2000/08/01 20:28:39 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.12 2002/02/28 17:52:15 dawes Exp $
#include <Threads.tmpl>
-#include "Imakefile.inc"
-
/*
- * Only need SharedLib build unless OSMesa lib is built, or driver is built
- * in to libGL
+ * Need both shared and unshared Mesa objects in the following cases:
+ * GlxDriverUsesMesa
+ * GlxBuiltInXMesa
+ * BuildOSMesaLib
+ *
+ * In other cases, only the shared version is needed to link in to loadable
+ * driver modules.
*/
-#if BuildXF86DRI && !GlxUseSGISI && \
- (GlxUseBuiltInDRIDriver || \
- !GlxBuiltInMesa || !defined(GlxDriverUsesMesa))
+
+#if GlxDriverUsesMesa || GlxBuiltInXMesa || BuildOSMesaLib
#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
#define DoExtraLib SharedLibGlx
@@ -24,16 +26,10 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.6 2000/08/01 20:28:39 dawes E
#define DoProfileLib NO
#endif
-LinkSourceFile(fakeglx.c, $(MESASRCDIR)/src/X)
-LinkSourceFile(glxapi.c, $(MESASRCDIR)/src/X)
-LinkSourceFile(glxapi.h, $(MESASRCDIR)/src/X)
-LinkSourceFile(realglx.c, $(MESASRCDIR)/src/X)
-LinkSourceFile(xfonts.c, $(MESASRCDIR)/src/X)
-LinkSourceFile(xm_api.c, $(MESASRCDIR)/src/X)
-LinkSourceFile(xm_dd.c, $(MESASRCDIR)/src/X)
-LinkSourceFile(xm_line.c, $(MESASRCDIR)/src/X)
-LinkSourceFile(xm_span.c, $(MESASRCDIR)/src/X)
-LinkSourceFile(xm_tri.c, $(MESASRCDIR)/src/X)
+
+#define MesaXBuildDir /**/
+#define NeedToLinkMesaSrc
+#include "Imakefile.inc"
#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
@@ -42,14 +38,13 @@ ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#if BuildXF86DRI
DRI_DEFINES = GlxDefines
DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I.. \
- -I$(TOP)/include -I$(TOP)/include/GL \
- -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
+ -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
#endif
MESA_INCLUDES = -I$(MESASRCDIR)/src \
-I$(MESASRCDIR)/src/X \
-I$(MESASRCDIR)/include \
- -I../../../include
+ -I../../../include -I$(XINCLUDESRC)
INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
diff --git a/xc/lib/GL/mesa/src/X/Imakefile.inc b/xc/lib/GL/mesa/src/X/Imakefile.inc
index 3eff4375d..4c18af1b0 100644
--- a/xc/lib/GL/mesa/src/X/Imakefile.inc
+++ b/xc/lib/GL/mesa/src/X/Imakefile.inc
@@ -1,57 +1,98 @@
-XCOMM $XFree86$
-
-#ifndef MesaBuildDir
-#define MesaBuildDir $(GLXLIBSRC)/mesa/src
-#endif
-
-MESABUILDDIR = MesaBuildDir
-
- XMESA_SRCS = $(MESABUILDDIR)/X/fakeglx.c \
- $(MESABUILDDIR)/X/glxapi.c \
- $(MESABUILDDIR)/X/realglx.c \
- $(MESABUILDDIR)/X/xfonts.c \
- $(MESABUILDDIR)/X/xm_api.c \
- $(MESABUILDDIR)/X/xm_dd.c \
- $(MESABUILDDIR)/X/xm_line.c \
- $(MESABUILDDIR)/X/xm_span.c \
- $(MESABUILDDIR)/X/xm_tri.c
-
- XMESA_OBJS = $(MESABUILDDIR)/X/fakeglx.o \
- $(MESABUILDDIR)/X/glxapi.o \
- $(MESABUILDDIR)/X/realglx.o \
- $(MESABUILDDIR)/X/xfonts.o \
- $(MESABUILDDIR)/X/xm_api.o \
- $(MESABUILDDIR)/X/xm_dd.o \
- $(MESABUILDDIR)/X/xm_line.o \
- $(MESABUILDDIR)/X/xm_span.o \
- $(MESABUILDDIR)/X/xm_tri.o
-
- XMESA_DOBJS = $(MESABUILDDIR)/X/debugger/fakeglx.o \
- $(MESABUILDDIR)/X/debugger/glxapi.o \
- $(MESABUILDDIR)/X/debugger/realglx.o \
- $(MESABUILDDIR)/X/debugger/xfonts.o \
- $(MESABUILDDIR)/X/debugger/xm_api.o \
- $(MESABUILDDIR)/X/debugger/xm_dd.o \
- $(MESABUILDDIR)/X/debugger/xm_line.o \
- $(MESABUILDDIR)/X/debugger/xm_span.o \
- $(MESABUILDDIR)/X/debugger/xm_tri.o
-
- XMESA_POBJS = $(MESABUILDDIR)/X/profiled/fakeglx.o \
- $(MESABUILDDIR)/X/profiled/glxapi.o \
- $(MESABUILDDIR)/X/profiled/realglx.o \
- $(MESABUILDDIR)/X/profiled/xfonts.o \
- $(MESABUILDDIR)/X/profiled/xm_api.o \
- $(MESABUILDDIR)/X/profiled/xm_dd.o \
- $(MESABUILDDIR)/X/profiled/xm_line.o \
- $(MESABUILDDIR)/X/profiled/xm_span.o \
- $(MESABUILDDIR)/X/profiled/xm_tri.o
-
- XMESA_UOBJS = $(MESABUILDDIR)/X/unshared/fakeglx.o \
- $(MESABUILDDIR)/X/unshared/glxapi.o \
- $(MESABUILDDIR)/X/unshared/realglx.o \
- $(MESABUILDDIR)/X/unshared/xfonts.o \
- $(MESABUILDDIR)/X/unshared/xm_api.o \
- $(MESABUILDDIR)/X/unshared/xm_dd.o \
- $(MESABUILDDIR)/X/unshared/xm_line.o \
- $(MESABUILDDIR)/X/unshared/xm_span.o \
- $(MESABUILDDIR)/X/unshared/xm_tri.o
+XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile.inc,v 1.3 2002/02/25 00:45:40 dawes Exp $
+
+#ifndef MesaXBuildDir
+#define MesaXBuildDir $(GLXLIBSRC)/mesa/src/X/
+#endif
+
+MESAXBUILDDIR = MesaXBuildDir
+
+#ifndef MesaInXServer
+XMESA_GLX_SRCS = $(MESAXBUILDDIR)fakeglx.c \
+ $(MESAXBUILDDIR)glxapi.c \
+ $(MESAXBUILDDIR)realglx.c \
+ $(MESAXBUILDDIR)xfonts.c
+#endif
+
+ XMESA_SRCS = $(XMESA_GLX_SRCS) \
+ $(MESAXBUILDDIR)xm_api.c \
+ $(MESAXBUILDDIR)xm_dd.c \
+ $(MESAXBUILDDIR)xm_line.c \
+ $(MESAXBUILDDIR)xm_span.c \
+ $(MESAXBUILDDIR)xm_tri.c
+
+#ifdef NeedToLinkMesaSrc
+#ifndef MesaInXServer
+LinkSourceFile(fakeglx.c, $(MESASRCDIR)/src/X)
+LinkSourceFile(glxapi.c, $(MESASRCDIR)/src/X)
+LinkSourceFile(glxapi.h, $(MESASRCDIR)/src/X)
+LinkSourceFile(realglx.c, $(MESASRCDIR)/src/X)
+LinkSourceFile(xfonts.c, $(MESASRCDIR)/src/X)
+#endif
+LinkSourceFile(xm_api.c, $(MESASRCDIR)/src/X)
+LinkSourceFile(xm_dd.c, $(MESASRCDIR)/src/X)
+LinkSourceFile(xm_line.c, $(MESASRCDIR)/src/X)
+LinkSourceFile(xm_span.c, $(MESASRCDIR)/src/X)
+LinkSourceFile(xm_tri.c, $(MESASRCDIR)/src/X)
+#endif
+
+#ifndef MesaInXServer
+XMESA_GLX_OBJS = $(MESAXBUILDDIR)fakeglx.o \
+ $(MESAXBUILDDIR)glxapi.o \
+ $(MESAXBUILDDIR)realglx.o \
+ $(MESAXBUILDDIR)xfonts.o
+#endif
+
+ XMESA_OBJS = $(XMESA_GLX_OBJS) \
+ $(MESAXBUILDDIR)xm_api.o \
+ $(MESAXBUILDDIR)xm_dd.o \
+ $(MESAXBUILDDIR)xm_line.o \
+ $(MESAXBUILDDIR)xm_span.o \
+ $(MESAXBUILDDIR)xm_tri.o
+
+#if DoSharedLib
+#ifndef MesaInXServer
+XMESA_GLX_UOBJS = $(MESAXBUILDDIR)unshared/fakeglx.o \
+ $(MESAXBUILDDIR)unshared/glxapi.o \
+ $(MESAXBUILDDIR)unshared/realglx.o \
+ $(MESAXBUILDDIR)unshared/xfonts.o
+#endif
+
+ XMESA_UOBJS = $(XMESA_GLX_UOBJS) \
+ $(MESAXBUILDDIR)unshared/xm_api.o \
+ $(MESAXBUILDDIR)unshared/xm_dd.o \
+ $(MESAXBUILDDIR)unshared/xm_line.o \
+ $(MESAXBUILDDIR)unshared/xm_span.o \
+ $(MESAXBUILDDIR)unshared/xm_tri.o
+#else
+XMESA_GLX_UOBJS = $(XMESA_GLX_OBJS)
+ XMESA_UOBJS = $(XMESA_OBJS)
+#endif
+
+#ifndef MesaInXServer
+XMESA_GLX_DOBJS = $(MESAXBUILDDIR)debugger/fakeglx.o \
+ $(MESAXBUILDDIR)debugger/glxapi.o \
+ $(MESAXBUILDDIR)debugger/realglx.o \
+ $(MESAXBUILDDIR)debugger/xfonts.o
+#endif
+
+ XMESA_DOBJS = $(XMESA_GLX_DOBJS) \
+ $(MESAXBUILDDIR)debugger/xm_api.o \
+ $(MESAXBUILDDIR)debugger/xm_dd.o \
+ $(MESAXBUILDDIR)debugger/xm_line.o \
+ $(MESAXBUILDDIR)debugger/xm_span.o \
+ $(MESAXBUILDDIR)debugger/xm_tri.o
+
+#ifndef MesaInXServer
+XMESA_GLX_POBJS = $(MESAXBUILDDIR)profiled/fakeglx.o \
+ $(MESAXBUILDDIR)profiled/glxapi.o \
+ $(MESAXBUILDDIR)profiled/realglx.o \
+ $(MESAXBUILDDIR)profiled/xfonts.o
+#endif
+
+ XMESA_POBJS = $(XMESA_GLX_POBJS) \
+ $(MESAXBUILDDIR)profiled/xm_api.o \
+ $(MESAXBUILDDIR)profiled/xm_dd.o \
+ $(MESAXBUILDDIR)profiled/xm_line.o \
+ $(MESAXBUILDDIR)profiled/xm_span.o \
+ $(MESAXBUILDDIR)profiled/xm_tri.o
+
diff --git a/xc/lib/GL/mesa/src/X86/Imakefile b/xc/lib/GL/mesa/src/X86/Imakefile
index 799a7b9c1..93e4e8f98 100644
--- a/xc/lib/GL/mesa/src/X86/Imakefile
+++ b/xc/lib/GL/mesa/src/X86/Imakefile
@@ -1,12 +1,16 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/X86/Imakefile,v 1.18 2001/05/02 15:06:03 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/X86/Imakefile,v 1.20 2002/02/27 00:51:15 dawes Exp $
/*
- * Only need SharedLib build unless OSMesa lib is built, or driver is built
- * in to libGL
+ * Need both shared and unshared Mesa objects in the following cases:
+ * GlxDriverUsesMesa
+ * GlxBuiltInXMesa
+ * BuildOSMesaLib
+ *
+ * In other cases, only the shared version is needed to link in to loadable
+ * driver modules.
*/
-#if BuildXF86DRI && !GlxUseSGISI && \
- (GlxUseBuiltInDRIDriver || \
- !GlxBuiltInMesa || !defined(GlxDriverUsesMesa))
+
+#if GlxDriverUsesMesa || GlxBuiltInXMesa || BuildOSMesaLib
#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
#define DoExtraLib SharedLibGlx
@@ -20,6 +24,7 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/X86/Imakefile,v 1.18 2001/05/02 15:06:03 dawe
#define DoProfileLib NO
#endif
+
#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#endif
diff --git a/xc/lib/GL/mesa/src/X86/Imakefile.inc b/xc/lib/GL/mesa/src/X86/Imakefile.inc
index df57677c9..143073c74 100644
--- a/xc/lib/GL/mesa/src/X86/Imakefile.inc
+++ b/xc/lib/GL/mesa/src/X86/Imakefile.inc
@@ -1,4 +1,4 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/X86/Imakefile.inc,v 1.2 2001/05/02 15:06:03 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/X86/Imakefile.inc,v 1.4 2002/02/27 21:09:33 tsi Exp $
#ifndef MesaX86BuildDir
#define MesaX86BuildDir $(GLXLIBSRC)/mesa/src/X86/
@@ -217,5 +217,5 @@ MESA_ASM_DOBJS = $(MESA_X86_DOBJS) $(MESA_MMX_DOBJS) $(MESA_3DNOW_DOBJS) \
MESA_ASM_POBJS = $(MESA_X86_POBJS) $(MESA_MMX_POBJS) $(MESA_3DNOW_POBJS) \
$(MESA_SSE_POBJS)
-MESA_ASM_DEFINES = -DUSE_X86_ASM $(MESA_MMX_DEFS) $(MESA_3DNOW_DEFS) $(MESA_SSE_DEFS)
+MESA_ASM_DEFINES = $(MESA_X86_DEFS) $(MESA_MMX_DEFS) $(MESA_3DNOW_DEFS) $(MESA_SSE_DEFS)
diff --git a/xc/lib/GL/mesa/src/array_cache/Imakefile b/xc/lib/GL/mesa/src/array_cache/Imakefile
index 00e5eea04..1007a0497 100644
--- a/xc/lib/GL/mesa/src/array_cache/Imakefile
+++ b/xc/lib/GL/mesa/src/array_cache/Imakefile
@@ -1,14 +1,18 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.6 2000/08/01 20:28:39 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/array_cache/Imakefile,v 1.5 2002/02/28 17:52:16 dawes Exp $
#include <Threads.tmpl>
/*
- * Only need SharedLib build unless OSMesa lib is built, or driver is built
- * in to libGL
+ * Need both shared and unshared Mesa objects in the following cases:
+ * GlxDriverUsesMesa
+ * GlxBuiltInXMesa
+ * BuildOSMesaLib
+ *
+ * In other cases, only the shared version is needed to link in to loadable
+ * driver modules.
*/
-#if BuildXF86DRI && !GlxUseSGISI && \
- (GlxUseBuiltInDRIDriver || \
- !GlxBuiltInMesa || !defined(GlxDriverUsesMesa))
+
+#if GlxDriverUsesMesa || GlxBuiltInXMesa || BuildOSMesaLib
#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
#define DoExtraLib SharedLibGlx
@@ -22,9 +26,10 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.6 2000/08/01 20:28:39 dawes E
#define DoProfileLib NO
#endif
-LinkSourceFile(ac_context.c, $(MESASRCDIR)/src/array_cache)
-LinkSourceFile(ac_import.c, $(MESASRCDIR)/src/array_cache)
+#define MesaACBuildDir /**/
+#define NeedToLinkMesaSrc
+#include "Imakefile.inc"
#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
@@ -33,20 +38,18 @@ ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#if BuildXF86DRI
DRI_DEFINES = GlxDefines
DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I../../../include \
- -I$(TOP)/include -I$(TOP)/include/GL \
- -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
+ -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
#endif
MESA_INCLUDES = -I$(MESASRCDIR)/src \
-I$(MESASRCDIR)/src/array_cache \
-I$(MESASRCDIR)/src/math \
-I$(MESASRCDIR)/include \
- -I../../../include
+ -I../../../include -I$(XINCLUDESRC)
INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
- SRCS = ac_context.c ac_import.c
- OBJS = ac_context.o ac_import.o
-
+ SRCS = $(MESA_AC_SRCS)
+ OBJS = $(MESA_AC_OBJS)
#ifdef i386Architecture
diff --git a/xc/lib/GL/mesa/src/drv/ffb/Imakefile b/xc/lib/GL/mesa/src/drv/ffb/Imakefile
index 991d213ee..b373c463b 100644
--- a/xc/lib/GL/mesa/src/drv/ffb/Imakefile
+++ b/xc/lib/GL/mesa/src/drv/ffb/Imakefile
@@ -1,4 +1,4 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/drv/ffb/Imakefile,v 1.12 2001/05/10 16:56:10 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/drv/ffb/Imakefile,v 1.15 2002/02/23 00:45:48 dawes Exp $
#include <Threads.tmpl>
@@ -18,6 +18,12 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/drv/ffb/Imakefile,v 1.12 2001/05/10 16:56:10
#include "../common/Imakefile.inc"
#include "Imakefile.inc"
+#include "../../array_cache/Imakefile.inc"
+#include "../../math/Imakefile.inc"
+#include "../../swrast/Imakefile.inc"
+#include "../../swrast_setup/Imakefile.inc"
+#include "../../tnl/Imakefile.inc"
+#include "../../tnl_dd/Imakefile.inc"
#include "../../Imakefile.inc"
#ifdef i386Architecture
#include "../../X86/Imakefile.inc"
diff --git a/xc/lib/GL/mesa/src/drv/ffb/Imakefile.inc b/xc/lib/GL/mesa/src/drv/ffb/Imakefile.inc
index 1a9c4886c..e42c08c98 100644
--- a/xc/lib/GL/mesa/src/drv/ffb/Imakefile.inc
+++ b/xc/lib/GL/mesa/src/drv/ffb/Imakefile.inc
@@ -1,4 +1,4 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/drv/ffb/Imakefile.inc,v 1.2 2001/05/02 15:06:03 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/drv/ffb/Imakefile.inc,v 1.4 2002/02/26 23:37:33 tsi Exp $
#ifndef MesaDrvSrcDir
#define MesaDrvSrcDir $(GLXLIBSRC)/mesa/src/drv
@@ -9,7 +9,7 @@ MESADRVSRCDIR = MesaDrvSrcDir
#ifndef MesaDrvFfbBuildDir
#define MesaDrvFfbBuildDir /**/
#endif
-MESADRVRADEONBUILDDIR = MesaDrvFfbBuildDir
+MESADRVFFBBUILDDIR = MesaDrvFfbBuildDir
#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
@@ -34,87 +34,87 @@ MESA_INCLUDES = -I$(MESASRCDIR)/src \
-I$(MESADRVSRCDIR)/ffb
X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC)
- FFBSRCS = $(MESADRVRADEONBUILDDIR)ffb_bitmap.c \
- $(MESADRVRADEONBUILDDIR)ffb_clear.c \
- $(MESADRVRADEONBUILDDIR)ffb_dd.c \
- $(MESADRVRADEONBUILDDIR)ffb_depth.c \
- $(MESADRVRADEONBUILDDIR)ffb_fog.c \
- $(MESADRVRADEONBUILDDIR)ffb_lines.c \
- $(MESADRVRADEONBUILDDIR)ffb_points.c \
- $(MESADRVRADEONBUILDDIR)ffb_span.c \
- $(MESADRVRADEONBUILDDIR)ffb_state.c \
- $(MESADRVRADEONBUILDDIR)ffb_stencil.c \
- $(MESADRVRADEONBUILDDIR)ffb_tex.c \
- $(MESADRVRADEONBUILDDIR)ffb_tris.c \
- $(MESADRVRADEONBUILDDIR)ffb_vb.c \
- $(MESADRVRADEONBUILDDIR)ffb_xmesa.c
+ FFBSRCS = $(MESADRVFFBBUILDDIR)ffb_bitmap.c \
+ $(MESADRVFFBBUILDDIR)ffb_clear.c \
+ $(MESADRVFFBBUILDDIR)ffb_dd.c \
+ $(MESADRVFFBBUILDDIR)ffb_depth.c \
+ /* $(MESADRVFFBBUILDDIR)ffb_fog.c */ \
+ $(MESADRVFFBBUILDDIR)ffb_lines.c \
+ $(MESADRVFFBBUILDDIR)ffb_points.c \
+ $(MESADRVFFBBUILDDIR)ffb_span.c \
+ $(MESADRVFFBBUILDDIR)ffb_state.c \
+ $(MESADRVFFBBUILDDIR)ffb_stencil.c \
+ $(MESADRVFFBBUILDDIR)ffb_tex.c \
+ $(MESADRVFFBBUILDDIR)ffb_tris.c \
+ $(MESADRVFFBBUILDDIR)ffb_vb.c \
+ $(MESADRVFFBBUILDDIR)ffb_xmesa.c
- FFBOBJS = $(MESADRVRADEONBUILDDIR)ffb_bitmap.o \
- $(MESADRVRADEONBUILDDIR)ffb_clear.o \
- $(MESADRVRADEONBUILDDIR)ffb_dd.o \
- $(MESADRVRADEONBUILDDIR)ffb_depth.o \
- $(MESADRVRADEONBUILDDIR)ffb_fog.o \
- $(MESADRVRADEONBUILDDIR)ffb_lines.o \
- $(MESADRVRADEONBUILDDIR)ffb_points.o \
- $(MESADRVRADEONBUILDDIR)ffb_span.o \
- $(MESADRVRADEONBUILDDIR)ffb_state.o \
- $(MESADRVRADEONBUILDDIR)ffb_stencil.o \
- $(MESADRVRADEONBUILDDIR)ffb_tex.o \
- $(MESADRVRADEONBUILDDIR)ffb_tris.o \
- $(MESADRVRADEONBUILDDIR)ffb_vb.o \
- $(MESADRVRADEONBUILDDIR)ffb_xmesa.o
+ FFBOBJS = $(MESADRVFFBBUILDDIR)ffb_bitmap.o \
+ $(MESADRVFFBBUILDDIR)ffb_clear.o \
+ $(MESADRVFFBBUILDDIR)ffb_dd.o \
+ $(MESADRVFFBBUILDDIR)ffb_depth.o \
+ /* $(MESADRVFFBBUILDDIR)ffb_fog.o */ \
+ $(MESADRVFFBBUILDDIR)ffb_lines.o \
+ $(MESADRVFFBBUILDDIR)ffb_points.o \
+ $(MESADRVFFBBUILDDIR)ffb_span.o \
+ $(MESADRVFFBBUILDDIR)ffb_state.o \
+ $(MESADRVFFBBUILDDIR)ffb_stencil.o \
+ $(MESADRVFFBBUILDDIR)ffb_tex.o \
+ $(MESADRVFFBBUILDDIR)ffb_tris.o \
+ $(MESADRVFFBBUILDDIR)ffb_vb.o \
+ $(MESADRVFFBBUILDDIR)ffb_xmesa.o
- FFBUOBJS = $(MESADRVRADEONBUILDDIR)unshared/ffb_bitmap.o \
- $(MESADRVRADEONBUILDDIR)unshared/ffb_clear.o \
- $(MESADRVRADEONBUILDDIR)unshared/ffb_dd.o \
- $(MESADRVRADEONBUILDDIR)unshared/ffb_depth.o \
- $(MESADRVRADEONBUILDDIR)unshared/ffb_fog.o \
- $(MESADRVRADEONBUILDDIR)unshared/ffb_lines.o \
- $(MESADRVRADEONBUILDDIR)unshared/ffb_points.o \
- $(MESADRVRADEONBUILDDIR)unshared/ffb_span.o \
- $(MESADRVRADEONBUILDDIR)unshared/ffb_state.o \
- $(MESADRVRADEONBUILDDIR)unshared/ffb_stencil.o \
- $(MESADRVRADEONBUILDDIR)unshared/ffb_tex.o \
- $(MESADRVRADEONBUILDDIR)unshared/ffb_tris.o \
- $(MESADRVRADEONBUILDDIR)unshared/ffb_vb.o \
- $(MESADRVRADEONBUILDDIR)unshared/ffb_xmesa.o
+ FFBUOBJS = $(MESADRVFFBBUILDDIR)unshared/ffb_bitmap.o \
+ $(MESADRVFFBBUILDDIR)unshared/ffb_clear.o \
+ $(MESADRVFFBBUILDDIR)unshared/ffb_dd.o \
+ $(MESADRVFFBBUILDDIR)unshared/ffb_depth.o \
+ /* $(MESADRVFFBBUILDDIR)unshared/ffb_fog.o */ \
+ $(MESADRVFFBBUILDDIR)unshared/ffb_lines.o \
+ $(MESADRVFFBBUILDDIR)unshared/ffb_points.o \
+ $(MESADRVFFBBUILDDIR)unshared/ffb_span.o \
+ $(MESADRVFFBBUILDDIR)unshared/ffb_state.o \
+ $(MESADRVFFBBUILDDIR)unshared/ffb_stencil.o \
+ $(MESADRVFFBBUILDDIR)unshared/ffb_tex.o \
+ $(MESADRVFFBBUILDDIR)unshared/ffb_tris.o \
+ $(MESADRVFFBBUILDDIR)unshared/ffb_vb.o \
+ $(MESADRVFFBBUILDDIR)unshared/ffb_xmesa.o
- FFBDOBJS = $(MESADRVRADEONBUILDDIR)debugger/ffb_bitmap.o \
- $(MESADRVRADEONBUILDDIR)debugger/ffb_clear.o \
- $(MESADRVRADEONBUILDDIR)debugger/ffb_dd.o \
- $(MESADRVRADEONBUILDDIR)debugger/ffb_depth.o \
- $(MESADRVRADEONBUILDDIR)debugger/ffb_fog.o \
- $(MESADRVRADEONBUILDDIR)debugger/ffb_lines.o \
- $(MESADRVRADEONBUILDDIR)debugger/ffb_points.o \
- $(MESADRVRADEONBUILDDIR)debugger/ffb_span.o \
- $(MESADRVRADEONBUILDDIR)debugger/ffb_state.o \
- $(MESADRVRADEONBUILDDIR)debugger/ffb_stencil.o \
- $(MESADRVRADEONBUILDDIR)debugger/ffb_tex.o \
- $(MESADRVRADEONBUILDDIR)debugger/ffb_tris.o \
- $(MESADRVRADEONBUILDDIR)debugger/ffb_vb.o \
- $(MESADRVRADEONBUILDDIR)debugger/ffb_xmesa.o
+ FFBDOBJS = $(MESADRVFFBBUILDDIR)debugger/ffb_bitmap.o \
+ $(MESADRVFFBBUILDDIR)debugger/ffb_clear.o \
+ $(MESADRVFFBBUILDDIR)debugger/ffb_dd.o \
+ $(MESADRVFFBBUILDDIR)debugger/ffb_depth.o \
+ /* $(MESADRVFFBBUILDDIR)debugger/ffb_fog.o */ \
+ $(MESADRVFFBBUILDDIR)debugger/ffb_lines.o \
+ $(MESADRVFFBBUILDDIR)debugger/ffb_points.o \
+ $(MESADRVFFBBUILDDIR)debugger/ffb_span.o \
+ $(MESADRVFFBBUILDDIR)debugger/ffb_state.o \
+ $(MESADRVFFBBUILDDIR)debugger/ffb_stencil.o \
+ $(MESADRVFFBBUILDDIR)debugger/ffb_tex.o \
+ $(MESADRVFFBBUILDDIR)debugger/ffb_tris.o \
+ $(MESADRVFFBBUILDDIR)debugger/ffb_vb.o \
+ $(MESADRVFFBBUILDDIR)debugger/ffb_xmesa.o
- FFBPOBJS = $(MESADRVRADEONBUILDDIR)profiled/ffb_bitmap.o \
- $(MESADRVRADEONBUILDDIR)profiled/ffb_clear.o \
- $(MESADRVRADEONBUILDDIR)profiled/ffb_dd.o \
- $(MESADRVRADEONBUILDDIR)profiled/ffb_depth.o \
- $(MESADRVRADEONBUILDDIR)profiled/ffb_fog.o \
- $(MESADRVRADEONBUILDDIR)profiled/ffb_lines.o \
- $(MESADRVRADEONBUILDDIR)profiled/ffb_points.o \
- $(MESADRVRADEONBUILDDIR)profiled/ffb_span.o \
- $(MESADRVRADEONBUILDDIR)profiled/ffb_state.o \
- $(MESADRVRADEONBUILDDIR)profiled/ffb_stencil.o \
- $(MESADRVRADEONBUILDDIR)profiled/ffb_tex.o \
- $(MESADRVRADEONBUILDDIR)profiled/ffb_tris.o \
- $(MESADRVRADEONBUILDDIR)profiled/ffb_vb.o \
- $(MESADRVRADEONBUILDDIR)profiled/ffb_xmesa.o
+ FFBPOBJS = $(MESADRVFFBBUILDDIR)profiled/ffb_bitmap.o \
+ $(MESADRVFFBBUILDDIR)profiled/ffb_clear.o \
+ $(MESADRVFFBBUILDDIR)profiled/ffb_dd.o \
+ $(MESADRVFFBBUILDDIR)profiled/ffb_depth.o \
+ /* $(MESADRVFFBBUILDDIR)profiled/ffb_fog.o */ \
+ $(MESADRVFFBBUILDDIR)profiled/ffb_lines.o \
+ $(MESADRVFFBBUILDDIR)profiled/ffb_points.o \
+ $(MESADRVFFBBUILDDIR)profiled/ffb_span.o \
+ $(MESADRVFFBBUILDDIR)profiled/ffb_state.o \
+ $(MESADRVFFBBUILDDIR)profiled/ffb_stencil.o \
+ $(MESADRVFFBBUILDDIR)profiled/ffb_tex.o \
+ $(MESADRVFFBBUILDDIR)profiled/ffb_tris.o \
+ $(MESADRVFFBBUILDDIR)profiled/ffb_vb.o \
+ $(MESADRVFFBBUILDDIR)profiled/ffb_xmesa.o
#ifdef NeedToLinkMesaSrc
LinkSourceFile(ffb_bitmap.c, $(MESADRVSRCDIR)/ffb)
LinkSourceFile(ffb_clear.c, $(MESADRVSRCDIR)/ffb)
LinkSourceFile(ffb_dd.c, $(MESADRVSRCDIR)/ffb)
LinkSourceFile(ffb_depth.c, $(MESADRVSRCDIR)/ffb)
-LinkSourceFile(ffb_fog.c, $(MESADRVSRCDIR)/ffb)
+/* LinkSourceFile(ffb_fog.c, $(MESADRVSRCDIR)/ffb) */
LinkSourceFile(ffb_lines.c, $(MESADRVSRCDIR)/ffb)
LinkSourceFile(ffb_points.c, $(MESADRVSRCDIR)/ffb)
LinkSourceFile(ffb_span.c, $(MESADRVSRCDIR)/ffb)
diff --git a/xc/lib/GL/mesa/src/drv/gamma/Imakefile b/xc/lib/GL/mesa/src/drv/gamma/Imakefile
index 7515867e7..aa9021bb5 100644
--- a/xc/lib/GL/mesa/src/drv/gamma/Imakefile
+++ b/xc/lib/GL/mesa/src/drv/gamma/Imakefile
@@ -1,4 +1,4 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/drv/gamma/Imakefile,v 1.23 2001/05/10 16:56:11 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/drv/gamma/Imakefile,v 1.25 2002/02/23 00:45:49 dawes Exp $
#include <Threads.tmpl>
@@ -18,6 +18,12 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/drv/gamma/Imakefile,v 1.23 2001/05/10 16:56:1
#include "../common/Imakefile.inc"
#include "Imakefile.inc"
+#include "../../array_cache/Imakefile.inc"
+#include "../../math/Imakefile.inc"
+#include "../../swrast/Imakefile.inc"
+#include "../../swrast_setup/Imakefile.inc"
+#include "../../tnl/Imakefile.inc"
+#include "../../tnl_dd/Imakefile.inc"
#include "../../Imakefile.inc"
#ifdef i386Architecture
#include "../../X86/Imakefile.inc"
@@ -26,6 +32,7 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/drv/gamma/Imakefile,v 1.23 2001/05/10 16:56:1
#include "../../SPARC/Imakefile.inc"
#endif
+
DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES)
INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES)
diff --git a/xc/lib/GL/mesa/src/drv/i810/Imakefile b/xc/lib/GL/mesa/src/drv/i810/Imakefile
index 0bc38b49d..182654f6d 100644
--- a/xc/lib/GL/mesa/src/drv/i810/Imakefile
+++ b/xc/lib/GL/mesa/src/drv/i810/Imakefile
@@ -1,4 +1,4 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/drv/i810/Imakefile,v 1.19 2001/05/10 16:56:11 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/drv/i810/Imakefile,v 1.21 2002/02/23 00:45:49 dawes Exp $
#include <Threads.tmpl>
@@ -18,6 +18,12 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/drv/i810/Imakefile,v 1.19 2001/05/10 16:56:11
#include "../common/Imakefile.inc"
#include "Imakefile.inc"
+#include "../../array_cache/Imakefile.inc"
+#include "../../math/Imakefile.inc"
+#include "../../swrast/Imakefile.inc"
+#include "../../swrast_setup/Imakefile.inc"
+#include "../../tnl/Imakefile.inc"
+#include "../../tnl_dd/Imakefile.inc"
#include "../../Imakefile.inc"
#ifdef i386Architecture
#include "../../X86/Imakefile.inc"
@@ -26,6 +32,7 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/drv/i810/Imakefile,v 1.19 2001/05/10 16:56:11
#include "../../SPARC/Imakefile.inc"
#endif
+
DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES)
INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES)
diff --git a/xc/lib/GL/mesa/src/drv/i830/Imakefile b/xc/lib/GL/mesa/src/drv/i830/Imakefile
index 809f90232..926900c67 100644
--- a/xc/lib/GL/mesa/src/drv/i830/Imakefile
+++ b/xc/lib/GL/mesa/src/drv/i830/Imakefile
@@ -1,4 +1,4 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/drv/i830/Imakefile,v 1.1 2001/10/04 18:28:21 alanh Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/drv/i830/Imakefile,v 1.2 2002/02/23 00:45:50 dawes Exp $
#include <Threads.tmpl>
@@ -18,11 +18,18 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/drv/i830/Imakefile,v 1.1 2001/10/04 18:28:21
#include "../common/Imakefile.inc"
#include "Imakefile.inc"
+#include "../../array_cache/Imakefile.inc"
+#include "../../math/Imakefile.inc"
+#include "../../swrast/Imakefile.inc"
+#include "../../swrast_setup/Imakefile.inc"
+#include "../../tnl/Imakefile.inc"
+#include "../../tnl_dd/Imakefile.inc"
#include "../../Imakefile.inc"
#ifdef i386Architecture
#include "../../X86/Imakefile.inc"
#endif
+
DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES)
INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES)
diff --git a/xc/lib/GL/mesa/src/drv/mga/Imakefile b/xc/lib/GL/mesa/src/drv/mga/Imakefile
index 81b377006..f7e7ebc09 100644
--- a/xc/lib/GL/mesa/src/drv/mga/Imakefile
+++ b/xc/lib/GL/mesa/src/drv/mga/Imakefile
@@ -1,4 +1,4 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/drv/mga/Imakefile,v 1.20 2001/05/10 16:56:11 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/drv/mga/Imakefile,v 1.22 2002/02/23 00:45:50 dawes Exp $
#include <Threads.tmpl>
@@ -18,6 +18,12 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/drv/mga/Imakefile,v 1.20 2001/05/10 16:56:11
#include "../common/Imakefile.inc"
#include "Imakefile.inc"
+#include "../../array_cache/Imakefile.inc"
+#include "../../math/Imakefile.inc"
+#include "../../swrast/Imakefile.inc"
+#include "../../swrast_setup/Imakefile.inc"
+#include "../../tnl/Imakefile.inc"
+#include "../../tnl_dd/Imakefile.inc"
#include "../../Imakefile.inc"
#ifdef i386Architecture
#include "../../X86/Imakefile.inc"
@@ -27,6 +33,7 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/drv/mga/Imakefile,v 1.20 2001/05/10 16:56:11
#endif
+
DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES)
INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES)
diff --git a/xc/lib/GL/mesa/src/drv/r128/Imakefile b/xc/lib/GL/mesa/src/drv/r128/Imakefile
index 68243040e..ff032a38a 100644
--- a/xc/lib/GL/mesa/src/drv/r128/Imakefile
+++ b/xc/lib/GL/mesa/src/drv/r128/Imakefile
@@ -1,4 +1,4 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/drv/r128/Imakefile,v 1.17 2001/05/10 16:56:11 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/drv/r128/Imakefile,v 1.19 2002/02/23 00:45:50 dawes Exp $
#include <Threads.tmpl>
@@ -18,6 +18,12 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/drv/r128/Imakefile,v 1.17 2001/05/10 16:56:11
#include "../common/Imakefile.inc"
#include "Imakefile.inc"
+#include "../../array_cache/Imakefile.inc"
+#include "../../math/Imakefile.inc"
+#include "../../swrast/Imakefile.inc"
+#include "../../swrast_setup/Imakefile.inc"
+#include "../../tnl/Imakefile.inc"
+#include "../../tnl_dd/Imakefile.inc"
#include "../../Imakefile.inc"
#ifdef i386Architecture
#include "../../X86/Imakefile.inc"
@@ -26,6 +32,7 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/drv/r128/Imakefile,v 1.17 2001/05/10 16:56:11
#include "../../SPARC/Imakefile.inc"
#endif
+
DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES)
INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES)
diff --git a/xc/lib/GL/mesa/src/drv/radeon/Imakefile b/xc/lib/GL/mesa/src/drv/radeon/Imakefile
index f4c1ef7ca..2a0922ccf 100644
--- a/xc/lib/GL/mesa/src/drv/radeon/Imakefile
+++ b/xc/lib/GL/mesa/src/drv/radeon/Imakefile
@@ -1,4 +1,4 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/drv/radeon/Imakefile,v 1.7 2001/11/02 23:29:26 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/drv/radeon/Imakefile,v 1.9 2002/02/23 00:45:50 dawes Exp $
#include <Threads.tmpl>
@@ -18,6 +18,12 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/drv/radeon/Imakefile,v 1.7 2001/11/02 23:29:2
#include "../common/Imakefile.inc"
#include "Imakefile.inc"
+#include "../../array_cache/Imakefile.inc"
+#include "../../math/Imakefile.inc"
+#include "../../swrast/Imakefile.inc"
+#include "../../swrast_setup/Imakefile.inc"
+#include "../../tnl/Imakefile.inc"
+#include "../../tnl_dd/Imakefile.inc"
#include "../../Imakefile.inc"
#ifdef i386Architecture
#include "../../X86/Imakefile.inc"
diff --git a/xc/lib/GL/mesa/src/drv/sis/Imakefile b/xc/lib/GL/mesa/src/drv/sis/Imakefile
index 66c421073..653d687c1 100644
--- a/xc/lib/GL/mesa/src/drv/sis/Imakefile
+++ b/xc/lib/GL/mesa/src/drv/sis/Imakefile
@@ -1,4 +1,4 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/drv/sis/Imakefile,v 1.18 2001/11/02 23:29:27 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/drv/sis/Imakefile,v 1.20 2002/02/27 21:09:33 tsi Exp $
#include <Threads.tmpl>
@@ -18,10 +18,19 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/drv/sis/Imakefile,v 1.18 2001/11/02 23:29:27
#include "../common/Imakefile.inc"
#include "Imakefile.inc"
+#include "../../array_cache/Imakefile.inc"
+#include "../../math/Imakefile.inc"
+#include "../../swrast/Imakefile.inc"
+#include "../../swrast_setup/Imakefile.inc"
+#include "../../tnl/Imakefile.inc"
+#include "../../tnl_dd/Imakefile.inc"
#include "../../Imakefile.inc"
#ifdef i386Architecture
#include "../../X86/Imakefile.inc"
#endif
+#ifdef SparcArchitecture
+#include "../../SPARC/Imakefile.inc"
+#endif
XCOMM SIS_DEFINES = -DSIS_USE_HW_CULL -DSIS_USE_FASTPATH
SIS_DEFINES = -DSIS_USE_HW_CULL
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/Imakefile b/xc/lib/GL/mesa/src/drv/tdfx/Imakefile
index c6ad9e6a0..19eb8c613 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/Imakefile
+++ b/xc/lib/GL/mesa/src/drv/tdfx/Imakefile
@@ -1,4 +1,4 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/drv/tdfx/Imakefile,v 1.25.2.1 2001/06/01 07:42:23 alanh Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/drv/tdfx/Imakefile,v 1.30 2002/02/23 00:45:51 dawes Exp $
#include <Threads.tmpl>
@@ -18,6 +18,12 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/drv/tdfx/Imakefile,v 1.25.2.1 2001/06/01 07:4
#include "../common/Imakefile.inc"
#include "Imakefile.inc"
+#include "../../array_cache/Imakefile.inc"
+#include "../../math/Imakefile.inc"
+#include "../../swrast/Imakefile.inc"
+#include "../../swrast_setup/Imakefile.inc"
+#include "../../tnl/Imakefile.inc"
+#include "../../tnl_dd/Imakefile.inc"
#include "../../Imakefile.inc"
#ifdef i386Architecture
#include "../../X86/Imakefile.inc"
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.h
index 935e0e24b..7decaa97e 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.h
@@ -23,7 +23,7 @@
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
-/* $XFree86: xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.h,v 1.3 2001/10/02 11:44:13 alanh Exp $ */
+/* $XFree86: xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.h,v 1.5 2002/02/24 21:51:10 dawes Exp $ */
/*
* Original rewrite:
@@ -673,10 +673,8 @@ struct tdfx_glide {
void (*grDisable)( GrEnableMode_t mode );
void (*grCoordinateSpace)( GrCoordinateSpaceMode_t mode );
void (*grDepthRange)( FxFloat n, FxFloat f );
-#ifdef __linux__
void (*grStippleMode)( GrStippleMode_t mode );
void (*grStipplePattern)( GrStipplePattern_t mode );
-#endif /* __linux__ */
void (*grViewport)( FxI32 x, FxI32 y, FxI32 width, FxI32 height );
FxU32 (*grTexCalcMemRequired)(GrLOD_t lodmin, GrLOD_t lodmax,
GrAspectRatio_t aspect, GrTextureFormat_t fmt);
diff --git a/xc/lib/GL/mesa/src/math/Imakefile b/xc/lib/GL/mesa/src/math/Imakefile
index afb7e4b0d..83dd51e0c 100644
--- a/xc/lib/GL/mesa/src/math/Imakefile
+++ b/xc/lib/GL/mesa/src/math/Imakefile
@@ -1,14 +1,18 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.6 2000/08/01 20:28:39 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/math/Imakefile,v 1.5 2002/02/28 17:52:16 dawes Exp $
#include <Threads.tmpl>
/*
- * Only need SharedLib build unless OSMesa lib is built, or driver is built
- * in to libGL
+ * Need both shared and unshared Mesa objects in the following cases:
+ * GlxDriverUsesMesa
+ * GlxBuiltInXMesa
+ * BuildOSMesaLib
+ *
+ * In other cases, only the shared version is needed to link in to loadable
+ * driver modules.
*/
-#if BuildXF86DRI && !GlxUseSGISI && \
- (GlxUseBuiltInDRIDriver || \
- !GlxBuiltInMesa || !defined(GlxDriverUsesMesa))
+
+#if GlxDriverUsesMesa || GlxBuiltInXMesa || BuildOSMesaLib
#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
#define DoExtraLib SharedLibGlx
@@ -22,16 +26,10 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.6 2000/08/01 20:28:39 dawes E
#define DoProfileLib NO
#endif
-LinkSourceFile(m_debug_clip.c, $(MESASRCDIR)/src/math)
-LinkSourceFile(m_debug_norm.c, $(MESASRCDIR)/src/math)
-LinkSourceFile(m_debug_vertex.c, $(MESASRCDIR)/src/math)
-LinkSourceFile(m_debug_xform.c, $(MESASRCDIR)/src/math)
-LinkSourceFile(m_eval.c, $(MESASRCDIR)/src/math)
-LinkSourceFile(m_matrix.c, $(MESASRCDIR)/src/math)
-LinkSourceFile(m_translate.c, $(MESASRCDIR)/src/math)
-LinkSourceFile(m_vector.c, $(MESASRCDIR)/src/math)
-LinkSourceFile(m_vertices.c, $(MESASRCDIR)/src/math)
-LinkSourceFile(m_xform.c, $(MESASRCDIR)/src/math)
+
+#define MesaMathBuildDir /**/
+#define NeedToLinkMesaSrc
+#include "Imakefile.inc"
#if Malloc0ReturnsNull
@@ -41,40 +39,11 @@ ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#if BuildXF86DRI
DRI_DEFINES = GlxDefines
DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I.. \
- -I$(TOP)/include -I$(TOP)/include/GL \
- -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
+ -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
#endif
-MESA_INCLUDES = -I$(MESASRCDIR)/src \
- -I$(MESASRCDIR)/src/math \
- -I$(MESASRCDIR)/src/X86 \
- -I$(MESASRCDIR)/include \
- -I../../../include
-
- INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
- SRCS = m_debug_clip.c \
- m_debug_norm.c \
- m_debug_xform.c \
- m_debug_vertex.c \
- m_eval.c \
- m_matrix.c \
- m_translate.c \
- m_vector.c \
- m_vertices.c \
- m_xform.c
-
- OBJS = m_debug_clip.o \
- m_debug_norm.o \
- m_debug_xform.o \
- m_debug_vertex.o \
- m_eval.o \
- m_matrix.o \
- m_translate.o \
- m_vector.o \
- m_vertices.o \
- m_xform.o
-
#ifdef i386Architecture
+ ASM_DIR = X86
ASM_SRCS =
ASM_OBJS =
#if MesaUseMMX
@@ -90,6 +59,7 @@ MESA_INCLUDES = -I$(MESASRCDIR)/src \
#endif
#ifdef SparcArchitecture
+ ASM_DIR = SPARC
ASM_SRCS =
ASM_OBJS =
ASM_DEFS = -DUSE_SPARC_ASM
@@ -99,7 +69,17 @@ MESA_INCLUDES = -I$(MESASRCDIR)/src \
MATHDEF = -DCCPML
#endif
+MESA_INCLUDES = -I$(MESASRCDIR)/src \
+ -I$(MESASRCDIR)/src/math \
+ -I$(MESASRCDIR)/src/$(ASM_DIR) \
+ -I$(MESASRCDIR)/include \
+ -I../../../include -I$(XINCLUDESRC)
+
DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF)
+ INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
+ SRCS = $(MESA_MATH_SRCS)
+ OBJS = $(MESA_MATH_OBJS)
+
#include <Library.tmpl>
diff --git a/xc/lib/GL/mesa/src/math/Imakefile.inc b/xc/lib/GL/mesa/src/math/Imakefile.inc
new file mode 100644
index 000000000..75104fbe0
--- /dev/null
+++ b/xc/lib/GL/mesa/src/math/Imakefile.inc
@@ -0,0 +1,80 @@
+XCOMM $XFree86: xc/lib/GL/mesa/src/math/Imakefile.inc,v 1.1 2002/02/23 00:45:52 dawes Exp $
+
+#ifndef MesaMathBuildDir
+#define MesaMathBuildDir $(GLXLIBSRC)/mesa/src/math/
+#endif
+
+MESAMATHBUILDDIR = MesaMathBuildDir
+
+ MESA_MATH_SRCS = $(MESAMATHBUILDDIR)m_debug_clip.c \
+ $(MESAMATHBUILDDIR)m_debug_norm.c \
+ $(MESAMATHBUILDDIR)m_debug_xform.c \
+ $(MESAMATHBUILDDIR)m_debug_vertex.c \
+ $(MESAMATHBUILDDIR)m_eval.c \
+ $(MESAMATHBUILDDIR)m_matrix.c \
+ $(MESAMATHBUILDDIR)m_translate.c \
+ $(MESAMATHBUILDDIR)m_vector.c \
+ $(MESAMATHBUILDDIR)m_vertices.c \
+ $(MESAMATHBUILDDIR)m_xform.c
+
+#ifdef NeedToLinkMesaSrc
+LinkSourceFile(m_debug_clip.c, $(MESASRCDIR)/src/math)
+LinkSourceFile(m_debug_norm.c, $(MESASRCDIR)/src/math)
+LinkSourceFile(m_debug_vertex.c, $(MESASRCDIR)/src/math)
+LinkSourceFile(m_debug_xform.c, $(MESASRCDIR)/src/math)
+LinkSourceFile(m_eval.c, $(MESASRCDIR)/src/math)
+LinkSourceFile(m_matrix.c, $(MESASRCDIR)/src/math)
+LinkSourceFile(m_translate.c, $(MESASRCDIR)/src/math)
+LinkSourceFile(m_vector.c, $(MESASRCDIR)/src/math)
+LinkSourceFile(m_vertices.c, $(MESASRCDIR)/src/math)
+LinkSourceFile(m_xform.c, $(MESASRCDIR)/src/math)
+#endif
+
+ MESA_MATH_OBJS = $(MESAMATHBUILDDIR)m_debug_clip.o \
+ $(MESAMATHBUILDDIR)m_debug_norm.o \
+ $(MESAMATHBUILDDIR)m_debug_xform.o \
+ $(MESAMATHBUILDDIR)m_debug_vertex.o \
+ $(MESAMATHBUILDDIR)m_eval.o \
+ $(MESAMATHBUILDDIR)m_matrix.o \
+ $(MESAMATHBUILDDIR)m_translate.o \
+ $(MESAMATHBUILDDIR)m_vector.o \
+ $(MESAMATHBUILDDIR)m_vertices.o \
+ $(MESAMATHBUILDDIR)m_xform.o
+
+#if DoSharedLib
+ MESA_MATH_UOBJS = $(MESAMATHBUILDDIR)unshared/m_debug_clip.o \
+ $(MESAMATHBUILDDIR)unshared/m_debug_norm.o \
+ $(MESAMATHBUILDDIR)unshared/m_debug_xform.o \
+ $(MESAMATHBUILDDIR)unshared/m_debug_vertex.o \
+ $(MESAMATHBUILDDIR)unshared/m_eval.o \
+ $(MESAMATHBUILDDIR)unshared/m_matrix.o \
+ $(MESAMATHBUILDDIR)unshared/m_translate.o \
+ $(MESAMATHBUILDDIR)unshared/m_vector.o \
+ $(MESAMATHBUILDDIR)unshared/m_vertices.o \
+ $(MESAMATHBUILDDIR)unshared/m_xform.o
+#else
+ MATH_MESA_UOBJS = $(MESA_MATH_OBJS)
+#endif
+
+ MESA_MATH_DOBJS = $(MESAMATHBUILDDIR)debugger/m_debug_clip.o \
+ $(MESAMATHBUILDDIR)debugger/m_debug_norm.o \
+ $(MESAMATHBUILDDIR)debugger/m_debug_xform.o \
+ $(MESAMATHBUILDDIR)debugger/m_debug_vertex.o \
+ $(MESAMATHBUILDDIR)debugger/m_eval.o \
+ $(MESAMATHBUILDDIR)debugger/m_matrix.o \
+ $(MESAMATHBUILDDIR)debugger/m_translate.o \
+ $(MESAMATHBUILDDIR)debugger/m_vector.o \
+ $(MESAMATHBUILDDIR)debugger/m_vertices.o \
+ $(MESAMATHBUILDDIR)debugger/m_xform.o
+
+ MESA_MATH_POBJS = $(MESAMATHBUILDDIR)profiled/m_debug_clip.o \
+ $(MESAMATHBUILDDIR)profiled/m_debug_norm.o \
+ $(MESAMATHBUILDDIR)profiled/m_debug_xform.o \
+ $(MESAMATHBUILDDIR)profiled/m_debug_vertex.o \
+ $(MESAMATHBUILDDIR)profiled/m_eval.o \
+ $(MESAMATHBUILDDIR)profiled/m_matrix.o \
+ $(MESAMATHBUILDDIR)profiled/m_translate.o \
+ $(MESAMATHBUILDDIR)profiled/m_vector.o \
+ $(MESAMATHBUILDDIR)profiled/m_vertices.o \
+ $(MESAMATHBUILDDIR)profiled/m_xform.o
+
diff --git a/xc/lib/GL/mesa/src/swrast/Imakefile b/xc/lib/GL/mesa/src/swrast/Imakefile
index 75c32cb65..aca5cbc57 100644
--- a/xc/lib/GL/mesa/src/swrast/Imakefile
+++ b/xc/lib/GL/mesa/src/swrast/Imakefile
@@ -1,14 +1,18 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.6 2000/08/01 20:28:39 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/swrast/Imakefile,v 1.5 2002/02/28 17:52:17 dawes Exp $
#include <Threads.tmpl>
/*
- * Only need SharedLib build unless OSMesa lib is built, or driver is built
- * in to libGL
+ * Need both shared and unshared Mesa objects in the following cases:
+ * GlxDriverUsesMesa
+ * GlxBuiltInXMesa
+ * BuildOSMesaLib
+ *
+ * In other cases, only the shared version is needed to link in to loadable
+ * driver modules.
*/
-#if BuildXF86DRI && !GlxUseSGISI && \
- (GlxUseBuiltInDRIDriver || \
- !GlxBuiltInMesa || !defined(GlxDriverUsesMesa))
+
+#if GlxDriverUsesMesa || GlxBuiltInXMesa || BuildOSMesaLib
#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
#define DoExtraLib SharedLibGlx
@@ -22,36 +26,11 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.6 2000/08/01 20:28:39 dawes E
#define DoProfileLib NO
#endif
-LinkSourceFile(s_aaline.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_aatriangle.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_accum.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_alpha.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_alphabuf.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_bitmap.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_blend.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_buffers.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_context.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_copypix.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_depth.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_drawpix.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_feedback.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_fog.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_histogram.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_imaging.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_lines.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_logic.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_masking.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_pb.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_pixeltex.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_points.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_readpix.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_scissor.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_span.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_stencil.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_texstore.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_texture.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_triangle.c, $(MESASRCDIR)/src/swrast)
-LinkSourceFile(s_zoom.c, $(MESASRCDIR)/src/swrast)
+
+#define MesaSwrastBuildDir /**/
+#define NeedToLinkMesaSrc
+#include "Imakefile.inc"
+
#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
@@ -60,83 +39,11 @@ ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#if BuildXF86DRI
DRI_DEFINES = GlxDefines
DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I../../../include \
- -I$(TOP)/include -I$(TOP)/include/GL \
- -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
+ -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
#endif
-MESA_INCLUDES = -I$(MESASRCDIR)/src \
- -I$(MESASRCDIR)/src/array_cache \
- -I$(MESASRCDIR)/src/math \
- -I$(MESASRCDIR)/src/swrast \
- -I$(MESASRCDIR)/src/X86 \
- -I$(MESASRCDIR)/include \
- -I../../../include
-
- INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
- SRCS = s_aaline.c \
- s_aatriangle.c \
- s_accum.c \
- s_alpha.c \
- s_alphabuf.c \
- s_bitmap.c \
- s_blend.c \
- s_buffers.c \
- s_context.c \
- s_copypix.c \
- s_depth.c \
- s_drawpix.c \
- s_feedback.c \
- s_fog.c \
- s_histogram.c \
- s_imaging.c \
- s_lines.c \
- s_logic.c \
- s_masking.c \
- s_pb.c \
- s_pixeltex.c \
- s_points.c \
- s_readpix.c \
- s_scissor.c \
- s_span.c \
- s_stencil.c \
- s_texstore.c \
- s_texture.c \
- s_triangle.c \
- s_zoom.c
-
- OBJS = s_aaline.o \
- s_aatriangle.o \
- s_accum.o \
- s_alpha.o \
- s_alphabuf.o \
- s_bitmap.o \
- s_blend.o \
- s_buffers.o \
- s_context.o \
- s_copypix.o \
- s_depth.o \
- s_drawpix.o \
- s_feedback.o \
- s_fog.o \
- s_histogram.o \
- s_imaging.o \
- s_lines.o \
- s_logic.o \
- s_masking.o \
- s_pb.o \
- s_pixeltex.o \
- s_points.o \
- s_readpix.o \
- s_scissor.o \
- s_span.o \
- s_stencil.o \
- s_texstore.o \
- s_texture.o \
- s_triangle.o \
- s_zoom.o
-
-
#ifdef i386Architecture
+ ASM_DIR = X86
ASM_SRCS =
ASM_OBJS =
#if MesaUseMMX
@@ -152,6 +59,7 @@ MESA_INCLUDES = -I$(MESASRCDIR)/src \
#endif
#ifdef SparcArchitecture
+ ASM_DIR = SPARC
ASM_SRCS =
ASM_OBJS =
ASM_DEFS = -DUSE_SPARC_ASM
@@ -161,7 +69,19 @@ MESA_INCLUDES = -I$(MESASRCDIR)/src \
MATHDEF = -DCCPML
#endif
+MESA_INCLUDES = -I$(MESASRCDIR)/src \
+ -I$(MESASRCDIR)/src/array_cache \
+ -I$(MESASRCDIR)/src/math \
+ -I$(MESASRCDIR)/src/swrast \
+ -I$(MESASRCDIR)/src/$(ASM_DIR) \
+ -I$(MESASRCDIR)/include \
+ -I../../../include -I$(XINCLUDESRC)
+
DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF)
+ INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
+ SRCS = $(MESA_SWRAST_SRCS)
+ OBJS = $(MESA_SWRAST_OBJS)
+
#include <Library.tmpl>
diff --git a/xc/lib/GL/mesa/src/swrast/Imakefile.inc b/xc/lib/GL/mesa/src/swrast/Imakefile.inc
new file mode 100644
index 000000000..6ea372416
--- /dev/null
+++ b/xc/lib/GL/mesa/src/swrast/Imakefile.inc
@@ -0,0 +1,200 @@
+XCOMM $XFree86: xc/lib/GL/mesa/src/swrast/Imakefile.inc,v 1.1 2002/02/23 00:45:52 dawes Exp $
+
+#ifndef MesaSwrastBuildDir
+#define MesaSwrastBuildDir $(GLXLIBSRC)/mesa/src/swrast/
+#endif
+
+MESASWRASTBUILDDIR = MesaSwrastBuildDir
+
+ MESA_SWRAST_SRCS = $(MESASWRASTBUILDDIR)s_aaline.c \
+ $(MESASWRASTBUILDDIR)s_aatriangle.c \
+ $(MESASWRASTBUILDDIR)s_accum.c \
+ $(MESASWRASTBUILDDIR)s_alpha.c \
+ $(MESASWRASTBUILDDIR)s_alphabuf.c \
+ $(MESASWRASTBUILDDIR)s_bitmap.c \
+ $(MESASWRASTBUILDDIR)s_blend.c \
+ $(MESASWRASTBUILDDIR)s_buffers.c \
+ $(MESASWRASTBUILDDIR)s_context.c \
+ $(MESASWRASTBUILDDIR)s_copypix.c \
+ $(MESASWRASTBUILDDIR)s_depth.c \
+ $(MESASWRASTBUILDDIR)s_drawpix.c \
+ $(MESASWRASTBUILDDIR)s_feedback.c \
+ $(MESASWRASTBUILDDIR)s_fog.c \
+ $(MESASWRASTBUILDDIR)s_histogram.c \
+ $(MESASWRASTBUILDDIR)s_imaging.c \
+ $(MESASWRASTBUILDDIR)s_lines.c \
+ $(MESASWRASTBUILDDIR)s_logic.c \
+ $(MESASWRASTBUILDDIR)s_masking.c \
+ $(MESASWRASTBUILDDIR)s_pb.c \
+ $(MESASWRASTBUILDDIR)s_pixeltex.c \
+ $(MESASWRASTBUILDDIR)s_points.c \
+ $(MESASWRASTBUILDDIR)s_readpix.c \
+ $(MESASWRASTBUILDDIR)s_scissor.c \
+ $(MESASWRASTBUILDDIR)s_span.c \
+ $(MESASWRASTBUILDDIR)s_stencil.c \
+ $(MESASWRASTBUILDDIR)s_texstore.c \
+ $(MESASWRASTBUILDDIR)s_texture.c \
+ $(MESASWRASTBUILDDIR)s_triangle.c \
+ $(MESASWRASTBUILDDIR)s_zoom.c
+
+#ifdef NeedToLinkMesaSrc
+LinkSourceFile(s_aaline.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_aatriangle.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_accum.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_alpha.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_alphabuf.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_bitmap.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_blend.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_buffers.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_context.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_copypix.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_depth.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_drawpix.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_feedback.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_fog.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_histogram.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_imaging.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_lines.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_logic.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_masking.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_pb.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_pixeltex.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_points.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_readpix.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_scissor.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_span.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_stencil.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_texstore.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_texture.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_triangle.c, $(MESASRCDIR)/src/swrast)
+LinkSourceFile(s_zoom.c, $(MESASRCDIR)/src/swrast)
+#endif
+
+ MESA_SWRAST_OBJS = $(MESASWRASTBUILDDIR)s_aaline.o \
+ $(MESASWRASTBUILDDIR)s_aatriangle.o \
+ $(MESASWRASTBUILDDIR)s_accum.o \
+ $(MESASWRASTBUILDDIR)s_alpha.o \
+ $(MESASWRASTBUILDDIR)s_alphabuf.o \
+ $(MESASWRASTBUILDDIR)s_bitmap.o \
+ $(MESASWRASTBUILDDIR)s_blend.o \
+ $(MESASWRASTBUILDDIR)s_buffers.o \
+ $(MESASWRASTBUILDDIR)s_context.o \
+ $(MESASWRASTBUILDDIR)s_copypix.o \
+ $(MESASWRASTBUILDDIR)s_depth.o \
+ $(MESASWRASTBUILDDIR)s_drawpix.o \
+ $(MESASWRASTBUILDDIR)s_feedback.o \
+ $(MESASWRASTBUILDDIR)s_fog.o \
+ $(MESASWRASTBUILDDIR)s_histogram.o \
+ $(MESASWRASTBUILDDIR)s_imaging.o \
+ $(MESASWRASTBUILDDIR)s_lines.o \
+ $(MESASWRASTBUILDDIR)s_logic.o \
+ $(MESASWRASTBUILDDIR)s_masking.o \
+ $(MESASWRASTBUILDDIR)s_pb.o \
+ $(MESASWRASTBUILDDIR)s_pixeltex.o \
+ $(MESASWRASTBUILDDIR)s_points.o \
+ $(MESASWRASTBUILDDIR)s_readpix.o \
+ $(MESASWRASTBUILDDIR)s_scissor.o \
+ $(MESASWRASTBUILDDIR)s_span.o \
+ $(MESASWRASTBUILDDIR)s_stencil.o \
+ $(MESASWRASTBUILDDIR)s_texstore.o \
+ $(MESASWRASTBUILDDIR)s_texture.o \
+ $(MESASWRASTBUILDDIR)s_triangle.o \
+ $(MESASWRASTBUILDDIR)s_zoom.o
+
+#if DoSharedLib
+ MESA_SWRAST_UOBJS = $(MESASWRASTBUILDDIR)unshared/s_aaline.o \
+ $(MESASWRASTBUILDDIR)unshared/s_aatriangle.o \
+ $(MESASWRASTBUILDDIR)unshared/s_accum.o \
+ $(MESASWRASTBUILDDIR)unshared/s_alpha.o \
+ $(MESASWRASTBUILDDIR)unshared/s_alphabuf.o \
+ $(MESASWRASTBUILDDIR)unshared/s_bitmap.o \
+ $(MESASWRASTBUILDDIR)unshared/s_blend.o \
+ $(MESASWRASTBUILDDIR)unshared/s_buffers.o \
+ $(MESASWRASTBUILDDIR)unshared/s_context.o \
+ $(MESASWRASTBUILDDIR)unshared/s_copypix.o \
+ $(MESASWRASTBUILDDIR)unshared/s_depth.o \
+ $(MESASWRASTBUILDDIR)unshared/s_drawpix.o \
+ $(MESASWRASTBUILDDIR)unshared/s_feedback.o \
+ $(MESASWRASTBUILDDIR)unshared/s_fog.o \
+ $(MESASWRASTBUILDDIR)unshared/s_histogram.o \
+ $(MESASWRASTBUILDDIR)unshared/s_imaging.o \
+ $(MESASWRASTBUILDDIR)unshared/s_lines.o \
+ $(MESASWRASTBUILDDIR)unshared/s_logic.o \
+ $(MESASWRASTBUILDDIR)unshared/s_masking.o \
+ $(MESASWRASTBUILDDIR)unshared/s_pb.o \
+ $(MESASWRASTBUILDDIR)unshared/s_pixeltex.o \
+ $(MESASWRASTBUILDDIR)unshared/s_points.o \
+ $(MESASWRASTBUILDDIR)unshared/s_readpix.o \
+ $(MESASWRASTBUILDDIR)unshared/s_scissor.o \
+ $(MESASWRASTBUILDDIR)unshared/s_span.o \
+ $(MESASWRASTBUILDDIR)unshared/s_stencil.o \
+ $(MESASWRASTBUILDDIR)unshared/s_texstore.o \
+ $(MESASWRASTBUILDDIR)unshared/s_texture.o \
+ $(MESASWRASTBUILDDIR)unshared/s_triangle.o \
+ $(MESASWRASTBUILDDIR)unshared/s_zoom.o
+#else
+ MESA_SWRAST_UOBJS = $(MESA_SWRAST_OBJS)
+#endif
+
+ MESA_SWRAST_DOBJS = $(MESASWRASTBUILDDIR)debugger/s_aaline.o \
+ $(MESASWRASTBUILDDIR)debugger/s_aatriangle.o \
+ $(MESASWRASTBUILDDIR)debugger/s_accum.o \
+ $(MESASWRASTBUILDDIR)debugger/s_alpha.o \
+ $(MESASWRASTBUILDDIR)debugger/s_alphabuf.o \
+ $(MESASWRASTBUILDDIR)debugger/s_bitmap.o \
+ $(MESASWRASTBUILDDIR)debugger/s_blend.o \
+ $(MESASWRASTBUILDDIR)debugger/s_buffers.o \
+ $(MESASWRASTBUILDDIR)debugger/s_context.o \
+ $(MESASWRASTBUILDDIR)debugger/s_copypix.o \
+ $(MESASWRASTBUILDDIR)debugger/s_depth.o \
+ $(MESASWRASTBUILDDIR)debugger/s_drawpix.o \
+ $(MESASWRASTBUILDDIR)debugger/s_feedback.o \
+ $(MESASWRASTBUILDDIR)debugger/s_fog.o \
+ $(MESASWRASTBUILDDIR)debugger/s_histogram.o \
+ $(MESASWRASTBUILDDIR)debugger/s_imaging.o \
+ $(MESASWRASTBUILDDIR)debugger/s_lines.o \
+ $(MESASWRASTBUILDDIR)debugger/s_logic.o \
+ $(MESASWRASTBUILDDIR)debugger/s_masking.o \
+ $(MESASWRASTBUILDDIR)debugger/s_pb.o \
+ $(MESASWRASTBUILDDIR)debugger/s_pixeltex.o \
+ $(MESASWRASTBUILDDIR)debugger/s_points.o \
+ $(MESASWRASTBUILDDIR)debugger/s_readpix.o \
+ $(MESASWRASTBUILDDIR)debugger/s_scissor.o \
+ $(MESASWRASTBUILDDIR)debugger/s_span.o \
+ $(MESASWRASTBUILDDIR)debugger/s_stencil.o \
+ $(MESASWRASTBUILDDIR)debugger/s_texstore.o \
+ $(MESASWRASTBUILDDIR)debugger/s_texture.o \
+ $(MESASWRASTBUILDDIR)debugger/s_triangle.o \
+ $(MESASWRASTBUILDDIR)debugger/s_zoom.o
+
+ MESA_SWRAST_POBJS = $(MESASWRASTBUILDDIR)profiled/s_aaline.o \
+ $(MESASWRASTBUILDDIR)profiled/s_aatriangle.o \
+ $(MESASWRASTBUILDDIR)profiled/s_accum.o \
+ $(MESASWRASTBUILDDIR)profiled/s_alpha.o \
+ $(MESASWRASTBUILDDIR)profiled/s_alphabuf.o \
+ $(MESASWRASTBUILDDIR)profiled/s_bitmap.o \
+ $(MESASWRASTBUILDDIR)profiled/s_blend.o \
+ $(MESASWRASTBUILDDIR)profiled/s_buffers.o \
+ $(MESASWRASTBUILDDIR)profiled/s_context.o \
+ $(MESASWRASTBUILDDIR)profiled/s_copypix.o \
+ $(MESASWRASTBUILDDIR)profiled/s_depth.o \
+ $(MESASWRASTBUILDDIR)profiled/s_drawpix.o \
+ $(MESASWRASTBUILDDIR)profiled/s_feedback.o \
+ $(MESASWRASTBUILDDIR)profiled/s_fog.o \
+ $(MESASWRASTBUILDDIR)profiled/s_histogram.o \
+ $(MESASWRASTBUILDDIR)profiled/s_imaging.o \
+ $(MESASWRASTBUILDDIR)profiled/s_lines.o \
+ $(MESASWRASTBUILDDIR)profiled/s_logic.o \
+ $(MESASWRASTBUILDDIR)profiled/s_masking.o \
+ $(MESASWRASTBUILDDIR)profiled/s_pb.o \
+ $(MESASWRASTBUILDDIR)profiled/s_pixeltex.o \
+ $(MESASWRASTBUILDDIR)profiled/s_points.o \
+ $(MESASWRASTBUILDDIR)profiled/s_readpix.o \
+ $(MESASWRASTBUILDDIR)profiled/s_scissor.o \
+ $(MESASWRASTBUILDDIR)profiled/s_span.o \
+ $(MESASWRASTBUILDDIR)profiled/s_stencil.o \
+ $(MESASWRASTBUILDDIR)profiled/s_texstore.o \
+ $(MESASWRASTBUILDDIR)profiled/s_texture.o \
+ $(MESASWRASTBUILDDIR)profiled/s_triangle.o \
+ $(MESASWRASTBUILDDIR)profiled/s_zoom.o
+
diff --git a/xc/lib/GL/mesa/src/swrast_setup/Imakefile b/xc/lib/GL/mesa/src/swrast_setup/Imakefile
index bc362eef9..9fe6c3886 100644
--- a/xc/lib/GL/mesa/src/swrast_setup/Imakefile
+++ b/xc/lib/GL/mesa/src/swrast_setup/Imakefile
@@ -1,14 +1,18 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.6 2000/08/01 20:28:39 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/swrast_setup/Imakefile,v 1.5 2002/02/28 17:52:17 dawes Exp $
#include <Threads.tmpl>
/*
- * Only need SharedLib build unless OSMesa lib is built, or driver is built
- * in to libGL
+ * Need both shared and unshared Mesa objects in the following cases:
+ * GlxDriverUsesMesa
+ * GlxBuiltInXMesa
+ * BuildOSMesaLib
+ *
+ * In other cases, only the shared version is needed to link in to loadable
+ * driver modules.
*/
-#if BuildXF86DRI && !GlxUseSGISI && \
- (GlxUseBuiltInDRIDriver || \
- !GlxBuiltInMesa || !defined(GlxDriverUsesMesa))
+
+#if GlxDriverUsesMesa || GlxBuiltInXMesa || BuildOSMesaLib
#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
#define DoExtraLib SharedLibGlx
@@ -22,10 +26,10 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.6 2000/08/01 20:28:39 dawes E
#define DoProfileLib NO
#endif
-LinkSourceFile(ss_context.c, $(MESASRCDIR)/src/swrast_setup)
-LinkSourceFile(ss_triangle.c, $(MESASRCDIR)/src/swrast_setup)
-LinkSourceFile(ss_vb.c, $(MESASRCDIR)/src/swrast_setup)
+#define MesaSwrastSetupBuildDir /**/
+#define NeedToLinkMesaSrc
+#include "Imakefile.inc"
#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
@@ -34,23 +38,11 @@ ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#if BuildXF86DRI
DRI_DEFINES = GlxDefines
DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I../../../include \
- -I$(TOP)/include -I$(TOP)/include/GL \
- -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
+ -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
#endif
-MESA_INCLUDES = -I$(MESASRCDIR)/src \
- -I$(MESASRCDIR)/src/X86 \
- -I$(MESASRCDIR)/src/math \
- -I$(MESASRCDIR)/src/swrast_setup \
- -I$(MESASRCDIR)/src/tnl \
- -I$(MESASRCDIR)/include \
- -I../../../include
-
- INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
- SRCS = ss_context.c ss_triangle.c ss_vb.c
- OBJS = ss_context.o ss_triangle.o ss_vb.o
-
#ifdef i386Architecture
+ ASM_DIR = X86
ASM_SRCS =
ASM_OBJS =
#if MesaUseMMX
@@ -66,6 +58,7 @@ MESA_INCLUDES = -I$(MESASRCDIR)/src \
#endif
#ifdef SparcArchitecture
+ ASM_DIR = SPARC
ASM_SRCS =
ASM_OBJS =
ASM_DEFS = -DUSE_SPARC_ASM
@@ -75,7 +68,19 @@ MESA_INCLUDES = -I$(MESASRCDIR)/src \
MATHDEF = -DCCPML
#endif
+MESA_INCLUDES = -I$(MESASRCDIR)/src \
+ -I$(MESASRCDIR)/src/$(ASM_DIR) \
+ -I$(MESASRCDIR)/src/math \
+ -I$(MESASRCDIR)/src/swrast_setup \
+ -I$(MESASRCDIR)/src/tnl \
+ -I$(MESASRCDIR)/include \
+ -I../../../include -I$(XINCLUDESRC)
+
DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF)
+ INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
+ SRCS = $(MESA_SWR_SETUP_SRCS)
+ OBJS = $(MESA_SWR_SETUP_OBJS)
+
#include <Library.tmpl>
diff --git a/xc/lib/GL/mesa/src/swrast_setup/Imakefile.inc b/xc/lib/GL/mesa/src/swrast_setup/Imakefile.inc
new file mode 100644
index 000000000..f1bab9061
--- /dev/null
+++ b/xc/lib/GL/mesa/src/swrast_setup/Imakefile.inc
@@ -0,0 +1,38 @@
+XCOMM $XFree86: xc/lib/GL/mesa/src/swrast_setup/Imakefile.inc,v 1.1 2002/02/23 00:45:52 dawes Exp $
+
+#ifndef MesaSwrastSetupBuildDir
+#define MesaSwrastSetupBuildDir $(GLXLIBSRC)/mesa/src/swrast_setup/
+#endif
+
+MESASWRSETUPDIR = MesaSwrastSetupBuildDir
+
+ MESA_SWR_SETUP_SRCS = $(MESASWRSETUPDIR)ss_context.c \
+ $(MESASWRSETUPDIR)ss_triangle.c \
+ $(MESASWRSETUPDIR)ss_vb.c
+
+#ifdef NeedToLinkMesaSrc
+LinkSourceFile(ss_context.c, $(MESASRCDIR)/src/swrast_setup)
+LinkSourceFile(ss_triangle.c, $(MESASRCDIR)/src/swrast_setup)
+LinkSourceFile(ss_vb.c, $(MESASRCDIR)/src/swrast_setup)
+#endif
+
+ MESA_SWR_SETUP_OBJS = $(MESASWRSETUPDIR)ss_context.o \
+ $(MESASWRSETUPDIR)ss_triangle.o \
+ $(MESASWRSETUPDIR)ss_vb.o
+
+#if DoSharedLib
+MESA_SWR_SETUP_UOBJS = $(MESASWRSETUPDIR)unshared/ss_context.o \
+ $(MESASWRSETUPDIR)unshared/ss_triangle.o \
+ $(MESASWRSETUPDIR)unshared/ss_vb.o
+#else
+MESA_SWR_SETUP_UOBJS = $(MESA_SWR_SETUP_OBJS)
+#endif
+
+MESA_SWR_SETUP_DOBJS = $(MESASWRSETUPDIR)debugger/ss_context.o \
+ $(MESASWRSETUPDIR)debugger/ss_triangle.o \
+ $(MESASWRSETUPDIR)debugger/ss_vb.o
+
+MESA_SWR_SETUP_POBJS = $(MESASWRSETUPDIR)profiled/ss_context.o \
+ $(MESASWRSETUPDIR)profiled/ss_triangle.o \
+ $(MESASWRSETUPDIR)profiled/ss_vb.o
+
diff --git a/xc/lib/GL/mesa/src/tnl/Imakefile b/xc/lib/GL/mesa/src/tnl/Imakefile
index fe7aaca86..f3cd2ca48 100644
--- a/xc/lib/GL/mesa/src/tnl/Imakefile
+++ b/xc/lib/GL/mesa/src/tnl/Imakefile
@@ -1,14 +1,18 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.6 2000/08/01 20:28:39 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/tnl/Imakefile,v 1.5 2002/02/28 17:52:17 dawes Exp $
#include <Threads.tmpl>
/*
- * Only need SharedLib build unless OSMesa lib is built, or driver is built
- * in to libGL
+ * Need both shared and unshared Mesa objects in the following cases:
+ * GlxDriverUsesMesa
+ * GlxBuiltInXMesa
+ * BuildOSMesaLib
+ *
+ * In other cases, only the shared version is needed to link in to loadable
+ * driver modules.
*/
-#if BuildXF86DRI && !GlxUseSGISI && \
- (GlxUseBuiltInDRIDriver || \
- !GlxBuiltInMesa || !defined(GlxDriverUsesMesa))
+
+#if GlxDriverUsesMesa || GlxBuiltInXMesa || BuildOSMesaLib
#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
#define DoExtraLib SharedLibGlx
@@ -22,27 +26,10 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.6 2000/08/01 20:28:39 dawes E
#define DoProfileLib NO
#endif
-LinkSourceFile(t_array_api.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_array_import.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_context.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_eval_api.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_imm_alloc.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_imm_api.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_imm_debug.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_imm_dlist.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_imm_elt.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_imm_eval.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_imm_exec.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_imm_fixup.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_pipeline.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_vb_fog.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_vb_light.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_vb_normals.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_vb_points.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_vb_render.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_vb_texgen.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_vb_texmat.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_vb_vertex.c, $(MESASRCDIR)/src/tnl)
+
+#define MesaTnlBuildDir /**/
+#define NeedToLinkMesaSrc
+#include "Imakefile.inc"
#if Malloc0ReturnsNull
@@ -52,65 +39,11 @@ ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#if BuildXF86DRI
DRI_DEFINES = GlxDefines
DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I../../../include \
- -I$(TOP)/include -I$(TOP)/include/GL \
- -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
+ -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
#endif
-MESA_INCLUDES = -I$(MESASRCDIR)/src \
- -I$(MESASRCDIR)/src/X86 \
- -I$(MESASRCDIR)/src/array_cache \
- -I$(MESASRCDIR)/src/math \
- -I$(MESASRCDIR)/src/swrast_setup \
- -I$(MESASRCDIR)/src/tnl \
- -I$(MESASRCDIR)/include \
- -I../../../include
-
- INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
- SRCS = t_array_api.c \
- t_array_import.c \
- t_context.c \
- t_eval_api.c \
- t_imm_alloc.c \
- t_imm_api.c \
- t_imm_debug.c \
- t_imm_dlist.c \
- t_imm_elt.c \
- t_imm_eval.c \
- t_imm_exec.c \
- t_imm_fixup.c \
- t_pipeline.c \
- t_vb_fog.c \
- t_vb_light.c \
- t_vb_normals.c \
- t_vb_points.c \
- t_vb_render.c \
- t_vb_texgen.c \
- t_vb_texmat.c \
- t_vb_vertex.c
-
- OBJS = t_array_api.o \
- t_array_import.o \
- t_context.o \
- t_eval_api.o \
- t_imm_alloc.o \
- t_imm_api.o \
- t_imm_debug.o \
- t_imm_dlist.o \
- t_imm_elt.o \
- t_imm_eval.o \
- t_imm_exec.o \
- t_imm_fixup.o \
- t_pipeline.o \
- t_vb_fog.o \
- t_vb_light.o \
- t_vb_normals.o \
- t_vb_points.o \
- t_vb_render.o \
- t_vb_texgen.o \
- t_vb_texmat.o \
- t_vb_vertex.o
-
#ifdef i386Architecture
+ ASM_DIR = X86
ASM_SRCS =
ASM_OBJS =
#if MesaUseMMX
@@ -126,6 +59,7 @@ MESA_INCLUDES = -I$(MESASRCDIR)/src \
#endif
#ifdef SparcArchitecture
+ ASM_DIR = SPARC
ASM_SRCS =
ASM_OBJS =
ASM_DEFS = -DUSE_SPARC_ASM
@@ -135,7 +69,20 @@ MESA_INCLUDES = -I$(MESASRCDIR)/src \
MATHDEF = -DCCPML
#endif
+MESA_INCLUDES = -I$(MESASRCDIR)/src \
+ -I$(MESASRCDIR)/src/$(ASM_DIR) \
+ -I$(MESASRCDIR)/src/array_cache \
+ -I$(MESASRCDIR)/src/math \
+ -I$(MESASRCDIR)/src/swrast_setup \
+ -I$(MESASRCDIR)/src/tnl \
+ -I$(MESASRCDIR)/include \
+ -I../../../include -I$(XINCLUDESRC)
+
DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF)
+ INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
+ SRCS = $(MESA_TNL_SRCS)
+ OBJS = $(MESA_TNL_OBJS)
+
#include <Library.tmpl>
diff --git a/xc/lib/GL/mesa/src/tnl/Imakefile.inc b/xc/lib/GL/mesa/src/tnl/Imakefile.inc
new file mode 100644
index 000000000..87b6dafcf
--- /dev/null
+++ b/xc/lib/GL/mesa/src/tnl/Imakefile.inc
@@ -0,0 +1,146 @@
+XCOMM $XFree86: xc/lib/GL/mesa/src/tnl/Imakefile.inc,v 1.1 2002/02/23 00:45:53 dawes Exp $
+
+#ifndef MesaTnlBuildDir
+#define MesaTnlBuildDir $(GLXLIBSRC)/mesa/src/tnl/
+#endif
+
+MESATNLBUILDDIR = MesaTnlBuildDir
+
+ MESA_TNL_SRCS = $(MESATNLBUILDDIR)t_array_api.c \
+ $(MESATNLBUILDDIR)t_array_import.c \
+ $(MESATNLBUILDDIR)t_context.c \
+ $(MESATNLBUILDDIR)t_eval_api.c \
+ $(MESATNLBUILDDIR)t_imm_alloc.c \
+ $(MESATNLBUILDDIR)t_imm_api.c \
+ $(MESATNLBUILDDIR)t_imm_debug.c \
+ $(MESATNLBUILDDIR)t_imm_dlist.c \
+ $(MESATNLBUILDDIR)t_imm_elt.c \
+ $(MESATNLBUILDDIR)t_imm_eval.c \
+ $(MESATNLBUILDDIR)t_imm_exec.c \
+ $(MESATNLBUILDDIR)t_imm_fixup.c \
+ $(MESATNLBUILDDIR)t_pipeline.c \
+ $(MESATNLBUILDDIR)t_vb_fog.c \
+ $(MESATNLBUILDDIR)t_vb_light.c \
+ $(MESATNLBUILDDIR)t_vb_normals.c \
+ $(MESATNLBUILDDIR)t_vb_points.c \
+ $(MESATNLBUILDDIR)t_vb_render.c \
+ $(MESATNLBUILDDIR)t_vb_texgen.c \
+ $(MESATNLBUILDDIR)t_vb_texmat.c \
+ $(MESATNLBUILDDIR)t_vb_vertex.c
+
+#ifdef NeedToLinkMesaSrc
+LinkSourceFile(t_array_api.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_array_import.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_context.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_eval_api.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_imm_alloc.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_imm_api.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_imm_debug.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_imm_dlist.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_imm_elt.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_imm_eval.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_imm_exec.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_imm_fixup.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_pipeline.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_vb_fog.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_vb_light.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_vb_normals.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_vb_points.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_vb_render.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_vb_texgen.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_vb_texmat.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_vb_vertex.c, $(MESASRCDIR)/src/tnl)
+#endif
+
+ MESA_TNL_OBJS = $(MESATNLBUILDDIR)t_array_api.o \
+ $(MESATNLBUILDDIR)t_array_import.o \
+ $(MESATNLBUILDDIR)t_context.o \
+ $(MESATNLBUILDDIR)t_eval_api.o \
+ $(MESATNLBUILDDIR)t_imm_alloc.o \
+ $(MESATNLBUILDDIR)t_imm_api.o \
+ $(MESATNLBUILDDIR)t_imm_debug.o \
+ $(MESATNLBUILDDIR)t_imm_dlist.o \
+ $(MESATNLBUILDDIR)t_imm_elt.o \
+ $(MESATNLBUILDDIR)t_imm_eval.o \
+ $(MESATNLBUILDDIR)t_imm_exec.o \
+ $(MESATNLBUILDDIR)t_imm_fixup.o \
+ $(MESATNLBUILDDIR)t_pipeline.o \
+ $(MESATNLBUILDDIR)t_vb_fog.o \
+ $(MESATNLBUILDDIR)t_vb_light.o \
+ $(MESATNLBUILDDIR)t_vb_normals.o \
+ $(MESATNLBUILDDIR)t_vb_points.o \
+ $(MESATNLBUILDDIR)t_vb_render.o \
+ $(MESATNLBUILDDIR)t_vb_texgen.o \
+ $(MESATNLBUILDDIR)t_vb_texmat.o \
+ $(MESATNLBUILDDIR)t_vb_vertex.o
+
+#if DoSharedLib
+ MESA_TNL_UOBJS = $(MESATNLBUILDDIR)unshared/t_array_api.o \
+ $(MESATNLBUILDDIR)unshared/t_array_import.o \
+ $(MESATNLBUILDDIR)unshared/t_context.o \
+ $(MESATNLBUILDDIR)unshared/t_eval_api.o \
+ $(MESATNLBUILDDIR)unshared/t_imm_alloc.o \
+ $(MESATNLBUILDDIR)unshared/t_imm_api.o \
+ $(MESATNLBUILDDIR)unshared/t_imm_debug.o \
+ $(MESATNLBUILDDIR)unshared/t_imm_dlist.o \
+ $(MESATNLBUILDDIR)unshared/t_imm_elt.o \
+ $(MESATNLBUILDDIR)unshared/t_imm_eval.o \
+ $(MESATNLBUILDDIR)unshared/t_imm_exec.o \
+ $(MESATNLBUILDDIR)unshared/t_imm_fixup.o \
+ $(MESATNLBUILDDIR)unshared/t_pipeline.o \
+ $(MESATNLBUILDDIR)unshared/t_vb_fog.o \
+ $(MESATNLBUILDDIR)unshared/t_vb_light.o \
+ $(MESATNLBUILDDIR)unshared/t_vb_normals.o \
+ $(MESATNLBUILDDIR)unshared/t_vb_points.o \
+ $(MESATNLBUILDDIR)unshared/t_vb_render.o \
+ $(MESATNLBUILDDIR)unshared/t_vb_texgen.o \
+ $(MESATNLBUILDDIR)unshared/t_vb_texmat.o \
+ $(MESATNLBUILDDIR)unshared/t_vb_vertex.o
+#else
+ MESA_TNL_UOBJS = $(MESA_TNL_OBJS)
+#endif
+
+ MESA_TNL_DOBJS = $(MESATNLBUILDDIR)debugger/t_array_api.o \
+ $(MESATNLBUILDDIR)debugger/t_array_import.o \
+ $(MESATNLBUILDDIR)debugger/t_context.o \
+ $(MESATNLBUILDDIR)debugger/t_eval_api.o \
+ $(MESATNLBUILDDIR)debugger/t_imm_alloc.o \
+ $(MESATNLBUILDDIR)debugger/t_imm_api.o \
+ $(MESATNLBUILDDIR)debugger/t_imm_debug.o \
+ $(MESATNLBUILDDIR)debugger/t_imm_dlist.o \
+ $(MESATNLBUILDDIR)debugger/t_imm_elt.o \
+ $(MESATNLBUILDDIR)debugger/t_imm_eval.o \
+ $(MESATNLBUILDDIR)debugger/t_imm_exec.o \
+ $(MESATNLBUILDDIR)debugger/t_imm_fixup.o \
+ $(MESATNLBUILDDIR)debugger/t_pipeline.o \
+ $(MESATNLBUILDDIR)debugger/t_vb_fog.o \
+ $(MESATNLBUILDDIR)debugger/t_vb_light.o \
+ $(MESATNLBUILDDIR)debugger/t_vb_normals.o \
+ $(MESATNLBUILDDIR)debugger/t_vb_points.o \
+ $(MESATNLBUILDDIR)debugger/t_vb_render.o \
+ $(MESATNLBUILDDIR)debugger/t_vb_texgen.o \
+ $(MESATNLBUILDDIR)debugger/t_vb_texmat.o \
+ $(MESATNLBUILDDIR)debugger/t_vb_vertex.o
+
+ MESA_TNL_POBJS = $(MESATNLBUILDDIR)profiled/t_array_api.o \
+ $(MESATNLBUILDDIR)profiled/t_array_import.o \
+ $(MESATNLBUILDDIR)profiled/t_context.o \
+ $(MESATNLBUILDDIR)profiled/t_eval_api.o \
+ $(MESATNLBUILDDIR)profiled/t_imm_alloc.o \
+ $(MESATNLBUILDDIR)profiled/t_imm_api.o \
+ $(MESATNLBUILDDIR)profiled/t_imm_profiled.o \
+ $(MESATNLBUILDDIR)profiled/t_imm_dlist.o \
+ $(MESATNLBUILDDIR)profiled/t_imm_elt.o \
+ $(MESATNLBUILDDIR)profiled/t_imm_eval.o \
+ $(MESATNLBUILDDIR)profiled/t_imm_exec.o \
+ $(MESATNLBUILDDIR)profiled/t_imm_fixup.o \
+ $(MESATNLBUILDDIR)profiled/t_pipeline.o \
+ $(MESATNLBUILDDIR)profiled/t_vb_fog.o \
+ $(MESATNLBUILDDIR)profiled/t_vb_light.o \
+ $(MESATNLBUILDDIR)profiled/t_vb_normals.o \
+ $(MESATNLBUILDDIR)profiled/t_vb_points.o \
+ $(MESATNLBUILDDIR)profiled/t_vb_render.o \
+ $(MESATNLBUILDDIR)profiled/t_vb_texgen.o \
+ $(MESATNLBUILDDIR)profiled/t_vb_texmat.o \
+ $(MESATNLBUILDDIR)profiled/t_vb_vertex.o
+
diff --git a/xc/lib/GL/mesa/src/tnl_dd/Imakefile b/xc/lib/GL/mesa/src/tnl_dd/Imakefile
index 56740b16d..b0143b3a7 100644
--- a/xc/lib/GL/mesa/src/tnl_dd/Imakefile
+++ b/xc/lib/GL/mesa/src/tnl_dd/Imakefile
@@ -1,14 +1,18 @@
-XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.6 2000/08/01 20:28:39 dawes Exp $
+XCOMM $XFree86: xc/lib/GL/mesa/src/tnl_dd/Imakefile,v 1.4 2002/02/28 17:52:17 dawes Exp $
#include <Threads.tmpl>
/*
- * Only need SharedLib build unless OSMesa lib is built, or driver is built
- * in to libGL
+ * Need both shared and unshared Mesa objects in the following cases:
+ * GlxDriverUsesMesa
+ * GlxBuiltInXMesa
+ * BuildOSMesaLib
+ *
+ * In other cases, only the shared version is needed to link in to loadable
+ * driver modules.
*/
-#if BuildXF86DRI && !GlxUseSGISI && \
- (GlxUseBuiltInDRIDriver || \
- !GlxBuiltInMesa || !defined(GlxDriverUsesMesa))
+
+#if GlxDriverUsesMesa || GlxBuiltInXMesa || BuildOSMesaLib
#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
#define DoExtraLib SharedLibGlx
@@ -22,10 +26,10 @@ XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.6 2000/08/01 20:28:39 dawes E
#define DoProfileLib NO
#endif
-LinkSourceFile(t_array_api.c, $(MESASRCDIR)/src/tnl)
-LinkSourceFile(t_dd.c, $(MESASRCDIR)/src/tnl_dd)
-LinkSourceFile(t_dd_vb.c, $(MESASRCDIR)/src/tnl_dd)
+#define MesaTnlDdBuildDir /**/
+#define NeedToLinkMesaSrc
+#include "Imakefile.inc"
#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
@@ -34,7 +38,7 @@ ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#if BuildXF86DRI
DRI_DEFINES = GlxDefines
DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I../../../include \
- -I$(TOP)/include -I$(TOP)/include/GL \
+ -I$(XINCLUDESRC) -I$(INCLUDESRC)/GL \
-I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri
#endif
@@ -45,9 +49,8 @@ MESA_INCLUDES = -I$(MESASRCDIR)/src \
-I../../../include
INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES)
- SRCS =
-
- OBJS =
+ SRCS = $(MESA_TNL_DD_SRCS)
+ OBJS = $(MESA_TNL_DD_OBJS)
#ifdef i386Architecture
ASM_SRCS =
diff --git a/xc/lib/GL/mesa/src/tnl_dd/Imakefile.inc b/xc/lib/GL/mesa/src/tnl_dd/Imakefile.inc
new file mode 100644
index 000000000..e6af80713
--- /dev/null
+++ b/xc/lib/GL/mesa/src/tnl_dd/Imakefile.inc
@@ -0,0 +1,38 @@
+XCOMM $XFree86: xc/lib/GL/mesa/src/tnl_dd/Imakefile.inc,v 1.1 2002/02/23 00:45:53 dawes Exp $
+
+#ifndef MesaTnlDdBuildDir
+#define MesaTnlDdBuildDir $(GLXLIBSRC)/mesa/src/tnl_dd/
+#endif
+
+MESATNLDDBUILDDIR = MesaTnlDdBuildDir
+
+ MESA_TNL_DD_SRCS = $(MESATNLDDBUILDDIR)t_array_api.c \
+ $(MESATNLDDBUILDDIR)t_dd.c \
+ $(MESATNLDDBUILDDIR)t_dd_vb.c
+
+#ifdef NeedToLinkMesaSrc
+LinkSourceFile(t_array_api.c, $(MESASRCDIR)/src/tnl)
+LinkSourceFile(t_dd.c, $(MESASRCDIR)/src/tnl_dd)
+LinkSourceFile(t_dd_vb.c, $(MESASRCDIR)/src/tnl_dd)
+#endif
+
+ MESA_TNL_DD_OBJS = $(MESATNLDDBUILDDIR)t_array_api.o \
+ $(MESATNLDDBUILDDIR)t_dd.o \
+ $(MESATNLDDBUILDDIR)t_dd_vb.o
+
+#if DoSharedLib
+MESA_TNL_DD_UOBJS = $(MESATNLDDBUILDDIR)unshared/t_array_api.o \
+ $(MESATNLDDBUILDDIR)unshared/t_dd.o \
+ $(MESATNLDDBUILDDIR)unshared/t_dd_vb.o
+#else
+MESA_TNL_DD_UOBJS = $(MESA_TNL_DD_OBJS)
+#endif
+
+MESA_TNL_DD_DOBJS = $(MESATNLDDBUILDDIR)debugger/t_array_api.o \
+ $(MESATNLDDBUILDDIR)debugger/t_dd.o \
+ $(MESATNLDDBUILDDIR)debugger/t_dd_vb.o
+
+MESA_TNL_DD_POBJS = $(MESATNLDDBUILDDIR)profiled/t_array_api.o \
+ $(MESATNLDDBUILDDIR)profiled/t_dd.o \
+ $(MESATNLDDBUILDDIR)profiled/t_dd_vb.o
+