1 | # $Id: Makefile.kmk 97046 2022-10-07 12:57:59Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level sub-makefile for the devices, drivers and services.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2022 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
11 | #
|
---|
12 | # This program is free software; you can redistribute it and/or
|
---|
13 | # modify it under the terms of the GNU General Public License
|
---|
14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
15 | # License.
|
---|
16 | #
|
---|
17 | # This program is distributed in the hope that it will be useful, but
|
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # You should have received a copy of the GNU General Public License
|
---|
23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | #
|
---|
25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | #
|
---|
27 |
|
---|
28 | SUB_DEPTH = ../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | # Make sure our Config.kmk is included.
|
---|
32 | ifndef VBOX_DEVICES_CONFIG_KMK_INCLUDED
|
---|
33 | include $(PATH_SUB_CURRENT)/Config.kmk
|
---|
34 | endif
|
---|
35 |
|
---|
36 | # Include sub-makefiles.
|
---|
37 | if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
38 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
39 | include $(PATH_SUB_CURRENT)/Audio/testcase/Makefile.kmk
|
---|
40 | include $(PATH_SUB_CURRENT)/Input/testcase/Makefile.kmk
|
---|
41 | ifdef VBOX_WITH_TESTCASES
|
---|
42 | include $(PATH_SUB_CURRENT)/Samples/Makefile.kmk
|
---|
43 | endif
|
---|
44 | if defined(VBOX_WITH_INTEL_PXE) || defined(VBOX_ONLY_EXTPACKS)
|
---|
45 | include $(PATH_SUB_CURRENT)/PC/PXE/Makefile.kmk
|
---|
46 | else if defined(VBOX_WITH_PXE_ROM)
|
---|
47 | if !defined(VBOX_WITHOUT_IPXE)
|
---|
48 | include $(PATH_SUB_CURRENT)/PC/ipxe/Makefile.kmk
|
---|
49 | endif
|
---|
50 | endif
|
---|
51 | endif
|
---|
52 | if !defined(VBOX_ONLY_EXTPACKS)
|
---|
53 | if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
54 | include $(PATH_SUB_CURRENT)/BiosCommonCode/Makefile.kmk
|
---|
55 | include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
|
---|
56 | include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
|
---|
57 | endif
|
---|
58 |
|
---|
59 | #
|
---|
60 | # Main targets.
|
---|
61 | #
|
---|
62 | if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
63 | DLLS += VBoxDDU VBoxDD VBoxDD2
|
---|
64 | ifdef VBOX_WITH_R0_MODULES
|
---|
65 | LIBRARIES += ServicesR0
|
---|
66 | ifdef VBOX_WITH_VBOXR0_AS_DLL
|
---|
67 | DLLS += VBoxDDR0
|
---|
68 | else
|
---|
69 | SYSMODS += VBoxDDR0
|
---|
70 | endif
|
---|
71 | endif
|
---|
72 | ifdef VBOX_WITH_RAW_MODE
|
---|
73 | SYSMODS += VBoxDDRC
|
---|
74 | endif
|
---|
75 | else
|
---|
76 | DLLS += VBoxDDU
|
---|
77 | endif
|
---|
78 |
|
---|
79 |
|
---|
80 | #
|
---|
81 | # VBoxDDU (shared object)
|
---|
82 | #
|
---|
83 | VBoxDDU_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
84 | VBoxDDU_NAME = $(basename $(notdir $(LIB_DDU)))
|
---|
85 | VBoxDDU_INST.darwin = $(INST_DLL) $(INST_TESTCASE)
|
---|
86 | VBoxDDU_DEFS = IN_VBOXDDU
|
---|
87 | if defined(VBOX_WITH_VUSB) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
88 | VBoxDDU_DEFS += VBOX_WITH_VUSB
|
---|
89 | endif
|
---|
90 | if defined(VBOX_WITH_USB) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
91 | VBoxDDU_DEFS += VBOX_WITH_USB IN_USBLIB
|
---|
92 | VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
93 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
94 | VBoxDDU_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
95 | endif
|
---|
96 | if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
97 | VBoxDDU_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
98 | endif
|
---|
99 | else
|
---|
100 | VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK)
|
---|
101 | endif
|
---|
102 | VBoxDDU_SOURCES = \
|
---|
103 | Storage/VSCSI/VSCSIDevice.cpp \
|
---|
104 | Storage/VSCSI/VSCSILun.cpp \
|
---|
105 | Storage/VSCSI/VSCSILunSbc.cpp \
|
---|
106 | Storage/VSCSI/VSCSILunMmc.cpp \
|
---|
107 | Storage/VSCSI/VSCSISense.cpp \
|
---|
108 | Storage/VSCSI/VSCSIIoReq.cpp \
|
---|
109 | Storage/VSCSI/VSCSIVpdPagePool.cpp \
|
---|
110 | build/VBoxDDUDeps.cpp
|
---|
111 |
|
---|
112 | ifdef VBOX_WITH_VSCSI_SSC
|
---|
113 | VBoxDDU_SOURCES += Storage/VSCSI/VSCSILunSsc.cpp
|
---|
114 | VBoxDDU_DEFS += VBOX_WITH_VSCSI_SSC
|
---|
115 | endif
|
---|
116 | VBoxDDU_LIBS = \
|
---|
117 | $(LIB_RUNTIME) \
|
---|
118 | $(PATH_STAGE_LIB)/StorageLib$(VBOX_SUFF_LIB)
|
---|
119 | VBoxDDU_LIBS.freebsd += \
|
---|
120 | geom
|
---|
121 | VBoxDDU_LIBS.solaris += \
|
---|
122 | efi
|
---|
123 | if defined(VBOX_WITH_USB) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
124 | VBoxDDU_SDKS.win += VBOX_WIN_NEWDEV
|
---|
125 | VBoxDDU_LIBS += \
|
---|
126 | $(PATH_STAGE_LIB)/USBLib$(VBOX_SUFF_LIB)
|
---|
127 | VBoxDDU_LIBS.win += \
|
---|
128 | $(PATH_STAGE_LIB)/VBoxDrvCfgDll$(VBOX_SUFF_LIB)
|
---|
129 | endif
|
---|
130 | VBoxDDU_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDDU.dylib
|
---|
131 | if defined(VBOX_WITH_USB) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
132 | VBoxDDU_LDFLAGS.darwin += -framework IOKit
|
---|
133 | endif
|
---|
134 |
|
---|
135 | VBoxDDU_LDFLAGS.linux = $(VBOX_GCC_NO_UNDEFINED)
|
---|
136 | $(call VBOX_SET_VER_INFO_DLL,VBoxDDU,VirtualBox VMM Devices and Drivers Utilities)
|
---|
137 |
|
---|
138 |
|
---|
139 | endif # VBOX_ONLY_EXTPACKS
|
---|
140 | if !defined(VBOX_ONLY_EXTPACKS) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != "" # Goes on almost to the end of the file.
|
---|
141 |
|
---|
142 |
|
---|
143 | #
|
---|
144 | # VBoxDD (shared object)
|
---|
145 | #
|
---|
146 | if "$(KBUILD_TARGET)" != "win" && $(VBOX_GCC_VERSION_CXX) < 40600
|
---|
147 | #
|
---|
148 | # Disable "ISO C++ prohibits anonymous structs [-Werror=pedantic]" caused by Mesa VMSVGA driver headers
|
---|
149 | # For GCC >= 4.6.0 the warning is disabled in DevVGA_SVGA.h
|
---|
150 | #
|
---|
151 | # Template used for gcc older than 4.6. (Strips away compiler options.)
|
---|
152 | #
|
---|
153 | TEMPLATE_VBoxDDOldGCC := VBoxDDOldGCC
|
---|
154 | TEMPLATE_VBoxDDOldGCC_EXTENDS := VBoxR3DllWarnNoPic
|
---|
155 | TEMPLATE_VBoxDDOldGCC_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxDDOldGCC_EXTENDS)_CXXFLAGS))
|
---|
156 |
|
---|
157 | VBoxDD_TEMPLATE = VBoxDDOldGCC
|
---|
158 | else
|
---|
159 | VBoxDD_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
160 | endif
|
---|
161 | VBoxDD_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
|
---|
162 | Storage/DrvHostDVD.cpp_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK)
|
---|
163 | VBoxDD_INCS = \
|
---|
164 | build \
|
---|
165 | Network/slirp \
|
---|
166 | $(VBOX_GRAPHICS_INCS)
|
---|
167 | VBoxDD_DEFS = \
|
---|
168 | VBOX_HGCM_HOST_CODE \
|
---|
169 | $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
|
---|
170 | $(if $(VBOX_BIOS_DMI_FALLBACK),VBOX_BIOS_DMI_FALLBACK,) \
|
---|
171 | VBOX_WITH_DMI_CHASSIS \
|
---|
172 | VBOX_WITH_DMI_OEMSTRINGS \
|
---|
173 | $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) \
|
---|
174 | $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL,) \
|
---|
175 | $(if $(VBOX_WITH_INTNET_SERVICE_IN_R3),VBOX_WITH_INTNET_SERVICE_IN_R3,)
|
---|
176 | VBoxDD_DEFS.win = _WIN32_WINNT=0x0510
|
---|
177 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
178 | VBoxDD_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
179 | endif
|
---|
180 | VBoxDD_SOURCES = \
|
---|
181 | build/VBoxDD.cpp \
|
---|
182 | \
|
---|
183 | Input/DevPS2.cpp \
|
---|
184 | Input/DevPS2K.cpp \
|
---|
185 | Input/DevPS2M.cpp \
|
---|
186 | Input/UsbKbd.cpp \
|
---|
187 | Input/UsbMouse.cpp \
|
---|
188 | Bus/DevPCI.cpp \
|
---|
189 | Bus/DevPciIch9.cpp \
|
---|
190 | Bus/MsiCommon.cpp \
|
---|
191 | Bus/MsixCommon.cpp \
|
---|
192 | $(if $(VBOX_WITH_IOMMU_AMD),Bus/DevIommuAmd.cpp,) \
|
---|
193 | $(if $(VBOX_WITH_IOMMU_INTEL),Bus/DevIommuIntel.cpp,) \
|
---|
194 | EFI/DevSmc.cpp \
|
---|
195 | EFI/DevFlash.cpp \
|
---|
196 | EFI/FlashCore.cpp \
|
---|
197 | Graphics/DevVGA.cpp \
|
---|
198 | Storage/DevATA.cpp \
|
---|
199 | PC/DevPit-i8254.cpp \
|
---|
200 | PC/DevPIC.cpp \
|
---|
201 | PC/DevACPI.cpp \
|
---|
202 | PC/ACPI/VBoxAcpi.cpp \
|
---|
203 | PC/DevRTC.cpp \
|
---|
204 | PC/DevPcBios.cpp \
|
---|
205 | PC/DevFwCommon.cpp \
|
---|
206 | PC/DevPcArch.cpp \
|
---|
207 | PC/DevQemuFwCfg.cpp \
|
---|
208 | PC/DevLpc.cpp \
|
---|
209 | GIMDev/GIMDev.cpp \
|
---|
210 | GIMDev/DrvUDP.cpp \
|
---|
211 | VMMDev/VMMDev.cpp \
|
---|
212 | $(if $(VBOX_WITH_HGCM),VMMDev/VMMDevHGCM.cpp,) \
|
---|
213 | VMMDev/VMMDevTesting.cpp \
|
---|
214 | Network/DevPCNet.cpp \
|
---|
215 | Network/DevDP8390.cpp \
|
---|
216 | Network/Dev3C501.cpp \
|
---|
217 | PC/DevDMA.cpp \
|
---|
218 | PC/DevHPET.cpp \
|
---|
219 | PC/DevIoApic.cpp \
|
---|
220 | Storage/DevFdc.cpp \
|
---|
221 | Parallel/DevParallel.cpp \
|
---|
222 | \
|
---|
223 | Input/DrvKeyboardQueue.cpp \
|
---|
224 | Input/DrvMouseQueue.cpp \
|
---|
225 | Network/DrvIntNet.cpp \
|
---|
226 | Network/DrvDedicatedNic.cpp \
|
---|
227 | PC/DrvACPI.cpp \
|
---|
228 | PC/DrvAcpiCpu.cpp \
|
---|
229 | Serial/DevSerial.cpp \
|
---|
230 | Serial/DevOxPcie958.cpp \
|
---|
231 | Serial/UartCore.cpp \
|
---|
232 | Serial/DrvChar.cpp \
|
---|
233 | Serial/DrvHostSerial.cpp \
|
---|
234 | Serial/DrvNamedPipe.cpp \
|
---|
235 | Serial/DrvTCP.cpp \
|
---|
236 | Serial/DrvRawFile.cpp \
|
---|
237 | Storage/Debug.cpp \
|
---|
238 | Storage/DrvVD.cpp \
|
---|
239 | Storage/ATAPIPassthrough.cpp \
|
---|
240 | Storage/IOBufMgmt.cpp \
|
---|
241 | Network/DrvNetSniffer.cpp \
|
---|
242 | Network/Pcap.cpp \
|
---|
243 | Trace/DrvIfsTrace.cpp \
|
---|
244 | Trace/DrvIfsTrace-serial.cpp
|
---|
245 | ifn1of ($(KBUILD_TARGET), os2)
|
---|
246 | VBoxDD_SOURCES += Storage/DrvHostBase.cpp
|
---|
247 | endif
|
---|
248 | ifn1of ($(KBUILD_TARGET), os2)
|
---|
249 | VBoxDD_SOURCES += Storage/DrvHostDVD.cpp
|
---|
250 | endif
|
---|
251 | ifn1of ($(KBUILD_TARGET), darwin freebsd os2 solaris)
|
---|
252 | VBoxDD_SOURCES += Storage/DrvHostFloppy.cpp
|
---|
253 | endif
|
---|
254 |
|
---|
255 |
|
---|
256 | ifn1of ($(KBUILD_TARGET), darwin)
|
---|
257 | VBoxDD_SOURCES += Storage/HBDMgmt-generic.cpp
|
---|
258 | endif
|
---|
259 |
|
---|
260 | VBoxDD_SOURCES.darwin += \
|
---|
261 | Storage/HBDMgmt-darwin.cpp \
|
---|
262 | Storage/DrvHostBase-darwin.cpp
|
---|
263 |
|
---|
264 | VBoxDD_SOURCES.freebsd += \
|
---|
265 | Storage/DrvHostBase-freebsd.cpp
|
---|
266 |
|
---|
267 | VBoxDD_SOURCES.linux += \
|
---|
268 | Storage/DrvHostBase-linux.cpp
|
---|
269 |
|
---|
270 | VBoxDD_SOURCES.solaris += \
|
---|
271 | Storage/DrvHostBase-solaris.cpp
|
---|
272 |
|
---|
273 | VBoxDD_SOURCES.win += \
|
---|
274 | Storage/DrvHostBase-win.cpp
|
---|
275 |
|
---|
276 | #VBoxDD_SOURCES.win += Storage/HBDMgmt-win.cpp #Disabled until remaining issues are sorted out
|
---|
277 |
|
---|
278 | VBoxDD_LIBS = # more later.
|
---|
279 | VBoxDD_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD.dylib \
|
---|
280 | -framework CoreAudio \
|
---|
281 | -framework AudioUnit \
|
---|
282 | -framework AudioToolbox \
|
---|
283 | -framework IOKit \
|
---|
284 | -framework Carbon \
|
---|
285 | -framework DiskArbitration \
|
---|
286 | -framework SystemConfiguration \
|
---|
287 | -framework AVFoundation \
|
---|
288 | -framework Foundation
|
---|
289 | VBoxDD_LDFLAGS.linux = $(VBOX_GCC_NO_UNDEFINED)
|
---|
290 |
|
---|
291 | # --- Tracing bits. ---
|
---|
292 |
|
---|
293 | ifdef VBOX_WITH_DTRACE_R3
|
---|
294 | VBoxDD_DEFS += VBOX_WITH_DTRACE
|
---|
295 | VBoxDD_USES += dtrace
|
---|
296 | VBoxDD_SOURCES += build/VBoxDD.d
|
---|
297 | endif
|
---|
298 |
|
---|
299 | # --- Graphics bits. ---
|
---|
300 |
|
---|
301 | ifdef VBOXWDDM_TEST_UHGSMI
|
---|
302 | VBoxDD_DEFS += VBOXWDDM_TEST_UHGSMI
|
---|
303 | endif
|
---|
304 | ifdef VBOXWDDM_WITH_VBVA
|
---|
305 | VBoxDD_DEFS += VBOXWDDM_WITH_VBVA
|
---|
306 | endif
|
---|
307 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
308 | VBoxDD_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
309 | endif
|
---|
310 |
|
---|
311 | ifdef VBOX_WITH_HGSMI
|
---|
312 | VBoxDD_DEFS += VBOX_WITH_HGSMI
|
---|
313 | VBoxDD_SOURCES += \
|
---|
314 | Graphics/DevVGA_VBVA.cpp \
|
---|
315 | Graphics/HGSMI/HGSMIHost.cpp
|
---|
316 | VBoxDD_LIBS += \
|
---|
317 | $(PATH_STAGE_LIB)/HGSMIHostR3Lib$(VBOX_SUFF_LIB)
|
---|
318 | endif
|
---|
319 |
|
---|
320 | ifdef VBOX_WITH_WDDM
|
---|
321 | VBoxDD_DEFS += VBOX_WITH_WDDM
|
---|
322 | VBoxDD_SOURCES += \
|
---|
323 | Graphics/HGSMI/SHGSMIHost.cpp
|
---|
324 | endif
|
---|
325 |
|
---|
326 | ifdef VBOX_WITH_VMSVGA
|
---|
327 | VBoxDD_DEFS += VBOX_WITH_VMSVGA
|
---|
328 | VBoxDD_INCS += $(VBOX_PATH_VMSVGA_DEVICE_INC)
|
---|
329 | VBoxDD_SOURCES += \
|
---|
330 | Graphics/DevVGA-SVGA.cpp \
|
---|
331 | Graphics/DevVGA-SVGA-cmd.cpp
|
---|
332 | endif
|
---|
333 | ifdef VBOX_WITH_VMSVGA3D
|
---|
334 | if1of ($(KBUILD_TARGET), linux win)
|
---|
335 | # Dynamically load 3D library (opengl32, libGL).
|
---|
336 | # This is a temporary solution. In future the 3D backend will be in a separate library.
|
---|
337 | VBOX_WITH_VMSVGA3D_DYNAMIC_LOAD = 1
|
---|
338 | endif
|
---|
339 | VBoxDD_DEFS += VBOX_WITH_VMSVGA3D
|
---|
340 | VBoxDD_SOURCES += \
|
---|
341 | Graphics/DevVGA-SVGA3d.cpp \
|
---|
342 | Graphics/DevVGA-SVGA3d-hlp.cpp \
|
---|
343 | Graphics/DevVGA-SVGA3d-info.cpp \
|
---|
344 | Graphics/DevVGA-SVGA3d-shared.cpp \
|
---|
345 | Graphics/DevVGA-SVGA3d-savedstate.cpp
|
---|
346 | ifdef VBOX_WITH_VMSVGA3D_DX
|
---|
347 | VBoxDD_DEFS += VMSVGA3D_DX
|
---|
348 | VBoxDD_SOURCES += \
|
---|
349 | Graphics/DevVGA-SVGA3d-dx.cpp \
|
---|
350 | Graphics/DevVGA-SVGA3d-dx-savedstate.cpp \
|
---|
351 | Graphics/DevVGA-SVGA3d-dx-shader.cpp
|
---|
352 | if "$(KBUILD_TARGET)" == "win" || defined(VBOX_WITH_DXVK)
|
---|
353 | VBoxDD_SDKS.linux += VBOX_DXVK
|
---|
354 | VBoxDD_SDKS.darwin += VBOX_DXVK
|
---|
355 | VBoxDD_DEFS += VMSVGA3D_DX_BACKEND
|
---|
356 | VBoxDD_SOURCES += \
|
---|
357 | Graphics/DevVGA-SVGA3d-win-dx.cpp
|
---|
358 | endif
|
---|
359 | endif
|
---|
360 | VBoxDD_SOURCES += \
|
---|
361 | Graphics/svgadump/svga_dump.c
|
---|
362 | if "$(KBUILD_TARGET)" == "win" && !defined(VBOX_WITH_VMSVGA3D_USE_OPENGL)
|
---|
363 | VBoxDD_DEFS += VMSVGA3D_DIRECT3D
|
---|
364 | VBoxDD_SOURCES += \
|
---|
365 | Graphics/DevVGA-SVGA3d-win.cpp \
|
---|
366 | Graphics/DevVGA-SVGA3d-win-d3d9.cpp
|
---|
367 | VBoxDD_LIBS.win += d3d9.lib $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
|
---|
368 | VBoxDD_LDFLAGS.win += /DELAYLOAD:d3d9.dll
|
---|
369 | else
|
---|
370 | VBoxDD_DEFS += VMSVGA3D_OPENGL
|
---|
371 | VBoxDD_SOURCES += \
|
---|
372 | Graphics/DevVGA-SVGA3d-ogl.cpp \
|
---|
373 | Graphics/DevVGA-SVGA3d-glHlp.cpp \
|
---|
374 | $(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm
|
---|
375 | VBoxDD_SOURCES.darwin += \
|
---|
376 | $(VBoxDD_0_OUTDIR)/VBoxSVGA3DObjCLazyLoad.asm
|
---|
377 | VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm
|
---|
378 | $$(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm: $(PATH_SUB_CURRENT)/Graphics/VBoxSVGA3D.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
|
---|
379 | $(call MSG_TOOL,VBoxDef2LazyLoad,VBoxDD,$(filter %.def, $^),$@)
|
---|
380 | $(QUIET)$(RM) -f -- "$@"
|
---|
381 | $(VBOX_DEF_2_LAZY_LOAD) --explicit-load-function --library VBoxSVGA3D --output "$@" $(filter %.def, $^)
|
---|
382 | $$(VBoxDD_0_OUTDIR)/VBoxSVGA3DObjCLazyLoad.asm: $(PATH_SUB_CURRENT)/Graphics/VBoxSVGA3DObjC.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
|
---|
383 | $(call MSG_TOOL,VBoxDef2LazyLoad,VBoxDD,$(filter %.def, $^),$@)
|
---|
384 | $(QUIET)$(RM) -f -- "$@"
|
---|
385 | $(VBOX_DEF_2_LAZY_LOAD) --explicit-load-function --library VBoxSVGA3DObjC --output "$@" $(filter %.def, $^)
|
---|
386 |
|
---|
387 | ifdef VBOX_WITH_VMSVGA3D_DYNAMIC_LOAD
|
---|
388 | VBoxDD_DEFS += VMSVGA3D_DYNAMIC_LOAD
|
---|
389 | VBoxDD_SOURCES += \
|
---|
390 | Graphics/DevVGA-SVGA3d-glLdr.cpp
|
---|
391 | else
|
---|
392 | VBoxDD_LIBS.linux += X11 GL
|
---|
393 | VBoxDD_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
|
---|
394 | endif
|
---|
395 | VBoxDD_LDFLAGS.darwin += -framework OpenGL
|
---|
396 | VBoxDD_DEFS.darwin += VBOX_VMSVGA3D_DUAL_OPENGL_PROFILE
|
---|
397 | if 0 # Use the OpenGL 3.2 Core profile (see also VBoxSVGA3D_DEFS.darwin and VBoxSVGA3DObjC_DEFS.darwin).
|
---|
398 | VBoxDD_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=3.2 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=2.1
|
---|
399 | else
|
---|
400 | VBoxDD_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=2.1 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=3.2
|
---|
401 | endif
|
---|
402 | endif
|
---|
403 | if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.6 10.5 10.4)
|
---|
404 | Graphics/DevVGA-SVGA3d.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
405 | Graphics/DevVGA-SVGA3d-info.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
406 | Graphics/DevVGA-SVGA3d-shared.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
407 | Graphics/DevVGA-SVGA3d-savedstate.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
408 | Graphics/DevVGA-SVGA3d-ogl.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
409 | else if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.14 10.15 10.16 11.0)
|
---|
410 | Graphics/DevVGA-SVGA3d-ogl.cpp_CXXFLAGS.darwin = $(VBOX_GCC_Wno-deprecated-declarations)
|
---|
411 | endif
|
---|
412 | endif
|
---|
413 |
|
---|
414 | ifdef VBOX_WITH_VDMA
|
---|
415 | VBoxDD_DEFS += VBOX_WITH_VDMA
|
---|
416 | VBoxDD_SOURCES += \
|
---|
417 | Graphics/DevVGA_VDMA.cpp
|
---|
418 | endif
|
---|
419 |
|
---|
420 | ifdef VBOX_WITH_PXE_ROM
|
---|
421 | VBoxDD_DEFS += VBOX_WITH_PXE_ROM
|
---|
422 | endif
|
---|
423 |
|
---|
424 | # --- USB bits. ---
|
---|
425 |
|
---|
426 | ifdef VBOX_WITH_USB
|
---|
427 | VBoxDD_DEFS += VBOX_WITH_USB
|
---|
428 | VBoxDD_SOURCES += \
|
---|
429 | USB/vrdp/USBProxyDevice-vrdp.cpp \
|
---|
430 | USB/usbip/USBProxyDevice-usbip.cpp
|
---|
431 |
|
---|
432 | VBoxDD_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
|
---|
433 | VBoxDD_SOURCES.darwin += \
|
---|
434 | USB/USBProxyDevice.cpp \
|
---|
435 | USB/darwin/USBProxyDevice-darwin.cpp
|
---|
436 | # if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.9) # Hack, shouldn't be needed
|
---|
437 | # USB/darwin/USBProxyDevice-darwin.cpp_SDKS = MACOSX1010
|
---|
438 | # endif
|
---|
439 |
|
---|
440 | VBoxDD_DEFS.linux += \
|
---|
441 | VUSB_HAVE_USBPROXY_DEVICE \
|
---|
442 | $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
|
---|
443 | $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
|
---|
444 | VBoxDD_SOURCES.linux += \
|
---|
445 | USB/USBProxyDevice.cpp \
|
---|
446 | USB/linux/USBProxyDevice-linux.cpp
|
---|
447 |
|
---|
448 | VBoxDD_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
|
---|
449 | VBoxDD_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
|
---|
450 | VBoxDD_SOURCES.os2 += \
|
---|
451 | USB/USBProxyDevice.cpp \
|
---|
452 | USB/os2/USBProxyDevice-os2.cpp
|
---|
453 |
|
---|
454 | VBoxDD_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
|
---|
455 | VBoxDD_SOURCES.win += \
|
---|
456 | USB/USBProxyDevice.cpp \
|
---|
457 | USB/win/USBProxyDevice-win.cpp
|
---|
458 |
|
---|
459 | VBoxDD_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
|
---|
460 | VBoxDD_SOURCES.solaris+= \
|
---|
461 | USB/USBProxyDevice.cpp \
|
---|
462 | USB/solaris/USBProxyDevice-solaris.cpp
|
---|
463 |
|
---|
464 | VBoxDD_DEFS.freebsd += VUSB_HAVE_USBPROXY_DEVICE
|
---|
465 | VBoxDD_SOURCES.freebsd+= \
|
---|
466 | USB/USBProxyDevice.cpp \
|
---|
467 | USB/freebsd/USBProxyDevice-freebsd.cpp
|
---|
468 |
|
---|
469 | ifdef VBOX_WITH_SCSI
|
---|
470 | VBoxDD_SOURCES += \
|
---|
471 | Storage/UsbMsd.cpp
|
---|
472 | endif
|
---|
473 |
|
---|
474 | if defined(VBOX_WITH_EHCI_IMPL)
|
---|
475 | VBoxDD_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
476 | VBoxDD_SOURCES += \
|
---|
477 | USB/DevEHCI.cpp
|
---|
478 | endif
|
---|
479 |
|
---|
480 | if defined(VBOX_WITH_XHCI_IMPL)
|
---|
481 | VBoxDD_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
482 | VBoxDD_SOURCES += \
|
---|
483 | USB/DevXHCI.cpp
|
---|
484 | endif
|
---|
485 |
|
---|
486 | if defined(VBOX_WITH_USB_VIDEO_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
487 | if1of ($(KBUILD_TARGET), linux)
|
---|
488 | VBoxDD_DEFS += VBOX_WITH_USB_VIDEO_IMPL
|
---|
489 | VBoxDD_SOURCES += \
|
---|
490 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/UsbWebcam.cpp \
|
---|
491 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/UsbWebcamDesc.cpp \
|
---|
492 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/jpggen.cpp \
|
---|
493 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/DrvHostWebcam.cpp \
|
---|
494 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/JPEGEnc.cpp
|
---|
495 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/JPEGEnc.cpp_INCS = \
|
---|
496 | $(VBOX_JPEG_INCS)
|
---|
497 | VBoxDD_SOURCES.linux += \
|
---|
498 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/HostWebcam-v4l2.cpp
|
---|
499 | VBoxDD_LIBS += \
|
---|
500 | $(PATH_STAGE_LIB)/VBox-libjpeg$(VBOX_SUFF_LIB)
|
---|
501 | endif
|
---|
502 | endif
|
---|
503 |
|
---|
504 | endif # VBOX_WITH_USB
|
---|
505 |
|
---|
506 | ifdef VBOX_WITH_VUSB
|
---|
507 | VBoxDD_DEFS += VBOX_WITH_VUSB
|
---|
508 | VBoxDD_SOURCES += \
|
---|
509 | USB/DevOHCI.cpp \
|
---|
510 | USB/DrvVUSBRootHub.cpp \
|
---|
511 | USB/VUSBDevice.cpp \
|
---|
512 | USB/VUSBSniffer.cpp \
|
---|
513 | USB/VUSBSnifferPcapNg.cpp \
|
---|
514 | USB/VUSBSnifferUsbMon.cpp \
|
---|
515 | USB/VUSBSnifferVmx.cpp \
|
---|
516 | USB/VUSBUrb.cpp \
|
---|
517 | USB/VUSBUrbPool.cpp \
|
---|
518 | USB/VUSBUrbTrace.cpp
|
---|
519 | endif
|
---|
520 |
|
---|
521 | # --- Networking bits. ---
|
---|
522 |
|
---|
523 | ifdef VBOX_WITH_INIP
|
---|
524 | ifndef LWIP_SOURCES
|
---|
525 | include $(PATH_SUB_CURRENT)/Network/lwip-new/Config.kmk
|
---|
526 | endif
|
---|
527 | VBoxDD_DEFS += VBOX_WITH_INIP
|
---|
528 | VBoxDD_SOURCES += \
|
---|
529 | Network/DevINIP.cpp \
|
---|
530 | $(addprefix Network/lwip-new/,$(LWIP_SOURCES))
|
---|
531 | VBoxDD_INCS += \
|
---|
532 | Network \
|
---|
533 | $(addprefix Network/lwip-new/,$(LWIP_INCS))
|
---|
534 | endif # VBOX_WITH_INIP
|
---|
535 |
|
---|
536 | ifdef VBOX_WITH_E1000
|
---|
537 | VBoxDD_DEFS += VBOX_WITH_E1000
|
---|
538 | VBoxDD_SOURCES += \
|
---|
539 | Network/DevE1000.cpp \
|
---|
540 | Network/DevE1000Phy.cpp \
|
---|
541 | Network/DevEEPROM.cpp
|
---|
542 | endif
|
---|
543 |
|
---|
544 | ifdef VBOX_WITH_VIRTIO
|
---|
545 | VBoxDD_DEFS += VBOX_WITH_VIRTIO
|
---|
546 | VBoxDD_SOURCES += \
|
---|
547 | VirtIO/VirtioCore.cpp \
|
---|
548 | Network/DevVirtioNet_1_0.cpp
|
---|
549 | endif
|
---|
550 |
|
---|
551 |
|
---|
552 | ifdef VBOX_WITH_UDPTUNNEL
|
---|
553 | VBoxDD_DEFS += VBOX_WITH_UDPTUNNEL
|
---|
554 | VBoxDD_SOURCES += \
|
---|
555 | Network/DrvUDPTunnel.cpp
|
---|
556 | endif
|
---|
557 |
|
---|
558 | ifdef VBOX_WITH_VDE
|
---|
559 | VBoxDD_DEFS += VBOX_WITH_VDE
|
---|
560 | VBoxDD_SOURCES += \
|
---|
561 | Network/DrvVDE.cpp \
|
---|
562 | Network/VDEPlug.cpp
|
---|
563 | endif
|
---|
564 |
|
---|
565 | ifdef VBOX_WITH_NETSHAPER
|
---|
566 | VBoxDD_DEFS += VBOX_WITH_NETSHAPER
|
---|
567 | VBoxDD_SOURCES += \
|
---|
568 | Network/DrvNetShaper.cpp
|
---|
569 | endif
|
---|
570 |
|
---|
571 | ifdef VBOX_WITH_VMNET
|
---|
572 | VBoxDD_DEFS.darwin += VBOX_WITH_VMNET
|
---|
573 | VBoxDD_SOURCES.darwin += \
|
---|
574 | Network/DrvVMNet.m
|
---|
575 | VBoxDD_LDFLAGS.darwin += -framework vmnet
|
---|
576 | endif
|
---|
577 |
|
---|
578 | if defined(VBOX_WITH_CLOUD_NET) && defined(VBOX_WITH_LIBSSH)
|
---|
579 | VBoxDD_SDKS += VBOX_SSH VBOX_ZLIB VBOX_OPENSSL2
|
---|
580 | VBoxDD_DEFS += VBOX_WITH_CLOUD_NET
|
---|
581 | VBoxDD_SOURCES += \
|
---|
582 | Network/DrvCloudTunnel.cpp
|
---|
583 |
|
---|
584 | VBoxDD_SOURCES += \
|
---|
585 | $(VBoxDD_0_OUTDIR)/VBoxLibSshLazyLoad.asm
|
---|
586 | VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/VBoxLibSshLazyLoad.asm
|
---|
587 | $$(VBoxDD_0_OUTDIR)/VBoxLibSshLazyLoad.asm: $(PATH_SUB_CURRENT)/Network/VBoxLibSsh.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
|
---|
588 | $(call MSG_TOOL,VBoxDef2LazyLoad,VBoxDD,$(filter %.def, $^),$@)
|
---|
589 | $(QUIET)$(RM) -f -- "$@"
|
---|
590 | $(VBOX_DEF_2_LAZY_LOAD) --explicit-load-function --library VBoxLibSsh --output "$@" $(filter %.def, $^)
|
---|
591 | endif
|
---|
592 |
|
---|
593 | # --- Storage bits. ---
|
---|
594 |
|
---|
595 | ifdef VBOX_WITH_AHCI
|
---|
596 | VBoxDD_DEFS += VBOX_WITH_AHCI IN_AHCI_R3
|
---|
597 | VBoxDD_SOURCES += \
|
---|
598 | Storage/DevAHCI.cpp
|
---|
599 | endif
|
---|
600 |
|
---|
601 | ifdef VBOX_WITH_BUSLOGIC
|
---|
602 | VBoxDD_DEFS += VBOX_WITH_BUSLOGIC
|
---|
603 | VBoxDD_SOURCES += \
|
---|
604 | Storage/DevBusLogic.cpp
|
---|
605 | endif
|
---|
606 |
|
---|
607 | ifdef VBOX_WITH_LSILOGIC
|
---|
608 | VBoxDD_DEFS += VBOX_WITH_LSILOGIC
|
---|
609 | VBoxDD_SOURCES += \
|
---|
610 | Storage/DevLsiLogicSCSI.cpp
|
---|
611 | endif
|
---|
612 |
|
---|
613 | if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
614 | VBoxDD_DEFS += VBOX_WITH_NVME_IMPL
|
---|
615 | VBoxDD_SOURCES += \
|
---|
616 | Storage/DevNVMe.cpp
|
---|
617 | endif
|
---|
618 |
|
---|
619 | if defined(VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_SCSI)
|
---|
620 | VBoxDD_DEFS += VBOX_WITH_VIRTIO_SCSI
|
---|
621 | VBoxDD_SOURCES += \
|
---|
622 | Storage/DevVirtioSCSI.cpp
|
---|
623 | endif
|
---|
624 |
|
---|
625 | if defined(VBOX_WITH_TPM)
|
---|
626 | VBoxDD_DEFS += VBOX_WITH_TPM
|
---|
627 | VBoxDD_SOURCES += \
|
---|
628 | Security/DevTpm.cpp \
|
---|
629 | Security/DrvTpmEmu.cpp
|
---|
630 |
|
---|
631 | VBoxDD_SOURCES.linux += \
|
---|
632 | Security/DrvTpmHost.cpp
|
---|
633 |
|
---|
634 | VBoxDD_SOURCES.win += \
|
---|
635 | Security/DrvTpmHost.cpp
|
---|
636 |
|
---|
637 | if defined(VBOX_WITH_LIBTPMS)
|
---|
638 | VBoxDD_SDKS += VBOX_TPMS
|
---|
639 | VBoxDD_DEFS += VBOX_WITH_LIBTPMS
|
---|
640 | VBoxDD_SOURCES += \
|
---|
641 | Security/DrvTpmEmuTpms.cpp
|
---|
642 | endif
|
---|
643 | endif
|
---|
644 |
|
---|
645 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
646 | VBoxDD_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
647 | endif
|
---|
648 |
|
---|
649 | ifdef VBOX_WITH_SCSI
|
---|
650 | VBoxDD_DEFS += VBOX_WITH_SCSI
|
---|
651 | VBoxDD_SOURCES += \
|
---|
652 | Storage/DrvSCSI.cpp
|
---|
653 | endif
|
---|
654 |
|
---|
655 | ifdef VBOX_WITH_ISCSI
|
---|
656 | $(eval $(call def_vbox_lwip_flags, \
|
---|
657 | VBoxDD, Storage/DrvVD.cpp, Network/lwip-new))
|
---|
658 | endif
|
---|
659 |
|
---|
660 | ifdef VBOX_WITH_DRV_DISK_INTEGRITY
|
---|
661 | VBoxDD_DEFS += VBOX_WITH_DRV_DISK_INTEGRITY
|
---|
662 | VBoxDD_SOURCES += \
|
---|
663 | Storage/DrvDiskIntegrity.cpp \
|
---|
664 | Storage/DrvRamDisk.cpp
|
---|
665 | endif
|
---|
666 |
|
---|
667 | ifdef VBOX_WITH_EFI
|
---|
668 | VBoxDD_DEFS += VBOX_WITH_EFI
|
---|
669 | VBoxDD_SOURCES += EFI/DevEFI.cpp
|
---|
670 | EFI/DevEFI.cpp_INCS += EFI/Firmware/BaseTools/Source/C/Include
|
---|
671 | EFI/DevEFI.cpp_INCS.x86 += EFI/Firmware/BaseTools/Source/C/Include/Ia32
|
---|
672 | EFI/DevEFI.cpp_INCS.amd64 += EFI/Firmware/BaseTools/Source/C/Include/X64
|
---|
673 | EFI/DevEFI.cpp_INCS.arm32 += EFI/Firmware/BaseTools/Source/C/Include/Arm
|
---|
674 | EFI/DevEFI.cpp_INCS.arm64 += EFI/Firmware/BaseTools/Source/C/Include/AArch64
|
---|
675 | endif
|
---|
676 |
|
---|
677 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
678 | VBoxDD_DEFS += VBOX_WITH_PCI_PASSTHROUGH_IMPL
|
---|
679 | VBoxDD_SOURCES += \
|
---|
680 | Bus/DevPciRaw.cpp \
|
---|
681 | Bus/DrvPciRaw.cpp
|
---|
682 | endif
|
---|
683 |
|
---|
684 | ifdef VBOX_WITH_MSI_DEVICES
|
---|
685 | VBoxDD_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
686 | endif
|
---|
687 |
|
---|
688 | ifdef VBOX_WITH_DYNAMIC_DSDT
|
---|
689 | VBoxDD_DEFS += VBOX_WITH_DYNAMIC_DSDT
|
---|
690 | endif
|
---|
691 |
|
---|
692 | # --- Audio bits (see also VBOX_AUDIO_DEFS in ./Config.kmk). ---
|
---|
693 |
|
---|
694 | VBoxDD_DEFS += $(VBOX_AUDIO_DEFS)
|
---|
695 | VBoxDD_SOURCES += \
|
---|
696 | Audio/DevIchAc97.cpp \
|
---|
697 | Audio/DevSB16.cpp \
|
---|
698 | Audio/DevHda.cpp \
|
---|
699 | Audio/DevHdaCodec.cpp \
|
---|
700 | Audio/DevHdaStream.cpp \
|
---|
701 | Audio/AudioHlp.cpp \
|
---|
702 | Audio/AudioMixBuffer.cpp \
|
---|
703 | Audio/AudioMixer.cpp \
|
---|
704 | Audio/DrvAudio.cpp \
|
---|
705 | Audio/DrvHostAudioNull.cpp
|
---|
706 |
|
---|
707 | if defined(VBOX_WITH_AUDIO_DEBUG) || defined(VBOX_WITH_AUDIO_VALIDATIONKIT)
|
---|
708 | VBoxDD_SOURCES += \
|
---|
709 | Audio/AudioTest.cpp \
|
---|
710 | Audio/AudioTestService.cpp \
|
---|
711 | Audio/AudioTestServiceTcp.cpp \
|
---|
712 | Audio/AudioTestServiceProtocol.cpp
|
---|
713 | endif
|
---|
714 |
|
---|
715 | ifdef VBOX_WITH_AUDIO_DEBUG
|
---|
716 | VBoxDD_DEFS += VBOX_WITH_AUDIO_DEBUG
|
---|
717 | VBoxDD_SOURCES += \
|
---|
718 | Audio/DrvHostAudioDebug.cpp
|
---|
719 | endif
|
---|
720 |
|
---|
721 | ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
|
---|
722 | VBoxDD_DEFS += VBOX_WITH_AUDIO_VALIDATIONKIT
|
---|
723 | VBoxDD_SOURCES += \
|
---|
724 | Audio/DrvHostAudioValidationKit.cpp
|
---|
725 | endif
|
---|
726 |
|
---|
727 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
728 | VBoxDD_SOURCES += \
|
---|
729 | Audio/DrvHostAudioCoreAudio.cpp \
|
---|
730 | Audio/DrvHostAudioCoreAudioAuth.mm
|
---|
731 | endif
|
---|
732 |
|
---|
733 | ifeq ($(KBUILD_TARGET),win)
|
---|
734 | VBoxDD_SOURCES += \
|
---|
735 | Audio/DrvHostAudioDSound.cpp \
|
---|
736 | Audio/DrvHostAudioWasApi.cpp
|
---|
737 | ifdef VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT
|
---|
738 | VBoxDD_DEFS += VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT
|
---|
739 | VBoxDD_SOURCES += \
|
---|
740 | Audio/DrvHostAudioDSoundMMNotifClient.cpp
|
---|
741 | endif
|
---|
742 | endif
|
---|
743 |
|
---|
744 | ifdef VBOX_WITH_AUDIO_OSS
|
---|
745 | VBoxDD_DEFS += VBOX_WITH_AUDIO_OSS
|
---|
746 | VBoxDD_SOURCES += \
|
---|
747 | Audio/DrvHostAudioOss.cpp
|
---|
748 | endif
|
---|
749 |
|
---|
750 | ifdef VBOX_WITH_AUDIO_ALSA
|
---|
751 | VBoxDD_DEFS += VBOX_WITH_AUDIO_ALSA
|
---|
752 | VBoxDD_SOURCES += \
|
---|
753 | Audio/DrvHostAudioAlsa.cpp \
|
---|
754 | Audio/DrvHostAudioAlsaStubs.cpp
|
---|
755 | endif
|
---|
756 |
|
---|
757 | ifdef VBOX_WITH_AUDIO_PULSE
|
---|
758 | VBoxDD_DEFS += VBOX_WITH_AUDIO_PULSE
|
---|
759 | VBoxDD_SOURCES += \
|
---|
760 | Audio/DrvHostAudioPulseAudio.cpp \
|
---|
761 | Audio/DrvHostAudioPulseAudioStubs.cpp
|
---|
762 | endif
|
---|
763 |
|
---|
764 | # --- WARNING! SLIRP MESS AHEAD! ;-) ---
|
---|
765 | VBOX_SLIRP_SOURCES = \
|
---|
766 | Network/DrvNAT.cpp \
|
---|
767 | Network/slirp/bootp.c \
|
---|
768 | Network/slirp/debug.c \
|
---|
769 | Network/slirp/ip_icmp.c \
|
---|
770 | Network/slirp/ip_input.c \
|
---|
771 | Network/slirp/ip_output.c \
|
---|
772 | Network/slirp/misc.c \
|
---|
773 | Network/slirp/sbuf.c \
|
---|
774 | Network/slirp/slirp.c \
|
---|
775 | Network/slirp/slirp_dns.c \
|
---|
776 | Network/slirp/socket.c \
|
---|
777 | Network/slirp/tcp_input.c \
|
---|
778 | Network/slirp/tcp_output.c \
|
---|
779 | Network/slirp/tcp_subr.c \
|
---|
780 | Network/slirp/tcp_timer.c \
|
---|
781 | Network/slirp/udp.c \
|
---|
782 | Network/slirp/hostres.c \
|
---|
783 | Network/slirp/dnsproxy/hash.c \
|
---|
784 | Network/slirp/tftp.c \
|
---|
785 | Network/slirp/dnsproxy/dnsproxy.c
|
---|
786 |
|
---|
787 | ifeq ($(KBUILD_TARGET), win)
|
---|
788 | VBOX_SLIRP_SOURCES += Network/slirp/ip_icmpwin.c
|
---|
789 | else ifneq ($(KBUILD_TARGET),darwin)
|
---|
790 | # helper for debugging unprivileged
|
---|
791 | # Network/slirp/ip_icmp.c_DEFS += VBOX_RAWSOCK_DEBUG_HELPER
|
---|
792 | # VBOX_SLIRP_SOURCES += ../NetworkServices/NAT/getrawsock.c
|
---|
793 | endif
|
---|
794 |
|
---|
795 | ifneq ($(KBUILD_TARGET), win)
|
---|
796 | VBOX_SLIRP_SOURCES += Network/slirp/resolv_conf_parser.c
|
---|
797 | endif
|
---|
798 |
|
---|
799 | VBOX_SLIRP_BSD_ARCH = $(subst x86,i386,$(KBUILD_TARGET_ARCH))
|
---|
800 | VBOX_SLIRP_BSD_SOURCES += \
|
---|
801 | Network/slirp/bsd/kern/kern_mbuf.c \
|
---|
802 | Network/slirp/bsd/kern/uipc_mbuf.c \
|
---|
803 | Network/slirp/bsd/kern/uipc_mbuf2.c \
|
---|
804 | Network/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/in_cksum.c
|
---|
805 | VBOX_SLIRP_ALIAS_SOURCES = \
|
---|
806 | Network/slirp/libalias/alias.c \
|
---|
807 | Network/slirp/libalias/alias_db.c \
|
---|
808 | Network/slirp/libalias/alias_mod.c \
|
---|
809 | Network/slirp/libalias/alias_proxy.c \
|
---|
810 | Network/slirp/libalias/alias_ftp.c \
|
---|
811 | Network/slirp/libalias/alias_nbt.c \
|
---|
812 | Network/slirp/libalias/alias_util.c
|
---|
813 |
|
---|
814 | # Enable VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER here for a while, then move to
|
---|
815 | # $(file)_DEFS or clean the code disabled with this definition.
|
---|
816 | VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER=1
|
---|
817 |
|
---|
818 | # dump memory related operations.
|
---|
819 | Network/slirp/misc.c_DEFS += $(if $(VBOX_NAT_MEM_DEBUG),VBOX_NAT_MEM_DEBUG,)
|
---|
820 |
|
---|
821 | VBoxDD_SOURCES += $(VBOX_SLIRP_SOURCES)
|
---|
822 | define def_vbox_slirp_cflags
|
---|
823 | $(file)_DEFS += \
|
---|
824 | $(if $(VBOX_WITH_SLIRP_MEMORY_CHECK),RTMEM_WRAP_TO_EF_APIS,) \
|
---|
825 | $(if $(VBOX_WITH_DEBUG_NAT_SOCKETS),VBOX_WITH_DEBUG_NAT_SOCKETS,) \
|
---|
826 | $(if $(VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER),VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER,) \
|
---|
827 | $(if $(VBOX_WITH_NAT_SEND2HOME),VBOX_WITH_NAT_SEND2HOME,) \
|
---|
828 | $(if $(VBOX_WITH_HIDDEN_TCPTEMPLATE),VBOX_WITH_HIDDEN_TCPTEMPLATE,) \
|
---|
829 | $(if $(VBOX_WITH_SLIRP_MT),VBOX_WITH_SLIRP_MT,)
|
---|
830 | $(file)_INCS += \
|
---|
831 | $(1)/slirp/bsd/sys \
|
---|
832 | $(1)/slirp/bsd/sys/sys \
|
---|
833 | $(1)/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/include \
|
---|
834 | $(1)/slirp/bsd/netinet \
|
---|
835 | $(1)/slirp \
|
---|
836 | $(1)/slirp/libalias
|
---|
837 | ifeq ($(KBUILD_TARGET),win)
|
---|
838 | $(file)_CFLAGS = -wd4018
|
---|
839 | else
|
---|
840 | $(file)_CFLAGS += -Wno-sign-compare -Wno-format -Wno-bad-function-cast
|
---|
841 | endif
|
---|
842 | endef
|
---|
843 |
|
---|
844 | $(foreach file,$(VBOX_SLIRP_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
845 |
|
---|
846 | VBoxDD_SOURCES += $(VBOX_SLIRP_ALIAS_SOURCES)
|
---|
847 | define def_vbox_slirp_alias_cflags
|
---|
848 | $(file)_DEFS += VBOX_SLIRP_ALIAS \
|
---|
849 | $(if $(VBOX_WITH_DEBUG_LIBALIAS),VBOX_WITH_DEBUG_LIBALIAS,)
|
---|
850 | $(file)_INCS += \
|
---|
851 | $(1)/slirp/libalias \
|
---|
852 | $(1)/slirp \
|
---|
853 | $(1)/slirp/dnsproxy
|
---|
854 | ifneq ($(KBUILD_TARGET),win)
|
---|
855 | $(file)_CFLAGS += -Wno-shadow
|
---|
856 | endif
|
---|
857 | endef
|
---|
858 | $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
859 | $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_alias_cflags, Network)))
|
---|
860 |
|
---|
861 | VBOX_SLIRP_BSD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES.${KBUILD_TARGET_ARCH})
|
---|
862 | VBoxDD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES)
|
---|
863 | define def_vbox_slirp_bsd_cflags
|
---|
864 | $(file)_DEFS += VBOX_SLIRP_BSD
|
---|
865 | $(file)_INCS += $(1)/slirp/dnsproxy
|
---|
866 | endef
|
---|
867 | $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
868 | $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_bsd_cflags, Network)))
|
---|
869 |
|
---|
870 |
|
---|
871 | # --- OS specific driver hacks. ---
|
---|
872 |
|
---|
873 | ifeq ($(KBUILD_TARGET),freebsd)
|
---|
874 | VBoxDD_SOURCES.freebsd += Network/DrvTAP.cpp
|
---|
875 | endif # freebsd
|
---|
876 |
|
---|
877 | VBoxDD_SOURCES.linux += \
|
---|
878 | Network/DrvTAP.cpp \
|
---|
879 | Parallel/DrvHostParallel.cpp
|
---|
880 |
|
---|
881 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
882 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
883 | VBoxDD_DEFS += VBOX_WITH_SUID_WRAPPER
|
---|
884 | endif
|
---|
885 | endif
|
---|
886 |
|
---|
887 | VBoxDD_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
|
---|
888 | VBoxDD_SOURCES.win += \
|
---|
889 | Parallel/DrvHostParallel.cpp
|
---|
890 |
|
---|
891 | ifdef VBOX_WITH_VIRTUALKD
|
---|
892 | VBoxDD_DEFS.win += VBOX_WITH_VIRTUALKD
|
---|
893 | VBoxDD_SOURCES.win += \
|
---|
894 | Misc/DevVirtualKD.cpp
|
---|
895 | endif
|
---|
896 |
|
---|
897 | if defined(VBOX_WITH_NETFLT)
|
---|
898 | VBoxDD_DEFS += VBOX_WITH_NETFLT
|
---|
899 | if defined(VBOX_NETFLT_ONDEMAND_BIND)
|
---|
900 | VBoxDD_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
|
---|
901 | endif
|
---|
902 | endif
|
---|
903 |
|
---|
904 | # --- Final bits, mostly libraries for order dependant linkers. ---
|
---|
905 |
|
---|
906 | VBoxDD_LIBS += \
|
---|
907 | $(PATH_STAGE_LIB)/VgaDefBiosLogo$(VBOX_SUFF_LIB) \
|
---|
908 | $(LIB_RUNTIME)
|
---|
909 | ifeq ($(KBUILD_TARGET),win)
|
---|
910 | VBoxDD_LIBS += \
|
---|
911 | $(LIB_DDU) \
|
---|
912 | $(PATH_STAGE_LIB)/VBoxDD2.lib
|
---|
913 | else
|
---|
914 | VBoxDD_LIBS += \
|
---|
915 | $(VBoxDDU_1_STAGE_TARGET) \
|
---|
916 | $(VBoxDD2_1_STAGE_TARGET)
|
---|
917 | endif
|
---|
918 |
|
---|
919 | ifdef VBOX_WITH_NETFLT
|
---|
920 | VBoxDD_LIBS.win += $(PATH_STAGE_LIB)/WinNetConfigDll$(VBOX_SUFF_LIB)
|
---|
921 | endif
|
---|
922 |
|
---|
923 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
924 | VBoxDD_LIBS += adm
|
---|
925 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
926 | VBoxDD_LIBS += secdb
|
---|
927 | endif
|
---|
928 | ifdef VBOX_WITH_USB
|
---|
929 | VBoxDD_LIBS += aio
|
---|
930 | endif
|
---|
931 | endif
|
---|
932 |
|
---|
933 |
|
---|
934 | ifdef VBOX_WITH_DYNAMIC_DSDT
|
---|
935 | VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
936 | PC/ACPI/VBoxAcpi.cpp_DEPS = $(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
937 |
|
---|
938 | $$(VBoxDD_0_OUTDIR)/vboxdsl.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
|
---|
939 | $(call MSG_TOOL,bin2c,VBoxDD,$<,$@)
|
---|
940 | $(QUIET)$(VBOX_BIN2C) -export VboxDslSource $< $@
|
---|
941 |
|
---|
942 | vboxdsl.hex:: $$(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
943 |
|
---|
944 | else # !VBOX_WITH_DYNAMIC_DSDT
|
---|
945 | # VBoxAcpi.cpp needs vboxaml.hex which we generate from PC/vbox.dsl
|
---|
946 | VBoxDD_CLEAN += \
|
---|
947 | $(VBoxDD_0_OUTDIR)/vboxaml.hex \
|
---|
948 | $(VBoxDD_0_OUTDIR)/vboxaml.aml \
|
---|
949 | $(VBoxDD_0_OUTDIR)/vboxaml.aml.tmp \
|
---|
950 | $(VBoxDD_0_OUTDIR)/vboxssdt_standard.hex \
|
---|
951 | $(VBoxDD_0_OUTDIR)/vboxssdt_standard.aml \
|
---|
952 | $(VBoxDD_0_OUTDIR)/vboxssdt_standard.aml.tmp \
|
---|
953 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.hex \
|
---|
954 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.aml \
|
---|
955 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.aml.tmp \
|
---|
956 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.aml.pre \
|
---|
957 | $(if $(VBOX_WITH_TPM),$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.hex,) \
|
---|
958 | $(if $(VBOX_WITH_TPM),$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.aml,) \
|
---|
959 | $(if $(VBOX_WITH_TPM),$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.aml.tmp,)
|
---|
960 | PC/ACPI/VBoxAcpi.cpp_DEPS = \
|
---|
961 | $(VBoxDD_0_OUTDIR)/vboxaml.hex \
|
---|
962 | $(VBoxDD_0_OUTDIR)/vboxssdt_standard.hex \
|
---|
963 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.hex \
|
---|
964 | $(if $(VBOX_WITH_TPM),$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.hex,)
|
---|
965 |
|
---|
966 | $$(VBoxDD_0_OUTDIR)/vboxaml.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
|
---|
967 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
968 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
969 | $(QUIET)$(MV) -f $@ $@.tmp
|
---|
970 | $(QUIET)$(SED) -e "s/vboxaml_aml_code/AmlCode/g" \
|
---|
971 | --output $@ $@.tmp
|
---|
972 | $(QUIET)$(RM) -f $@.tmp
|
---|
973 |
|
---|
974 | vboxaml.hex:: $$(VBoxDD_0_OUTDIR)/vboxaml.hex
|
---|
975 |
|
---|
976 | $$(VBoxDD_0_OUTDIR)/vboxssdt_standard.hex: $(PATH_SUB_CURRENT)/PC/vbox-standard.dsl | $$(dir $$@)
|
---|
977 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
978 | $(QUIET)$(RM) -f $@ $@.tmp
|
---|
979 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
980 | $(QUIET)$(MV) -f $@ $@.tmp
|
---|
981 | $(QUIET)$(SED) -e "s/AmlCode\|vboxssdt_standard_aml_code/AmlCodeSsdtStandard/g" \
|
---|
982 | --output $@ $@.tmp
|
---|
983 | $(QUIET)$(RM) -f $@.tmp
|
---|
984 |
|
---|
985 |
|
---|
986 | vboxssdt_standard.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt_standard.hex
|
---|
987 |
|
---|
988 | $$(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.hex: $(PATH_SUB_CURRENT)/PC/vbox-cpuhotplug.dsl | $$(dir $$@)
|
---|
989 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
990 | $(QUIET)$(RM) -f $@ $@.tmp $@.pre
|
---|
991 | $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o $@.pre $<
|
---|
992 | $(QUIET)$(SED) -e "s/<NL>/\n/g" \
|
---|
993 | --output $@.pre1 $@.pre
|
---|
994 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $@.pre1
|
---|
995 | $(QUIET)$(MV) -f $@ $@.tmp
|
---|
996 | $(QUIET)$(SED) -e "s/AmlCode\|vboxssdt_cpuhotplug_aml_code/AmlCodeSsdtCpuHotPlug/g" \
|
---|
997 | --output $@ $@.tmp
|
---|
998 | $(QUIET)$(RM) -f $@.tmp $@.pre $@.pre1
|
---|
999 |
|
---|
1000 |
|
---|
1001 | vboxssdt_cpuhotplug.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.hex
|
---|
1002 |
|
---|
1003 | if defined(VBOX_WITH_TPM)
|
---|
1004 | $$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.hex: $(PATH_SUB_CURRENT)/PC/vbox-tpm.dsl | $$(dir $$@)
|
---|
1005 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
1006 | $(QUIET)$(RM) -f $@ $@.tmp
|
---|
1007 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
1008 | $(QUIET)$(MV) -f $@ $@.tmp
|
---|
1009 | $(QUIET)$(SED) -e "s/AmlCode\|vboxssdt_tpm_aml_code/AmlCodeSsdtTpm/g" \
|
---|
1010 | --output $@ $@.tmp
|
---|
1011 | $(QUIET)$(RM) -f $@.tmp
|
---|
1012 |
|
---|
1013 | vboxssdt_tpm.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.hex
|
---|
1014 | endif # !VBOX_WITH_TPM
|
---|
1015 |
|
---|
1016 | endif # !VBOX_WITH_DYNAMIC_DSDT
|
---|
1017 | PC/ACPI/VBoxAcpi.cpp_INCS = $(VBoxDD_0_OUTDIR)
|
---|
1018 |
|
---|
1019 | # For finding PCIInternal.h from VBox/pci.h.
|
---|
1020 | Bus/DevPCI.cpp_INCS = Bus
|
---|
1021 | Bus/DevPciIch9.cpp_INCS = Bus
|
---|
1022 | Bus/MsiCommon.cpp_INCS = Bus
|
---|
1023 | Bus/MsixCommon.cpp_INCS = Bus
|
---|
1024 | Bus/DevPciRaw.cpp_INCS = Bus
|
---|
1025 |
|
---|
1026 | # For finding and generating vbetables.h (see Graphics/BIOS/Makefile.kmk).
|
---|
1027 | Graphics/DevVGA.cpp_INCS = $(VgaBiosBin_0_OUTDIR) $(VBOX_GRAPHICS_INCS)
|
---|
1028 | Graphics/DevVGA.cpp_DEPS = $(VgaBiosBin_0_OUTDIR)/vbetables.h
|
---|
1029 |
|
---|
1030 | $(call VBOX_SET_VER_INFO_DLL,VBoxDD,VirtualBox VMM Devices and Drivers) # (last!)
|
---|
1031 |
|
---|
1032 |
|
---|
1033 | ifdef VBOX_WITH_RAW_MODE
|
---|
1034 | #
|
---|
1035 | # VBoxDDRC (sysmod)
|
---|
1036 | #
|
---|
1037 | VBoxDDRC_TEMPLATE = VBoxRc
|
---|
1038 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
1039 | VBoxDDRC_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
1040 | endif
|
---|
1041 | VBoxDDRC_DEFS = \
|
---|
1042 | $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
|
---|
1043 | $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) \
|
---|
1044 | $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL,)
|
---|
1045 | VBoxDDRC_INCS = build $(VBOX_GRAPHICS_INCS)
|
---|
1046 | VBoxDDRC_SOURCES = \
|
---|
1047 | Bus/DevPCI.cpp \
|
---|
1048 | Bus/DevPciIch9.cpp \
|
---|
1049 | Bus/MsiCommon.cpp \
|
---|
1050 | Bus/MsixCommon.cpp \
|
---|
1051 | $(if $(VBOX_WITH_IOMMU_AMD),Bus/DevIommuAmd.cpp,) \
|
---|
1052 | $(if $(VBOX_WITH_IOMMU_INTEL),Bus/DevIommuIntel.cpp,) \
|
---|
1053 | EFI/DevSmc.cpp \
|
---|
1054 | Graphics/DevVGA.cpp \
|
---|
1055 | Input/DevPS2.cpp \
|
---|
1056 | Input/DevPS2K.cpp \
|
---|
1057 | Input/DevPS2M.cpp \
|
---|
1058 | PC/DevACPI.cpp \
|
---|
1059 | PC/DevIoApic.cpp \
|
---|
1060 | PC/DevPit-i8254.cpp \
|
---|
1061 | PC/DevPIC.cpp \
|
---|
1062 | PC/DevRTC.cpp \
|
---|
1063 | PC/DevDMA.cpp \
|
---|
1064 | PC/DevHPET.cpp \
|
---|
1065 | Storage/DevATA.cpp \
|
---|
1066 | Network/DevPCNet.cpp \
|
---|
1067 | Network/DevDP8390.cpp \
|
---|
1068 | Network/Dev3C501.cpp \
|
---|
1069 | Serial/DevSerial.cpp \
|
---|
1070 | Serial/DevOxPcie958.cpp \
|
---|
1071 | Serial/UartCore.cpp \
|
---|
1072 | Parallel/DevParallel.cpp \
|
---|
1073 | VMMDev/VMMDev.cpp \
|
---|
1074 | VMMDev/VMMDevTesting.cpp
|
---|
1075 |
|
---|
1076 | VBoxDDRC_DEFS += $(VBOX_AUDIO_DEFS)
|
---|
1077 | VBoxDDRC_SOURCES += \
|
---|
1078 | Audio/DevHda.cpp \
|
---|
1079 | Audio/DevIchAc97.cpp
|
---|
1080 |
|
---|
1081 | VBoxDDRC_DEFS += \
|
---|
1082 | $(if $(VBOX_WITH_HP_HDA),VBOX_WITH_HP_HDA,) \
|
---|
1083 | $(if $(VBOX_WITH_INTEL_HDA),VBOX_WITH_INTEL_HDA,) \
|
---|
1084 | $(if $(VBOX_WITH_NVIDIA_HDA),VBOX_WITH_NVIDIA_HDA,)
|
---|
1085 |
|
---|
1086 | ifdef VBOX_WITH_E1000
|
---|
1087 | VBoxDDRC_DEFS += VBOX_WITH_E1000
|
---|
1088 | VBoxDDRC_SOURCES += \
|
---|
1089 | Network/DevE1000.cpp \
|
---|
1090 | Network/DevE1000Phy.cpp
|
---|
1091 | endif
|
---|
1092 |
|
---|
1093 | ifdef VBOX_WITH_VIRTIO
|
---|
1094 | VBoxDDRC_DEFS += VBOX_WITH_VIRTIO
|
---|
1095 | VBoxDDRC_SOURCES += \
|
---|
1096 | VirtIO/VirtioCore.cpp \
|
---|
1097 | Network/DevVirtioNet_1_0.cpp
|
---|
1098 | endif
|
---|
1099 |
|
---|
1100 | ifdef VBOX_WITH_HGSMI
|
---|
1101 | VBoxDDRC_DEFS += VBOX_WITH_HGSMI
|
---|
1102 | endif
|
---|
1103 | ifdef VBOX_WITH_WDDM
|
---|
1104 | VBoxDDRC_DEFS += VBOX_WITH_WDDM
|
---|
1105 | endif
|
---|
1106 | ifdef VBOX_WITH_VDMA
|
---|
1107 | VBoxDDRC_DEFS += VBOX_WITH_VDMA
|
---|
1108 | endif
|
---|
1109 | ifdef VBOXWDDM_WITH_VBVA
|
---|
1110 | VBoxDDRC_DEFS += VBOXWDDM_WITH_VBVA
|
---|
1111 | endif
|
---|
1112 | ifdef VBOX_WITH_VMSVGA
|
---|
1113 | VBoxDDRC_DEFS += VBOX_WITH_VMSVGA
|
---|
1114 | VBoxDDRC_SOURCES += \
|
---|
1115 | Graphics/DevVGA-SVGA.cpp
|
---|
1116 | endif
|
---|
1117 | ifdef VBOX_WITH_VMSVGA3D
|
---|
1118 | VBoxDDRC_DEFS += VBOX_WITH_VMSVGA3D
|
---|
1119 | endif
|
---|
1120 |
|
---|
1121 | ifdef VBOX_WITH_VUSB
|
---|
1122 | VBoxDDRC_DEFS += VBOX_WITH_VUSB
|
---|
1123 | VBoxDDRC_SOURCES += \
|
---|
1124 | USB/DevOHCI.cpp
|
---|
1125 | endif
|
---|
1126 |
|
---|
1127 | ifdef VBOX_WITH_USB
|
---|
1128 | VBoxDDRC_DEFS += VBOX_WITH_USB
|
---|
1129 | if defined(VBOX_WITH_EHCI_IMPL)
|
---|
1130 | VBoxDDRC_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
1131 | VBoxDDRC_SOURCES += \
|
---|
1132 | USB/DevEHCI.cpp
|
---|
1133 | endif
|
---|
1134 | if defined(VBOX_WITH_XHCI_IMPL)
|
---|
1135 | VBoxDDRC_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
1136 | VBoxDDRC_SOURCES += \
|
---|
1137 | USB/DevXHCI.cpp
|
---|
1138 | endif
|
---|
1139 | endif
|
---|
1140 |
|
---|
1141 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
1142 | VBoxDDRC_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
1143 | endif
|
---|
1144 |
|
---|
1145 | ifdef VBOX_WITH_AHCI
|
---|
1146 | VBoxDDRC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
|
---|
1147 | VBoxDDRC_SOURCES += \
|
---|
1148 | Storage/DevAHCI.cpp
|
---|
1149 | endif
|
---|
1150 |
|
---|
1151 | ifdef VBOX_WITH_BUSLOGIC
|
---|
1152 | VBoxDDRC_DEFS += VBOX_WITH_BUSLOGIC
|
---|
1153 | VBoxDDRC_SOURCES += \
|
---|
1154 | Storage/DevBusLogic.cpp
|
---|
1155 | endif
|
---|
1156 |
|
---|
1157 | ifdef VBOX_WITH_LSILOGIC
|
---|
1158 | VBoxDDRC_DEFS += VBOX_WITH_LSILOGIC
|
---|
1159 | VBoxDDRC_SOURCES += \
|
---|
1160 | Storage/DevLsiLogicSCSI.cpp
|
---|
1161 | endif
|
---|
1162 |
|
---|
1163 | if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1164 | VBoxDDGC_DEFS += VBOX_WITH_NVME_IMPL
|
---|
1165 | VBoxDDGC_SOURCES += \
|
---|
1166 | Storage/DevNVMe.cpp
|
---|
1167 | endif
|
---|
1168 |
|
---|
1169 | if1of ($(VBOX_LDR_FMT32), pe lx)
|
---|
1170 | VBoxDDRC_LIBS = \
|
---|
1171 | $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
|
---|
1172 | $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
|
---|
1173 | endif
|
---|
1174 | $(call VBOX_SET_VER_INFO_RC,VBoxDDRC,VirtualBox VMM Devices and Drivers$(COMMA) raw-mode) # last!
|
---|
1175 | endif # VBOX_WITH_RAW_MODE
|
---|
1176 |
|
---|
1177 |
|
---|
1178 | #
|
---|
1179 | # VBoxDD2 (shared object)
|
---|
1180 | #
|
---|
1181 | VBoxDD2_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
1182 | VBoxDD2_DEFS = \
|
---|
1183 | IN_VBOXDD2 \
|
---|
1184 | $(if $(VBOX_WITH_PXE_ROM),VBOX_WITH_PXE_ROM,)
|
---|
1185 | VBoxDD2_INCS := \
|
---|
1186 | build \
|
---|
1187 | $(PATH_SUB_CURRENT)
|
---|
1188 | VBoxDD2_SOURCES = \
|
---|
1189 | build/VBoxDD2.cpp
|
---|
1190 | VBoxDD2_LIBS = \
|
---|
1191 | $(PATH_STAGE_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
|
---|
1192 | $(PATH_STAGE_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
|
---|
1193 | $(if $(VBOX_WITH_PXE_ROM),\
|
---|
1194 | $(if $(VBOX_WITH_INTEL_PXE),\
|
---|
1195 | $(PATH_STAGE_LIB)/NetBiosBin$(VBOX_SUFF_LIB),\
|
---|
1196 | $(PATH_STAGE_LIB)/iPxeBiosBin$(VBOX_SUFF_LIB)),) \
|
---|
1197 | $(LIB_RUNTIME)
|
---|
1198 | VBoxDD2_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD2.dylib
|
---|
1199 | VBoxDD2_LDFLAGS.linux = $(VBOX_GCC_NO_UNDEFINED)
|
---|
1200 | if defined(VBOX_WITH_EFI) && !defined(VBOX_WITH_EFIFW_PACKING)
|
---|
1201 | VBoxDD_DEFS += VBOX_WITH_EFI_IN_DD2
|
---|
1202 | VBoxDD2_DEFS += VBOX_WITH_EFI
|
---|
1203 | VBoxDD2_SOURCES.x86 += EFI/DevEFI-binaries.asm
|
---|
1204 | VBoxDD2_SOURCES.amd64 += EFI/DevEFI-binaries.asm
|
---|
1205 | EFI/DevEFI-binaries.asm_ASINCS = $(PATH_STAGE)/$(INST_BIN)
|
---|
1206 | EFI/DevEFI-binaries.asm_DEPS = \
|
---|
1207 | $(PATH_STAGE)/$(INST_BIN)VBoxEFI32.fd \
|
---|
1208 | $(PATH_STAGE)/$(INST_BIN)VBoxEFI64.fd
|
---|
1209 |
|
---|
1210 | VBoxDD2_SOURCES.arm64 += EFI/DevEFI-binaries.S
|
---|
1211 | EFI/DevEFI-binaries.S_ASINCS = $(PATH_STAGE)/$(INST_BIN)
|
---|
1212 | EFI/DevEFI-binaries.S_DEPS = \
|
---|
1213 | $(PATH_STAGE)/$(INST_BIN)VBoxEFI32.fd \
|
---|
1214 | $(PATH_STAGE)/$(INST_BIN)VBoxEFI64.fd
|
---|
1215 | endif
|
---|
1216 |
|
---|
1217 | $(call VBOX_SET_VER_INFO_DLL,VBoxDD2,VirtualBox VMM Devices and Drivers 2) # (last!)
|
---|
1218 |
|
---|
1219 | #
|
---|
1220 | # VBoxDDR0 (sysmod)
|
---|
1221 | #
|
---|
1222 | if "$(KBUILD_TARGET)" != "win" && $(VBOX_GCC_VERSION_CXX) < 40600
|
---|
1223 | #
|
---|
1224 | # Disable "ISO C++ prohibits anonymous structs [-Werror=pedantic]" caused by Mesa VMSVGA driver headers
|
---|
1225 | # For GCC >= 4.6.0 the warning is disabled in DevVGA_SVGA.h
|
---|
1226 | #
|
---|
1227 | # Template used for gcc older than 4.6. (Strips away compiler options.)
|
---|
1228 | #
|
---|
1229 | TEMPLATE_VBoxDDR0OldGCC := VBoxDDR0OldGCC
|
---|
1230 | TEMPLATE_VBoxDDR0OldGCC_EXTENDS := VBoxR0
|
---|
1231 | TEMPLATE_VBoxDDR0OldGCC_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxDDR0OldGCC_EXTENDS)_CXXFLAGS))
|
---|
1232 |
|
---|
1233 | VBoxDDR0_TEMPLATE = VBoxDDR0OldGCC
|
---|
1234 | else
|
---|
1235 | VBoxDDR0_TEMPLATE = VBoxR0
|
---|
1236 | endif
|
---|
1237 | VBoxDDR0_DEFS = \
|
---|
1238 | $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
|
---|
1239 | $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) \
|
---|
1240 | $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL,) \
|
---|
1241 | IN_RT_R0 # - WTF is IN_RT_R0 doing here?
|
---|
1242 | VBoxDDR0_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
|
---|
1243 | VBoxDDR0_INCS = build $(VBOX_GRAPHICS_INCS)
|
---|
1244 | VBoxDDR0_INCS += $(VBOX_PATH_VMSVGA_DEVICE_INC)
|
---|
1245 | VBoxDDR0_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
1246 | VBoxDDR0_SOURCES = \
|
---|
1247 | build/VBoxDDR0.cpp \
|
---|
1248 | Bus/DevPCI.cpp \
|
---|
1249 | Bus/DevPciIch9.cpp \
|
---|
1250 | Bus/MsiCommon.cpp \
|
---|
1251 | Bus/MsixCommon.cpp \
|
---|
1252 | $(if $(VBOX_WITH_IOMMU_AMD),Bus/DevIommuAmd.cpp,) \
|
---|
1253 | $(if $(VBOX_WITH_IOMMU_INTEL),Bus/DevIommuIntel.cpp,) \
|
---|
1254 | EFI/DevSmc.cpp \
|
---|
1255 | EFI/DevFlash.cpp \
|
---|
1256 | EFI/FlashCore.cpp \
|
---|
1257 | Graphics/DevVGA.cpp \
|
---|
1258 | Input/DevPS2.cpp \
|
---|
1259 | Input/DevPS2K.cpp \
|
---|
1260 | Input/DevPS2M.cpp \
|
---|
1261 | PC/DevACPI.cpp \
|
---|
1262 | PC/DevIoApic.cpp \
|
---|
1263 | PC/DevPit-i8254.cpp \
|
---|
1264 | PC/DevPIC.cpp \
|
---|
1265 | PC/DevRTC.cpp \
|
---|
1266 | PC/DevDMA.cpp \
|
---|
1267 | PC/DevHPET.cpp \
|
---|
1268 | Storage/DevATA.cpp \
|
---|
1269 | Network/DevPCNet.cpp \
|
---|
1270 | Network/DevDP8390.cpp \
|
---|
1271 | Network/Dev3C501.cpp \
|
---|
1272 | Serial/DevSerial.cpp \
|
---|
1273 | Serial/DevOxPcie958.cpp \
|
---|
1274 | Serial/UartCore.cpp \
|
---|
1275 | Parallel/DevParallel.cpp \
|
---|
1276 | GIMDev/GIMDev.cpp \
|
---|
1277 | VMMDev/VMMDev.cpp \
|
---|
1278 | VMMDev/VMMDevTesting.cpp \
|
---|
1279 | Network/DrvDedicatedNic.cpp \
|
---|
1280 | $(if-expr 0,Network/DrvIntNet.cpp,) # no ring-0 driver support at the moment
|
---|
1281 |
|
---|
1282 | ifdef VBOX_WITH_DTRACE_R0
|
---|
1283 | VBoxDDR0_USES += dtrace
|
---|
1284 | VBoxDDR0_SOURCES += build/VBoxDD.d
|
---|
1285 | endif
|
---|
1286 |
|
---|
1287 | VBoxDDR0_SOURCES.win += Parallel/DrvHostParallel.cpp
|
---|
1288 |
|
---|
1289 | VBoxDDR0_DEFS += \
|
---|
1290 | $(if $(VBOX_WITH_HGSMI),VBOX_WITH_HGSMI,) \
|
---|
1291 | $(if $(VBOX_WITH_WDDM),VBOX_WITH_WDDM,) \
|
---|
1292 | $(if $(VBOX_WITH_VDMA),VBOX_WITH_VDMA,) \
|
---|
1293 | $(if $(VBOXWDDM_WITH_VBVA),VBOXWDDM_WITH_VBVA,) \
|
---|
1294 | $(if $(VBOX_WITH_HP_HDA),VBOX_WITH_HP_HDA,) \
|
---|
1295 | $(if $(VBOX_WITH_INTEL_HDA),VBOX_WITH_INTEL_HDA,) \
|
---|
1296 | $(if $(VBOX_WITH_NVIDIA_HDA),VBOX_WITH_NVIDIA_HDA,)
|
---|
1297 |
|
---|
1298 | VBoxDDR0_DEFS += $(VBOX_AUDIO_DEFS)
|
---|
1299 | VBoxDDR0_SOURCES += \
|
---|
1300 | Audio/DevHda.cpp \
|
---|
1301 | Audio/DevHdaStream.cpp \
|
---|
1302 | Audio/DevIchAc97.cpp
|
---|
1303 |
|
---|
1304 | ifdef VBOX_WITH_E1000
|
---|
1305 | VBoxDDR0_DEFS += VBOX_WITH_E1000
|
---|
1306 | VBoxDDR0_SOURCES += \
|
---|
1307 | Network/DevE1000.cpp \
|
---|
1308 | Network/DevE1000Phy.cpp
|
---|
1309 | endif
|
---|
1310 |
|
---|
1311 | ifdef VBOX_WITH_VIRTIO
|
---|
1312 | VBoxDDR0_DEFS += VBOX_WITH_VIRTIO
|
---|
1313 | VBoxDDR0_SOURCES += \
|
---|
1314 | VirtIO/VirtioCore.cpp \
|
---|
1315 | Network/DevVirtioNet_1_0.cpp
|
---|
1316 | endif
|
---|
1317 |
|
---|
1318 | if 0 #def VBOX_WITH_NETSHAPER - no ring-0 driver support at the moment.
|
---|
1319 | VBoxDDR0_DEFS += VBOX_WITH_NETSHAPER
|
---|
1320 | VBoxDDR0_SOURCES += \
|
---|
1321 | Network/DrvNetShaper.cpp
|
---|
1322 | endif
|
---|
1323 |
|
---|
1324 | ifdef VBOX_WITH_VMSVGA
|
---|
1325 | VBoxDDR0_DEFS += VBOX_WITH_VMSVGA
|
---|
1326 | VBoxDDR0_SOURCES += \
|
---|
1327 | Graphics/DevVGA-SVGA.cpp
|
---|
1328 | endif
|
---|
1329 | ifdef VBOX_WITH_VMSVGA3D
|
---|
1330 | VBoxDDR0_DEFS += VBOX_WITH_VMSVGA3D
|
---|
1331 | endif
|
---|
1332 |
|
---|
1333 | ifdef VBOX_WITH_VUSB
|
---|
1334 | VBoxDDR0_DEFS += VBOX_WITH_VUSB
|
---|
1335 | VBoxDDR0_SOURCES += \
|
---|
1336 | USB/DevOHCI.cpp
|
---|
1337 | endif
|
---|
1338 | ifdef VBOX_WITH_USB
|
---|
1339 | VBoxDDR0_DEFS += VBOX_WITH_USB
|
---|
1340 | if defined(VBOX_WITH_EHCI_IMPL)
|
---|
1341 | VBoxDDR0_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
1342 | VBoxDDR0_SOURCES += \
|
---|
1343 | USB/DevEHCI.cpp
|
---|
1344 | endif
|
---|
1345 | if defined(VBOX_WITH_XHCI_IMPL)
|
---|
1346 | VBoxDDR0_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
1347 | VBoxDDR0_SOURCES += \
|
---|
1348 | USB/DevXHCI.cpp
|
---|
1349 | endif
|
---|
1350 | endif
|
---|
1351 |
|
---|
1352 | ifdef VBOX_WITH_EFI
|
---|
1353 | VBoxDDR0_DEFS += VBOX_WITH_EFI
|
---|
1354 | VBoxDDR0_SOURCES += EFI/DevEFI.cpp
|
---|
1355 | endif
|
---|
1356 |
|
---|
1357 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1358 | VBoxDDR0_SOURCES += \
|
---|
1359 | Bus/DevPciRaw.cpp
|
---|
1360 | endif
|
---|
1361 |
|
---|
1362 | ifdef VBOX_WITH_AHCI
|
---|
1363 | VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
|
---|
1364 | VBoxDDR0_SOURCES += \
|
---|
1365 | Storage/DevAHCI.cpp
|
---|
1366 | endif
|
---|
1367 |
|
---|
1368 | ifdef VBOX_WITH_BUSLOGIC
|
---|
1369 | VBoxDDR0_DEFS += VBOX_WITH_BUSLOGIC
|
---|
1370 | VBoxDDR0_SOURCES += \
|
---|
1371 | Storage/DevBusLogic.cpp
|
---|
1372 | endif
|
---|
1373 |
|
---|
1374 | ifdef VBOX_WITH_LSILOGIC
|
---|
1375 | VBoxDDR0_DEFS += VBOX_WITH_LSILOGIC
|
---|
1376 | VBoxDDR0_SOURCES += \
|
---|
1377 | Storage/DevLsiLogicSCSI.cpp
|
---|
1378 | endif
|
---|
1379 |
|
---|
1380 | if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1381 | VBoxDDR0_DEFS += VBOX_WITH_NVME_IMPL
|
---|
1382 | VBoxDDR0_SOURCES += \
|
---|
1383 | Storage/DevNVMe.cpp
|
---|
1384 | endif
|
---|
1385 |
|
---|
1386 | if defined (VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_SCSI)
|
---|
1387 | VBoxDDR0_DEFS += VBOX_WITH_VIRTIO_SCSI
|
---|
1388 | VBoxDDR0_SOURCES += \
|
---|
1389 | Storage/DevVirtioSCSI.cpp
|
---|
1390 | endif
|
---|
1391 |
|
---|
1392 | if defined(VBOX_WITH_TPM)
|
---|
1393 | VBoxDDR0_DEFS += VBOX_WITH_TPM
|
---|
1394 | VBoxDDR0_SOURCES += \
|
---|
1395 | Security/DevTpm.cpp
|
---|
1396 | endif
|
---|
1397 |
|
---|
1398 | ifdef VBOX_WITH_HGSMI
|
---|
1399 | VBoxDDR0_DEFS += VBOX_WITH_HGSMI
|
---|
1400 | endif
|
---|
1401 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
1402 | VBoxDDR0_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
1403 | endif
|
---|
1404 |
|
---|
1405 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
1406 | VBoxDDR0_LIBS = \
|
---|
1407 | $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
|
---|
1408 | endif
|
---|
1409 | VBoxDDR0_LIBS += \
|
---|
1410 | $(VBOX_LIB_SUPR0)
|
---|
1411 |
|
---|
1412 | $(call VBOX_SET_VER_INFO_R0,VBoxDDR0,VirtualBox VMM Devices and Drivers$(COMMA) ring-0) # (last!)
|
---|
1413 |
|
---|
1414 | ifdef VBOX_WITH_KMOD_WRAPPED_R0_MODS
|
---|
1415 | # Wrapper kmod for VBoxDDR0.r0
|
---|
1416 | INSTALLS.linux += vbox_vboxddr0-src
|
---|
1417 | vbox_vboxddr0-src_INST = bin/src/vbox_vboxddr0/
|
---|
1418 | vbox_vboxddr0-src_SYMLINKS = \
|
---|
1419 | SUPWrapperMod-linux.c=>../common/SUPWrapperMod-linux.c \
|
---|
1420 | Makefile-wrapper.gmk=>../common/Makefile-wrapper.gmk
|
---|
1421 | vbox_vboxddr0-src_SOURCES = \
|
---|
1422 | $(PATH_ROOT)/src/VBox/HostDrivers/Support/linux/Makefile-vbox_vboxddr0.gmk=>Makefile \
|
---|
1423 | $(VBoxDDR0_0_OUTDIR)/VBoxDDR0.r0=>VBoxDDR0.r0 \
|
---|
1424 | $(VBoxDDR0_0_OUTDIR)/VBoxDDR0.debug=>VBoxDDR0.debug
|
---|
1425 | endif
|
---|
1426 |
|
---|
1427 | #
|
---|
1428 | # Ring-0 Services (library, linked into VMMR0.r0)
|
---|
1429 | #
|
---|
1430 | ServicesR0_TEMPLATE = VBoxR0
|
---|
1431 | ServicesR0_DEFS = VBOX_IN_VMM IN_INTNET_R0 IN_RT_R0 $(VMM_COMMON_DEFS) \
|
---|
1432 | $(if $(VBOX_WITH_PCI_PASSTHROUGH),IN_PCIRAW_R0,) \
|
---|
1433 | $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE,)
|
---|
1434 | ServicesR0_SOURCES = \
|
---|
1435 | Network/SrvIntNetR0.cpp \
|
---|
1436 | # $(if $(VBOX_WITH_PCI_PASSTHROUGH),Bus/SrvPciRawR0.cpp,)
|
---|
1437 | Network/SrvIntNetR0.cpp_CXXFLAGS := $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
|
---|
1438 |
|
---|
1439 |
|
---|
1440 | #
|
---|
1441 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
1442 | #
|
---|
1443 | ifdef VBOX_WITH_TESTCASES
|
---|
1444 | PROGRAMS += tstIntNetR0
|
---|
1445 | tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
|
---|
1446 | tstIntNetR0_DEFS = IN_INTNET_R0
|
---|
1447 | tstIntNetR0_SOURCES = \
|
---|
1448 | Network/testcase/tstIntNetR0.cpp
|
---|
1449 | ifneq ($(KBUILD_TARGET),win)
|
---|
1450 | Network/testcase/tstIntNetR0.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
|
---|
1451 | endif
|
---|
1452 | endif
|
---|
1453 |
|
---|
1454 |
|
---|
1455 | #
|
---|
1456 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
1457 | #
|
---|
1458 | ifdef VBOX_WITH_TESTCASES
|
---|
1459 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
1460 | PROGRAMS += tstIntNetHardened-1
|
---|
1461 | tstIntNetHardened-1_TEMPLATE = VBoxR3HardenedTstExe
|
---|
1462 | tstIntNetHardened-1_NAME = tstIntNet-1
|
---|
1463 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
1464 | tstIntNetHardened-1_DEFS = PROGRAM_NAME_STR="tstIntNet-1"
|
---|
1465 | else
|
---|
1466 | tstIntNetHardened-1_DEFS = PROGRAM_NAME_STR=\"tstIntNet-1\"
|
---|
1467 | endif
|
---|
1468 | tstIntNetHardened-1_SOURCES = ../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
1469 |
|
---|
1470 | DLLS += tstIntNet-1
|
---|
1471 | tstIntNet-1_TEMPLATE = VBoxR3HardenedTstDll
|
---|
1472 | else
|
---|
1473 | PROGRAMS += tstIntNet-1
|
---|
1474 | tstIntNet-1_TEMPLATE = VBOXR3TSTEXE
|
---|
1475 | endif
|
---|
1476 | tstIntNet-1_SOURCES = \
|
---|
1477 | Network/testcase/tstIntNet-1.cpp \
|
---|
1478 | Network/Pcap.cpp
|
---|
1479 | endif
|
---|
1480 |
|
---|
1481 |
|
---|
1482 | #
|
---|
1483 | # EEPROM device unit test requires cppunit
|
---|
1484 | #
|
---|
1485 | ifdef VBOX_WITH_CPPUNIT_TESTCASES
|
---|
1486 | ifdef VBOX_WITH_E1000
|
---|
1487 | PROGRAMS += tstDevEEPROM
|
---|
1488 | tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE
|
---|
1489 | tstDevEEPROM_SOURCES = \
|
---|
1490 | Network/testcase/tstDevEEPROM.cpp
|
---|
1491 | tstDevEEPROM_LIBS = \
|
---|
1492 | $(TARGET_VBoxDD)
|
---|
1493 | PROGRAMS += tstDevPhy
|
---|
1494 | tstDevPhy_TEMPLATE = VBOXCPPUNITEXE
|
---|
1495 | tstDevPhy_SOURCES = \
|
---|
1496 | Network/testcase/tstDevPhy.cpp \
|
---|
1497 | Network/DevE1000Phy.cpp
|
---|
1498 | tstDevPhy_DEFS = PHY_UNIT_TEST
|
---|
1499 | endif
|
---|
1500 | endif
|
---|
1501 |
|
---|
1502 | #
|
---|
1503 | # Apple SMC Utility.
|
---|
1504 | #
|
---|
1505 | ifdef VBOX_WITH_TESTCASES
|
---|
1506 | PROGRAMS.darwin += VBoxSmcUtil-darwin
|
---|
1507 | VBoxSmcUtil-darwin_TEMPLATE = VBOXR3TSTEXE
|
---|
1508 | VBoxSmcUtil-darwin_SOURCES = EFI/VBoxSmcUtil-darwin.cpp
|
---|
1509 | VBoxSmcUtil-darwin_LDFLAGS = -framework IOKit
|
---|
1510 | endif
|
---|
1511 |
|
---|
1512 | #
|
---|
1513 | # PDM device testcase framework.
|
---|
1514 | #
|
---|
1515 | ifdef VBOX_WITH_TESTCASES_TSTDEV
|
---|
1516 | PROGRAMS += tstDevice
|
---|
1517 | tstDevice_TEMPLATE = VBOXR3TSTEXE
|
---|
1518 | tstDevice_DEFS += IN_SUP_R3
|
---|
1519 | tstDevice_SOURCES = \
|
---|
1520 | testcase/tstDevice.cpp \
|
---|
1521 | testcase/tstDeviceR0.cpp \
|
---|
1522 | testcase/tstDeviceCfg.cpp \
|
---|
1523 | testcase/tstDevicePdmDevHlp.cpp \
|
---|
1524 | testcase/tstDevicePdmDevHlpR0.cpp \
|
---|
1525 | testcase/tstDevicePdmThread.cpp \
|
---|
1526 | testcase/tstDeviceSsmFuzz.cpp \
|
---|
1527 | testcase/tstDeviceSsmLoadDbg.cpp \
|
---|
1528 | testcase/tstDeviceIoFuzz.cpp
|
---|
1529 | endif
|
---|
1530 |
|
---|
1531 | endif # !VBOX_ONLY_EXTPACKS && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1532 |
|
---|
1533 |
|
---|
1534 | if defined(VBOX_WITH_EXTPACK) && defined(VBOX_WITH_EXTPACK_PUEL) && defined(VBOX_WITH_EXTPACK_PUEL_BUILD) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1535 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL)
|
---|
1536 | DLLS += VBoxPciRawR3
|
---|
1537 | VBoxPciRawR3_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1538 | VBoxPciRawR3_SOURCES = Bus/DevPciRaw.cpp
|
---|
1539 | $(call VBOX_SET_VER_INFO_DLL,VBoxPciRawR3,PUEL Extension Pack - PCI Passthrough Device)
|
---|
1540 |
|
---|
1541 | DLLS += VBoxPciRawDrv
|
---|
1542 | VBoxPciRawDrv_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1543 | VBoxPciRawDrv_SOURCES = Bus/DrvPciRaw.cpp
|
---|
1544 | $(call VBOX_SET_VER_INFO_DLL,VBoxPciRawDrv,PUEL Extension Pack - PCI Passthrough Driver)
|
---|
1545 |
|
---|
1546 | $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += VBoxPciRawR0
|
---|
1547 | VBoxPciRawR0_TEMPLATE = VBoxR0ExtPackPuel
|
---|
1548 | VBoxPciRawR0_SOURCES = Bus/DevPciRaw.cpp
|
---|
1549 | $(call VBOX_SET_VER_INFO_R0,VBoxPciRawR0,PUEL Extension Pack - PCI Passthrough Driver$(COMMA) ring-0)
|
---|
1550 |
|
---|
1551 | Bus/DevPciRaw.cpp_INCS = Bus
|
---|
1552 | endif
|
---|
1553 |
|
---|
1554 | #
|
---|
1555 | # The NVMe Extension Pack Modules.
|
---|
1556 | #
|
---|
1557 | if defined(VBOX_WITH_NVME_IMPL)
|
---|
1558 | DLLS += VBoxNvmeR3
|
---|
1559 | VBoxNvmeR3_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1560 | VBoxNvmeR3_SOURCES = \
|
---|
1561 | Storage/DevNVMe.cpp
|
---|
1562 | $(call VBOX_SET_VER_INFO_DLL,VBoxNvmeR3,PUEL Extension Pack - NVMe Device)
|
---|
1563 |
|
---|
1564 | ifdef VBOX_WITH_R0_MODULES
|
---|
1565 | ifdef VBOX_WITH_VBOXR0_AS_DLL
|
---|
1566 | DLLS += VBoxNvmeR0
|
---|
1567 | else
|
---|
1568 | SYSMODS += VBoxNvmeR0
|
---|
1569 | endif
|
---|
1570 | VBoxNvmeR0_TEMPLATE = VBoxR0ExtPackPuel
|
---|
1571 | VBoxNvmeR0_SOURCES = \
|
---|
1572 | Storage/DevNVMe.cpp
|
---|
1573 | $(call VBOX_SET_VER_INFO_R0,VBoxNvmeR0,PUEL Extension Pack - NVMe Device$(COMMA) ring-0)
|
---|
1574 | ifdef VBOX_WITH_KMOD_WRAPPED_R0_MODS # Wrapper kmod for VBoxEhciR0.r0
|
---|
1575 | INSTALLS.linux += vbox_vboxnvmer0-src
|
---|
1576 | vbox_vboxnvmer0-src_INST = bin/src/vbox_vboxnvmer0/
|
---|
1577 | vbox_vboxnvmer0-src_SYMLINKS = \
|
---|
1578 | SUPWrapperMod-linux.c=>../common/SUPWrapperMod-linux.c \
|
---|
1579 | Makefile-wrapper.gmk=>../common/Makefile-wrapper.gmk
|
---|
1580 | vbox_vboxnvmer0-src_SOURCES = \
|
---|
1581 | $(PATH_ROOT)/src/VBox/HostDrivers/Support/linux/Makefile-vbox_vboxnvmer0.gmk=>Makefile \
|
---|
1582 | $(VBoxNvmeR0_0_OUTDIR)/VBoxNvmeR0.r0=>VBoxNvmeR0.r0 \
|
---|
1583 | $(VBoxNvmeR0_0_OUTDIR)/VBoxNvmeR0.debug=>VBoxNvmeR0.debug
|
---|
1584 | endif
|
---|
1585 | endif
|
---|
1586 |
|
---|
1587 | ifdef VBOX_WITH_RAW_MODE
|
---|
1588 | SYSMODS += VBoxNvmeRC
|
---|
1589 | VBoxNvmeRC_TEMPLATE = VBoxRcExtPackPuel
|
---|
1590 | VBoxNvmeRC_SOURCES = \
|
---|
1591 | Storage/DevNVMe.cpp
|
---|
1592 | $(call VBOX_SET_VER_INFO_RC,VBoxNvmeRC,PUEL Extension Pack - NVMe Device$(COMMA) raw-mode)
|
---|
1593 | endif
|
---|
1594 |
|
---|
1595 | # Hacky but MSI support *must* be enabled
|
---|
1596 | ifdef VBOX_WITH_MSI_DEVICES
|
---|
1597 | VBoxNvmeR3_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1598 | VBoxNvmeR0_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1599 | VBoxNvmeRC_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1600 | endif
|
---|
1601 |
|
---|
1602 | endif
|
---|
1603 |
|
---|
1604 |
|
---|
1605 | #
|
---|
1606 | # The Intel PXE ROM.
|
---|
1607 | #
|
---|
1608 | INSTALLS += VBoxExtPackPuelInsRoms
|
---|
1609 | VBoxExtPackPuelInsRoms_TEMPLATE = VBoxInsExtPackPuel
|
---|
1610 | ifdef PXE_EXPERIMENTAL_BUILD_SETUP
|
---|
1611 | VBoxExtPackPuelInsRoms_SOURCES = $(PATH_OUT)/obj/NetBiosBin/NetBiosBin.rom=>PXE-Intel.rom
|
---|
1612 | else
|
---|
1613 | VBoxExtPackPuelInsRoms_SOURCES = PC/PXE/PXE-Intel.rom=>PXE-Intel.rom
|
---|
1614 | endif
|
---|
1615 | endif # VBOX_WITH_EXTPACK_PUEL && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1616 |
|
---|
1617 |
|
---|
1618 | if defined(VBOX_WITH_VMSVGA3D) && !defined(VBOX_ONLY_EXTPACKS) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1619 | #
|
---|
1620 | # Template used for VBoxSVGA3D. (Strips away compiler options.)
|
---|
1621 | #
|
---|
1622 | TEMPLATE_VBoxSVGA3D := VBoxSVGA3D
|
---|
1623 | TEMPLATE_VBoxSVGA3D_EXTENDS := VBOXR3
|
---|
1624 | TEMPLATE_VBoxSVGA3D_CFLAGS = $(filter-out -pedantic -Wstrict-prototypes,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CFLAGS))
|
---|
1625 | if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140"
|
---|
1626 | # -wd4777: glsl_shader.c(1542): warning C4777: 'sprintf' : format string '%u' requires an argument of type 'unsigned int', but variadic argument 2 has type 'DWORD'
|
---|
1627 | TEMPLATE_VBoxSVGA3D_CFLAGS.win = $(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CFLAGS.win) \
|
---|
1628 | -wd4777
|
---|
1629 | endif
|
---|
1630 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
1631 | TEMPLATE_VBoxSVGA3D_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CXXFLAGS)) $(VBOX_GCC_Wno-deprecated-declarations)
|
---|
1632 | TEMPLATE_VBoxSVGA3D_OBJCFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCFLAGS)) $(VBOX_GCC_Wno-deprecated-declarations)
|
---|
1633 | TEMPLATE_VBoxSVGA3D_OBJCXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCXXFLAGS)) $(VBOX_GCC_Wno-deprecated-declarations)
|
---|
1634 | else
|
---|
1635 | TEMPLATE_VBoxSVGA3D_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CXXFLAGS))
|
---|
1636 | TEMPLATE_VBoxSVGA3D_OBJCFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCFLAGS))
|
---|
1637 | TEMPLATE_VBoxSVGA3D_OBJCXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCXXFLAGS))
|
---|
1638 | endif
|
---|
1639 | TEMPLATE_VBoxSVGA3D_LDFLAGS.darwin = $(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_LDFLAGS.darwin) \
|
---|
1640 | -framework AppKit -framework OpenGL -framework IOKit
|
---|
1641 |
|
---|
1642 |
|
---|
1643 | #
|
---|
1644 | # The shader library used by the SVGA3D implementation.
|
---|
1645 | #
|
---|
1646 | DLLS += VBoxSVGA3D
|
---|
1647 | VBoxSVGA3D_TEMPLATE = VBoxSVGA3D
|
---|
1648 | VBoxSVGA3D_SDKS = ReorderCompilerIncs
|
---|
1649 | VBoxSVGA3D_DEFS = \
|
---|
1650 | __WINESRC__ \
|
---|
1651 | _REENTRANT \
|
---|
1652 | WINE_NOWINSOCK \
|
---|
1653 | VBOX_WITH_VMSVGA \
|
---|
1654 | VBOX_WITH_VMSVGA3D \
|
---|
1655 | _USE_MATH_DEFINES \
|
---|
1656 | VBOX_USING_WINDDK_W7_OR_LATER \
|
---|
1657 | VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT \
|
---|
1658 | IN_vmsvgashader_STATIC \
|
---|
1659 | IN_VMSVGA3D \
|
---|
1660 | VBOX_WINE_WITH_IPRT
|
---|
1661 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
1662 | VBoxSVGA3D_DEFS += \
|
---|
1663 | WINE_UNICODE_API= \
|
---|
1664 | DLLDIR="" \
|
---|
1665 | BINDIR="" \
|
---|
1666 | LIB_TO_BINDIR="" \
|
---|
1667 | LIB_TO_DLLDIR="" \
|
---|
1668 | BIN_TO_DLLDIR="" \
|
---|
1669 | LIB_TO_DATADIR="" \
|
---|
1670 | BIN_TO_DATADIR=""
|
---|
1671 | else
|
---|
1672 | VBoxSVGA3D_DEFS += \
|
---|
1673 | WINE_UNICODE_API="" \
|
---|
1674 | DLLDIR=\"\" \
|
---|
1675 | BINDIR=\"\" \
|
---|
1676 | LIB_TO_BINDIR=\"\" \
|
---|
1677 | LIB_TO_DLLDIR=\"\" \
|
---|
1678 | BIN_TO_DLLDIR=\"\" \
|
---|
1679 | LIB_TO_DATADIR=\"\" \
|
---|
1680 | BIN_TO_DATADIR=\"\"
|
---|
1681 | endif
|
---|
1682 | if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
|
---|
1683 | VBoxSVGA3D_DEFS += WINE_NO_DEBUG_MSGS
|
---|
1684 | endif
|
---|
1685 | VBoxSVGA3D_DEFS.x86 += __i386__
|
---|
1686 | VBoxSVGA3D_DEFS.amd64 += __x86_64__
|
---|
1687 | VBoxSVGA3D_DEFS.win += \
|
---|
1688 | USE_WIN32_OPENGL \
|
---|
1689 | VBOX_WINE_WITHOUT_LIBWINE
|
---|
1690 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DUAL_OPENGL_PROFILE
|
---|
1691 | if 0 # Use the OpenGL 3.2 Core profile (VBoxSVGA3D_DEFS.darwin).
|
---|
1692 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=3.2 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=2.1
|
---|
1693 | else
|
---|
1694 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=2.1 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=3.2
|
---|
1695 | endif
|
---|
1696 |
|
---|
1697 | # WINE relies on a gcc 4.4 feature but we have 4.2 on Darwin
|
---|
1698 | VBoxSVGA3D_DEFS.darwin += \
|
---|
1699 | __builtin_ms_va_list=va_list \
|
---|
1700 | __stdcall= \
|
---|
1701 | ms_abi=
|
---|
1702 | VBoxSVGA3D_INCS = $(VBOX_GRAPHICS_INCS)
|
---|
1703 | VBoxSVGA3D_INCS.win := \
|
---|
1704 | Graphics/shaderlib/libWineStub/include
|
---|
1705 | VBoxSVGA3D_INCS.linux := \
|
---|
1706 | Graphics/shaderlib/wine/include
|
---|
1707 | VBoxSVGA3D_INCS.darwin := \
|
---|
1708 | Graphics/ \
|
---|
1709 | Graphics/shaderlib/wine/include
|
---|
1710 | VBoxSVGA3D_SOURCES := \
|
---|
1711 | Graphics/shaderlib/glsl_shader.c \
|
---|
1712 | Graphics/shaderlib/shader.c \
|
---|
1713 | Graphics/shaderlib/shader_sm1.c \
|
---|
1714 | Graphics/shaderlib/shader_sm4.c \
|
---|
1715 | Graphics/shaderlib/shaderapi.c \
|
---|
1716 | Graphics/shaderlib/utils.c \
|
---|
1717 | Graphics/shaderlib/stateblock.c \
|
---|
1718 | Graphics/shaderlib/directx.c \
|
---|
1719 | Graphics/shaderlib/libWineStub/debug.c
|
---|
1720 | VBoxSVGA3D_LIBS = $(LIB_RUNTIME)
|
---|
1721 | VBoxSVGA3D_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
|
---|
1722 | if1of ($(KBUILD_TARGET), solaris linux freebsd)
|
---|
1723 | VBoxSVGA3D_LIBS += GL
|
---|
1724 | endif
|
---|
1725 | VBoxSVGA3D_LDFLAGS.darwin += \
|
---|
1726 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3D.dylib
|
---|
1727 | $(call VBOX_SET_VER_INFO_DLL,VBoxSVGA3D,VirtualBox VMSVGA 3D)
|
---|
1728 | # -wd4100: unreferenced format parameter
|
---|
1729 | # -wd4204: nonstandard extension used : non-constant initializer
|
---|
1730 | # -wd4245: '=' : conversion from 'int' to 'DWORD', signed/unsigned mismatch
|
---|
1731 | # -wd4305: 'function' : truncation from 'double' to 'GLclampf'
|
---|
1732 | VBoxSVGA3D_CFLAGS.win = -wd4100 -wd4204 -wd4245 -wd4305
|
---|
1733 | ifneq ($(KBUILD_TARGET),win)
|
---|
1734 | VBoxSVGA3D_CFLAGS += -Wno-unused-parameter -Wno-unused-function
|
---|
1735 | endif
|
---|
1736 |
|
---|
1737 | #
|
---|
1738 | # The Objective C code needs to be separate since the shaderlib redefines most
|
---|
1739 | # GL functions as pointers, making it impossible to mix with code calling OpenGL
|
---|
1740 | # functions directly. This module must be compiled for 10.7 or later, thus it
|
---|
1741 | # needs to be separate from VBoxDD.dylib, or at least that's our belief...
|
---|
1742 | #
|
---|
1743 | DLLS.darwin += VBoxSVGA3DObjC
|
---|
1744 | VBoxSVGA3DObjC_TEMPLATE = VBoxSVGA3D
|
---|
1745 | VBoxSVGA3DObjC_DEFS = $(VBoxSVGA3D_DEFS) IN_VMSVGA3DCOCOA
|
---|
1746 | VBoxSVGA3DObjC_DEFS.x86 = __i386__
|
---|
1747 | VBoxSVGA3DObjC_DEFS.amd64 = __x86_64__
|
---|
1748 | VBoxSVGA3DObjC_DEFS.darwin = $(VBoxSVGA3D_DEFS.darwin)
|
---|
1749 | VBoxSVGA3DObjC_INCS = $(VBoxSVGA3D_INCS)
|
---|
1750 | VBoxSVGA3DObjC_INCS.darwin = $(VBoxSVGA3D_INCS.darwin)
|
---|
1751 | VBoxSVGA3DObjC_LIBS = $(LIB_RUNTIME)
|
---|
1752 | VBoxSVGA3DObjC_LDFLAGS.darwin = \
|
---|
1753 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3DObjC.dylib \
|
---|
1754 | -framework OpenGL
|
---|
1755 | VBoxSVGA3DObjC_SOURCES.darwin += \
|
---|
1756 | Graphics/DevVGA-SVGA3d-cocoa.m
|
---|
1757 |
|
---|
1758 |
|
---|
1759 | endif # defined(VBOX_WITH_VMSVGA3D) && !defined(VBOX_ONLY_EXTPACKS) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1760 |
|
---|
1761 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|