VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/vboxmouse/Makefile.kmk@ 39562

Last change on this file since 39562 was 38784, checked in by vboxsync, 13 years ago

Addition/linux: use the kernel mouse driver for all setups where we previously autoloaded vboxmouse

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 12.6 KB
Line 
1# $Id: Makefile.kmk 38784 2011-09-16 20:46:45Z vboxsync $
2## @file
3# Sub-Makefile for the VBox Additions XFree86 and X.org mouse drivers.
4#
5
6#
7# Copyright (C) 2006-2007 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21
22#
23# vboxmouse_drv
24#
25if1of ($(KBUILD_TARGET), linux)
26 SYSMODS += vboxmouse_drv
27 vboxmouse_drv_TEMPLATE = VBOXGUESTR3XF86MOD
28 vboxmouse_drv_DEFS.linux = linux
29 vboxmouse_drv_DEFS.x86 += __i386__
30 # This one has to be defined when building server code on systems where
31 # unsigned long is 64bits
32 vboxmouse_drv_DEFS.amd64 += _XSERVER64
33 vboxmouse_drv_DEFS += \
34 _POSIX_C_SOURCE=199309L _POSIX_SOURCE _XOPEN_SOURCE \
35 _BSD_SOURCE _SVID_SOURCE _GNU_SOURCE SHAPE XINPUT XKB LBX XAPPGROUP \
36 XCSECURITY TOGCUP XF86BIGFONT DPMSExtension PIXPRIV PANORAMIX RENDER \
37 GCCUSESGAS AVOID_GLYPHBLT PIXPRIV SINGLEDEPTH XFreeXDGA XvExtension \
38 XFree86LOADER XFree86Server XF86VIDMODE XvMCExtension SMART_SCHEDULE \
39 BUILDDEBUG X_BYTE_ORDER=X_LITTLE_ENDIAN DNDEBUG FUNCPROTO=15 NARROWPROTO \
40 IN_MODULE XFree86Module PNP_MOUSE IN_XF86_MODULE
41 vboxmouse_drv_INCS := \
42 $(VBOX_PATH_X11_XFREE_4_3)/include \
43 $(VBOX_PATH_X11_XFREE_4_3)/include/extensions \
44 $(VBOX_PATH_X11_XFREE_4_3)/include/X11 \
45 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86 \
46 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/common \
47 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support \
48 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support/bus \
49 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/mi \
50 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/include \
51 $(PATH_SUB_CURRENT)
52 vboxmouse_drv_SOURCES = \
53 mouse.c \
54 pnp.c \
55 VBoxUtils_68.c
56endif
57
58
59#
60# vboxmouse_drv_70
61#
62DLLS += vboxmouse_drv_70
63vboxmouse_drv_70_TEMPLATE = VBOXGUESTR3XORGMOD
64vboxmouse_drv_70_DEFS = \
65 XFree86Server IN_MODULE XFree86Module XFree86LOADER XINPUT XORG_7X IN_XF86_MODULE
66ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here.
67 vboxmouse_drv_70_DEFS += _XPG6 __EXTENSIONS__
68endif
69vboxmouse_drv_70_INCS := \
70 $(VBOX_PATH_X11_XORG_7_0) \
71 $(VBOX_PATH_X11_XORG_7_0)/X11 \
72 $(VBOX_PATH_X11_XORG_7_0)/xorg \
73 $(PATH_SUB_CURRENT)
74vboxmouse_drv_70_SOURCES = \
75 xorg70/mouse.c \
76 xorg70/pnp.c \
77 VBoxUtils.c
78
79
80#
81# vboxmouse_drv_71
82#
83DLLS += vboxmouse_drv_71
84vboxmouse_drv_71_TEMPLATE = VBOXGUESTR3XORGMOD
85vboxmouse_drv_71_DEFS := $(vboxmouse_drv_70_DEFS)
86vboxmouse_drv_71_INCS := \
87 $(VBOX_PATH_X11_XORG_7_1) \
88 $(VBOX_PATH_X11_XORG_7_1)/X11 \
89 $(VBOX_PATH_X11_XORG_7_1)/xorg \
90 $(PATH_SUB_CURRENT)
91vboxmouse_drv_71_SOURCES = \
92 xorg71/mouse.c \
93 xorg71/pnp.c \
94 VBoxUtils.c
95
96
97#
98# vboxmouse_drv_13
99#
100DLLS += vboxmouse_drv_13
101vboxmouse_drv_13_TEMPLATE = VBOXGUESTR3XORGMOD
102vboxmouse_drv_13_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
103vboxmouse_drv_13_INCS := \
104 $(VBOX_PATH_X11_XORG_1_3) \
105 $(VBOX_PATH_X11_ROOT)/inputproto-1.4.4 \
106 $(VBOX_PATH_X11_ROOT)/xorg-server-1.3.0.0 \
107 $(PATH_SUB_CURRENT)
108vboxmouse_drv_13_SOURCES = \
109 vboxmouse_15.c
110
111
112#
113# vboxmouse_drv_14
114#
115DLLS += vboxmouse_drv_14
116vboxmouse_drv_14_TEMPLATE = VBOXGUESTR3XORGMOD
117vboxmouse_drv_14_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
118vboxmouse_drv_14_INCS := \
119 $(VBOX_PATH_X11_XORG_1_4) \
120 $(VBOX_PATH_X11_XORG_1_4)/xorg \
121 $(PATH_SUB_CURRENT)
122vboxmouse_drv_14_SOURCES = \
123 vboxmouse_15.c
124
125
126#
127# vboxmouse_drv_15
128#
129DLLS += vboxmouse_drv_15
130vboxmouse_drv_15_TEMPLATE = VBOXGUESTR3XORGMOD
131vboxmouse_drv_15_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
132vboxmouse_drv_15_INCS := \
133 $(VBOX_PATH_X11_XORG_1_5) \
134 $(VBOX_PATH_X11_ROOT)/inputproto-1.4.4 \
135 $(VBOX_PATH_X11_ROOT)/xorg-server-1.5.3 \
136 $(PATH_SUB_CURRENT)
137vboxmouse_drv_15_SOURCES = \
138 vboxmouse_15.c
139
140
141#
142# vboxmouse_drv_16
143#
144DLLS += vboxmouse_drv_16
145vboxmouse_drv_16_TEMPLATE = VBOXGUESTR3XORGMOD
146vboxmouse_drv_16_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
147vboxmouse_drv_16_INCS := \
148 $(VBOX_PATH_X11_XORG_1_6) \
149 $(VBOX_PATH_X11_ROOT)/inputproto-1.4.4 \
150 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0 \
151 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
152 $(PATH_SUB_CURRENT)
153vboxmouse_drv_16_SOURCES = \
154 vboxmouse_15.c
155
156
157ifneq ($(KBUILD_TARGET), linux)
158
159#
160# vboxmouse_drv_17
161#
162DLLS += vboxmouse_drv_17
163vboxmouse_drv_17_TEMPLATE = VBOXGUESTR3XORGMOD
164vboxmouse_drv_17_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
165## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
166vboxmouse_drv_17_INCS := \
167 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
168 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
169 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
170 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
171 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.99-20090831 \
172 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
173 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18 \
174 $(PATH_SUB_CURRENT)
175vboxmouse_drv_17_SOURCES = \
176 vboxmouse_15.c
177
178
179#
180# vboxmouse_drv_18
181#
182DLLS += vboxmouse_drv_18
183vboxmouse_drv_18_TEMPLATE = VBOXGUESTR3XORGMOD
184vboxmouse_drv_18_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
185## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
186vboxmouse_drv_18_INCS := \
187 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
188 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
189 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
190 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
191 $(VBOX_PATH_X11_ROOT)/xorg-server-1.8.0 \
192 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
193 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18 \
194 $(PATH_SUB_CURRENT)
195vboxmouse_drv_18_SOURCES = \
196 vboxmouse_15.c
197
198
199#
200# vboxmouse_drv_19
201#
202DLLS += vboxmouse_drv_19
203vboxmouse_drv_19_TEMPLATE = VBOXGUESTR3XORGMOD
204vboxmouse_drv_19_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
205## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
206vboxmouse_drv_19_INCS := \
207 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
208 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
209 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
210 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
211 $(VBOX_PATH_X11_ROOT)/xorg-server-1.9.0 \
212 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
213 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18 \
214 $(PATH_SUB_CURRENT)
215vboxmouse_drv_19_SOURCES = \
216 vboxmouse_15.c
217
218
219#
220# vboxmouse_drv_110
221#
222DLLS += vboxmouse_drv_110
223vboxmouse_drv_110_TEMPLATE = VBOXGUESTR3XORGMOD
224vboxmouse_drv_110_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
225## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
226vboxmouse_drv_110_INCS := \
227 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
228 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
229 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
230 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
231 $(VBOX_PATH_X11_ROOT)/xorg-server-1.10.0 \
232 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
233 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18 \
234 $(PATH_SUB_CURRENT)
235vboxmouse_drv_110_SOURCES = \
236 vboxmouse_15.c
237
238endif # neq ($(KBUILD_TARGET),linux)
239
240# Check the undefined symbols in the X.Org modules against lists of allowed
241# symbols. Not very elegant, but it will catch problems early.
242ifdef VBOX_WITH_TESTCASES
243# ifndef VBOX_ONLY_ADDITIONS
244 if1of ($(KBUILD_TARGET),linux solaris)
245 ifeq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
246 ifndef VBOX_ONLY_SDK
247 VBOXMOUSE_SRC_PATH := $(PATH_SUB_CURRENT)
248
249 ifeq ($(KBUILD_TARGET),linux)
250 TESTING += $(vboxmouse_drv_0_OUTDIR)/tstvboxmouse68.run
251 OTHERS += $(vboxmouse_drv_0_OUTDIR)/tstvboxmouse68.run
252$$(vboxmouse_drv_0_OUTDIR)/tstvboxmouse68.run: $$(vboxmouse_drv_1_STAGE_TARGET)
253 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
254 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
255 "$(vboxmouse_drv_1_STAGE_TARGET)" "$(VBOXMOUSE_SRC_PATH)/undefined_68" --static
256 $(QUIET)$(APPEND) -t "$@" "done"
257 endif
258
259 TESTING += $(vboxmouse_drv_70_0_OUTDIR)/tstvboxmouse70.run
260 OTHERS += $(vboxmouse_drv_70_0_OUTDIR)/tstvboxmouse70.run
261$$(vboxmouse_drv_70_0_OUTDIR)/tstvboxmouse70.run: $$(vboxmouse_drv_70_1_STAGE_TARGET)
262 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
263 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
264 $(vboxmouse_drv_70_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined_70
265 $(QUIET)$(APPEND) -t "$@" "done"
266
267 TESTING += $(vboxmouse_drv_71_0_OUTDIR)/tstvboxmouse71.run
268 OTHERS += $(vboxmouse_drv_71_0_OUTDIR)/tstvboxmouse71.run
269$$(vboxmouse_drv_71_0_OUTDIR)/tstvboxmouse71.run: $$(vboxmouse_drv_71_1_STAGE_TARGET)
270 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
271 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
272 $(vboxmouse_drv_71_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined_71
273 $(QUIET)$(APPEND) -t "$@" "done"
274
275 TESTING += $(vboxmouse_drv_13_0_OUTDIR)/tstvboxmouse13.run
276 OTHERS += $(vboxmouse_drv_13_0_OUTDIR)/tstvboxmouse13.run
277$$(vboxmouse_drv_13_0_OUTDIR)/tstvboxmouse13.run: $$(vboxmouse_drv_13_1_STAGE_TARGET)
278 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
279 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
280 $(vboxmouse_drv_13_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined_15
281 $(QUIET)$(APPEND) -t "$@" "done"
282
283 TESTING += $(vboxmouse_drv_14_0_OUTDIR)/tstvboxmouse14.run
284 OTHERS += $(vboxmouse_drv_14_0_OUTDIR)/tstvboxmouse14.run
285$$(vboxmouse_drv_14_0_OUTDIR)/tstvboxmouse14.run: $$(vboxmouse_drv_14_1_STAGE_TARGET)
286 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
287 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
288 $(vboxmouse_drv_14_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined_15
289 $(QUIET)$(APPEND) -t "$@" "done"
290
291 TESTING += $(vboxmouse_drv_15_0_OUTDIR)/tstvboxmouse15.run
292 OTHERS += $(vboxmouse_drv_15_0_OUTDIR)/tstvboxmouse15.run
293$$(vboxmouse_drv_15_0_OUTDIR)/tstvboxmouse15.run: $$(vboxmouse_drv_15_1_STAGE_TARGET)
294 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
295 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
296 $(vboxmouse_drv_15_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined_15
297 $(QUIET)$(APPEND) -t "$@" "done"
298
299 TESTING += $(vboxmouse_drv_16_0_OUTDIR)/tstvboxmouse16.run
300 OTHERS += $(vboxmouse_drv_16_0_OUTDIR)/tstvboxmouse16.run
301$$(vboxmouse_drv_16_0_OUTDIR)/tstvboxmouse16.run: $$(vboxmouse_drv_16_1_STAGE_TARGET)
302 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
303 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
304 $(vboxmouse_drv_16_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined_15
305 $(QUIET)$(APPEND) -t "$@" "done"
306
307ifneq ($(KBUILD_TARGET), linux)
308
309 TESTING += $(vboxmouse_drv_17_0_OUTDIR)/tstvboxmouse17.run
310 OTHERS += $(vboxmouse_drv_17_0_OUTDIR)/tstvboxmouse17.run
311$$(vboxmouse_drv_17_0_OUTDIR)/tstvboxmouse17.run: $$(vboxmouse_drv_17_1_STAGE_TARGET)
312 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
313 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
314 $(vboxmouse_drv_17_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined_15
315 $(QUIET)$(APPEND) -t "$@" "done"
316
317 TESTING += $(vboxmouse_drv_18_0_OUTDIR)/tstvboxmouse18.run
318 OTHERS += $(vboxmouse_drv_18_0_OUTDIR)/tstvboxmouse18.run
319$$(vboxmouse_drv_18_0_OUTDIR)/tstvboxmouse18.run: $$(vboxmouse_drv_18_1_STAGE_TARGET)
320 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
321 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
322 $(vboxmouse_drv_18_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined_15
323 $(QUIET)$(APPEND) -t "$@" "done"
324
325 TESTING += $(vboxmouse_drv_19_0_OUTDIR)/tstvboxmouse19.run
326 OTHERS += $(vboxmouse_drv_19_0_OUTDIR)/tstvboxmouse19.run
327$$(vboxmouse_drv_19_0_OUTDIR)/tstvboxmouse19.run: $$(vboxmouse_drv_19_1_STAGE_TARGET)
328 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
329 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
330 $(vboxmouse_drv_19_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined_15
331 $(QUIET)$(APPEND) -t "$@" "done"
332
333 TESTING += $(vboxmouse_drv_110_0_OUTDIR)/tstvboxmouse110.run
334 OTHERS += $(vboxmouse_drv_110_0_OUTDIR)/tstvboxmouse110.run
335$$(vboxmouse_drv_110_0_OUTDIR)/tstvboxmouse110.run: $$(vboxmouse_drv_110_1_STAGE_TARGET)
336 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
337 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
338 $(vboxmouse_drv_110_1_STAGE_TARGET) $(VBOXMOUSE_SRC_PATH)/undefined_15
339 $(QUIET)$(APPEND) -t "$@" "done"
340
341endif # neq ($(KBUILD_TARGET),linux)
342
343 endif # ! VBOX_ONLY_SDK
344 endif # eq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
345 endif # 1of ($(KBUILD_TARGET),linux solaris)
346# endif # ! VBOX_ONLY_ADDITIONS
347endif # VBOX_WITH_TESTCASES
348
349include $(KBUILD_PATH)/subfooter.kmk
350
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette