XCOMM $XFree86: xc/programs/Xserver/GL/mesa/src/Imakefile,v 1.18 2001/04/26 16:54:47 dawes Exp $

#define IHaveModules
#include <Server.tmpl>

#define IHaveSubdirs

      SUBDIRS = X

#define NeedAllMesaSrc
#define NeedToLinkMesaSrc
#define MesaBuildDir /**/

#include "../../../../../lib/GL/mesa/src/Imakefile.inc"

#if DoLoadableServer
        MSRCS = GLcoremodule.c
        MOBJS = GLcoremodule.o

        XOBJS = X/?*.o
#endif

         SRCS = $(COREMESASRCS) $(MSRCS)
         OBJS = $(COREMESAOBJS) $(MOBJS)

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

      DEFINES = $(GLX_DEFINES)

#if DoLoadableServer
        DONES = X/DONE

#if HasParallelMake
MakeMutex($(SUBDIRS) $(OBJS) $(DONES))
#endif

ModuleObjectRule()

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

#else
MakeSubdirs($(SUBDIRS))
NormalLibraryTarget(GLcore,$(OBJS))
NormalLibraryObjectRule()
#endif

DependTarget()

InstallDriverSDKLibraryModule(GLcore,$(DRIVERSDKMODULEDIR),extensions)

DependSubdirs($(SUBDIRS))
MakeLintLibSubdirs($(SUBDIRS))
LintSubdirs($(SUBDIRS))
