#include <Server.tmpl>

#define NeedAllMesaSrc
#define MesaInXServer
#define MesaBuildDir ../main/
#define MesaACBuildDir ../array_cache/
#define MesaMathBuildDir ../math/
#define MesaSwrastBuildDir ../swrast/
#define MesaSwrastSetupBuildDir ../swrast_setup/
#define MesaTnlBuildDir ../tnl/
#define MesaShaderBuildDir ../shader/
#define MesaGrammarBuildDir ../shader/grammar/
#define MesaSlangBuildDir ../shader/slang/
#define MesaXBuildDir ../X/

#include "../array_cache/Imakefile.inc"
#include "../swrast/Imakefile.inc"
#include "../swrast_setup/Imakefile.inc"
#include "../tnl/Imakefile.inc"
#include "../main/Imakefile.inc"
#include "../math/Imakefile.inc"
#include "../shader/Imakefile.inc"
#include "../shader/grammar/Imakefile.inc"
#include "../shader/slang/Imakefile.inc"
#include "../X/Imakefile.inc"
#include "../Imakefile.inc"

        XOBJS = ../X/?*.o

         OBJS = $(COREMESAOBJS) $(MOBJS)

        DONES = ../main/DONE ../X/DONE ../array_cache/DONE \
		../math/DONE ../swrast/DONE ../swrast_setup/DONE \
		../tnl/DONE ../shader/DONE ../shader/grammar/DONE \
                ../shader/slang/DONE

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

      DEFINES = $(GLX_DEFINES)

NormalDepLibraryTarget(GLcore, $(DONES) $(OBJS), $(OBJS) $(XOBJS))
NormalLibraryObjectRule()

InstallDriverSDKLibraryModule(GLcore,$(DRIVERSDKMODULEDIR),extensions)

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