aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/xkb/Imakefile
blob: 21d631acd62d361f3970d02fe177f6d71947c141 (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
58
59
60
61
62
63
64
65
66
67
68
69
#define SGIHyperOpt
#include <Server.tmpl>

#if BuildXInputExt
XKBXI_SRCS = xkbPrOtherEv.c
XKBXI_OBJS = xkbPrOtherEv.o
#endif

#ifdef DfltDisableXKB
XKB_DISABLE = -DXKB_DFLT_DISABLED=1
#else
XKB_DISABLE = -DXKB_DFLT_DISABLED=0
#endif

XKB_DDXDEFS = XkbServerDefines

#if defined(NXAgentServer) && NXAgentServer
 NX_DEFINES = -DNXAGENT_SERVER
#endif

 DDX_SRCS = ddxBeep.c ddxCtrls.c ddxFakeBtn.c ddxFakeMtn.c ddxInit.c \
	    ddxKeyClick.c ddxKillSrv.c ddxLEDs.c ddxVT.c ddxLoad.c \
	    ddxList.c ddxDevBtn.c ddxPrivate.c
 DDX_OBJS = ddxBeep.o ddxCtrls.o ddxFakeBtn.o ddxFakeMtn.o ddxInit.o \
	    ddxKeyClick.o ddxKillSrv.o ddxLEDs.o ddxVT.o ddxLoad.o \
	    ddxList.o ddxDevBtn.o ddxPrivate.o
     SRCS = xkb.c xkbUtils.c xkbEvents.c xkbAccessX.c xkbSwap.c \
            xkbLEDs.c xkbInit.c xkbActions.c xkbPrKeyEv.c \
	    xkmread.c xkbtext.c xkbfmisc.c xkberrs.c maprules.c \
	    XKBMisc.c XKBMAlloc.c XKBAlloc.c XKBGAlloc.c xkbout.c \
	    $(XKBXI_SRCS) $(DDX_SRCS)
     OBJS = xkb.o xkbUtils.o xkbEvents.o xkbAccessX.o xkbSwap.o \
            xkbLEDs.o xkbInit.o xkbActions.o xkbPrKeyEv.o \
	    xkmread.o xkbtext.o xkbfmisc.o xkberrs.o maprules.o \
	    XKBMisc.o XKBMAlloc.o XKBAlloc.o XKBGAlloc.o xkbout.o \
	    $(XKBXI_OBJS) $(DDX_OBJS)
   INCLUDES = -I../include -I$(XINCLUDESRC) -I$(EXTINCSRC) -I$(SERVERSRC)/Xext \
	      -I$(SERVERSRC)/mi $(XF86INCLUDES) \
	      `pkg-config --cflags-only-I pixman-1`
   LINTLIBS = ../dix/llib-ldix.ln ../os/llib-los.ln

DEFINES = $(XKB_DDXDEFS) $(NX_DEFINES)
XKB_DEFINES = -DXKB_BASE_DIRECTORY=\"$(LIBDIR)/xkb\" $(XKB_DISABLE)

NormalLibraryObjectRule()
NormalLibraryTarget(xkb,$(OBJS))
LintLibraryTarget(xkb,$(SRCS))
NormalLintTarget($(SRCS))

SpecialCObjectRule(xkbInit,$(ICONFIGFILES),$(XKB_DEFINES))

#if BuildLibraries
#if UseConfDirForXkb
LinkConfDirectory(xkb,.,xkb,.)
ODIR = $(CONFDIR)
#else
ODIR = $(LIBDIR)
#endif
#ifdef VarDbDirectory
NDIR = $(VARDBDIR)
#else
NDIR = $(CONFDIR)
#endif
#if !UseConfDirForXkb || defined(VarDbDirectory)
LinkConfDirectoryLong(xkb,xkb,compiled,compiled,$(ODIR),$(NDIR))
#endif
#endif

DependTarget()