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