aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Imakefile
blob: e9e076e0ab2e04d0e8ef63dea408873e51162ddd (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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
#include <Server.tmpl>


NULL =

SUBDIRS = compext \
          $(NULL)

SRCS =  \
	NXwindow.c \
	NXevents.c \
	NXproperty.c \
	NXdixfonts.c \
	NXglyphcurs.c \
	NXdispatch.c \
	NXrender.c \
	NXglyph.c \
	NXpicture.c \
	NXextension.c \
	NXshm.c \
        NXglxext.c \
        NXxvdisp.c \
        NXmiexpose.c \
        NXresource.c \
	NXdamage.c \
	NXmitrap.c \
	Args.c \
	Binder.c \
	BitmapUtils.c \
	Colormap.c \
	Cursor.c \
	Dialog.c \
	Display.c \
	Events.c \
	Font.c \
	GC.c \
	GCOps.c \
	Millis.c \
	Handlers.c \
	Init.c \
	Keyboard.c \
	Keystroke.c \
	Pointer.c \
	Screen.c \
	TestExt.c \
	Visual.c \
	Drawable.c \
	Window.c \
	Pixmap.c \
	Render.c \
	Client.c \
	Rootless.c \
	Extensions.c \
	Options.c \
	Clipboard.c \
	Splash.c \
	Split.c \
	Holder.c \
        Reconnect.c \
	Error.c \
	Atoms.c \
	Trap.c \
	Image.c \
	Composite.c \
	Pixels.c \
	stubs.c \
	xpstubs.c \
	miinitext.c \
	$(NULL)

OBJS =  \
	NXwindow.o \
	NXevents.o \
	NXproperty.o \
	NXdixfonts.o \
	NXglyphcurs.o \
	NXdispatch.o \
	NXrender.o \
	NXglyph.o \
	NXpicture.o \
	NXextension.o \
	NXshm.o \
        NXglxext.o \
        NXxvdisp.o \
        NXmiexpose.o \
        NXresource.o \
	NXdamage.o \
	NXmitrap.o \
	Args.o \
	Binder.o \
	BitmapUtils.o \
	Colormap.o \
	Cursor.o \
	Dialog.o \
	Display.o \
	Events.o \
	Font.o \
	GC.o \
	GCOps.o \
	Millis.o \
	Handlers.o \
	Init.o \
	Keyboard.o \
	Keystroke.o \
	Pointer.o \
	Screen.o \
	TestExt.o \
	Visual.o \
	Drawable.o \
	Window.o \
	Pixmap.o \
	Render.o \
	Client.o \
	Rootless.o \
	Extensions.o \
	Options.o \
	Clipboard.o \
	Splash.o \
	Split.o \
	Holder.o \
	Reconnect.o \
	Error.o \
	Atoms.o \
	Trap.o \
	Image.o \
	Composite.o \
	Pixels.o \
	stubs.o \
	xpstubs.o \
	miinitext.o \
	$(NULL)

VFBINCLUDES =  \
	-I../../fb \
	-I../../mfb \
	-I../../render \
	$(NULL)

INCLUDES = \
	-I. \
	-I../../../../extras/Mesa/include \
	-I$(XBUILDINCDIR) \
	-I../../mi \
	-I../../include \
	-I../../os \
	-I../../miext/damage \
	-I../../miext/cw \
	-I../../GL/glx \
	-I../../GL/include \
	-I../../../../lib/GL/include \
	-I../../Xext \
	-I$(EXTINCSRC) -I$(XINCLUDESRC) \
	$(VFBINCLUDES) \
	`pkg-config --cflags-only-I libxml-2.0` \
	`pkg-config --cflags-only-I pixman-1` \
	$(NULL)
#ifdef SunArchitecture
INCLUDES = \
	-I. \
	-I../../../../extras/Mesa/include \
	-I$(XBUILDINCDIR) \
	-I/usr/sfw/include \
	-I../../mi \
	-I../../include \
	-I../../os \
	-I../../GL/glx \
	-I../../GL/include \
	-I../../../../lib/GL/include \
	-I../../Xext \
	-I../../miext/damage \
	-I../../miext/cw \
	-I$(EXTINCSRC) -I$(XINCLUDESRC) \
	$(VFBINCLUDES) \
	`pkg-config --cflags-only-I libxml-2.0` \
	`pkg-config --cflags-only-I pixman-1` \
	`pkg-config --cflags-only-I zlib` \
	`pkg-config --cflags-only-I libpng` \
	$(NULL)
#else
#ifdef cygwinArchitecture
INCLUDES = \
	-I. -I$(XBUILDINCDIR) \
	-I../../mi \
	-I../../include \
	-I../../os \
	-I../../GL/glx \
	-I../../GL/include \
	-I../../../../lib/GL/include \
	-I../../Xext \
	-I../../miext/damage \
	-I../../miext/cw \
	-I../../../../../nxcomp \
	-I../../../../../nxcompshad \
	-I../../../../extras/Mesa/include \
	-I$(EXTINCSRC) -I$(XINCLUDESRC) \
	$(VFBINCLUDES) \
	`pkg-config --cflags-only-I libxml-2.0` \
	`pkg-config --cflags-only-I pixman-1` \
	`pkg-config --cflags-only-I zlib` \
	`pkg-config --cflags-only-I libpng` \
	$(NULL)
#endif
#endif

### NXAGENT Defines:
#
# NXAGENT_FONTCACHE_SIZE           Number of cache slots
# NXAGENT_SHAPE	                   Old shape code
# NXAGENT_GLYPHCACHE
# NXAGENT_GLYPHCACHE_SIZE          Slots for glyph cache
# NXAGENT_SHAPE2 	           New shape code
# NXAGENT_FIXKEYS     	           Force the release of pressed key when loosing focus
# NXAGENT_EXPOSURES                Manage expose events
# NXAGENT_CLIPBOARD                Enables clipboard cut and paste function between X servers.
# NXAGENT_FONTEXCLUDE              Exclude some specific font names (only "-ult1mo" at this moment).
# NXAGENT FULLSCREEN               Fullscreen mode
# NXAGENT_RANDR_MODE_PREFIX        Use prefixed (i.e., nx_<x>x<y>) RandR modes
# NXAGENT_RANDR_XINERAMA_CLIPPING  cut off invisible window parts in xinerama mode (you probably do not want this)

#if nxVersion
NX_DEFINES = \
	-DNX_VERSION_CURRENT="$(NX_VERSION_CURRENT)" \
	-DNX_VERSION_CURRENT_STRING="\"$(NX_VERSION_CURRENT_STRING)\"" \
	$(NULL)
#endif

DEFINES = \
	-g $(OS_DEFINES) $(EXT_DEFINES) $(NX_DEFINES) \
        -UXF86VIDMODE -UXFreeXDGA -UXF86MISC -UXF86DRI \
        -DNXAGENT_SERVER \
        -DNXAGENT_CONSTRAINCURSOR \
        -DNXAGENT_FONTCACHE_SIZE=50 \
        -DNXAGENT_GLYPHCACHE -DNXAGENT_GLYPHCACHE_SIZE=50 \
        -DNXAGENT_SHAPE2 \
        -DNXAGENT_FIXKEYS \
        -DNXAGENT_CLIPBOARD \
        -DNXAGENT_EXPOSURES \
        -DNXAGENT_FONTEXCLUDE \
        -DNXAGENT_PACKEDIMAGES \
        -DNXAGENT_VISIBILITY \
        -DNXAGENT_WAKEUP=1000 \
        -DNXAGENT_ONSTART \
        -DNXAGENT_SPLASH \
        -DNXAGENT_ARTSD \
        -DNXAGENT_RANDR_MODE_PREFIX \
        -UNX_DEBUG_INPUT \
	-DRANDR_10_INTERFACE=1 \
	-DRANDR_12_INTERFACE=1 \
	-DRANDR_13_INTERFACE=1 \
	-DRANDR_14_INTERFACE=1 \
	-DRANDR_15_INTERFACE=1 \
        -DPANORAMIX \
        -UDEBUG_TREE \
	$(NULL)

all:: $(OBJS)

LinkSourceFile(stubs.c,$(SERVERSRC)/Xi)
LinkSourceFile(xpstubs.c,$(SERVERSRC)/dix)
SpecialCObjectRule(Init,$(ICONFIGFILES),$(_NOOP_))
LinkSourceFile(miinitext.c,$(SERVERSRC)/mi)
SpecialCObjectRule(miinitext,$(ICONFIGFILES), $(_NOOP_))

NormalLibraryObjectRule()
NormalLibraryTarget(nxagent,$(OBJS))

DependTarget()

#define IHaveSubdirs
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))