VirtualBox

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

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

Additions/x11: made r52097 Linux only, as I don't know whether Solaris will like it

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 10.5 KB
Line 
1# $Id: Makefile.kmk 22860 2009-09-09 10:52:07Z vboxsync $
2## @file
3# Sub-Makefile for the VBox Additions XFree86 and X.org mouse drivers.
4#
5
6#
7# Copyright (C) 2006-2007 Sun Microsystems, Inc.
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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22SUB_DEPTH = ../../../../..
23include $(KBUILD_PATH)/subheader.kmk
24
25
26#
27# vboxmouse_drv
28#
29if1of ($(KBUILD_TARGET), linux)
30 SYSMODS += vboxmouse_drv
31 vboxmouse_drv_TEMPLATE = VBOXGUESTR3XF86MOD
32 vboxmouse_drv_DEFS.linux = linux
33 vboxmouse_drv_DEFS.x86 += __i386__
34 vboxmouse_drv_DEFS += \
35 _POSIX_C_SOURCE=199309L _POSIX_SOURCE _XOPEN_SOURCE \
36 _BSD_SOURCE _SVID_SOURCE _GNU_SOURCE SHAPE XINPUT XKB LBX XAPPGROUP \
37 XCSECURITY TOGCUP XF86BIGFONT DPMSExtension PIXPRIV PANORAMIX RENDER \
38 GCCUSESGAS AVOID_GLYPHBLT PIXPRIV SINGLEDEPTH XFreeXDGA XvExtension \
39 XFree86LOADER XFree86Server XF86VIDMODE XvMCExtension SMART_SCHEDULE \
40 BUILDDEBUG X_BYTE_ORDER=X_LITTLE_ENDIAN DNDEBUG FUNCPROTO=15 NARROWPROTO \
41 IN_MODULE XFree86Module PNP_MOUSE
42 vboxmouse_drv_INCS := \
43 $(VBOX_PATH_X11_XFREE_4_2)/exports/include \
44 $(VBOX_PATH_X11_XFREE_4_2)/exports/include/X11 \
45 $(VBOX_PATH_X11_XFREE_4_2)/include \
46 $(VBOX_PATH_X11_XFREE_4_2)/include/extensions \
47 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/include \
48 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86 \
49 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/common \
50 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/os-support \
51 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/os-support/bus \
52 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/mi \
53 $(PATH_SUB_CURRENT)
54 vboxmouse_drv_SOURCES = \
55 mouse.c \
56 pnp.c \
57 VBoxUtils_68.c
58endif
59
60
61#
62# vboxmouse_drv_70
63#
64DLLS += vboxmouse_drv_70
65vboxmouse_drv_70_TEMPLATE = VBOXGUESTR3XORGMOD
66vboxmouse_drv_70_DEFS = \
67 XFree86Server IN_MODULE XFree86Module XFree86LOADER XINPUT XORG_7X
68ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here.
69 vboxmouse_drv_70_DEFS += _XPG6 __EXTENSIONS__
70endif
71vboxmouse_drv_70_INCS := \
72 $(VBOX_PATH_X11_XORG_7_0) \
73 $(VBOX_PATH_X11_XORG_7_0)/X11 \
74 $(VBOX_PATH_X11_XORG_7_0)/xorg \
75 $(PATH_SUB_CURRENT)
76vboxmouse_drv_70_SOURCES = \
77 xorg70/mouse.c \
78 xorg70/pnp.c \
79 VBoxUtils.c
80
81OTHERS.linux += $(PATH_vboxmouse_drv_70)/vboxmouse_drv_70.so.dbgsym
82$$(PATH_vboxmouse_drv_70)/vboxmouse_drv_70.so.dbgsym: \
83 $$(TARGET_vboxmouse_drv_70)
84 $(QUIET)objcopy --only-keep-debug $< $(PATH_vboxmouse_drv_70)/vboxmouse_drv.so
85 $(QUIET)objcopy --add-gnu-debuglink=$(PATH_vboxmouse_drv_70)/vboxmouse_drv.so $<
86 $(QUIET)mv $(PATH_vboxmouse_drv_70)/vboxmouse_drv.so $@
87 $(QUIET)cp $@ $(PATH_OUT)/$(INST_ADDITIONS)
88
89
90#
91# vboxmouse_drv_71
92#
93DLLS += vboxmouse_drv_71
94vboxmouse_drv_71_TEMPLATE = VBOXGUESTR3XORGMOD
95vboxmouse_drv_71_DEFS := $(vboxmouse_drv_70_DEFS)
96vboxmouse_drv_71_INCS := \
97 $(VBOX_PATH_X11_XORG_7_1) \
98 $(VBOX_PATH_X11_XORG_7_1)/X11 \
99 $(VBOX_PATH_X11_XORG_7_1)/xorg \
100 $(PATH_SUB_CURRENT)
101vboxmouse_drv_71_SOURCES = \
102 xorg71/mouse.c \
103 xorg71/pnp.c \
104 VBoxUtils.c
105
106OTHERS.linux += $(PATH_vboxmouse_drv_71)/vboxmouse_drv_71.so.dbgsym
107$$(PATH_vboxmouse_drv_71)/vboxmouse_drv_71.so.dbgsym: \
108 $$(TARGET_vboxmouse_drv_71)
109 $(QUIET)objcopy --only-keep-debug $< $(PATH_vboxmouse_drv_71)/vboxmouse_drv.so
110 $(QUIET)objcopy --add-gnu-debuglink=$(PATH_vboxmouse_drv_71)/vboxmouse_drv.so $<
111 $(QUIET)mv $(PATH_vboxmouse_drv_71)/vboxmouse_drv.so $@
112 $(QUIET)cp $@ $(PATH_OUT)/$(INST_ADDITIONS)
113
114
115#
116# vboxmouse_drv_14
117#
118DLLS += vboxmouse_drv_14
119vboxmouse_drv_14_TEMPLATE = VBOXGUESTR3XORGMOD
120vboxmouse_drv_14_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
121vboxmouse_drv_14_INCS := \
122 $(VBOX_PATH_X11_XORG_1_4) \
123 $(VBOX_PATH_X11_XORG_1_4)/X11 \
124 $(VBOX_PATH_X11_XORG_1_4)/xorg \
125 $(PATH_SUB_CURRENT)
126vboxmouse_drv_14_SOURCES = \
127 xorg14/mouse.c \
128 xorg14/pnp.c \
129 VBoxUtils.c
130
131OTHERS.linux += $(PATH_vboxmouse_drv_14)/vboxmouse_drv_14.so.dbgsym
132$$(PATH_vboxmouse_drv_14)/vboxmouse_drv_14.so.dbgsym: \
133 $$(TARGET_vboxmouse_drv_14)
134 $(QUIET)objcopy --only-keep-debug $< $(PATH_vboxmouse_drv_14)/vboxmouse_drv.so
135 $(QUIET)objcopy --add-gnu-debuglink=$(PATH_vboxmouse_drv_14)/vboxmouse_drv.so $<
136 $(QUIET)mv $(PATH_vboxmouse_drv_14)/vboxmouse_drv.so $@
137 $(QUIET)cp $@ $(PATH_OUT)/$(INST_ADDITIONS)
138
139
140#
141# vboxmouse_drv_15
142#
143DLLS += vboxmouse_drv_15
144vboxmouse_drv_15_TEMPLATE = VBOXGUESTR3XORGMOD
145vboxmouse_drv_15_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
146vboxmouse_drv_15_INCS := \
147 $(VBOX_PATH_X11_XORG_1_5) \
148 $(VBOX_PATH_X11_XORG_1_5)/X11 \
149 $(VBOX_PATH_X11_ROOT)/xorg-server-1.5.3 \
150 $(PATH_SUB_CURRENT)
151vboxmouse_drv_15_SOURCES = \
152 vboxmouse_15.c
153
154OTHERS.linux += $(PATH_vboxmouse_drv_15)/vboxmouse_drv_15.so.dbgsym
155$$(PATH_vboxmouse_drv_15)/vboxmouse_drv_15.so.dbgsym: \
156 $$(TARGET_vboxmouse_drv_15)
157 $(QUIET)objcopy --only-keep-debug $< $(PATH_vboxmouse_drv_15)/vboxmouse_drv.so
158 $(QUIET)objcopy --add-gnu-debuglink=$(PATH_vboxmouse_drv_15)/vboxmouse_drv.so $<
159 $(QUIET)mv $(PATH_vboxmouse_drv_15)/vboxmouse_drv.so $@
160 $(QUIET)cp $@ $(PATH_OUT)/$(INST_ADDITIONS)
161
162
163#
164# vboxmouse_drv_16
165#
166DLLS += vboxmouse_drv_16
167vboxmouse_drv_16_TEMPLATE = VBOXGUESTR3XORGMOD
168vboxmouse_drv_16_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
169vboxmouse_drv_16_INCS := \
170 $(VBOX_PATH_X11_XORG_1_6) \
171 $(VBOX_PATH_X11_XORG_1_6)/X11 \
172 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0 \
173 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
174 $(PATH_SUB_CURRENT)
175vboxmouse_drv_16_SOURCES = \
176 vboxmouse_15.c
177
178OTHERS.linux += $(PATH_vboxmouse_drv_16)/vboxmouse_drv_16.so.dbgsym
179$$(PATH_vboxmouse_drv_16)/vboxmouse_drv_16.so.dbgsym: \
180 $$(TARGET_vboxmouse_drv_16)
181 $(QUIET)objcopy --only-keep-debug $< $(PATH_vboxmouse_drv_16)/vboxmouse_drv.so
182 $(QUIET)objcopy --add-gnu-debuglink=$(PATH_vboxmouse_drv_16)/vboxmouse_drv.so $<
183 $(QUIET)mv $(PATH_vboxmouse_drv_16)/vboxmouse_drv.so $@
184 $(QUIET)cp $@ $(PATH_OUT)/$(INST_ADDITIONS)
185
186
187#
188# vboxmouse_drv_17
189#
190DLLS += vboxmouse_drv_17
191vboxmouse_drv_17_TEMPLATE = VBOXGUESTR3XORGMOD
192vboxmouse_drv_17_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
193## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
194vboxmouse_drv_17_INCS := \
195 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
196 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
197 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
198 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
199 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.99-20090831 \
200 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
201 $(VBOX_PATH_X11_ROOT)/xproto-7.0.15 \
202 $(PATH_SUB_CURRENT)
203vboxmouse_drv_17_SOURCES = \
204 vboxmouse_15.c
205
206OTHERS.linux += $(PATH_vboxmouse_drv_17)/vboxmouse_drv_17.so.dbgsym
207$$(PATH_vboxmouse_drv_17)/vboxmouse_drv_17.so.dbgsym: \
208 $$(TARGET_vboxmouse_drv_17)
209 $(QUIET)objcopy --only-keep-debug $< $(PATH_vboxmouse_drv_17)/vboxmouse_drv.so
210 $(QUIET)objcopy --add-gnu-debuglink=$(PATH_vboxmouse_drv_17)/vboxmouse_drv.so $<
211 $(QUIET)mv $(PATH_vboxmouse_drv_17)/vboxmouse_drv.so $@
212 $(QUIET)cp $@ $(PATH_OUT)/$(INST_ADDITIONS)
213
214
215# Check the undefined symbols in the X.Org modules against lists of allowed
216# symbols. Not very elegant, but it will catch problems early.
217ifdef VBOX_WITH_TESTCASES
218# ifndef VBOX_ONLY_ADDITIONS
219 if1of ($(KBUILD_TARGET),linux solaris)
220 ifeq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
221 ifndef VBOX_ONLY_SDK
222 OUR_PATH_VBOXMOUSE=$(PATH_ROOT)/src/VBox/Additions/x11/vboxmouse
223
224 ifeq ($(KBUILD_TARGET),linux)
225 TESTING += $(PATH_vboxmouse_drv)/tstvboxmouse68.run
226 OTHERS += $(PATH_vboxmouse_drv)/tstvboxmouse68.run
227$$(PATH_vboxmouse_drv)/tstvboxmouse68.run: $$(INSTARGET_vboxmouse_drv)
228 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
229 "$(INSTARGET_vboxmouse_drv)" "$(OUR_PATH_VBOXMOUSE)/undefined_68" --static
230 $(QUIET)$(APPEND) -t "$@" "done"
231 endif
232
233 TESTING += $(PATH_vboxmouse_drv_70)/tstvboxmouse70.run
234 OTHERS += $(PATH_vboxmouse_drv_70)/tstvboxmouse70.run
235$$(PATH_vboxmouse_drv_70)/tstvboxmouse70.run: $$(INSTARGET_vboxmouse_drv_70)
236 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
237 $(INSTARGET_vboxmouse_drv_70) $(OUR_PATH_VBOXMOUSE)/undefined_70
238 $(QUIET)$(APPEND) -t "$@" "done"
239
240 TESTING += $(PATH_vboxmouse_drv_71)/tstvboxmouse71.run
241 OTHERS += $(PATH_vboxmouse_drv_71)/tstvboxmouse71.run
242$$(PATH_vboxmouse_drv_71)/tstvboxmouse71.run: $$(INSTARGET_vboxmouse_drv_71)
243 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
244 $(INSTARGET_vboxmouse_drv_71) $(OUR_PATH_VBOXMOUSE)/undefined_71
245 $(QUIET)$(APPEND) -t "$@" "done"
246
247 TESTING += $(PATH_vboxmouse_drv_14)/tstvboxmouse14.run
248 OTHERS += $(PATH_vboxmouse_drv_14)/tstvboxmouse14.run
249$$(PATH_vboxmouse_drv_14)/tstvboxmouse14.run: $$(INSTARGET_vboxmouse_drv_14)
250 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
251 $(INSTARGET_vboxmouse_drv_14) $(OUR_PATH_VBOXMOUSE)/undefined_14
252 $(QUIET)$(APPEND) -t "$@" "done"
253
254 TESTING += $(PATH_vboxmouse_drv_15)/tstvboxmouse15.run
255 OTHERS += $(PATH_vboxmouse_drv_15)/tstvboxmouse15.run
256$$(PATH_vboxmouse_drv_15)/tstvboxmouse15.run: $$(INSTARGET_vboxmouse_drv_15)
257 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
258 $(INSTARGET_vboxmouse_drv_15) $(OUR_PATH_VBOXMOUSE)/undefined_15
259 $(QUIET)$(APPEND) -t "$@" "done"
260
261 TESTING += $(PATH_vboxmouse_drv_16)/tstvboxmouse16.run
262 OTHERS += $(PATH_vboxmouse_drv_16)/tstvboxmouse16.run
263$$(PATH_vboxmouse_drv_16)/tstvboxmouse16.run: $$(INSTARGET_vboxmouse_drv_16)
264 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
265 $(INSTARGET_vboxmouse_drv_16) $(OUR_PATH_VBOXMOUSE)/undefined_16
266 $(QUIET)$(APPEND) -t "$@" "done"
267
268 TESTING += $(PATH_vboxmouse_drv_17)/tstvboxmouse17.run
269 OTHERS += $(PATH_vboxmouse_drv_17)/tstvboxmouse17.run
270$$(PATH_vboxmouse_drv_17)/tstvboxmouse17.run: $$(INSTARGET_vboxmouse_drv_17)
271 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
272 $(INSTARGET_vboxmouse_drv_17) $(OUR_PATH_VBOXMOUSE)/undefined_15
273 $(QUIET)$(APPEND) -t "$@" "done"
274
275 endif # ! VBOX_ONLY_SDK
276 endif # eq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
277 endif # eq ($(KBUILD_TARGET),linux)
278# endif # ! VBOX_ONLY_ADDITIONS
279endif # VBOX_WITH_TESTCASES
280
281include $(KBUILD_PATH)/subfooter.kmk
282
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