aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/xkb/Imakefile
blob: 1417cbc3faa08b7f71dd2076f8495245c4190261 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#define SGIHyperOpt
#include <Server.tmpl>

#ifdef SGIArchitecture
EXTRA_ALLOC_DEFINES = -DFORCE_ALLOCA
#endif

#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

#if (defined(XorgServer) && XorgServer)
XF86INCLUDES = -I$(XF86COMSRC) -I$(XF86OSSRC)
   XF86_OBJS = xf86KillSrv.o xf86VT.o xf86Private.o
#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 ddxConfig.c ddxDevBtn.c ddxPrivate.c xkbconfig.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 ddxConfig.o ddxDevBtn.o ddxPrivate.o xkbconfig.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 xkbout.c maprules.c \
	    XKBMisc.c XKBMAlloc.c XKBAlloc.c XKBGAlloc.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 xkbout.o maprules.o \
	    XKBMisc.o XKBMAlloc.o XKBAlloc.o XKBGAlloc.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 = $(EXTRA_ALLOC_DEFINES) $(XKB_DDXDEFS) $(NX_DEFINES)
XKB_DEFINES = -DXKB_BASE_DIRECTORY=\"$(LIBDIR)/xkb\" $(XKB_DISABLE)

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

#if (defined(XorgServer) && XorgServer)
ObjectFromSpecialSource(xf86KillSrv,ddxKillSrv,-DXF86DDXACTIONS)
ObjectFromSpecialSource(xf86VT,ddxVT,-DXF86DDXACTIONS)
ObjectFromSpecialSource(xf86Private,ddxPrivate,-DXF86DDXACTIONS)
AllTarget($(XF86_OBJS))
#endif

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

LinkSourceFile(modinit.h,../Xext/extmod)

#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()