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