XCOMM $XFree86: xc/lib/GL/mesa/sparc/Imakefile,v 1.3 2004/04/23 20:50:23 tsi Exp $

/*
 * 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 BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa))
#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
#define DoExtraLib ExtraLibGlx
#define DoDebugLib DebugLibGlx
#define DoProfileLib ProfileLibGlx
#else
#define DoNormalLib SharedLibGlxWithoutPIC
#define DoSharedLib !SharedLibGlxWithoutPIC
#define DoExtraLib NO
#define DoDebugLib NO
#define DoProfileLib NO
#endif


#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#endif

#define MesaSPARCBuildDir /**/
#define NeedToLinkMesaSrc
#include "Imakefile.inc"

      DEFINES = $(ALLOC_DEFINES) GlxDefines $(MESA_ASM_DEFINES)
     INCLUDES = -I$(INCLUDESRC) -I$(EXTINCSRC) \
		-I$(MESASRCDIR)/src/mesa/sparc \
		-I$(MESASRCDIR)/src/mesa \
		-I$(MESASRCDIR)/src/mesa/glapi \
		-I$(MESASRCDIR)/src/mesa/main \
		-I$(MESASRCDIR)/include

         SRCS = $(MESA_ASM_SRCS)
         OBJS = $(MESA_ASM_OBJS)

#include <Library.tmpl>

LibraryObjectRule()

STD_CPP_DEFINES = StandardDefines $(PROJECT_DEFINES)

AllTarget($(OBJS))
NormalLintTarget($(SRCS))

#if 0
ObjectFromAsmSource(xform, NullParameter)
ObjectFromAsmSource(clip, NullParameter)
ObjectFromAsmSource(norm, NullParameter)
#endif

DependTarget()
