XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/input/Imakefile,v 1.14 2000/03/05 19:26:46 dawes Exp $

#define IHaveModules
#include <Server.tmpl>
#define IHaveSubdirs

#if JoystickSupport
JOYSTICKDIR = joystick
#endif

/*
 * The keyboard directory only has a man page so far!  The driver is
 * still built in to the common layer.
 */
KBDDIR = keyboard

SUBDIRS = XInputDrivers $(JOYSTICKDIR) $(KBDDIR)
DRIVERS = XInputDrivers

#ifndef OS2Architecture
OBJS = `cat idriver.list`
#else
OBJS = ??
#endif

#if DoLoadableServer
MakeSubdirs($(SUBDIRS))
#endif

#if MakeHasPosixVariableSubstitutions
DONES = $(DRIVERS:%=%/DONE)
#if HasGnuMake || HasBsdMake
$(DONES): $(SUBDIRS)
#endif
#if !DoLoadableServer
NormalDepLibraryTarget(idriver,$(SUBDIRS) $(DONES) idriver.list,$(OBJS))
#endif
#else
#if !DoLoadableServer
NormalDepLibraryTarget(idriver,$(SUBDIRS) idriver.list,$(OBJS))
#endif
#endif

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

#if !DoLoadableServer
ConfigTargetNoDepend(drvConf,$(ICONFIGFILES),confdrv.SHsuf,$(DRIVERS))
DriverObjectList($(DRIVERS),idriver.list)
#endif

NormalLibraryObjectRule()

ForceSubdirs($(SUBDIRS))

DependSubdirs($(SUBDIRS))

