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