1 | # $Id: Makefile.kmk 67145 2017-05-30 15:11:29Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the VBox Linux Additions X.org graphics driver.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2016 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 |
|
---|
18 | SUB_DEPTH = ../../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | vboxvideo_70_DEFS := \
|
---|
22 | IN_MODULE XORG_7X RENDER=1 IN_RT_STATIC X_BYTE_ORDER=X_LITTLE_ENDIAN
|
---|
23 | ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here.
|
---|
24 | vboxvideo_70_DEFS += __EXTENSIONS__ ## @todo Why this?
|
---|
25 | endif
|
---|
26 | vboxvideo_13_DEFS := $(vboxvideo_70_DEFS) VBOXVIDEO_13
|
---|
27 | vboxvideo_15_DEFS := \
|
---|
28 | $(vboxvideo_13_DEFS) NO_ANSIC PCIACCESS XSERVER_LIBPCIACCESS _XORG_SERVER_H_ _DIX_CONFIG_H_
|
---|
29 | vboxvideo_xorg_INCS = \
|
---|
30 | $(VBOX_PATH_X11_ROOT)/fontsproto-2.1.0 \
|
---|
31 | $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
|
---|
32 | $(VBOX_PATH_X11_ROOT)/kbproto-1.0.6 \
|
---|
33 | $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
|
---|
34 | $(VBOX_PATH_X11_ROOT)/libXext-1.3.1 \
|
---|
35 | $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
|
---|
36 | $(VBOX_PATH_X11_ROOT)/randrproto-1.3.0 \
|
---|
37 | $(VBOX_PATH_X11_ROOT)/renderproto-0.11 \
|
---|
38 | $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
|
---|
39 | $(VBOX_PATH_X11_ROOT)/xproto-7.0.18 \
|
---|
40 | $(VBOX_GRAPHICS_INCS)
|
---|
41 |
|
---|
42 | vboxvideo.c_DEPS = $(VBOX_SVN_REV_HEADER)
|
---|
43 |
|
---|
44 | #
|
---|
45 | # vboxvideo_drv
|
---|
46 | #
|
---|
47 | if1of ($(KBUILD_TARGET), linux)
|
---|
48 | SYSMODS += vboxvideo_drv
|
---|
49 | endif # target linux
|
---|
50 | vboxvideo_drv_TEMPLATE = VBOXGUESTR3XF86MOD
|
---|
51 | vboxvideo_drv_CFLAGS += -Wno-shadow # Avoid MBs of warnings in X11 and OpenGL headers (solaris mostly).
|
---|
52 | vboxvideo_drv_DEFS.linux = linux
|
---|
53 | vboxvideo_drv_DEFS.x86 = __i386__
|
---|
54 | # This one has to be defined when building server code on systems where
|
---|
55 | # unsigned long is 64bits
|
---|
56 | vboxvideo_drv_DEFS.amd64 += _XSERVER64
|
---|
57 | vboxvideo_drv_DEFS = \
|
---|
58 | _POSIX_C_SOURCE=199309L _POSIX_SOURCE _XOPEN_SOURCE _DEFAULT_SOURCE \
|
---|
59 | _BSD_SOURCE _SVID_SOURCE _GNU_SOURCE SHAPE XINPUT XKB LBX XAPPGROUP \
|
---|
60 | XCSECURITY TOGCUP XF86BIGFONT DPMSExtension PIXPRIV PANORAMIX RENDER \
|
---|
61 | GCCUSESGAS AVOID_GLYPHBLT PIXPRIV SINGLEDEPTH XFreeXDGA XvExtension \
|
---|
62 | XFree86LOADER XFree86Server XF86VIDMODE XvMCExtension SMART_SCHEDULE \
|
---|
63 | BUILDDEBUG X_BYTE_ORDER=X_LITTLE_ENDIAN DNDEBUG FUNCPROTO=15 NARROWPROTO \
|
---|
64 | IN_MODULE XFree86Module IN_XF86_MODULE IN_RT_STATIC
|
---|
65 | vboxvideo_drv_DEFS += memset=xf86memset memcpy=xf86memcpy
|
---|
66 | vboxvideo_drv_INCS = \
|
---|
67 | $(VBOX_PATH_X11_XFREE_4_3)/include \
|
---|
68 | $(VBOX_PATH_X11_XFREE_4_3)/include/X11 \
|
---|
69 | $(VBOX_PATH_X11_XFREE_4_3)/include/X11/extensions \
|
---|
70 | $(VBOX_PATH_X11_XFREE_4_3)/include/extensions \
|
---|
71 | $(VBOX_PATH_X11_XFREE_4_3)/include/fonts \
|
---|
72 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/afb \
|
---|
73 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/include \
|
---|
74 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/fb \
|
---|
75 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86 \
|
---|
76 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/common \
|
---|
77 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/ddc \
|
---|
78 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/int10 \
|
---|
79 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/i2c \
|
---|
80 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support \
|
---|
81 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/vbe \
|
---|
82 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support/bus \
|
---|
83 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/rac \
|
---|
84 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/ramdac \
|
---|
85 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/shadowfb \
|
---|
86 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/vgahw \
|
---|
87 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf1bpp \
|
---|
88 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf24_32bpp \
|
---|
89 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf4bpp \
|
---|
90 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/mfb \
|
---|
91 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/mi \
|
---|
92 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/miext/shadow \
|
---|
93 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/render \
|
---|
94 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/randr \
|
---|
95 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/Xext
|
---|
96 | vboxvideo_drv_INCS += \
|
---|
97 | $(PATH_ROOT)/src/VBox/Runtime/include \
|
---|
98 | $(VBOX_GRAPHICS_INCS)
|
---|
99 | vboxvideo_drv_SOURCES = \
|
---|
100 | getmode.c \
|
---|
101 | helpers.c \
|
---|
102 | pointer.c \
|
---|
103 | setmode.c \
|
---|
104 | vboxvideo.c \
|
---|
105 | vbva.c \
|
---|
106 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
|
---|
107 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBuffers.cpp \
|
---|
108 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp \
|
---|
109 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \
|
---|
110 | $(PATH_ROOT)/src/VBox/GuestHost/HGSMI/HGSMICommon.cpp \
|
---|
111 | $(PATH_ROOT)/src/VBox/GuestHost/HGSMI/HGSMIMemAlloc.cpp
|
---|
112 | # Any global symbols in the driver object files will be added to XFree86's
|
---|
113 | # symbol table, which can cause problems if we e.g. define a symbol in two
|
---|
114 | # modules.
|
---|
115 | vboxvideo_drv_POST_CMDS = \
|
---|
116 | objcopy --keep-global-symbol vboxvideoModuleData $(out) $(out)-objcopy$$(NLTAB) \
|
---|
117 | $(MV) -f $(out)-objcopy $(out)
|
---|
118 |
|
---|
119 | #
|
---|
120 | # vboxvideo_drv_70
|
---|
121 | #
|
---|
122 | # Remark: The other X.org drivers below are derived from this one. So, to make
|
---|
123 | # that as simple as possible we do ifeq/if1of test here and extends the
|
---|
124 | # base keywords instead of using .solaris or .linux.
|
---|
125 | # Also it is *important* to use := and not = when deriving a property.
|
---|
126 | #
|
---|
127 | DLLS += vboxvideo_drv_70
|
---|
128 | vboxvideo_drv_70_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
129 | vboxvideo_drv_70_DEFS = $(vboxvideo_70_DEFS) XORG_VERSION_CURRENT=70000000
|
---|
130 | ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here.
|
---|
131 | vboxvideo_drv_70_CFLAGS += -D_XPG6 -Wno-shadow # Use XPG6 until we have moved the C++ bits into a library.
|
---|
132 | endif
|
---|
133 | vboxvideo_drv_70_INCS = \
|
---|
134 | $(vboxvideo_xorg_INCS) \
|
---|
135 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.0.1
|
---|
136 | vboxvideo_drv_70_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
137 | vboxvideo_drv_70_SOURCES = $(vboxvideo_drv_SOURCES)
|
---|
138 |
|
---|
139 |
|
---|
140 | #
|
---|
141 | # vboxvideo_drv_71
|
---|
142 | #
|
---|
143 | DLLS += vboxvideo_drv_71
|
---|
144 | vboxvideo_drv_71_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
145 | vboxvideo_drv_71_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
146 | vboxvideo_drv_71_DEFS := $(vboxvideo_70_DEFS) XORG_VERSION_CURRENT=70100000
|
---|
147 | vboxvideo_drv_71_INCS = \
|
---|
148 | $(vboxvideo_xorg_INCS) \
|
---|
149 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.1.0
|
---|
150 | vboxvideo_drv_71_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
151 | vboxvideo_drv_71_SOURCES = $(vboxvideo_drv_SOURCES)
|
---|
152 |
|
---|
153 |
|
---|
154 | #
|
---|
155 | # vboxvideo_drv_13
|
---|
156 | #
|
---|
157 | DLLS += vboxvideo_drv_13
|
---|
158 | vboxvideo_drv_13_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
159 | vboxvideo_drv_13_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
160 | vboxvideo_drv_13_DEFS := $(vboxvideo_13_DEFS) XORG_VERSION_CURRENT=10300000
|
---|
161 | vboxvideo_drv_13_INCS = \
|
---|
162 | $(vboxvideo_xorg_INCS) \
|
---|
163 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.3.0.0
|
---|
164 | vboxvideo_drv_13_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
165 | vboxvideo_drv_13_SOURCES = $(vboxvideo_drv_SOURCES) edid.c
|
---|
166 |
|
---|
167 |
|
---|
168 | #
|
---|
169 | # vboxvideo_drv_14
|
---|
170 | #
|
---|
171 | DLLS += vboxvideo_drv_14
|
---|
172 | vboxvideo_drv_14_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
173 | vboxvideo_drv_14_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
174 | vboxvideo_drv_14_DEFS := $(vboxvideo_13_DEFS) XORG_VERSION_CURRENT=10400000
|
---|
175 | vboxvideo_drv_14_INCS = \
|
---|
176 | $(vboxvideo_xorg_INCS) \
|
---|
177 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.4.2
|
---|
178 | vboxvideo_drv_14_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
179 | vboxvideo_drv_14_SOURCES = $(vboxvideo_drv_13_SOURCES)
|
---|
180 |
|
---|
181 |
|
---|
182 | #
|
---|
183 | # vboxvideo_drv_15
|
---|
184 | #
|
---|
185 | DLLS += vboxvideo_drv_15
|
---|
186 | vboxvideo_drv_15_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
187 | vboxvideo_drv_15_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
188 | vboxvideo_drv_15_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=10503000
|
---|
189 | vboxvideo_drv_15_INCS = \
|
---|
190 | $(vboxvideo_xorg_INCS) \
|
---|
191 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.5.3
|
---|
192 | vboxvideo_drv_15_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
193 | vboxvideo_drv_15_SOURCES = $(vboxvideo_drv_13_SOURCES)
|
---|
194 |
|
---|
195 |
|
---|
196 | #
|
---|
197 | # vboxvideo_drv_16
|
---|
198 | #
|
---|
199 | DLLS += vboxvideo_drv_16
|
---|
200 | vboxvideo_drv_16_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
201 | vboxvideo_drv_16_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
202 | vboxvideo_drv_16_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=10600000
|
---|
203 | vboxvideo_drv_16_INCS = \
|
---|
204 | $(vboxvideo_xorg_INCS) \
|
---|
205 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.5 \
|
---|
206 | vboxvideo_drv_16_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
207 | vboxvideo_drv_16_SOURCES := $(vboxvideo_drv_15_SOURCES)
|
---|
208 |
|
---|
209 |
|
---|
210 | #
|
---|
211 | # vboxvideo_drv_17
|
---|
212 | #
|
---|
213 | DLLS += vboxvideo_drv_17
|
---|
214 | vboxvideo_drv_17_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
215 | vboxvideo_drv_17_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
216 | vboxvideo_drv_17_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=10699000
|
---|
217 | vboxvideo_drv_17_INCS = \
|
---|
218 | $(vboxvideo_xorg_INCS) \
|
---|
219 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.7.7
|
---|
220 | vboxvideo_drv_17_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
221 | vboxvideo_drv_17_SOURCES := $(vboxvideo_drv_13_SOURCES)
|
---|
222 |
|
---|
223 |
|
---|
224 | #
|
---|
225 | # vboxvideo_drv_18
|
---|
226 | #
|
---|
227 | DLLS += vboxvideo_drv_18
|
---|
228 | vboxvideo_drv_18_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
229 | vboxvideo_drv_18_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
230 | vboxvideo_drv_18_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=10800000
|
---|
231 | vboxvideo_drv_18_INCS = \
|
---|
232 | $(vboxvideo_xorg_INCS) \
|
---|
233 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.8.0
|
---|
234 | vboxvideo_drv_18_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
235 | vboxvideo_drv_18_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
236 |
|
---|
237 |
|
---|
238 | #
|
---|
239 | # vboxvideo_drv_19
|
---|
240 | #
|
---|
241 | DLLS += vboxvideo_drv_19
|
---|
242 | vboxvideo_drv_19_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
243 | vboxvideo_drv_19_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
244 | vboxvideo_drv_19_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=10900000
|
---|
245 | vboxvideo_drv_19_INCS = \
|
---|
246 | $(vboxvideo_xorg_INCS) \
|
---|
247 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.9.0
|
---|
248 | vboxvideo_drv_19_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
249 | vboxvideo_drv_19_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
250 |
|
---|
251 |
|
---|
252 | #
|
---|
253 | # vboxvideo_drv_110
|
---|
254 | #
|
---|
255 | DLLS += vboxvideo_drv_110
|
---|
256 | vboxvideo_drv_110_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
257 | vboxvideo_drv_110_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
258 | vboxvideo_drv_110_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11000000
|
---|
259 | vboxvideo_drv_110_INCS = \
|
---|
260 | $(vboxvideo_xorg_INCS) \
|
---|
261 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.10.0
|
---|
262 | vboxvideo_drv_110_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
263 | vboxvideo_drv_110_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
264 |
|
---|
265 |
|
---|
266 | #
|
---|
267 | # vboxvideo_drv_111
|
---|
268 | #
|
---|
269 | DLLS += vboxvideo_drv_111
|
---|
270 | vboxvideo_drv_111_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
271 | vboxvideo_drv_111_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
272 | vboxvideo_drv_111_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11100000
|
---|
273 | vboxvideo_drv_111_INCS = \
|
---|
274 | $(vboxvideo_xorg_INCS) \
|
---|
275 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.11.0
|
---|
276 | vboxvideo_drv_111_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
277 | vboxvideo_drv_111_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
278 |
|
---|
279 |
|
---|
280 | #
|
---|
281 | # vboxvideo_drv_112
|
---|
282 | #
|
---|
283 | DLLS += vboxvideo_drv_112
|
---|
284 | vboxvideo_drv_112_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
285 | vboxvideo_drv_112_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
286 | vboxvideo_drv_112_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11200000
|
---|
287 | vboxvideo_drv_112_INCS = \
|
---|
288 | $(vboxvideo_xorg_INCS) \
|
---|
289 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.12.0
|
---|
290 | vboxvideo_drv_112_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
291 | vboxvideo_drv_112_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
292 |
|
---|
293 |
|
---|
294 | #
|
---|
295 | # vboxvideo_drv_113
|
---|
296 | #
|
---|
297 | DLLS += vboxvideo_drv_113
|
---|
298 | vboxvideo_drv_113_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
299 | vboxvideo_drv_113_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
300 | vboxvideo_drv_113_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11300000
|
---|
301 | vboxvideo_drv_113_INCS = \
|
---|
302 | $(vboxvideo_xorg_INCS) \
|
---|
303 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.13.0
|
---|
304 | vboxvideo_drv_113_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
305 | vboxvideo_drv_113_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
306 |
|
---|
307 |
|
---|
308 | #
|
---|
309 | # vboxvideo_drv_114
|
---|
310 | #
|
---|
311 | DLLS += vboxvideo_drv_114
|
---|
312 | vboxvideo_drv_114_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
313 | vboxvideo_drv_114_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
314 | vboxvideo_drv_114_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11400000
|
---|
315 | vboxvideo_drv_114_INCS = \
|
---|
316 | $(vboxvideo_xorg_INCS) \
|
---|
317 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.14.0
|
---|
318 | vboxvideo_drv_114_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
319 | vboxvideo_drv_114_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
320 |
|
---|
321 |
|
---|
322 | #
|
---|
323 | # vboxvideo_drv_115
|
---|
324 | #
|
---|
325 | DLLS += vboxvideo_drv_115
|
---|
326 | vboxvideo_drv_115_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
327 | vboxvideo_drv_115_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
328 | vboxvideo_drv_115_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11500000
|
---|
329 | vboxvideo_drv_115_INCS = \
|
---|
330 | $(vboxvideo_xorg_INCS) \
|
---|
331 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.15.0
|
---|
332 | vboxvideo_drv_115_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
333 | vboxvideo_drv_115_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
334 |
|
---|
335 |
|
---|
336 | #
|
---|
337 | # vboxvideo_drv_116
|
---|
338 | #
|
---|
339 | DLLS += vboxvideo_drv_116
|
---|
340 | vboxvideo_drv_116_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
341 | vboxvideo_drv_116_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
342 | vboxvideo_drv_116_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11600000
|
---|
343 | vboxvideo_drv_116_INCS = \
|
---|
344 | $(vboxvideo_xorg_INCS) \
|
---|
345 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.16.0
|
---|
346 | vboxvideo_drv_116_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
347 | vboxvideo_drv_116_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
348 |
|
---|
349 |
|
---|
350 | #
|
---|
351 | # vboxvideo_drv_117
|
---|
352 | #
|
---|
353 | DLLS += vboxvideo_drv_117
|
---|
354 | vboxvideo_drv_117_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
355 | vboxvideo_drv_117_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
356 | vboxvideo_drv_117_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11700000
|
---|
357 | vboxvideo_drv_117_INCS = \
|
---|
358 | $(vboxvideo_xorg_INCS) \
|
---|
359 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.17.1
|
---|
360 | vboxvideo_drv_117_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
361 | vboxvideo_drv_117_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
362 |
|
---|
363 |
|
---|
364 | #
|
---|
365 | # vboxvideo_drv_118
|
---|
366 | #
|
---|
367 | DLLS += vboxvideo_drv_118
|
---|
368 | vboxvideo_drv_118_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
369 | vboxvideo_drv_118_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
|
---|
370 | vboxvideo_drv_118_DEFS := $(vboxvideo_15_DEFS) XORG_VERSION_CURRENT=11800000
|
---|
371 | vboxvideo_drv_118_INCS = \
|
---|
372 | $(vboxvideo_xorg_INCS) \
|
---|
373 | $(VBOX_PATH_X11_ROOT)/xorg-server-1.18.0
|
---|
374 | vboxvideo_drv_118_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
375 | vboxvideo_drv_118_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
376 |
|
---|
377 | ifdef VBOX_USE_SYSTEM_XORG_HEADERS
|
---|
378 | # Build using local X.Org headers. We assume X.Org Server 1.7 or later.
|
---|
379 | DLLS := $(filter-out vboxvideo_drv_%,$(DLLS)) vboxvideo_drv_system
|
---|
380 | SYSMODS := $(filter-out vboxvideo_drv%,$(SYSMODS))
|
---|
381 | vboxvideo_drv_system_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
382 | vboxvideo_drv_system_CFLAGS := \
|
---|
383 | $(vboxvideo_drv_70_CFLAGS) -include xorg-server.h
|
---|
384 | vboxvideo_drv_system_DEFS := $(filter-out _XORG_SERVER_H_ _DIX_CONFIG_H_, $(vboxvideo_15_DEFS))
|
---|
385 | vboxvideo_drv_system_INCS += \
|
---|
386 | $(PATH_ROOT)/src/VBox/Runtime/include \
|
---|
387 | $(VBOX_GRAPHICS_INCS) \
|
---|
388 | /usr/include/x11 \
|
---|
389 | /usr/include/xorg \
|
---|
390 | /usr/include/pixman-1
|
---|
391 | vboxvideo_drv_system_SOURCES := $(vboxvideo_drv_17_SOURCES)
|
---|
392 | endif
|
---|
393 |
|
---|
394 |
|
---|
395 | # Check the undefined symbols in the X.Org modules against lists of allowed
|
---|
396 | # symbols. Not very elegant, but it will catch problems early.
|
---|
397 |
|
---|
398 | ifdef VBOX_WITH_TESTCASES
|
---|
399 | # ifndef VBOX_ONLY_ADDITIONS
|
---|
400 | ifndef VBOX_USE_SYSTEM_XORG_HEADERS
|
---|
401 | if1of ($(KBUILD_TARGET),linux solaris)
|
---|
402 | ifeq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
|
---|
403 | ifndef VBOX_ONLY_SDK
|
---|
404 | VBOXVIDEO_SRC_PATH := $(PATH_SUB_CURRENT)
|
---|
405 |
|
---|
406 | ifeq ($(KBUILD_TARGET),linux)
|
---|
407 | TESTING += $(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run
|
---|
408 | OTHERS += $(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run
|
---|
409 | $$(vboxvideo_drv_0_OUTDIR)/tstvboxvideo68.run: $$(vboxvideo_drv_1_STAGE_TARGET)
|
---|
410 | $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
|
---|
411 | $(QUIET)$(ASH) $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_HOST) \
|
---|
412 | $(vboxvideo_drv_1_STAGE_TARGET) --static $(VBOXVIDEO_SRC_PATH)/../undefined_xfree86 $(VBOXVIDEO_SRC_PATH)/../undefined_xfree86_modules
|
---|
413 | $(QUIET)$(APPEND) -t "$@" "done"
|
---|
414 | endif
|
---|
415 |
|
---|
416 | ##
|
---|
417 | # Using the extra expansion to replace $(ver) before eval, thus everything
|
---|
418 | # else needs escaped dollars.
|
---|
419 | define def_vboxvideo_test
|
---|
420 | TESTING += $$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run
|
---|
421 | OTHERS += $$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run
|
---|
422 | $$$$(vboxvideo_drv$(ver)_0_OUTDIR)/tstvboxvideo$(ver).run: $$$$(vboxvideo_drv$(ver)_1_STAGE_TARGET)
|
---|
423 | $$(QUIET)$$(call MSG_L1,Checking for unresolved symbols in $$<)
|
---|
424 | $$(QUIET)$$(ASH) $$(PATH_ROOT)/src/bldprogs/checkUndefined.sh $$(KBUILD_HOST) \
|
---|
425 | $$(vboxvideo_drv$(ver)_1_STAGE_TARGET) $$(VBOXVIDEO_SRC_PATH)/../undefined_xfree86 $(VBOXVIDEO_SRC_PATH)/../undefined_xfree86_modules $$(VBOXVIDEO_SRC_PATH)/../undefined_xorg
|
---|
426 | $$(QUIET)$$(APPEND) -t "$$@" "done"
|
---|
427 | endef
|
---|
428 |
|
---|
429 | $(foreach ver, _70 _71 _13 _14 _15 _16 _17 _18 _19 _110 _111 _112 _113 _114 _115 _116 _117 _118, $(eval $(def_vboxvideo_test)))
|
---|
430 |
|
---|
431 | endif # ! VBOX_ONLY_SDK
|
---|
432 | endif # eq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
|
---|
433 | endif # 1of ($(KBUILD_TARGET),linux solaris)
|
---|
434 | endif # ! VBOX_USE_SYSTEM_XORG_HEADERS
|
---|
435 | # endif # ! VBOX_ONLY_ADDITIONS
|
---|
436 | endif # VBOX_WITH_TESTCASES
|
---|
437 |
|
---|
438 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|