XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/drivers/newport/Imakefile,v 1.5 2002/12/10 04:03:00 dawes Exp $

#define IHaveModules
#include <Server.tmpl>

SRCS = newport_driver.c newport_regs.c newport_cmap.c newport_shadow.c newport_cursor.c

OBJS = newport_driver.o newport_regs.o newport_cmap.o newport_shadow.o newport_cursor.o

XF86CONFIG = XF86Config.indy

#if defined(XF86DriverSDK)
INCLUDES = -I. -I../../include
#else
INCLUDES = -I. \
	   -I$(XF86COMSRC) -I$(XF86OSSRC) \
	   -I$(SERVERSRC)/mi -I$(SERVERSRC)/fb \
	   -I$(XF86SRC)/shadowfb \
	   -I$(XF86SRC)/xaa -I$(XF86SRC)/ramdac \
	   -I$(EXTINCSRC) -I$(SERVERSRC)/Xext -I$(SERVERSRC)/render \
	   -I$(SERVERSRC)/include -I$(FONTINCSRC) -I$(XINCLUDESRC)
#endif

#if MakeHasPosixVariableSubstitutions
SubdirLibraryRule($(OBJS))
#endif

ModuleObjectRule()

ObjectModuleTarget(newport,$(OBJS))

InstallObjectModule(newport,$(MODULEDIR),drivers)
InstallNamedNonExec($(XF86CONFIG),$(XF86CONFIG),$(LIBDIR))

#if !defined(XF86DriverSDK)
InstallModuleManPage(newport)
#endif

DependTarget()

InstallDriverSDKNonExecFile(Imakefile,$(DRIVERSDKDIR)/drivers/newport)
InstallDriverSDKNonExecFile(newport_driver.c,$(DRIVERSDKDIR)/drivers/newport)
InstallDriverSDKNonExecFile(newport_regs.c,$(DRIVERSDKDIR)/drivers/newport)
InstallDriverSDKNonExecFile(newport_cmap.c,$(DRIVERSDKDIR)/drivers/newport)
InstallDriverSDKNonExecFile(newport_shadow.c,$(DRIVERSDKDIR)/drivers/newport)
InstallDriverSDKNonExecFile(newport_regs.h,$(DRIVERSDKDIR)/drivers/newport)
InstallDriverSDKNonExecFile(newport.h,$(DRIVERSDKDIR)/drivers/newport)

InstallDriverSDKObjectModule(newport,$(DRIVERSDKMODULEDIR),drivers)

