Imakefile   [plain text]


XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/Imakefile,v 1.14 2003/05/08 09:25:36 herrb 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

#ifdef BuildXF86OldDRMCompat
DRMCOMPATSRC = 	xf86drmCompat.c
DRMCOMPATOBJ = 	xf86drmCompat.o
#endif

 SRCS = xf86drm.c \
	xf86drmHash.c \
	xf86drmRandom.c \
	xf86drmSL.c \
	$(DRMCOMPATSRC) \
	$(MSRC)

 OBJS = xf86drm.o \
	xf86drmHash.o \
	xf86drmRandom.o \
	xf86drmSL.o \
	$(DRMCOMPATOBJ) \
	$(MOBJ)

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

DEFINES = $(MTRR_DEFINES) $(GLX_DEFINES)

#if DoLoadableServer

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

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

#else

SubdirLibraryRule($(OBJS))
NormalLibraryObjectRule()

#endif


#define IHaveSubdirs
SUBDIRS = kernel

DependTarget()

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



InstallDriverSDKLibraryModule(drm,$(DRIVERSDKMODULEDIR),linux)