XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/Imakefile,v 1.5 2000/02/23 04:47:22 martin Exp $

#define IHaveModules
#include <Server.tmpl>

#if DoLoadableServer
MSRC = drmmodule.c
MOBJ = drmmodule.o
#endif

#if BuildXF86DRI
#if HasMTRRSupport
MTRR_DEFINES = -DHAS_MTRR_SUPPORT
#endif

SRCS = xf86drm.c xf86drmHash.c xf86drmRandom.c xf86drmSL.c xf86drmI810.c xf86drmMga.c $(MSRC)
OBJS = xf86drm.o xf86drmHash.o xf86drmRandom.o xf86drmSL.o xf86drmI810.o xf86drmMga.o $(MOBJ)

INCLUDES = -I$(XF86COMSRC) -I$(XF86OSSRC) -I. -I$(SERVERSRC)/include \
           -I$(XINCLUDESRC) -I$(EXTINCSRC) -I../.. -Ikernel

DEFINES = $(MTRR_DEFINES) $(GLX_DEFINES)

ModuleObjectRule()
LibraryModuleTarget(drm,$(OBJS))
NormalLintTarget($(SRCS))

#ifdef LinuxArchitecture
InstallLibraryModule(drm,$(MODULEDIR),linux)
#endif

#define IHaveSubdirs
SUBDIRS = kernel

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



InstallDriverSDKLibraryModule(drm,$(DRIVERSDKMODULEDIR),linux)
