VirtualBox

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

Last change on this file since 43257 was 43257, checked in by vboxsync, 12 years ago

4.2.0 RC4

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 22.1 KB
Line 
1# $Id: Makefile.kmk 43257 2012-09-08 09:29:54Z vboxsync $
2## @file
3# Sub-Makefile for the VBox Linux Additions X.org graphics driver.
4#
5
6#
7# Copyright (C) 2006-2012 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#
388# vboxvideo_drv_113
389#
390#DLLS += vboxvideo_drv_113
391vboxvideo_drv_113_TEMPLATE = VBOXGUESTR3XORGMOD
392vboxvideo_drv_113_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
393vboxvideo_drv_113_DEFS := $(vboxvideo_drv_15_DEFS)
394## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
395vboxvideo_drv_113_INCS = \
396 $(VBOX_PATH_X11_ROOT)/fontsproto-2.1.0 \
397 $(VBOX_PATH_X11_ROOT)/glproto-1.4.10 \
398 $(VBOX_PATH_X11_ROOT)/mesa-7.2/include \
399 $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
400 $(VBOX_PATH_X11_ROOT)/libdrm-2.4.13 \
401 $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
402 $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
403 $(VBOX_PATH_X11_ROOT)/randrproto-1.3.0 \
404 $(VBOX_PATH_X11_ROOT)/renderproto-0.11 \
405 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
406 $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0 \
407 $(VBOX_PATH_X11_ROOT)/xorg-server-1.13.0 \
408 $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
409 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18
410vboxvideo_drv_113_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
411vboxvideo_drv_113_SOURCES := $(vboxvideo_drv_15_SOURCES)
412
413
414# Check the undefined symbols in the X.Org modules against lists of allowed
415# symbols. Not very elegant, but it will catch problems early.
416ifdef VBOX_WITH_TESTCASES
417# ifndef VBOX_ONLY_ADDITIONS
418 if1of ($(KBUILD_TARGET),linux solaris)
419 ifeq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
420 ifndef VBOX_ONLY_SDK
421 VBOXVIDEO_SRC_PATH := $(PATH_SUB_CURRENT)
422
423 ifeq ($(KBUILD_TARGET),linux)
424 TESTING += $(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run
425 OTHERS += $(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run
426$$(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run: $$(vboxvideo_drv_1_STAGE_TARGET)
427 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
428 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
429 $(vboxvideo_drv_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined --static
430 $(QUIET)$(APPEND) -t "$@" "done"
431 endif
432
433 TESTING += $(vboxvideo_drv_70_0_OUTDIR)/tstvboxvideo70.run
434 OTHERS += $(vboxvideo_drv_70_0_OUTDIR)/tstvboxvideo70.run
435$$(vboxvideo_drv_70_0_OUTDIR)/tstvboxvideo70.run: $$(vboxvideo_drv_70_1_STAGE_TARGET)
436 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
437 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
438 $(vboxvideo_drv_70_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
439 $(QUIET)$(APPEND) -t "$@" "done"
440
441 TESTING += $(vboxvideo_drv_71_0_OUTDIR)/tstvboxvideo71.run
442 OTHERS += $(vboxvideo_drv_71_0_OUTDIR)/tstvboxvideo71.run
443$$(vboxvideo_drv_71_0_OUTDIR)/tstvboxvideo71.run: $$(vboxvideo_drv_71_1_STAGE_TARGET)
444 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
445 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
446 $(vboxvideo_drv_71_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
447 $(QUIET)$(APPEND) -t "$@" "done"
448
449 TESTING += $(vboxvideo_drv_13_0_OUTDIR)/tstvboxvideo13.run
450 OTHERS += $(vboxvideo_drv_13_0_OUTDIR)/tstvboxvideo13.run
451$$(vboxvideo_drv_13_0_OUTDIR)/tstvboxvideo13.run: $$(vboxvideo_drv_13_1_STAGE_TARGET)
452 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
453 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
454 $(vboxvideo_drv_13_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
455 $(QUIET)$(APPEND) -t "$@" "done"
456
457 TESTING += $(vboxvideo_drv_14_0_OUTDIR)/tstvboxvideo14.run
458 OTHERS += $(vboxvideo_drv_14_0_OUTDIR)/tstvboxvideo14.run
459$$(vboxvideo_drv_14_0_OUTDIR)/tstvboxvideo14.run: $$(vboxvideo_drv_14_1_STAGE_TARGET)
460 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
461 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
462 $(vboxvideo_drv_14_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
463 $(QUIET)$(APPEND) -t "$@" "done"
464
465 TESTING += $(vboxvideo_drv_15_0_OUTDIR)/tstvboxvideo15.run
466 OTHERS += $(vboxvideo_drv_15_0_OUTDIR)/tstvboxvideo15.run
467$$(vboxvideo_drv_15_0_OUTDIR)/tstvboxvideo15.run: $$(vboxvideo_drv_15_1_STAGE_TARGET)
468 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
469 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
470 $(vboxvideo_drv_15_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
471 $(QUIET)$(APPEND) -t "$@" "done"
472
473 TESTING += $(vboxvideo_drv_16_0_OUTDIR)/tstvboxvideo16.run
474 OTHERS += $(vboxvideo_drv_16_0_OUTDIR)/tstvboxvideo16.run
475$$(vboxvideo_drv_16_0_OUTDIR)/tstvboxvideo16.run: $$(vboxvideo_drv_16_1_STAGE_TARGET)
476 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
477 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
478 $(vboxvideo_drv_16_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
479 $(QUIET)$(APPEND) -t "$@" "done"
480
481 TESTING += $(vboxvideo_drv_17_0_OUTDIR)/tstvboxvideo17.run
482 OTHERS += $(vboxvideo_drv_17_0_OUTDIR)/tstvboxvideo17.run
483$$(vboxvideo_drv_17_0_OUTDIR)/tstvboxvideo17.run: $$(vboxvideo_drv_17_1_STAGE_TARGET)
484 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
485 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
486 $(vboxvideo_drv_17_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
487 $(QUIET)$(APPEND) -t "$@" "done"
488
489 TESTING += $(vboxvideo_drv_18_0_OUTDIR)/tstvboxvideo18.run
490 OTHERS += $(vboxvideo_drv_18_0_OUTDIR)/tstvboxvideo18.run
491$$(vboxvideo_drv_18_0_OUTDIR)/tstvboxvideo18.run: $$(vboxvideo_drv_18_1_STAGE_TARGET)
492 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
493 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
494 $(vboxvideo_drv_18_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
495 $(QUIET)$(APPEND) -t "$@" "done"
496
497 TESTING += $(vboxvideo_drv_19_0_OUTDIR)/tstvboxvideo19.run
498 OTHERS += $(vboxvideo_drv_19_0_OUTDIR)/tstvboxvideo19.run
499$$(vboxvideo_drv_19_0_OUTDIR)/tstvboxvideo19.run: $$(vboxvideo_drv_19_1_STAGE_TARGET)
500 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
501 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
502 $(vboxvideo_drv_19_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
503 $(QUIET)$(APPEND) -t "$@" "done"
504
505 TESTING += $(vboxvideo_drv_110_0_OUTDIR)/tstvboxvideo110.run
506 OTHERS += $(vboxvideo_drv_110_0_OUTDIR)/tstvboxvideo110.run
507$$(vboxvideo_drv_110_0_OUTDIR)/tstvboxvideo110.run: $$(vboxvideo_drv_110_1_STAGE_TARGET)
508 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
509 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
510 $(vboxvideo_drv_110_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
511 $(QUIET)$(APPEND) -t "$@" "done"
512
513 TESTING += $(vboxvideo_drv_111_0_OUTDIR)/tstvboxvideo111.run
514 OTHERS += $(vboxvideo_drv_111_0_OUTDIR)/tstvboxvideo111.run
515$$(vboxvideo_drv_111_0_OUTDIR)/tstvboxvideo111.run: $$(vboxvideo_drv_111_1_STAGE_TARGET)
516 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
517 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
518 $(vboxvideo_drv_111_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
519 $(QUIET)$(APPEND) -t "$@" "done"
520
521 TESTING += $(vboxvideo_drv_112_0_OUTDIR)/tstvboxvideo112.run
522 OTHERS += $(vboxvideo_drv_112_0_OUTDIR)/tstvboxvideo112.run
523$$(vboxvideo_drv_112_0_OUTDIR)/tstvboxvideo112.run: $$(vboxvideo_drv_112_1_STAGE_TARGET)
524 $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
525 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
526 $(vboxvideo_drv_112_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
527 $(QUIET)$(APPEND) -t "$@" "done"
528
529# TESTING += $(vboxvideo_drv_113_0_OUTDIR)/tstvboxvideo113.run
530# OTHERS += $(vboxvideo_drv_113_0_OUTDIR)/tstvboxvideo113.run
531#$$(vboxvideo_drv_113_0_OUTDIR)/tstvboxvideo113.run: $$(vboxvideo_drv_113_1_STAGE_TARGET)
532# $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
533# $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
534# $(vboxvideo_drv_113_1_STAGE_TARGET) $(VBOXVIDEO_SRC_PATH)/undefined
535# $(QUIET)$(APPEND) -t "$@" "done"
536
537 endif # ! VBOX_ONLY_SDK
538 endif # eq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
539 endif # eq ($(KBUILD_TARGET),linux)
540# endif # ! VBOX_ONLY_ADDITIONS
541endif # VBOX_WITH_TESTCASES
542
543include $(FILE_KBUILD_SUB_FOOTER)
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