VirtualBox

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

Last change on this file since 34310 was 33540, checked in by vboxsync, 14 years ago

*: spelling fixes, thanks Timeless!

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 11.2 KB
Line 
1# $Id: Makefile.kmk 33540 2010-10-28 09:27:05Z 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
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
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
157#
158# vboxmouse_drv_17
159#
160DLLS += vboxmouse_drv_17
161vboxmouse_drv_17_TEMPLATE = VBOXGUESTR3XORGMOD
162vboxmouse_drv_17_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
163## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
164vboxmouse_drv_17_INCS := \
165 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
166 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
167 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
168 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
169 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.99-20090831 \
170 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
171 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18 \
172 $(PATH_SUB_CURRENT)
173vboxmouse_drv_17_SOURCES = \
174 vboxmouse_15.c
175
176
177#
178# vboxmouse_drv_18
179#
180DLLS += vboxmouse_drv_18
181vboxmouse_drv_18_TEMPLATE = VBOXGUESTR3XORGMOD
182vboxmouse_drv_18_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
183## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
184vboxmouse_drv_18_INCS := \
185 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
186 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
187 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
188 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
189 $(VBOX_PATH_X11_ROOT)/xorg-server-1.8.0 \
190 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
191 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18 \
192 $(PATH_SUB_CURRENT)
193vboxmouse_drv_18_SOURCES = \
194 vboxmouse_15.c
195
196
197#
198# vboxmouse_drv_19
199#
200DLLS += vboxmouse_drv_19
201vboxmouse_drv_19_TEMPLATE = VBOXGUESTR3XORGMOD
202vboxmouse_drv_19_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
203## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
204vboxmouse_drv_19_INCS := \
205 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
206 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
207 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
208 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
209 $(VBOX_PATH_X11_ROOT)/xorg-server-1.9.0 \
210 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
211 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18 \
212 $(PATH_SUB_CURRENT)
213vboxmouse_drv_19_SOURCES = \
214 vboxmouse_15.c
215
216
217# Check the undefined symbols in the X.Org modules against lists of allowed
218# symbols. Not very elegant, but it will catch problems early.
219ifdef VBOX_WITH_TESTCASES
220# ifndef VBOX_ONLY_ADDITIONS
221 if1of ($(KBUILD_TARGET),linux solaris)
222 ifeq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
223 ifndef VBOX_ONLY_SDK
224 OUR_PATH_VBOXMOUSE=$(PATH_ROOT)/src/VBox/Additions/x11/vboxmouse
225
226 ifeq ($(KBUILD_TARGET),linux)
227 TESTING += $(PATH_vboxmouse_drv)/tstvboxmouse68.run
228 OTHERS += $(PATH_vboxmouse_drv)/tstvboxmouse68.run
229$$(PATH_vboxmouse_drv)/tstvboxmouse68.run: $$(INSTARGET_vboxmouse_drv)
230 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
231 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
232 "$(INSTARGET_vboxmouse_drv)" "$(OUR_PATH_VBOXMOUSE)/undefined_68" --static
233 $(QUIET)$(APPEND) -t "$@" "done"
234 endif
235
236 TESTING += $(PATH_vboxmouse_drv_70)/tstvboxmouse70.run
237 OTHERS += $(PATH_vboxmouse_drv_70)/tstvboxmouse70.run
238$$(PATH_vboxmouse_drv_70)/tstvboxmouse70.run: $$(INSTARGET_vboxmouse_drv_70)
239 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
240 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
241 $(INSTARGET_vboxmouse_drv_70) $(OUR_PATH_VBOXMOUSE)/undefined_70
242 $(QUIET)$(APPEND) -t "$@" "done"
243
244 TESTING += $(PATH_vboxmouse_drv_71)/tstvboxmouse71.run
245 OTHERS += $(PATH_vboxmouse_drv_71)/tstvboxmouse71.run
246$$(PATH_vboxmouse_drv_71)/tstvboxmouse71.run: $$(INSTARGET_vboxmouse_drv_71)
247 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
248 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
249 $(INSTARGET_vboxmouse_drv_71) $(OUR_PATH_VBOXMOUSE)/undefined_71
250 $(QUIET)$(APPEND) -t "$@" "done"
251
252 TESTING += $(PATH_vboxmouse_drv_13)/tstvboxmouse13.run
253 OTHERS += $(PATH_vboxmouse_drv_13)/tstvboxmouse13.run
254$$(PATH_vboxmouse_drv_13)/tstvboxmouse13.run: $$(INSTARGET_vboxmouse_drv_13)
255 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
256 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
257 $(INSTARGET_vboxmouse_drv_13) $(OUR_PATH_VBOXMOUSE)/undefined_15
258 $(QUIET)$(APPEND) -t "$@" "done"
259
260 TESTING += $(PATH_vboxmouse_drv_14)/tstvboxmouse14.run
261 OTHERS += $(PATH_vboxmouse_drv_14)/tstvboxmouse14.run
262$$(PATH_vboxmouse_drv_14)/tstvboxmouse14.run: $$(INSTARGET_vboxmouse_drv_14)
263 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
264 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
265 $(INSTARGET_vboxmouse_drv_14) $(OUR_PATH_VBOXMOUSE)/undefined_15
266 $(QUIET)$(APPEND) -t "$@" "done"
267
268 TESTING += $(PATH_vboxmouse_drv_15)/tstvboxmouse15.run
269 OTHERS += $(PATH_vboxmouse_drv_15)/tstvboxmouse15.run
270$$(PATH_vboxmouse_drv_15)/tstvboxmouse15.run: $$(INSTARGET_vboxmouse_drv_15)
271 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
272 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
273 $(INSTARGET_vboxmouse_drv_15) $(OUR_PATH_VBOXMOUSE)/undefined_15
274 $(QUIET)$(APPEND) -t "$@" "done"
275
276 TESTING += $(PATH_vboxmouse_drv_16)/tstvboxmouse16.run
277 OTHERS += $(PATH_vboxmouse_drv_16)/tstvboxmouse16.run
278$$(PATH_vboxmouse_drv_16)/tstvboxmouse16.run: $$(INSTARGET_vboxmouse_drv_16)
279 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
280 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
281 $(INSTARGET_vboxmouse_drv_16) $(OUR_PATH_VBOXMOUSE)/undefined_15
282 $(QUIET)$(APPEND) -t "$@" "done"
283
284 TESTING += $(PATH_vboxmouse_drv_17)/tstvboxmouse17.run
285 OTHERS += $(PATH_vboxmouse_drv_17)/tstvboxmouse17.run
286$$(PATH_vboxmouse_drv_17)/tstvboxmouse17.run: $$(INSTARGET_vboxmouse_drv_17)
287 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
288 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
289 $(INSTARGET_vboxmouse_drv_17) $(OUR_PATH_VBOXMOUSE)/undefined_15
290 $(QUIET)$(APPEND) -t "$@" "done"
291
292 TESTING += $(PATH_vboxmouse_drv_18)/tstvboxmouse18.run
293 OTHERS += $(PATH_vboxmouse_drv_18)/tstvboxmouse18.run
294$$(PATH_vboxmouse_drv_18)/tstvboxmouse18.run: $$(INSTARGET_vboxmouse_drv_18)
295 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
296 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
297 $(INSTARGET_vboxmouse_drv_18) $(OUR_PATH_VBOXMOUSE)/undefined_15
298 $(QUIET)$(APPEND) -t "$@" "done"
299
300 TESTING += $(PATH_vboxmouse_drv_19)/tstvboxmouse19.run
301 OTHERS += $(PATH_vboxmouse_drv_19)/tstvboxmouse19.run
302$$(PATH_vboxmouse_drv_19)/tstvboxmouse19.run: $$(INSTARGET_vboxmouse_drv_19)
303 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
304 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
305 $(INSTARGET_vboxmouse_drv_19) $(OUR_PATH_VBOXMOUSE)/undefined_15
306 $(QUIET)$(APPEND) -t "$@" "done"
307
308 endif # ! VBOX_ONLY_SDK
309 endif # eq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
310 endif # eq ($(KBUILD_TARGET),linux)
311# endif # ! VBOX_ONLY_ADDITIONS
312endif # VBOX_WITH_TESTCASES
313
314include $(KBUILD_PATH)/subfooter.kmk
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