VirtualBox

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

Last change on this file since 29813 was 28800, checked in by vboxsync, 15 years ago

Automated rebranding to Oracle copyright/license strings via filemuncher

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 9.8 KB
Line 
1# $Id: Makefile.kmk 28800 2010-04-27 08:22:32Z 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 # unslgned 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)
122ifeq ($(KBUILD_TARGET),linux)
123vboxmouse_drv_14_SOURCES = \
124 vboxmouse_15.c
125else # Don't enable this for other platforms yet
126vboxmouse_drv_14_SOURCES = \
127 xorg14/mouse.c \
128 xorg14/pnp.c \
129 VBoxUtils.c
130endif
131
132
133#
134# vboxmouse_drv_15
135#
136DLLS += vboxmouse_drv_15
137vboxmouse_drv_15_TEMPLATE = VBOXGUESTR3XORGMOD
138vboxmouse_drv_15_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
139vboxmouse_drv_15_INCS := \
140 $(VBOX_PATH_X11_XORG_1_5) \
141 $(VBOX_PATH_X11_ROOT)/inputproto-1.4.4 \
142 $(VBOX_PATH_X11_ROOT)/xorg-server-1.5.3 \
143 $(PATH_SUB_CURRENT)
144vboxmouse_drv_15_SOURCES = \
145 vboxmouse_15.c
146
147
148#
149# vboxmouse_drv_16
150#
151DLLS += vboxmouse_drv_16
152vboxmouse_drv_16_TEMPLATE = VBOXGUESTR3XORGMOD
153vboxmouse_drv_16_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
154vboxmouse_drv_16_INCS := \
155 $(VBOX_PATH_X11_XORG_1_6) \
156 $(VBOX_PATH_X11_ROOT)/inputproto-1.4.4 \
157 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0 \
158 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
159 $(PATH_SUB_CURRENT)
160vboxmouse_drv_16_SOURCES = \
161 vboxmouse_15.c
162
163
164#
165# vboxmouse_drv_17
166#
167DLLS += vboxmouse_drv_17
168vboxmouse_drv_17_TEMPLATE = VBOXGUESTR3XORGMOD
169vboxmouse_drv_17_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
170## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
171vboxmouse_drv_17_INCS := \
172 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
173 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
174 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
175 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
176 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.99-20090831 \
177 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
178 $(VBOX_PATH_X11_ROOT)/xproto-7.0.15 \
179 $(PATH_SUB_CURRENT)
180vboxmouse_drv_17_SOURCES = \
181 vboxmouse_15.c
182
183
184#
185# vboxmouse_drv_18
186#
187DLLS += vboxmouse_drv_18
188vboxmouse_drv_18_TEMPLATE = VBOXGUESTR3XORGMOD
189vboxmouse_drv_18_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
190## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
191vboxmouse_drv_18_INCS := \
192 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
193 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
194 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
195 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
196 $(VBOX_PATH_X11_ROOT)/xorg-server-1.8.0 \
197 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
198 $(VBOX_PATH_X11_ROOT)/xproto-7.0.15 \
199 $(PATH_SUB_CURRENT)
200vboxmouse_drv_18_SOURCES = \
201 vboxmouse_15.c
202
203
204# Check the undefined symbols in the X.Org modules against lists of allowed
205# symbols. Not very elegant, but it will catch problems early.
206ifdef VBOX_WITH_TESTCASES
207# ifndef VBOX_ONLY_ADDITIONS
208 if1of ($(KBUILD_TARGET),linux solaris)
209 ifeq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
210 ifndef VBOX_ONLY_SDK
211 OUR_PATH_VBOXMOUSE=$(PATH_ROOT)/src/VBox/Additions/x11/vboxmouse
212
213 ifeq ($(KBUILD_TARGET),linux)
214 TESTING += $(PATH_vboxmouse_drv)/tstvboxmouse68.run
215 OTHERS += $(PATH_vboxmouse_drv)/tstvboxmouse68.run
216$$(PATH_vboxmouse_drv)/tstvboxmouse68.run: $$(INSTARGET_vboxmouse_drv)
217 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
218 "$(INSTARGET_vboxmouse_drv)" "$(OUR_PATH_VBOXMOUSE)/undefined_68" --static
219 $(QUIET)$(APPEND) -t "$@" "done"
220 endif
221
222 TESTING += $(PATH_vboxmouse_drv_70)/tstvboxmouse70.run
223 OTHERS += $(PATH_vboxmouse_drv_70)/tstvboxmouse70.run
224$$(PATH_vboxmouse_drv_70)/tstvboxmouse70.run: $$(INSTARGET_vboxmouse_drv_70)
225 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
226 $(INSTARGET_vboxmouse_drv_70) $(OUR_PATH_VBOXMOUSE)/undefined_70
227 $(QUIET)$(APPEND) -t "$@" "done"
228
229 TESTING += $(PATH_vboxmouse_drv_71)/tstvboxmouse71.run
230 OTHERS += $(PATH_vboxmouse_drv_71)/tstvboxmouse71.run
231$$(PATH_vboxmouse_drv_71)/tstvboxmouse71.run: $$(INSTARGET_vboxmouse_drv_71)
232 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
233 $(INSTARGET_vboxmouse_drv_71) $(OUR_PATH_VBOXMOUSE)/undefined_71
234 $(QUIET)$(APPEND) -t "$@" "done"
235
236 TESTING += $(PATH_vboxmouse_drv_13)/tstvboxmouse13.run
237 OTHERS += $(PATH_vboxmouse_drv_13)/tstvboxmouse13.run
238$$(PATH_vboxmouse_drv_13)/tstvboxmouse13.run: $$(INSTARGET_vboxmouse_drv_13)
239 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
240 $(INSTARGET_vboxmouse_drv_13) $(OUR_PATH_VBOXMOUSE)/undefined_15
241 $(QUIET)$(APPEND) -t "$@" "done"
242
243ifeq ($(KBUILD_TARGET),linux)
244 TESTING += $(PATH_vboxmouse_drv_14)/tstvboxmouse14.run
245 OTHERS += $(PATH_vboxmouse_drv_14)/tstvboxmouse14.run
246$$(PATH_vboxmouse_drv_14)/tstvboxmouse14.run: $$(INSTARGET_vboxmouse_drv_14)
247 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
248 $(INSTARGET_vboxmouse_drv_14) $(OUR_PATH_VBOXMOUSE)/undefined_15
249 $(QUIET)$(APPEND) -t "$@" "done"
250endif
251
252 TESTING += $(PATH_vboxmouse_drv_15)/tstvboxmouse15.run
253 OTHERS += $(PATH_vboxmouse_drv_15)/tstvboxmouse15.run
254$$(PATH_vboxmouse_drv_15)/tstvboxmouse15.run: $$(INSTARGET_vboxmouse_drv_15)
255 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
256 $(INSTARGET_vboxmouse_drv_15) $(OUR_PATH_VBOXMOUSE)/undefined_15
257 $(QUIET)$(APPEND) -t "$@" "done"
258
259 TESTING += $(PATH_vboxmouse_drv_16)/tstvboxmouse16.run
260 OTHERS += $(PATH_vboxmouse_drv_16)/tstvboxmouse16.run
261$$(PATH_vboxmouse_drv_16)/tstvboxmouse16.run: $$(INSTARGET_vboxmouse_drv_16)
262 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
263 $(INSTARGET_vboxmouse_drv_16) $(OUR_PATH_VBOXMOUSE)/undefined_15
264 $(QUIET)$(APPEND) -t "$@" "done"
265
266 TESTING += $(PATH_vboxmouse_drv_17)/tstvboxmouse17.run
267 OTHERS += $(PATH_vboxmouse_drv_17)/tstvboxmouse17.run
268$$(PATH_vboxmouse_drv_17)/tstvboxmouse17.run: $$(INSTARGET_vboxmouse_drv_17)
269 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
270 $(INSTARGET_vboxmouse_drv_17) $(OUR_PATH_VBOXMOUSE)/undefined_15
271 $(QUIET)$(APPEND) -t "$@" "done"
272
273 TESTING += $(PATH_vboxmouse_drv_18)/tstvboxmouse18.run
274 OTHERS += $(PATH_vboxmouse_drv_18)/tstvboxmouse18.run
275$$(PATH_vboxmouse_drv_18)/tstvboxmouse18.run: $$(INSTARGET_vboxmouse_drv_18)
276 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
277 $(INSTARGET_vboxmouse_drv_18) $(OUR_PATH_VBOXMOUSE)/undefined_15
278 $(QUIET)$(APPEND) -t "$@" "done"
279
280 endif # ! VBOX_ONLY_SDK
281 endif # eq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
282 endif # eq ($(KBUILD_TARGET),linux)
283# endif # ! VBOX_ONLY_ADDITIONS
284endif # VBOX_WITH_TESTCASES
285
286include $(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