VirtualBox

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

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

Additions/x11: build the X.Org server 1.8 Additions

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 9.9 KB
Line 
1# $Id: Makefile.kmk 28063 2010-04-07 19:32:12Z 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 # This one has to be defined when building server code on systems where
35 # unslgned long is 64bits
36 vboxmouse_drv_DEFS.amd64 += _XSERVER64
37 vboxmouse_drv_DEFS += \
38 _POSIX_C_SOURCE=199309L _POSIX_SOURCE _XOPEN_SOURCE \
39 _BSD_SOURCE _SVID_SOURCE _GNU_SOURCE SHAPE XINPUT XKB LBX XAPPGROUP \
40 XCSECURITY TOGCUP XF86BIGFONT DPMSExtension PIXPRIV PANORAMIX RENDER \
41 GCCUSESGAS AVOID_GLYPHBLT PIXPRIV SINGLEDEPTH XFreeXDGA XvExtension \
42 XFree86LOADER XFree86Server XF86VIDMODE XvMCExtension SMART_SCHEDULE \
43 BUILDDEBUG X_BYTE_ORDER=X_LITTLE_ENDIAN DNDEBUG FUNCPROTO=15 NARROWPROTO \
44 IN_MODULE XFree86Module PNP_MOUSE
45 vboxmouse_drv_INCS := \
46 $(VBOX_PATH_X11_XFREE_4_3)/include \
47 $(VBOX_PATH_X11_XFREE_4_3)/include/extensions \
48 $(VBOX_PATH_X11_XFREE_4_3)/include/X11 \
49 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86 \
50 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/common \
51 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support \
52 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support/bus \
53 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/mi \
54 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/include \
55 $(PATH_SUB_CURRENT)
56 vboxmouse_drv_SOURCES = \
57 mouse.c \
58 pnp.c \
59 VBoxUtils_68.c
60endif
61
62
63#
64# vboxmouse_drv_70
65#
66DLLS += vboxmouse_drv_70
67vboxmouse_drv_70_TEMPLATE = VBOXGUESTR3XORGMOD
68vboxmouse_drv_70_DEFS = \
69 XFree86Server IN_MODULE XFree86Module XFree86LOADER XINPUT XORG_7X
70ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here.
71 vboxmouse_drv_70_DEFS += _XPG6 __EXTENSIONS__
72endif
73vboxmouse_drv_70_INCS := \
74 $(VBOX_PATH_X11_XORG_7_0) \
75 $(VBOX_PATH_X11_XORG_7_0)/X11 \
76 $(VBOX_PATH_X11_XORG_7_0)/xorg \
77 $(PATH_SUB_CURRENT)
78vboxmouse_drv_70_SOURCES = \
79 xorg70/mouse.c \
80 xorg70/pnp.c \
81 VBoxUtils.c
82
83
84#
85# vboxmouse_drv_71
86#
87DLLS += vboxmouse_drv_71
88vboxmouse_drv_71_TEMPLATE = VBOXGUESTR3XORGMOD
89vboxmouse_drv_71_DEFS := $(vboxmouse_drv_70_DEFS)
90vboxmouse_drv_71_INCS := \
91 $(VBOX_PATH_X11_XORG_7_1) \
92 $(VBOX_PATH_X11_XORG_7_1)/X11 \
93 $(VBOX_PATH_X11_XORG_7_1)/xorg \
94 $(PATH_SUB_CURRENT)
95vboxmouse_drv_71_SOURCES = \
96 xorg71/mouse.c \
97 xorg71/pnp.c \
98 VBoxUtils.c
99
100
101#
102# vboxmouse_drv_13
103#
104DLLS += vboxmouse_drv_13
105vboxmouse_drv_13_TEMPLATE = VBOXGUESTR3XORGMOD
106vboxmouse_drv_13_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
107vboxmouse_drv_13_INCS := \
108 $(VBOX_PATH_X11_XORG_1_3) \
109 $(VBOX_PATH_X11_ROOT)/inputproto-1.4.4 \
110 $(VBOX_PATH_X11_ROOT)/xorg-server-1.3.0.0 \
111 $(PATH_SUB_CURRENT)
112vboxmouse_drv_13_SOURCES = \
113 vboxmouse_15.c
114
115
116#
117# vboxmouse_drv_14
118#
119DLLS += vboxmouse_drv_14
120vboxmouse_drv_14_TEMPLATE = VBOXGUESTR3XORGMOD
121vboxmouse_drv_14_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
122vboxmouse_drv_14_INCS := \
123 $(VBOX_PATH_X11_XORG_1_4) \
124 $(VBOX_PATH_X11_XORG_1_4)/xorg \
125 $(PATH_SUB_CURRENT)
126ifeq ($(KBUILD_TARGET),linux)
127vboxmouse_drv_14_SOURCES = \
128 vboxmouse_15.c
129else # Don't enable this for other platforms yet
130vboxmouse_drv_14_SOURCES = \
131 xorg14/mouse.c \
132 xorg14/pnp.c \
133 VBoxUtils.c
134endif
135
136
137#
138# vboxmouse_drv_15
139#
140DLLS += vboxmouse_drv_15
141vboxmouse_drv_15_TEMPLATE = VBOXGUESTR3XORGMOD
142vboxmouse_drv_15_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
143vboxmouse_drv_15_INCS := \
144 $(VBOX_PATH_X11_XORG_1_5) \
145 $(VBOX_PATH_X11_ROOT)/inputproto-1.4.4 \
146 $(VBOX_PATH_X11_ROOT)/xorg-server-1.5.3 \
147 $(PATH_SUB_CURRENT)
148vboxmouse_drv_15_SOURCES = \
149 vboxmouse_15.c
150
151
152#
153# vboxmouse_drv_16
154#
155DLLS += vboxmouse_drv_16
156vboxmouse_drv_16_TEMPLATE = VBOXGUESTR3XORGMOD
157vboxmouse_drv_16_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
158vboxmouse_drv_16_INCS := \
159 $(VBOX_PATH_X11_XORG_1_6) \
160 $(VBOX_PATH_X11_ROOT)/inputproto-1.4.4 \
161 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0 \
162 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
163 $(PATH_SUB_CURRENT)
164vboxmouse_drv_16_SOURCES = \
165 vboxmouse_15.c
166
167
168#
169# vboxmouse_drv_17
170#
171DLLS += vboxmouse_drv_17
172vboxmouse_drv_17_TEMPLATE = VBOXGUESTR3XORGMOD
173vboxmouse_drv_17_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
174## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
175vboxmouse_drv_17_INCS := \
176 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
177 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
178 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
179 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
180 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.99-20090831 \
181 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
182 $(VBOX_PATH_X11_ROOT)/xproto-7.0.15 \
183 $(PATH_SUB_CURRENT)
184vboxmouse_drv_17_SOURCES = \
185 vboxmouse_15.c
186
187
188#
189# vboxmouse_drv_18
190#
191DLLS += vboxmouse_drv_18
192vboxmouse_drv_18_TEMPLATE = VBOXGUESTR3XORGMOD
193vboxmouse_drv_18_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
194## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
195vboxmouse_drv_18_INCS := \
196 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
197 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
198 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
199 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
200 $(VBOX_PATH_X11_ROOT)/xorg-server-1.8.0 \
201 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
202 $(VBOX_PATH_X11_ROOT)/xproto-7.0.15 \
203 $(PATH_SUB_CURRENT)
204vboxmouse_drv_18_SOURCES = \
205 vboxmouse_15.c
206
207
208# Check the undefined symbols in the X.Org modules against lists of allowed
209# symbols. Not very elegant, but it will catch problems early.
210ifdef VBOX_WITH_TESTCASES
211# ifndef VBOX_ONLY_ADDITIONS
212 if1of ($(KBUILD_TARGET),linux solaris)
213 ifeq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
214 ifndef VBOX_ONLY_SDK
215 OUR_PATH_VBOXMOUSE=$(PATH_ROOT)/src/VBox/Additions/x11/vboxmouse
216
217 ifeq ($(KBUILD_TARGET),linux)
218 TESTING += $(PATH_vboxmouse_drv)/tstvboxmouse68.run
219 OTHERS += $(PATH_vboxmouse_drv)/tstvboxmouse68.run
220$$(PATH_vboxmouse_drv)/tstvboxmouse68.run: $$(INSTARGET_vboxmouse_drv)
221 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
222 "$(INSTARGET_vboxmouse_drv)" "$(OUR_PATH_VBOXMOUSE)/undefined_68" --static
223 $(QUIET)$(APPEND) -t "$@" "done"
224 endif
225
226 TESTING += $(PATH_vboxmouse_drv_70)/tstvboxmouse70.run
227 OTHERS += $(PATH_vboxmouse_drv_70)/tstvboxmouse70.run
228$$(PATH_vboxmouse_drv_70)/tstvboxmouse70.run: $$(INSTARGET_vboxmouse_drv_70)
229 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
230 $(INSTARGET_vboxmouse_drv_70) $(OUR_PATH_VBOXMOUSE)/undefined_70
231 $(QUIET)$(APPEND) -t "$@" "done"
232
233 TESTING += $(PATH_vboxmouse_drv_71)/tstvboxmouse71.run
234 OTHERS += $(PATH_vboxmouse_drv_71)/tstvboxmouse71.run
235$$(PATH_vboxmouse_drv_71)/tstvboxmouse71.run: $$(INSTARGET_vboxmouse_drv_71)
236 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
237 $(INSTARGET_vboxmouse_drv_71) $(OUR_PATH_VBOXMOUSE)/undefined_71
238 $(QUIET)$(APPEND) -t "$@" "done"
239
240 TESTING += $(PATH_vboxmouse_drv_13)/tstvboxmouse13.run
241 OTHERS += $(PATH_vboxmouse_drv_13)/tstvboxmouse13.run
242$$(PATH_vboxmouse_drv_13)/tstvboxmouse13.run: $$(INSTARGET_vboxmouse_drv_13)
243 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
244 $(INSTARGET_vboxmouse_drv_13) $(OUR_PATH_VBOXMOUSE)/undefined_15
245 $(QUIET)$(APPEND) -t "$@" "done"
246
247ifeq ($(KBUILD_TARGET),linux)
248 TESTING += $(PATH_vboxmouse_drv_14)/tstvboxmouse14.run
249 OTHERS += $(PATH_vboxmouse_drv_14)/tstvboxmouse14.run
250$$(PATH_vboxmouse_drv_14)/tstvboxmouse14.run: $$(INSTARGET_vboxmouse_drv_14)
251 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
252 $(INSTARGET_vboxmouse_drv_14) $(OUR_PATH_VBOXMOUSE)/undefined_15
253 $(QUIET)$(APPEND) -t "$@" "done"
254endif
255
256 TESTING += $(PATH_vboxmouse_drv_15)/tstvboxmouse15.run
257 OTHERS += $(PATH_vboxmouse_drv_15)/tstvboxmouse15.run
258$$(PATH_vboxmouse_drv_15)/tstvboxmouse15.run: $$(INSTARGET_vboxmouse_drv_15)
259 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
260 $(INSTARGET_vboxmouse_drv_15) $(OUR_PATH_VBOXMOUSE)/undefined_15
261 $(QUIET)$(APPEND) -t "$@" "done"
262
263 TESTING += $(PATH_vboxmouse_drv_16)/tstvboxmouse16.run
264 OTHERS += $(PATH_vboxmouse_drv_16)/tstvboxmouse16.run
265$$(PATH_vboxmouse_drv_16)/tstvboxmouse16.run: $$(INSTARGET_vboxmouse_drv_16)
266 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
267 $(INSTARGET_vboxmouse_drv_16) $(OUR_PATH_VBOXMOUSE)/undefined_15
268 $(QUIET)$(APPEND) -t "$@" "done"
269
270 TESTING += $(PATH_vboxmouse_drv_17)/tstvboxmouse17.run
271 OTHERS += $(PATH_vboxmouse_drv_17)/tstvboxmouse17.run
272$$(PATH_vboxmouse_drv_17)/tstvboxmouse17.run: $$(INSTARGET_vboxmouse_drv_17)
273 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
274 $(INSTARGET_vboxmouse_drv_17) $(OUR_PATH_VBOXMOUSE)/undefined_15
275 $(QUIET)$(APPEND) -t "$@" "done"
276
277 TESTING += $(PATH_vboxmouse_drv_18)/tstvboxmouse18.run
278 OTHERS += $(PATH_vboxmouse_drv_18)/tstvboxmouse18.run
279$$(PATH_vboxmouse_drv_18)/tstvboxmouse18.run: $$(INSTARGET_vboxmouse_drv_18)
280 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
281 $(INSTARGET_vboxmouse_drv_18) $(OUR_PATH_VBOXMOUSE)/undefined_15
282 $(QUIET)$(APPEND) -t "$@" "done"
283
284 endif # ! VBOX_ONLY_SDK
285 endif # eq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
286 endif # eq ($(KBUILD_TARGET),linux)
287# endif # ! VBOX_ONLY_ADDITIONS
288endif # VBOX_WITH_TESTCASES
289
290include $(KBUILD_PATH)/subfooter.kmk
Note: See TracBrowser for help on using the repository browser.

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