VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/vboxvideo/Makefile.kmk@ 41244

Last change on this file since 41244 was 40349, checked in by vboxsync, 13 years ago

Additions/xorg: support X.Org Server 1.12.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 20.7 KB
Line 
1# $Id: Makefile.kmk 40349 2012-03-05 11:40:49Z vboxsync $
2## @file
3# Sub-Makefile for the VBox Linux Additions X.org graphics driver.
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# Include sub-makefile(s).
23#
24include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
25
26#
27# vboxvideo_drv
28#
29if1of ($(KBUILD_TARGET), linux)
30 SYSMODS += vboxvideo_drv
31endif # target linux
32vboxvideo_drv_TEMPLATE = VBOXGUESTR3XF86MOD
33vboxvideo_drv_DEFS.linux = linux
34vboxvideo_drv_DEFS.x86 = __i386__
35# This one has to be defined when building server code on systems where
36# unsigned long is 64bits
37vboxvideo_drv_DEFS.amd64 += _XSERVER64
38vboxvideo_drv_DEFS = \
39 _POSIX_C_SOURCE=199309L _POSIX_SOURCE _XOPEN_SOURCE \
40 _BSD_SOURCE _SVID_SOURCE _GNU_SOURCE SHAPE XINPUT XKB LBX XAPPGROUP \
41 XCSECURITY TOGCUP XF86BIGFONT DPMSExtension PIXPRIV PANORAMIX RENDER \
42 GCCUSESGAS AVOID_GLYPHBLT PIXPRIV SINGLEDEPTH XFreeXDGA XvExtension \
43 XFree86LOADER XFree86Server XF86VIDMODE XvMCExtension SMART_SCHEDULE \
44 BUILDDEBUG X_BYTE_ORDER=X_LITTLE_ENDIAN DNDEBUG FUNCPROTO=15 NARROWPROTO \
45 IN_MODULE XFree86Module IN_XF86_MODULE IN_RT_STATIC
46vboxvideo_drv_DEFS += memset=xf86memset memcpy=xf86memcpy
47vboxvideo_drv_INCS = \
48 $(VBOX_PATH_X11_XFREE_4_3)/include \
49 $(VBOX_PATH_X11_XFREE_4_3)/include/X11 \
50 $(VBOX_PATH_X11_XFREE_4_3)/include/X11/extensions \
51 $(VBOX_PATH_X11_XFREE_4_3)/include/extensions \
52 $(VBOX_PATH_X11_XFREE_4_3)/include/fonts \
53 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/afb \
54 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/include \
55 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/fb \
56 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86 \
57 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/common \
58 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/ddc \
59 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/int10 \
60 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/i2c \
61 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support \
62 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/vbe \
63 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support/bus \
64 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/rac \
65 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/ramdac \
66 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/shadowfb \
67 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/vgahw \
68 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf1bpp \
69 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf24_32bpp \
70 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf4bpp \
71 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/mfb \
72 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/mi \
73 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/miext/shadow \
74 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/render \
75 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/randr \
76 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/Xext
77vboxvideo_drv_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
78vboxvideo_drv_SOURCES = \
79 pointer.c \
80 setmode.c \
81 vboxutils.c \
82 vboxvideo.c \
83 vbva.c \
84 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
85 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp \
86 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \
87 $(PATH_ROOT)/src/VBox/GuestHost/HGSMI/HGSMICommon.cpp \
88 $(PATH_ROOT)/src/VBox/Runtime/common/alloc/heapsimple.cpp \
89 $(PATH_ROOT)/src/VBox/Runtime/common/alloc/heapoffset.cpp
90 # Any global symbols in the driver object files will be added to XFree86's
91 # symbol table, which can cause problems if we e.g. define a symbol in two
92 # modules.
93 vboxvideo_drv_POST_CMDS = \
94 objcopy --keep-global-symbol vboxvideoModuleData $(out) $(out)-objcopy$$(NLTAB) \
95 $(MV) -f $(out)-objcopy $(out)
96
97#
98# vboxvideo_drv_70
99#
100# Remark: The other X.org drivers below are derived from this one. So, to make
101# that as simple as possible we do ifeq/if1of test here and extends the
102# base keywords instead of using .solaris or .linux.
103# Also it is *important* to use := and not = when deriving a property.
104#
105DLLS += vboxvideo_drv_70
106vboxvideo_drv_70_TEMPLATE = VBOXGUESTR3XORGMOD
107if1of ($(KBUILD_TARGET), linux)
108 vboxvideo_drv_70_CFLAGS += \
109 -Wno-conversion -Wno-unused-parameter $(VBOX_GCC_Wno-variadic-macros) # template?
110endif
111vboxvideo_drv_70_DEFS := \
112 XFree86Server IN_MODULE XFree86Module XFree86LOADER XORG_7X RENDER=1 IN_XF86_MODULE IN_RT_STATIC
113ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here.
114 vboxvideo_drv_70_DEFS += __EXTENSIONS__
115 vboxvideo_drv_70_CFLAGS += -D_XPG6 # Until we have moved the C++ bits into a library
116endif
117vboxvideo_drv_70_INCS = \
118 $(VBOX_PATH_X11_XORG_7_0) \
119 $(VBOX_PATH_X11_XORG_7_0)/X11 \
120 $(VBOX_PATH_X11_XORG_7_0)/xorg
121vboxvideo_drv_70_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
122vboxvideo_drv_70_SOURCES = $(vboxvideo_drv_SOURCES)
123
124
125#
126# vboxvideo_drv_71
127#
128DLLS += vboxvideo_drv_71
129vboxvideo_drv_71_TEMPLATE = VBOXGUESTR3XORGMOD
130vboxvideo_drv_71_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
131vboxvideo_drv_71_DEFS := $(vboxvideo_drv_70_DEFS)
132vboxvideo_drv_71_INCS = \
133 $(VBOX_PATH_X11_XORG_7_1) \
134 $(VBOX_PATH_X11_XORG_7_1)/X11 \
135 $(VBOX_PATH_X11_XORG_7_1)/xorg
136vboxvideo_drv_71_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
137vboxvideo_drv_71_SOURCES = $(vboxvideo_drv_SOURCES)
138
139
140#
141# vboxvideo_drv_13
142#
143DLLS += vboxvideo_drv_13
144vboxvideo_drv_13_TEMPLATE = VBOXGUESTR3XORGMOD
145vboxvideo_drv_13_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
146vboxvideo_drv_13_DEFS := $(vboxvideo_drv_70_DEFS) VBOXVIDEO_13
147vboxvideo_drv_13_INCS = \
148 $(VBOX_PATH_X11_XORG_1_3) \
149 $(VBOX_PATH_X11_XORG_1_3)/X11 \
150 $(VBOX_PATH_X11_XORG_1_3)/xorg \
151 $(VBOX_PATH_X11_ROOT)/glproto-1.4.10 \
152 $(VBOX_PATH_X11_ROOT)/mesa-7.2/include \
153 $(VBOX_PATH_X11_ROOT)/libdrm-2.4.13 \
154 $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0
155vboxvideo_drv_13_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
156vboxvideo_drv_13_SOURCES = $(vboxvideo_drv_SOURCES) edid.c
157
158
159#
160# vboxvideo_drv_14
161#
162DLLS += vboxvideo_drv_14
163vboxvideo_drv_14_TEMPLATE = VBOXGUESTR3XORGMOD
164vboxvideo_drv_14_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
165vboxvideo_drv_14_DEFS := $(vboxvideo_drv_13_DEFS)
166vboxvideo_drv_14_INCS = \
167 $(VBOX_PATH_X11_XORG_1_4) \
168 $(VBOX_PATH_X11_XORG_1_4)/X11 \
169 $(VBOX_PATH_X11_XORG_1_4)/xorg \
170 $(VBOX_PATH_X11_ROOT)/glproto-1.4.10 \
171 $(VBOX_PATH_X11_ROOT)/mesa-7.2/include \
172 $(VBOX_PATH_X11_ROOT)/libdrm-2.4.13 \
173 $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0
174vboxvideo_drv_14_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
175vboxvideo_drv_14_SOURCES = $(vboxvideo_drv_13_SOURCES)
176
177
178#
179# vboxvideo_drv_15
180#
181DLLS += vboxvideo_drv_15
182vboxvideo_drv_15_TEMPLATE = VBOXGUESTR3XORGMOD
183vboxvideo_drv_15_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
184vboxvideo_drv_15_DEFS := $(vboxvideo_drv_13_DEFS) NO_ANSIC PCIACCESS \
185 VBOX_NO_LOW_COLOUR
186if1of ($(KBUILD_TARGET), linux solaris)
187 vboxvideo_drv_15_DEFS += VBOX_DRI
188endif
189vboxvideo_drv_15_INCS = \
190 $(VBOX_PATH_X11_XORG_1_5) \
191 $(VBOX_PATH_X11_XORG_1_5)/X11 \
192 $(VBOX_PATH_X11_ROOT)/glproto-1.4.10 \
193 $(VBOX_PATH_X11_ROOT)/mesa-7.2/include \
194 $(VBOX_PATH_X11_ROOT)/libdrm-2.4.13 \
195 $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0 \
196 $(VBOX_PATH_X11_ROOT)/xorg-server-1.5.3
197vboxvideo_drv_15_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
198vboxvideo_drv_15_SOURCES = $(vboxvideo_drv_13_SOURCES)
199if1of ($(KBUILD_TARGET), linux solaris)
200 vboxvideo_drv_15_SOURCES += \
201 vboxvideo_dri.c
202endif
203
204
205#
206# vboxvideo_drv_16
207#
208DLLS += vboxvideo_drv_16
209vboxvideo_drv_16_TEMPLATE = VBOXGUESTR3XORGMOD
210vboxvideo_drv_16_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
211vboxvideo_drv_16_DEFS := $(vboxvideo_drv_15_DEFS)
212vboxvideo_drv_16_INCS = \
213 $(VBOX_PATH_X11_XORG_1_6) \
214 $(VBOX_PATH_X11_XORG_1_6)/X11 \
215 $(VBOX_PATH_X11_ROOT)/glproto-1.4.10 \
216 $(VBOX_PATH_X11_ROOT)/mesa-7.2/include \
217 $(VBOX_PATH_X11_ROOT)/libdrm-2.4.13 \
218 $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0 \
219 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0 \
220 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
221vboxvideo_drv_16_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
222vboxvideo_drv_16_SOURCES := $(vboxvideo_drv_15_SOURCES)
223
224
225#
226# vboxvideo_drv_17
227#
228DLLS += vboxvideo_drv_17
229vboxvideo_drv_17_TEMPLATE = VBOXGUESTR3XORGMOD
230vboxvideo_drv_17_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
231vboxvideo_drv_17_DEFS := $(vboxvideo_drv_15_DEFS)
232## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
233vboxvideo_drv_17_INCS = \
234 $(VBOX_PATH_X11_ROOT)/fontsproto-2.1.0 \
235 $(VBOX_PATH_X11_ROOT)/glproto-1.4.10 \
236 $(VBOX_PATH_X11_ROOT)/mesa-7.2/include \
237 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
238 $(VBOX_PATH_X11_ROOT)/libdrm-2.4.13 \
239 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
240 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
241 $(VBOX_PATH_X11_ROOT)/randrproto-1.3.0 \
242 $(VBOX_PATH_X11_ROOT)/renderproto-0.11 \
243 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
244 $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0 \
245 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.99-20090831 \
246 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
247 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18
248vboxvideo_drv_17_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
249vboxvideo_drv_17_SOURCES := $(vboxvideo_drv_15_SOURCES)
250
251
252#
253# vboxvideo_drv_18
254#
255DLLS += vboxvideo_drv_18
256vboxvideo_drv_18_TEMPLATE = VBOXGUESTR3XORGMOD
257vboxvideo_drv_18_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
258vboxvideo_drv_18_DEFS := $(vboxvideo_drv_15_DEFS)
259## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
260vboxvideo_drv_18_INCS = \
261 $(VBOX_PATH_X11_ROOT)/fontsproto-2.1.0 \
262 $(VBOX_PATH_X11_ROOT)/glproto-1.4.10 \
263 $(VBOX_PATH_X11_ROOT)/mesa-7.2/include \
264 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
265 $(VBOX_PATH_X11_ROOT)/libdrm-2.4.13 \
266 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
267 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
268 $(VBOX_PATH_X11_ROOT)/randrproto-1.3.0 \
269 $(VBOX_PATH_X11_ROOT)/renderproto-0.11 \
270 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
271 $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0 \
272 $(VBOX_PATH_X11_ROOT)/xorg-server-1.8.0 \
273 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
274 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18
275vboxvideo_drv_18_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
276vboxvideo_drv_18_SOURCES := $(vboxvideo_drv_15_SOURCES)
277
278
279#
280# vboxvideo_drv_19
281#
282DLLS += vboxvideo_drv_19
283vboxvideo_drv_19_TEMPLATE = VBOXGUESTR3XORGMOD
284vboxvideo_drv_19_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
285vboxvideo_drv_19_DEFS := $(vboxvideo_drv_15_DEFS)
286## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
287vboxvideo_drv_19_INCS = \
288 $(VBOX_PATH_X11_ROOT)/fontsproto-2.1.0 \
289 $(VBOX_PATH_X11_ROOT)/glproto-1.4.10 \
290 $(VBOX_PATH_X11_ROOT)/mesa-7.2/include \
291 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
292 $(VBOX_PATH_X11_ROOT)/libdrm-2.4.13 \
293 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
294 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
295 $(VBOX_PATH_X11_ROOT)/randrproto-1.3.0 \
296 $(VBOX_PATH_X11_ROOT)/renderproto-0.11 \
297 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
298 $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0 \
299 $(VBOX_PATH_X11_ROOT)/xorg-server-1.9.0 \
300 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
301 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18
302vboxvideo_drv_19_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
303vboxvideo_drv_19_SOURCES := $(vboxvideo_drv_15_SOURCES)
304
305
306#
307# vboxvideo_drv_110
308#
309DLLS += vboxvideo_drv_110
310vboxvideo_drv_110_TEMPLATE = VBOXGUESTR3XORGMOD
311vboxvideo_drv_110_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
312vboxvideo_drv_110_DEFS := $(vboxvideo_drv_15_DEFS)
313## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
314vboxvideo_drv_110_INCS = \
315 $(VBOX_PATH_X11_ROOT)/fontsproto-2.1.0 \
316 $(VBOX_PATH_X11_ROOT)/glproto-1.4.10 \
317 $(VBOX_PATH_X11_ROOT)/mesa-7.2/include \
318 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
319 $(VBOX_PATH_X11_ROOT)/libdrm-2.4.13 \
320 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
321 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
322 $(VBOX_PATH_X11_ROOT)/randrproto-1.3.0 \
323 $(VBOX_PATH_X11_ROOT)/renderproto-0.11 \
324 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
325 $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0 \
326 $(VBOX_PATH_X11_ROOT)/xorg-server-1.10.0 \
327 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
328 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18
329vboxvideo_drv_110_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
330vboxvideo_drv_110_SOURCES := $(vboxvideo_drv_15_SOURCES)
331
332
333#
334# vboxvideo_drv_111
335#
336DLLS += vboxvideo_drv_111
337vboxvideo_drv_111_TEMPLATE = VBOXGUESTR3XORGMOD
338vboxvideo_drv_111_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
339vboxvideo_drv_111_DEFS := $(vboxvideo_drv_15_DEFS)
340## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
341vboxvideo_drv_111_INCS = \
342 $(VBOX_PATH_X11_ROOT)/fontsproto-2.1.0 \
343 $(VBOX_PATH_X11_ROOT)/glproto-1.4.10 \
344 $(VBOX_PATH_X11_ROOT)/mesa-7.2/include \
345 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
346 $(VBOX_PATH_X11_ROOT)/libdrm-2.4.13 \
347 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
348 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
349 $(VBOX_PATH_X11_ROOT)/randrproto-1.3.0 \
350 $(VBOX_PATH_X11_ROOT)/renderproto-0.11 \
351 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
352 $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0 \
353 $(VBOX_PATH_X11_ROOT)/xorg-server-1.11.0 \
354 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
355 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18
356vboxvideo_drv_111_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
357vboxvideo_drv_111_SOURCES := $(vboxvideo_drv_15_SOURCES)
358
359
360#
361# vboxvideo_drv_112
362#
363DLLS += vboxvideo_drv_112
364vboxvideo_drv_112_TEMPLATE = VBOXGUESTR3XORGMOD
365vboxvideo_drv_112_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
366vboxvideo_drv_112_DEFS := $(vboxvideo_drv_15_DEFS)
367## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
368vboxvideo_drv_112_INCS = \
369 $(VBOX_PATH_X11_ROOT)/fontsproto-2.1.0 \
370 $(VBOX_PATH_X11_ROOT)/glproto-1.4.10 \
371 $(VBOX_PATH_X11_ROOT)/mesa-7.2/include \
372 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
373 $(VBOX_PATH_X11_ROOT)/libdrm-2.4.13 \
374 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
375 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
376 $(VBOX_PATH_X11_ROOT)/randrproto-1.3.0 \
377 $(VBOX_PATH_X11_ROOT)/renderproto-0.11 \
378 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
379 $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0 \
380 $(VBOX_PATH_X11_ROOT)/xorg-server-1.12.0 \
381 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
382 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18
383vboxvideo_drv_112_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
384vboxvideo_drv_112_SOURCES := $(vboxvideo_drv_15_SOURCES)
385
386
387# Check the undefined symbols in the X.Org modules against lists of allowed
388# symbols. Not very elegant, but it will catch problems early.
389ifdef VBOX_WITH_TESTCASES
390# ifndef VBOX_ONLY_ADDITIONS
391 if1of ($(KBUILD_TARGET),linux solaris)
392 ifeq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
393 ifndef VBOX_ONLY_SDK
394 VBOXVIDEO_SRC_PATH := $(PATH_SUB_CURRENT)
395
396 ifeq ($(KBUILD_TARGET),linux)
397 TESTING += $(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run
398 OTHERS += $(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run
399$$(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run: $$(vboxvideo_drv_1_STAGE_TARGET)
400 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
401 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
402 $(vboxvideo_drv_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined --static
403 $(QUIET)$(APPEND) -t "$@" "done"
404 endif
405
406 TESTING += $(vboxvideo_drv_70_0_OUTDIR)/tstvboxvideo70.run
407 OTHERS += $(vboxvideo_drv_70_0_OUTDIR)/tstvboxvideo70.run
408$$(vboxvideo_drv_70_0_OUTDIR)/tstvboxvideo70.run: $$(vboxvideo_drv_70_1_STAGE_TARGET)
409 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
410 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
411 $(vboxvideo_drv_70_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
412 $(QUIET)$(APPEND) -t "$@" "done"
413
414 TESTING += $(vboxvideo_drv_71_0_OUTDIR)/tstvboxvideo71.run
415 OTHERS += $(vboxvideo_drv_71_0_OUTDIR)/tstvboxvideo71.run
416$$(vboxvideo_drv_71_0_OUTDIR)/tstvboxvideo71.run: $$(vboxvideo_drv_71_1_STAGE_TARGET)
417 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
418 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
419 $(vboxvideo_drv_71_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
420 $(QUIET)$(APPEND) -t "$@" "done"
421
422 TESTING += $(vboxvideo_drv_13_0_OUTDIR)/tstvboxvideo13.run
423 OTHERS += $(vboxvideo_drv_13_0_OUTDIR)/tstvboxvideo13.run
424$$(vboxvideo_drv_13_0_OUTDIR)/tstvboxvideo13.run: $$(vboxvideo_drv_13_1_STAGE_TARGET)
425 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
426 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
427 $(vboxvideo_drv_13_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
428 $(QUIET)$(APPEND) -t "$@" "done"
429
430 TESTING += $(vboxvideo_drv_14_0_OUTDIR)/tstvboxvideo14.run
431 OTHERS += $(vboxvideo_drv_14_0_OUTDIR)/tstvboxvideo14.run
432$$(vboxvideo_drv_14_0_OUTDIR)/tstvboxvideo14.run: $$(vboxvideo_drv_14_1_STAGE_TARGET)
433 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
434 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
435 $(vboxvideo_drv_14_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
436 $(QUIET)$(APPEND) -t "$@" "done"
437
438 TESTING += $(vboxvideo_drv_15_0_OUTDIR)/tstvboxvideo15.run
439 OTHERS += $(vboxvideo_drv_15_0_OUTDIR)/tstvboxvideo15.run
440$$(vboxvideo_drv_15_0_OUTDIR)/tstvboxvideo15.run: $$(vboxvideo_drv_15_1_STAGE_TARGET)
441 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
442 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
443 $(vboxvideo_drv_15_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
444 $(QUIET)$(APPEND) -t "$@" "done"
445
446 TESTING += $(vboxvideo_drv_16_0_OUTDIR)/tstvboxvideo16.run
447 OTHERS += $(vboxvideo_drv_16_0_OUTDIR)/tstvboxvideo16.run
448$$(vboxvideo_drv_16_0_OUTDIR)/tstvboxvideo16.run: $$(vboxvideo_drv_16_1_STAGE_TARGET)
449 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
450 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
451 $(vboxvideo_drv_16_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
452 $(QUIET)$(APPEND) -t "$@" "done"
453
454 TESTING += $(vboxvideo_drv_17_0_OUTDIR)/tstvboxvideo17.run
455 OTHERS += $(vboxvideo_drv_17_0_OUTDIR)/tstvboxvideo17.run
456$$(vboxvideo_drv_17_0_OUTDIR)/tstvboxvideo17.run: $$(vboxvideo_drv_17_1_STAGE_TARGET)
457 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
458 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
459 $(vboxvideo_drv_17_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
460 $(QUIET)$(APPEND) -t "$@" "done"
461
462 TESTING += $(vboxvideo_drv_18_0_OUTDIR)/tstvboxvideo18.run
463 OTHERS += $(vboxvideo_drv_18_0_OUTDIR)/tstvboxvideo18.run
464$$(vboxvideo_drv_18_0_OUTDIR)/tstvboxvideo18.run: $$(vboxvideo_drv_18_1_STAGE_TARGET)
465 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
466 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
467 $(vboxvideo_drv_18_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
468 $(QUIET)$(APPEND) -t "$@" "done"
469
470 TESTING += $(vboxvideo_drv_19_0_OUTDIR)/tstvboxvideo19.run
471 OTHERS += $(vboxvideo_drv_19_0_OUTDIR)/tstvboxvideo19.run
472$$(vboxvideo_drv_19_0_OUTDIR)/tstvboxvideo19.run: $$(vboxvideo_drv_19_1_STAGE_TARGET)
473 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
474 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
475 $(vboxvideo_drv_19_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
476 $(QUIET)$(APPEND) -t "$@" "done"
477
478 TESTING += $(vboxvideo_drv_110_0_OUTDIR)/tstvboxvideo110.run
479 OTHERS += $(vboxvideo_drv_110_0_OUTDIR)/tstvboxvideo110.run
480$$(vboxvideo_drv_110_0_OUTDIR)/tstvboxvideo110.run: $$(vboxvideo_drv_110_1_STAGE_TARGET)
481 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
482 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
483 $(vboxvideo_drv_110_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
484 $(QUIET)$(APPEND) -t "$@" "done"
485
486 TESTING += $(vboxvideo_drv_111_0_OUTDIR)/tstvboxvideo111.run
487 OTHERS += $(vboxvideo_drv_111_0_OUTDIR)/tstvboxvideo111.run
488$$(vboxvideo_drv_111_0_OUTDIR)/tstvboxvideo111.run: $$(vboxvideo_drv_111_1_STAGE_TARGET)
489 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
490 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
491 $(vboxvideo_drv_111_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
492 $(QUIET)$(APPEND) -t "$@" "done"
493
494 TESTING += $(vboxvideo_drv_112_0_OUTDIR)/tstvboxvideo112.run
495 OTHERS += $(vboxvideo_drv_112_0_OUTDIR)/tstvboxvideo112.run
496$$(vboxvideo_drv_112_0_OUTDIR)/tstvboxvideo112.run: $$(vboxvideo_drv_112_1_STAGE_TARGET)
497 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
498 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \
499 $(vboxvideo_drv_112_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
500 $(QUIET)$(APPEND) -t "$@" "done"
501
502 endif # ! VBOX_ONLY_SDK
503 endif # eq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
504 endif # eq ($(KBUILD_TARGET),linux)
505# endif # ! VBOX_ONLY_ADDITIONS
506endif # VBOX_WITH_TESTCASES
507
508include $(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