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