summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/xfree86/input/Imakefile
blob: dfb07174b2f4cb452551d0c8c3a293b60e1973cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/input/Imakefile,v 1.13 2000/03/03 01:05:47 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))