XCOMM $XFree86: xc/programs/Xserver/GL/mesa/src/X/Imakefile,v 1.11 2002/01/10 21:51:47 tsi Exp $

#define IHaveModules
#include <Server.tmpl>

LinkSourceFile(xmesa1.c,$(MESASRCDIR)/src/X)
LinkSourceFile(xmesa2.c,$(MESASRCDIR)/src/X)
LinkSourceFile(xmesa3.c,$(MESASRCDIR)/src/X)
LinkSourceFile(xmesa4.c,$(MESASRCDIR)/src/X)

LinkSourceFile(compsize.c,$(LIBSRC)/GL/glx)

  DRIVER_SRCS = xmesa1.c xmesa2.c xmesa3.c xmesa4.c
  DRIVER_OBJS = xmesa1.o xmesa2.o xmesa3.o xmesa4.o

#ifndef XFree86Version

/* This appears to be the quickest way to build a non-XFree86 server */
GLXSRV_DEFINES = -DXFree86Server

#endif

     GLX_SRCS = xf86glx.c xf86glx_util.c compsize.c
     GLX_OBJS = xf86glx.o xf86glx_util.o compsize.o

         SRCS = $(DRIVER_SRCS) $(GLX_SRCS)
         OBJS = $(DRIVER_OBJS) $(GLX_OBJS)

     INCLUDES = -I. -I$(INCLUDESRC) -I$(XINCLUDESRC) -I$(EXTINCSRC) \
		-I$(MESASRCDIR)/src -I$(MESASRCDIR)/src/X \
		-I$(MESASRCDIR)/include \
		-I$(LIBSRC)/GL/glx -I$(LIBSRC)/GL/include \
		-I$(SERVERSRC)/include -I$(SERVERSRC)/GL/include \
		-I$(SERVERSRC)/GL/glx

      DEFINES = $(GLX_DEFINES) $(GLXSRV_DEFINES) /*-DUSE_X86_ASM*/

#if DoLoadableServer
ModuleObjectRule()
SubdirLibraryRule($(OBJS))
#else
NormalLibraryTarget(GLcoreX,$(OBJS))
NormalLibraryObjectRule()
#endif

LintLibraryTarget(dri,$(SRCS))
NormalLintTarget($(SRCS))

DependTarget()
