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