aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/dix/Imakefile
blob: 3e71898b69662323df6fe17909035e8c58d271f2 (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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:48:16 cpqbld Exp $
XCOMM $XFree86: xc/programs/Xserver/dix/Imakefile,v 3.17 2003/04/15 18:30:43 alanh Exp $

NULL =

#include <Server.tmpl>

XPSRC = xpstubs.c
XPOBJ = xpstubs.o

#if !HasFfs
FFS_SRC = ffs.c
FFS_OBJ = ffs.o
#endif

#if (!(defined(NXAgentServer) && NXAgentServer))
NXAGENT_SKIP_SRCS =                  \
                    events.c         \
                    extension.c      \
                    glyphcurs.c      \
                    resource.c       \
                    window.c         \
                    $(NULL)
NXAGENT_SKIP_OBJS =                  \
                    events.o         \
                    extension.o      \
                    glyphcurs.o      \
                    resource.o       \
                    window.o         \
                    $(NULL)
#endif


SRCS =                          \
       atom.c                   \
       colormap.c               \
       cursor.c                 \
       devices.c                \
       dispatch.c               \
       dixutils.c               \
       gc.c                     \
       globals.c                \
       grabs.c                  \
       main.c                   \
       property.c               \
       region.c                 \
       swaprep.c                \
       swapreq.c                \
       tables.c                 \
       initatoms.c              \
       dixfonts.c               \
       privates.c               \
       pixmap.c                 \
       $(NXAGENT_SKIP_SRCS)     \
       $(FFS_SRC)               \
       $(NULL)

OBJS =                          \
       atom.o                   \
       colormap.o               \
       cursor.o                 \
       devices.o                \
       dispatch.o               \
       dixutils.o               \
       gc.o                     \
       globals.o                \
       grabs.o                  \
       main.o                   \
       property.o               \
       region.o                 \
       swaprep.o                \
       swapreq.o                \
       tables.o                 \
       initatoms.o              \
       dixfonts.o               \
       privates.o               \
       pixmap.o                 \
       $(NXAGENT_SKIP_OBJS)     \
       $(FFS_OBJ)               \
       $(NULL)

    INCLUDES = -I../include \
               -I$(XINCLUDESRC) \
               -I$(EXTINCSRC) \
               -I$(SERVERSRC)/Xext \
               -I$(SERVERSRC)/lbx \
               `pkg-config --cflags-only-I pixman-1` \
               $(NULL)

    LINTLIBS = ../os/llib-los.ln

/*
 * The following configuration parameters may be set in the appropriate
 * .macros files or site.def in the directory util/imake.includes/:
 *
 *     DefaultFontPath                COMPILEDDEFAULTFONTPATH
 *     DefaultRGBDatabase             RGB_DB
 *
 * The sample util/imake.includes/Imake.tmpl will provide generic defaults.
 * The values in site.h are simply a last line of defense and should not be
 * changed.
 */

#ifdef DefaultFontPath
DEFAULTFONTPATH = DefaultFontPath
SITE_FONT_PATH = -DCOMPILEDDEFAULTFONTPATH=\"$(DEFAULTFONTPATH)\"
#endif

#ifdef DefaultRGBDatabase
DEFAULTRGBDATABASE = DefaultRGBDatabase
   SITE_RGB_DB = -DRGB_DB=\"$(DEFAULTRGBDATABASE)\"
#endif

#ifdef DefaultDisplayClass
DEFAULTDISPLAYCLASS = DefaultDisplayClass
   SITE_DISPLAY_CLASS = -DCOMPILEDDISPLAYCLASS=\"$(DEFAULTDISPLAYCLASS)\"
#endif

#ifdef XVendorString
VENDORSTRING = XVendorString
   VENDOR_STRING = -DVENDOR_STRING=\"$(VENDORSTRING)\"
#endif

#ifdef XVendorRelease
VENDORRELEASE = XVendorRelease
   VENDOR_RELEASE = -DVENDOR_RELEASE="$(VENDORRELEASE)"
#endif

#if HasKrb5
         K5DEFS = Krb5Defines
#endif

#ifdef DarwinArchitecture
#if DarwinQuartzSupport
    QUARTZ_DEFINES = -DDARWIN_WITH_QUARTZ
#endif
#endif

SITE_DEFINES = $(SITE_FONT_PATH) $(SITE_RGB_DB) $(SITE_DISPLAY_CLASS)

VENDOR_DEFINES = $(VENDOR_STRING) $(VENDOR_RELEASE) $(QUARTZ_DEFINES)

NormalLibraryObjectRule()
NormalLibraryTarget(dix,$(OBJS))
LintLibraryTarget(dix,$(SRCS) $(XPSRC))
NormalLintTarget($(SRCS) $(XPSRC))

SpecialCObjectRule(globals,$(ICONFIGFILES),$(SITE_DEFINES))
SpecialCObjectRule(tables,$(ICONFIGFILES),$(K5DEFS))
SpecialCObjectRule(dispatch,$(ICONFIGFILES),$(K5DEFS))
SpecialCObjectRule(main,$(ICONFIGFILES),$(VENDOR_DEFINES))
SpecialCObjectRule(pixmap,$(ICONFIGFILES),$(_NOOP_))
SpecialCObjectRule(privates,$(ICONFIGFILES),$(_NOOP_))
SpecialCObjectRule(window,$(ICONFIGFILES),$(QUARTZ_DEFINES))

NormalLibraryTarget(xpstubs,$(XPOBJ))

DependTarget()