XCOMM $XFree86: xc/programs/Xserver/GL/mesa/GLcore/Imakefile,v 1.4 2002/06/02 01:21:13 dawes Exp $

#if DoLoadableServer
#if !BuildModuleInSubdir
#define IHaveModules
#elif !defined(IHaveModules)
#define IHaveSubdirs
SUBDIRS = module
#endif
#endif

#include <Server.tmpl>

#define NeedAllMesaSrc
#define MesaInXServer
#define MesaBuildDir ../src/
#define MesaACBuildDir ../src/array_cache/
#define MesaMathBuildDir ../src/math/
#define MesaSwrastBuildDir ../src/swrast/
#define MesaSwrastSetupBuildDir ../src/swrast_setup/
#define MesaTnlBuildDir ../src/tnl/
#define MesaXBuildDir ../src/X/

#include "../../../../../lib/GL/mesa/src/array_cache/Imakefile.inc"
#include "../../../../../lib/GL/mesa/src/swrast/Imakefile.inc"
#include "../../../../../lib/GL/mesa/src/swrast_setup/Imakefile.inc"
#include "../../../../../lib/GL/mesa/src/tnl/Imakefile.inc"
#include "../../../../../lib/GL/mesa/src/math/Imakefile.inc"
#include "../../../../../lib/GL/mesa/src/X/Imakefile.inc"
#include "../../../../../lib/GL/mesa/src/Imakefile.inc"

#ifdef IHaveModules
        MSRCS = GLcoremodule.c
        MOBJS = GLcoremodule.o
#endif

        XOBJS = ../src/X/?*.o

         OBJS = $(COREMESAOBJS) $(MOBJS)

        DONES = ../src/DONE ../src/X/DONE ../src/array_cache/DONE \
		../src/math/DONE ../src/swrast/DONE ../src/swrast_setup/DONE \
		../src/tnl/DONE

     INCLUDES = -I$(INCLUDESRC) -I$(XINCLUDESRC) -I$(EXTINCSRC) \
		-I$(MESASRCDIR)/include -I$(GLXLIBSRC)/include \
		-I$(MESASRCDIR)/src \
		-I$(SERVERSRC)/include

      DEFINES = $(GLX_DEFINES)

#ifdef IHaveModules
ModuleObjectRule()

DepLibraryModuleTarget(GLcore, $(DONES) $(OBJS),$(OBJS) $(XOBJS))
InstallLibraryModule(GLcore,$(MODULEDIR),extensions)

#else
NormalDepLibraryTarget(GLcore, $(DONES) $(OBJS), $(OBJS) $(XOBJS))
NormalLibraryObjectRule()
#endif

InstallDriverSDKLibraryModule(GLcore,$(DRIVERSDKMODULEDIR),extensions)

#ifdef IHaveSubdirs
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
#endif

