1 | # $Id: Makefile.kmk 54049 2015-01-30 16:00:40Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level sub-makefile for the devices, drivers and services.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2015 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 |
|
---|
18 | SUB_DEPTH = ../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | # Make sure our Config.kmk is included.
|
---|
22 | ifndef VBOX_DEVICES_CONFIG_KMK_INCLUDED
|
---|
23 | include $(PATH_SUB_CURRENT)/Config.kmk
|
---|
24 | endif
|
---|
25 |
|
---|
26 | # Include sub-makefiles.
|
---|
27 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
28 | ifdef VBOX_WITH_PDM_AUDIO_DRIVER
|
---|
29 | include $(PATH_SUB_CURRENT)/Audio/testcase/Makefile.kmk
|
---|
30 | endif
|
---|
31 | include $(PATH_SUB_CURRENT)/Input/testcase/Makefile.kmk
|
---|
32 | if defined(VBOX_WITH_INTEL_PXE) || defined(VBOX_ONLY_EXTPACKS)
|
---|
33 | include $(PATH_SUB_CURRENT)/PC/PXE/Makefile.kmk
|
---|
34 | else if defined(VBOX_WITH_PXE_ROM)
|
---|
35 | if !defined(VBOX_WITHOUT_IPXE)
|
---|
36 | include $(PATH_SUB_CURRENT)/PC/ipxe/Makefile.kmk
|
---|
37 | endif
|
---|
38 | endif
|
---|
39 | if !defined(VBOX_ONLY_EXTPACKS) # Goes on almost to the end of the file.
|
---|
40 | include $(PATH_SUB_CURRENT)/BiosCommonCode/Makefile.kmk
|
---|
41 | include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
|
---|
42 | include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
|
---|
43 |
|
---|
44 | #
|
---|
45 | # Main targets.
|
---|
46 | #
|
---|
47 | LIBRARIES += ServicesR0
|
---|
48 | DLLS += VBoxDDU VBoxDD VBoxDD2
|
---|
49 | SYSMODS += VBoxDDR0 VBoxDD2R0
|
---|
50 | ifdef VBOX_WITH_RAW_MODE
|
---|
51 | SYSMODS += VBoxDDGC VBoxDD2GC
|
---|
52 | endif
|
---|
53 |
|
---|
54 |
|
---|
55 | #
|
---|
56 | # VBoxDDU (shared object)
|
---|
57 | #
|
---|
58 | VBoxDDU_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
59 | VBoxDDU_NAME = $(basename $(notdir $(LIB_DDU)))
|
---|
60 | VBoxDDU_INST.darwin = $(INST_DLL) $(INST_TESTCASE)
|
---|
61 | VBoxDDU_DEFS = IN_VBOXDDU
|
---|
62 | ifdef VBOX_WITH_VUSB
|
---|
63 | VBoxDDU_DEFS += VBOX_WITH_VUSB
|
---|
64 | endif
|
---|
65 | ifdef VBOX_WITH_USB
|
---|
66 | VBoxDDU_DEFS += VBOX_WITH_USB IN_USBLIB
|
---|
67 | VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
68 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
69 | VBoxDDU_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
70 | endif
|
---|
71 | if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
72 | VBoxDDU_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
73 | endif
|
---|
74 | ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
|
---|
75 | VBoxDDU_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
|
---|
76 | endif
|
---|
77 | else
|
---|
78 | VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK)
|
---|
79 | endif
|
---|
80 | VBoxDDU_SOURCES = \
|
---|
81 | Storage/VSCSI/VSCSIDevice.cpp \
|
---|
82 | Storage/VSCSI/VSCSILun.cpp \
|
---|
83 | Storage/VSCSI/VSCSILunSbc.cpp \
|
---|
84 | Storage/VSCSI/VSCSILunMmc.cpp \
|
---|
85 | Storage/VSCSI/VSCSISense.cpp \
|
---|
86 | Storage/VSCSI/VSCSIIoReq.cpp \
|
---|
87 | Storage/VSCSI/VSCSIVpdPagePool.cpp \
|
---|
88 | build/VBoxDDUDeps.cpp
|
---|
89 | VBoxDDU_SOURCES.win = \
|
---|
90 | build/VBoxDDU.rc
|
---|
91 | ifdef VBOX_WITH_USB
|
---|
92 | VBoxDDU_INCS.os2 += \
|
---|
93 | $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
|
---|
94 | endif
|
---|
95 | VBoxDDU_LIBS = \
|
---|
96 | $(LIB_RUNTIME) \
|
---|
97 | $(PATH_STAGE_LIB)/StorageLib$(VBOX_SUFF_LIB)
|
---|
98 | ifdef VBOX_WITH_USB
|
---|
99 | VBoxDDU_LIBS += \
|
---|
100 | $(PATH_STAGE_LIB)/USBLib$(VBOX_SUFF_LIB)
|
---|
101 | VBoxDDU_LIBS.win += \
|
---|
102 | $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
|
---|
103 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib
|
---|
104 | endif
|
---|
105 | VBoxDDU_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDDU.dylib
|
---|
106 | ifdef VBOX_WITH_USB
|
---|
107 | ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
|
---|
108 | VBoxDDU_LDFLAGS.darwin += -framework IOKit
|
---|
109 | endif
|
---|
110 | endif
|
---|
111 |
|
---|
112 | VBoxDDU_LDFLAGS.linux = -Wl,--no-undefined
|
---|
113 |
|
---|
114 | #
|
---|
115 | # VBoxDD (shared object)
|
---|
116 | #
|
---|
117 | VBoxDD_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
118 | VBoxDD_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
|
---|
119 | Storage/DrvHostDVD.cpp_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK)
|
---|
120 | VBoxDD_INCS = \
|
---|
121 | build \
|
---|
122 | Network/slirp
|
---|
123 | VBoxDD_DEFS = \
|
---|
124 | VBOX_ACPI \
|
---|
125 | VBOX_HGCM_HOST_CODE \
|
---|
126 | $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
|
---|
127 | $(if $(VBOX_BIOS_DMI_FALLBACK),VBOX_BIOS_DMI_FALLBACK,) \
|
---|
128 | VBOX_WITH_DMI_CHASSIS \
|
---|
129 | VBOX_WITH_DMI_OEMSTRINGS
|
---|
130 | VBoxDD_DEFS.win = _WIN32_WINNT=0x0510
|
---|
131 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
132 | VBoxDD_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
133 | endif
|
---|
134 | VBoxDD_SOURCES = \
|
---|
135 | build/VBoxDD.cpp \
|
---|
136 | \
|
---|
137 | Input/DevPS2.cpp \
|
---|
138 | Input/PS2K.cpp \
|
---|
139 | Input/PS2M.cpp \
|
---|
140 | Input/UsbKbd.cpp \
|
---|
141 | Input/UsbMouse.cpp \
|
---|
142 | Bus/DevPCI.cpp \
|
---|
143 | Bus/DevPciIch9.cpp \
|
---|
144 | Bus/MsiCommon.cpp \
|
---|
145 | Bus/MsixCommon.cpp \
|
---|
146 | EFI/DevSmc.cpp \
|
---|
147 | Graphics/DevVGA.cpp \
|
---|
148 | Storage/DevATA.cpp \
|
---|
149 | PC/DevPit-i8254.cpp \
|
---|
150 | PC/DevPIC.cpp \
|
---|
151 | PC/DevACPI.cpp \
|
---|
152 | PC/ACPI/VBoxAcpi.cpp \
|
---|
153 | PC/DevRTC.cpp \
|
---|
154 | PC/DevPcBios.cpp \
|
---|
155 | PC/DevFwCommon.cpp \
|
---|
156 | PC/DevPcArch.cpp \
|
---|
157 | GIMDev/GIMDev.cpp \
|
---|
158 | VMMDev/VMMDev.cpp \
|
---|
159 | $(if $(VBOX_WITH_HGCM),VMMDev/VMMDevHGCM.cpp,) \
|
---|
160 | VMMDev/VMMDevTesting.cpp \
|
---|
161 | Network/DevPCNet.cpp \
|
---|
162 | Audio/DevIchAc97.cpp \
|
---|
163 | Audio/DevSB16.cpp \
|
---|
164 | Audio/DevIchHda.cpp \
|
---|
165 | Audio/DevIchHdaCodec.cpp \
|
---|
166 | PC/DevDMA.cpp \
|
---|
167 | PC/DevHPET.cpp \
|
---|
168 | Storage/DevFdc.cpp \
|
---|
169 | Serial/DevSerial.cpp \
|
---|
170 | Parallel/DevParallel.cpp \
|
---|
171 | \
|
---|
172 | Input/DrvKeyboardQueue.cpp \
|
---|
173 | Input/DrvMouseQueue.cpp \
|
---|
174 | Network/DrvIntNet.cpp \
|
---|
175 | Network/DrvDedicatedNic.cpp \
|
---|
176 | PC/DrvACPI.cpp \
|
---|
177 | PC/DrvAcpiCpu.cpp \
|
---|
178 | Serial/DrvChar.cpp \
|
---|
179 | Serial/DrvNamedPipe.cpp \
|
---|
180 | Serial/DrvRawFile.cpp \
|
---|
181 | Storage/DrvBlock.cpp \
|
---|
182 | Storage/DrvMediaISO.cpp \
|
---|
183 | Storage/DrvRawImage.cpp \
|
---|
184 | Storage/Debug.cpp \
|
---|
185 | Storage/DrvVD.cpp \
|
---|
186 | Storage/ATAPIPassthrough.cpp \
|
---|
187 | Network/DrvNetSniffer.cpp \
|
---|
188 | Network/Pcap.cpp
|
---|
189 | VBoxDD_SOURCES.win = \
|
---|
190 | build/VBoxDD.rc
|
---|
191 | ifn1of ($(KBUILD_TARGET), os2)
|
---|
192 | VBoxDD_SOURCES += Storage/DrvHostBase.cpp
|
---|
193 | endif
|
---|
194 | ifn1of ($(KBUILD_TARGET), os2)
|
---|
195 | VBoxDD_SOURCES += Storage/DrvHostDVD.cpp
|
---|
196 | endif
|
---|
197 | ifn1of ($(KBUILD_TARGET), darwin freebsd os2 solaris)
|
---|
198 | VBoxDD_SOURCES += Storage/DrvHostFloppy.cpp
|
---|
199 | endif
|
---|
200 |
|
---|
201 | VBoxDD_LIBS = # more later.
|
---|
202 | VBoxDD_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD.dylib \
|
---|
203 | -framework CoreAudio \
|
---|
204 | -framework AudioUnit \
|
---|
205 | -framework AudioToolbox \
|
---|
206 | -framework IOKit \
|
---|
207 | -framework Carbon \
|
---|
208 | -framework DiskArbitration \
|
---|
209 | -framework SystemConfiguration
|
---|
210 | VBoxDD_LDFLAGS.linux = -Wl,--no-undefined
|
---|
211 |
|
---|
212 | # --- Tracing bits. ---
|
---|
213 |
|
---|
214 | ifdef VBOX_WITH_DTRACE_R3
|
---|
215 | VBoxDD_DEFS += VBOX_WITH_DTRACE
|
---|
216 | VBoxDD_USES += dtrace
|
---|
217 | VBoxDD_SOURCES += build/VBoxDD.d
|
---|
218 | endif
|
---|
219 |
|
---|
220 | # --- Graphics bits. ---
|
---|
221 |
|
---|
222 | ifdef VBOX_WITH_CRHGSMI
|
---|
223 | VBoxDD_DEFS += VBOX_WITH_CRHGSMI
|
---|
224 | endif
|
---|
225 | ifdef VBOXWDDM_TEST_UHGSMI
|
---|
226 | VBoxDD_DEFS += VBOXWDDM_TEST_UHGSMI
|
---|
227 | endif
|
---|
228 | ifdef VBOXWDDM_WITH_VBVA
|
---|
229 | VBoxDD_DEFS += VBOXWDDM_WITH_VBVA
|
---|
230 | endif
|
---|
231 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
232 | VBoxDD_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
233 | endif
|
---|
234 |
|
---|
235 | ifdef VBOX_WITH_HGSMI
|
---|
236 | VBoxDD_DEFS += VBOX_WITH_HGSMI
|
---|
237 | VBoxDD_SOURCES += \
|
---|
238 | Graphics/DevVGA_VBVA.cpp \
|
---|
239 | Graphics/HGSMI/HGSMIHost.cpp
|
---|
240 | VBoxDD_LIBS += \
|
---|
241 | $(PATH_STAGE_LIB)/HGSMIHostR3Lib$(VBOX_SUFF_LIB)
|
---|
242 | endif
|
---|
243 |
|
---|
244 | ifdef VBOX_WITH_WDDM
|
---|
245 | VBoxDD_DEFS += VBOX_WITH_WDDM
|
---|
246 | VBoxDD_SOURCES += \
|
---|
247 | Graphics/HGSMI/SHGSMIHost.cpp
|
---|
248 | endif
|
---|
249 |
|
---|
250 | ifdef VBOX_WITH_VMSVGA
|
---|
251 | VBoxDD_DEFS += VBOX_WITH_VMSVGA
|
---|
252 | VBoxDD_SOURCES += Graphics/DevVGA-SVGA.cpp
|
---|
253 | endif
|
---|
254 | ifdef VBOX_WITH_VMSVGA3D
|
---|
255 | VBoxDD_DEFS += VBOX_WITH_VMSVGA3D
|
---|
256 | VBoxDD_SOURCES += Graphics/DevVGA-SVGA3d-shared.cpp
|
---|
257 | ifeq ($(KBUILD_TARGET),win) # (Disable this to work with OpenGL on Windows.)
|
---|
258 | VBoxDD_SOURCES += Graphics/DevVGA-SVGA3d-win.cpp
|
---|
259 | VBoxDD_LIBS.win += d3d9.lib $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
|
---|
260 | VBoxDD_LDFLAGS.win += /DELAYLOAD:d3d9.dll
|
---|
261 | else
|
---|
262 | VBoxDD_SOURCES += \
|
---|
263 | Graphics/DevVGA-SVGA3d-ogl.cpp \
|
---|
264 | $(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm
|
---|
265 | VBoxDD_SOURCES.darwin += \
|
---|
266 | $(VBoxDD_0_OUTDIR)/VBoxSVGA3DObjCLazyLoad.asm
|
---|
267 | VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm
|
---|
268 | $$(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm: $(PATH_SUB_CURRENT)/Graphics/VBoxSVGA3D.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
|
---|
269 | $(call MSG_TOOL,VBoxDef2LazyLoad,VBoxDD,$(filter %.def, $^),$@)
|
---|
270 | $(QUIET)$(RM) -f -- "$@"
|
---|
271 | $(VBOX_DEF_2_LAZY_LOAD) --explicit-load-function --library VBoxSVGA3D --output "$@" $(filter %.def, $^)
|
---|
272 | $$(VBoxDD_0_OUTDIR)/VBoxSVGA3DObjCLazyLoad.asm: $(PATH_SUB_CURRENT)/Graphics/VBoxSVGA3DObjC.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
|
---|
273 | $(call MSG_TOOL,VBoxDef2LazyLoad,VBoxDD,$(filter %.def, $^),$@)
|
---|
274 | $(QUIET)$(RM) -f -- "$@"
|
---|
275 | $(VBOX_DEF_2_LAZY_LOAD) --explicit-load-function --library VBoxSVGA3DObjC --output "$@" $(filter %.def, $^)
|
---|
276 |
|
---|
277 | VBoxDD_LIBS.linux += GL X11
|
---|
278 | VBoxDD_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
|
---|
279 | VBoxDD_LDFLAGS.darwin += -framework OpenGL
|
---|
280 | VBoxDD_DEFS.darwin += VBOX_VMSVGA3D_DUAL_OPENGL_PROFILE
|
---|
281 | if 0 # Use the OpenGL 3.2 Core profile (see also VBoxSVGA3D_DEFS.darwin and VBoxSVGA3DObjC_DEFS.darwin).
|
---|
282 | VBoxDD_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=3.2 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=2.1
|
---|
283 | else
|
---|
284 | VBoxDD_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=2.1 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=3.2
|
---|
285 | endif
|
---|
286 | endif
|
---|
287 | Graphics/DevVGA-SVGA3d-ogl.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
288 | endif
|
---|
289 |
|
---|
290 | ifdef VBOX_WITH_VDMA
|
---|
291 | VBoxDD_DEFS += VBOX_WITH_VDMA
|
---|
292 | VBoxDD_SOURCES += \
|
---|
293 | Graphics/DevVGA_VDMA.cpp
|
---|
294 | endif
|
---|
295 |
|
---|
296 | ifdef VBOX_VDMA_WITH_WATCHDOG
|
---|
297 | VBoxDD_DEFS += VBOX_VDMA_WITH_WATCHDOG
|
---|
298 | endif
|
---|
299 |
|
---|
300 | ifdef VBOX_WITH_PXE_ROM
|
---|
301 | VBoxDD_DEFS += VBOX_WITH_PXE_ROM
|
---|
302 | endif
|
---|
303 |
|
---|
304 | # --- USB bits. ---
|
---|
305 |
|
---|
306 | ifdef VBOX_WITH_USB
|
---|
307 | VBoxDD_DEFS += VBOX_WITH_USB
|
---|
308 | VBoxDD_SOURCES += \
|
---|
309 | USB/vrdp/USBProxyDevice-vrdp.cpp
|
---|
310 |
|
---|
311 | VBoxDD_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
|
---|
312 | ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
|
---|
313 | VBoxDD_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
|
---|
314 | endif
|
---|
315 | VBoxDD_SOURCES.darwin += \
|
---|
316 | USB/USBProxyDevice.cpp \
|
---|
317 | USB/darwin/USBProxyDevice-darwin.cpp
|
---|
318 |
|
---|
319 | VBoxDD_DEFS.linux += \
|
---|
320 | VUSB_HAVE_USBPROXY_DEVICE \
|
---|
321 | $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
|
---|
322 | $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
|
---|
323 | VBoxDD_SOURCES.linux += \
|
---|
324 | USB/USBProxyDevice.cpp \
|
---|
325 | USB/linux/USBProxyDevice-linux.cpp
|
---|
326 |
|
---|
327 | VBoxDD_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
|
---|
328 | VBoxDD_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
|
---|
329 | VBoxDD_SOURCES.os2 += \
|
---|
330 | USB/USBProxyDevice.cpp \
|
---|
331 | USB/os2/USBProxyDevice-os2.cpp
|
---|
332 |
|
---|
333 | VBoxDD_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
|
---|
334 | VBoxDD_SOURCES.win += \
|
---|
335 | USB/USBProxyDevice.cpp \
|
---|
336 | USB/win/USBProxyDevice-win.cpp
|
---|
337 |
|
---|
338 | VBoxDD_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
|
---|
339 | VBoxDD_SOURCES.solaris+= \
|
---|
340 | USB/USBProxyDevice.cpp \
|
---|
341 | USB/solaris/USBProxyDevice-solaris.cpp
|
---|
342 |
|
---|
343 | VBoxDD_DEFS.freebsd += VUSB_HAVE_USBPROXY_DEVICE
|
---|
344 | VBoxDD_SOURCES.freebsd+= \
|
---|
345 | USB/USBProxyDevice.cpp \
|
---|
346 | USB/freebsd/USBProxyDevice-freebsd.cpp
|
---|
347 |
|
---|
348 | ifdef VBOX_WITH_SCSI
|
---|
349 | VBoxDD_SOURCES += \
|
---|
350 | Storage/UsbMsd.cpp
|
---|
351 | endif
|
---|
352 |
|
---|
353 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
354 | VBoxDD_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
355 | VBoxDD_SOURCES += \
|
---|
356 | USB/DevEHCI.cpp
|
---|
357 | endif
|
---|
358 |
|
---|
359 | if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
360 | VBoxDD_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
361 | VBoxDD_SOURCES += \
|
---|
362 | USB/DevXHCI.cpp
|
---|
363 | endif
|
---|
364 |
|
---|
365 | if defined(VBOX_WITH_USB_VIDEO_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
366 | if1of ($(KBUILD_TARGET), linux)
|
---|
367 | VBoxDD_DEFS += VBOX_WITH_USB_VIDEO_IMPL
|
---|
368 | VBoxDD_SOURCES += \
|
---|
369 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/UsbWebcam.cpp \
|
---|
370 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/UsbWebcamDesc.cpp \
|
---|
371 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/jpggen.cpp \
|
---|
372 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/DrvHostWebcam.cpp \
|
---|
373 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/JPEGEnc.cpp
|
---|
374 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/JPEGEnc.cpp_INCS = \
|
---|
375 | $(PATH_ROOT)/src/libs/jpeg-8a
|
---|
376 | VBoxDD_SOURCES.linux += \
|
---|
377 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/HostWebcam-v4l2.cpp
|
---|
378 | VBoxDD_LIBS += \
|
---|
379 | $(PATH_STAGE_LIB)/VBox-libjpeg$(VBOX_SUFF_LIB)
|
---|
380 | endif
|
---|
381 | endif
|
---|
382 |
|
---|
383 | endif # VBOX_WITH_USB
|
---|
384 |
|
---|
385 | ifdef VBOX_WITH_VUSB
|
---|
386 | VBoxDD_DEFS += VBOX_WITH_VUSB
|
---|
387 | VBoxDD_SOURCES += \
|
---|
388 | USB/DevOHCI.cpp \
|
---|
389 | USB/DrvVUSBRootHub.cpp \
|
---|
390 | USB/VUSBDevice.cpp \
|
---|
391 | USB/VUSBReadAhead.cpp \
|
---|
392 | USB/VUSBUrb.cpp \
|
---|
393 | USB/VUSBSniffer.cpp
|
---|
394 | endif
|
---|
395 |
|
---|
396 | # --- Networking bits. ---
|
---|
397 |
|
---|
398 | ifdef VBOX_WITH_INIP
|
---|
399 | VBoxDD_DEFS += VBOX_WITH_INIP
|
---|
400 | VBoxDD_SOURCES += \
|
---|
401 | Network/DevINIP.cpp
|
---|
402 | ifndef VBOX_WITH_NEW_LWIP
|
---|
403 | include $(PATH_SUB_CURRENT)/Network/lwip/Makefile.kmk
|
---|
404 | VBoxDD_INCS += $(LWIP_INCS)
|
---|
405 | VBoxDD_SOURCES += $(LWIP_SOURCES)
|
---|
406 | else
|
---|
407 | # XXX: do not depend on order
|
---|
408 | ifndef LWIP_SOURCES
|
---|
409 | include $(PATH_SUB_CURRENT)/Network/lwip-new/Makefile.kmk
|
---|
410 | endif
|
---|
411 | Network/DevINIP.cpp_DEFS += VBOX_WITH_NEW_LWIP
|
---|
412 | VBoxDD_LWIP_INCS += Network # for lwipopts.h
|
---|
413 | $(eval $(call def_vbox_lwip_private, \
|
---|
414 | VBoxDD, Network/lwip-new))
|
---|
415 | $(eval $(call def_vbox_lwip_flags, \
|
---|
416 | VBoxDD, Network/DevINIP.cpp, Network/lwip-new))
|
---|
417 | endif
|
---|
418 | endif # VBOX_WITH_INIP
|
---|
419 |
|
---|
420 | ifdef VBOX_WITH_E1000
|
---|
421 | VBoxDD_DEFS += VBOX_WITH_E1000
|
---|
422 | VBoxDD_SOURCES += \
|
---|
423 | Network/DevE1000.cpp \
|
---|
424 | Network/DevE1000Phy.cpp \
|
---|
425 | Network/DevEEPROM.cpp
|
---|
426 | endif
|
---|
427 |
|
---|
428 | ifdef VBOX_WITH_VIRTIO
|
---|
429 | VBoxDD_DEFS += VBOX_WITH_VIRTIO
|
---|
430 | VBoxDD_SOURCES += \
|
---|
431 | VirtIO/Virtio.cpp \
|
---|
432 | Network/DevVirtioNet.cpp
|
---|
433 | endif
|
---|
434 |
|
---|
435 | ifdef VBOX_WITH_UDPTUNNEL
|
---|
436 | VBoxDD_DEFS += VBOX_WITH_UDPTUNNEL
|
---|
437 | VBoxDD_SOURCES += \
|
---|
438 | Network/DrvUDPTunnel.cpp
|
---|
439 | endif
|
---|
440 |
|
---|
441 | ifdef VBOX_WITH_VDE
|
---|
442 | VBoxDD_DEFS += VBOX_WITH_VDE
|
---|
443 | VBoxDD_SOURCES += \
|
---|
444 | Network/DrvVDE.cpp \
|
---|
445 | Network/VDEPlug.cpp
|
---|
446 | endif
|
---|
447 |
|
---|
448 | ifdef VBOX_WITH_NETSHAPER
|
---|
449 | VBoxDD_DEFS += VBOX_WITH_NETSHAPER
|
---|
450 | VBoxDD_SOURCES += \
|
---|
451 | Network/DrvNetShaper.cpp
|
---|
452 | endif
|
---|
453 |
|
---|
454 | # --- Storage bits. ---
|
---|
455 |
|
---|
456 | ifdef VBOX_WITH_AHCI
|
---|
457 | VBoxDD_DEFS += VBOX_WITH_AHCI IN_AHCI_R3
|
---|
458 | VBoxDD_SOURCES += \
|
---|
459 | Storage/DevAHCI.cpp
|
---|
460 | endif
|
---|
461 |
|
---|
462 | ifdef VBOX_WITH_BUSLOGIC
|
---|
463 | VBoxDD_DEFS += VBOX_WITH_BUSLOGIC
|
---|
464 | VBoxDD_SOURCES += \
|
---|
465 | Storage/DevBusLogic.cpp \
|
---|
466 | Storage/VBoxSCSI.cpp
|
---|
467 | endif
|
---|
468 |
|
---|
469 | ifdef VBOX_WITH_LSILOGIC
|
---|
470 | VBoxDD_DEFS += VBOX_WITH_LSILOGIC
|
---|
471 | VBoxDD_SOURCES += \
|
---|
472 | Storage/DevLsiLogicSCSI.cpp
|
---|
473 | endif
|
---|
474 |
|
---|
475 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
476 | VBoxDD_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
477 | endif
|
---|
478 |
|
---|
479 | ifdef VBOX_WITH_SCSI
|
---|
480 | VBoxDD_DEFS += VBOX_WITH_SCSI
|
---|
481 | VBoxDD_SOURCES += \
|
---|
482 | Storage/DrvSCSI.cpp
|
---|
483 | VBoxDD_SOURCES.linux += \
|
---|
484 | Storage/DrvSCSIHost.cpp
|
---|
485 | endif
|
---|
486 |
|
---|
487 | ifdef VBOX_WITH_ISCSI
|
---|
488 | ifdef VBOX_WITH_NEW_LWIP
|
---|
489 | Storage/DrvVD.cpp_DEFS += VBOX_WITH_NEW_LWIP
|
---|
490 | $(eval $(call def_vbox_lwip_flags, \
|
---|
491 | VBoxDD, Storage/DrvVD.cpp, Network/lwip-new))
|
---|
492 | else
|
---|
493 | Storage/DrvVD.cpp_INCS = $(LWIP_INCS)
|
---|
494 | endif
|
---|
495 | endif
|
---|
496 |
|
---|
497 | ifdef VBOX_WITH_DRV_DISK_INTEGRITY
|
---|
498 | VBoxDD_DEFS += VBOX_WITH_DRV_DISK_INTEGRITY
|
---|
499 | VBoxDD_SOURCES += \
|
---|
500 | Storage/DrvDiskIntegrity.cpp
|
---|
501 | VBoxDD_LIBS += \
|
---|
502 | $(PATH_STAGE_LIB)/StorageDbgLib$(VBOX_SUFF_LIB)
|
---|
503 | endif
|
---|
504 |
|
---|
505 | ifdef VBOX_WITH_EFI
|
---|
506 | VBoxDD_DEFS += VBOX_WITH_EFI
|
---|
507 | VBoxDD_SOURCES += EFI/DevEFI.cpp
|
---|
508 | EFI/DevEFI.cpp_INCS += EFI/Firmware/BaseTools/Source/C/Include
|
---|
509 | EFI/DevEFI.cpp_INCS.x86 += EFI/Firmware/BaseTools/Source/C/Include/Ia32
|
---|
510 | EFI/DevEFI.cpp_INCS.amd64 += EFI/Firmware/BaseTools/Source/C/Include/X64
|
---|
511 | endif
|
---|
512 |
|
---|
513 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
514 | VBoxDD_DEFS += VBOX_WITH_PCI_PASSTHROUGH_IMPL
|
---|
515 | VBoxDD_SOURCES += \
|
---|
516 | Bus/DevPciRaw.cpp \
|
---|
517 | Bus/DrvPciRaw.cpp
|
---|
518 | endif
|
---|
519 |
|
---|
520 | ifdef VBOX_WITH_MSI_DEVICES
|
---|
521 | VBoxDD_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
522 | endif
|
---|
523 |
|
---|
524 | ifdef VBOX_WITH_DYNAMIC_DSDT
|
---|
525 | VBoxDD_DEFS += VBOX_WITH_DYNAMIC_DSDT
|
---|
526 | endif
|
---|
527 |
|
---|
528 |
|
---|
529 | # --- Input bits. ---
|
---|
530 |
|
---|
531 | ifdef VBOX_WITH_NEW_PS2M
|
---|
532 | VBoxDD_DEFS += VBOX_WITH_NEW_PS2M
|
---|
533 | endif
|
---|
534 |
|
---|
535 |
|
---|
536 | # --- Audio bits. ---
|
---|
537 |
|
---|
538 | ifdef VBOX_WITH_PDM_AUDIO_DRIVER
|
---|
539 | VBoxDD_DEFS += VBOX_WITH_PDM_AUDIO_DRIVER
|
---|
540 | VBoxDD_SOURCES += \
|
---|
541 | Audio/AudioMixBuffer.cpp \
|
---|
542 | Audio/AudioMixer.cpp \
|
---|
543 | Audio/DrvAudio.cpp \
|
---|
544 | Audio/DrvAudioCommon.cpp \
|
---|
545 | Audio/DrvHostNullAudio.cpp
|
---|
546 |
|
---|
547 | ## @todo Darwin CoreAudio driver missing!
|
---|
548 |
|
---|
549 | ifeq ($(KBUILD_TARGET),win)
|
---|
550 | VBoxDD_SOURCES += \
|
---|
551 | Audio/DrvHostDSound.cpp
|
---|
552 | VBoxDD_LIBS += \
|
---|
553 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dsound.lib
|
---|
554 | endif
|
---|
555 |
|
---|
556 | ifeq ($(KBUILD_TARGET),linux)
|
---|
557 | VBoxDD_SOURCES += \
|
---|
558 | Audio/DrvHostOSSAudio.cpp
|
---|
559 |
|
---|
560 | ifdef VBOX_WITH_PULSE
|
---|
561 | VBoxDD_DEFS += VBOX_WITH_PULSE
|
---|
562 | VBoxDD_SOURCES += \
|
---|
563 | Audio/DrvHostPulseAudio.cpp \
|
---|
564 | Audio/pulse_stubs.c
|
---|
565 | endif
|
---|
566 |
|
---|
567 | ifdef VBOX_WITH_ALSA
|
---|
568 | VBoxDD_DEFS += VBOX_WITH_ALSA
|
---|
569 | VBoxDD_SOURCES += \
|
---|
570 | Audio/DrvHostALSAAudio.cpp \
|
---|
571 | Audio/alsa_stubs.c
|
---|
572 | endif
|
---|
573 | endif
|
---|
574 |
|
---|
575 | ifeq ($(KBUILD_TARGET),freebsd)
|
---|
576 | VBoxDD_SOURCES += \
|
---|
577 | Audio/DrvHostOSSAudio.cpp
|
---|
578 | ifdef VBOX_WITH_PULSE
|
---|
579 | VBoxDD_DEFS += VBOX_WITH_PULSE
|
---|
580 | VBoxDD_SOURCES += \
|
---|
581 | Audio/DrvHostPulseAudio.cpp \
|
---|
582 | Audio/pulse_stubs.c
|
---|
583 | endif
|
---|
584 | endif
|
---|
585 |
|
---|
586 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
587 | ifdef VBOX_WITH_SOLARIS_OSS
|
---|
588 | VBoxDD_SOURCES += Audio/DrvHostOSSAudio.cpp
|
---|
589 | VBoxDD_DEFS += VBOX_WITH_SOLARIS_OSS
|
---|
590 | endif
|
---|
591 | endif
|
---|
592 |
|
---|
593 | else # !VBOX_WITH_PDM_AUDIO_DRIVER
|
---|
594 |
|
---|
595 | VBoxDD_SOURCES += \
|
---|
596 | Audio/audio.c \
|
---|
597 | Audio/audiosniffer.c \
|
---|
598 | Audio/noaudio.c \
|
---|
599 | Audio/filteraudio.c \
|
---|
600 | Audio/mixeng.c
|
---|
601 |
|
---|
602 | ifeq ($(KBUILD_TARGET),win)
|
---|
603 | VBoxDD_SOURCES += \
|
---|
604 | Audio/dsoundaudio.c
|
---|
605 | endif
|
---|
606 |
|
---|
607 | VBoxDD_SOURCES.darwin += \
|
---|
608 | Audio/coreaudio.c
|
---|
609 |
|
---|
610 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
611 | VBoxDD_SOURCES += \
|
---|
612 | Audio/solaudio.c
|
---|
613 | ifdef VBOX_WITH_SOLARIS_OSS
|
---|
614 | VBoxDD_DEFS += VBOX_WITH_SOLARIS_OSS
|
---|
615 | VBoxDD_SOURCES += \
|
---|
616 | Audio/ossaudio.c
|
---|
617 | endif
|
---|
618 | endif
|
---|
619 |
|
---|
620 | ifeq ($(KBUILD_TARGET),linux)
|
---|
621 | VBoxDD_SOURCES += \
|
---|
622 | Audio/ossaudio.c
|
---|
623 | ifdef VBOX_WITH_PULSE
|
---|
624 | VBoxDD_DEFS += VBOX_WITH_PULSE
|
---|
625 | VBoxDD_SOURCES += \
|
---|
626 | Audio/pulseaudio.c \
|
---|
627 | Audio/pulse_stubs.c
|
---|
628 | endif
|
---|
629 | ifdef VBOX_WITH_ALSA
|
---|
630 | VBoxDD_DEFS += VBOX_WITH_ALSA
|
---|
631 | VBoxDD_SOURCES += \
|
---|
632 | Audio/alsaaudio.c \
|
---|
633 | Audio/alsa_stubs.c
|
---|
634 | endif
|
---|
635 | endif
|
---|
636 |
|
---|
637 | ifeq ($(KBUILD_TARGET),freebsd)
|
---|
638 | VBoxDD_SOURCES += \
|
---|
639 | Audio/ossaudio.c
|
---|
640 | ifdef VBOX_WITH_PULSE
|
---|
641 | VBoxDD_DEFS += VBOX_WITH_PULSE
|
---|
642 | VBoxDD_SOURCES += \
|
---|
643 | Audio/pulseaudio.c \
|
---|
644 | Audio/pulse_stubs.c
|
---|
645 | endif
|
---|
646 | endif
|
---|
647 |
|
---|
648 | endif # !VBOX_WITH_PDM_AUDIO_DRIVER
|
---|
649 |
|
---|
650 | # --- WARNING! SLIRP MESS AHEAD! ;-) ---
|
---|
651 | VBOX_SLIRP_SOURCES = \
|
---|
652 | Network/DrvNAT.cpp \
|
---|
653 | Network/slirp/bootp.c \
|
---|
654 | Network/slirp/debug.c \
|
---|
655 | Network/slirp/ip_icmp.c \
|
---|
656 | Network/slirp/ip_input.c \
|
---|
657 | Network/slirp/ip_output.c \
|
---|
658 | Network/slirp/misc.c \
|
---|
659 | Network/slirp/sbuf.c \
|
---|
660 | Network/slirp/slirp.c \
|
---|
661 | Network/slirp/slirp_dns.c \
|
---|
662 | Network/slirp/socket.c \
|
---|
663 | Network/slirp/tcp_input.c \
|
---|
664 | Network/slirp/tcp_output.c \
|
---|
665 | Network/slirp/tcp_subr.c \
|
---|
666 | Network/slirp/tcp_timer.c \
|
---|
667 | Network/slirp/udp.c \
|
---|
668 | Network/slirp/dnsproxy/hash.c \
|
---|
669 | Network/slirp/tftp.c \
|
---|
670 | Network/slirp/dnsproxy/dnsproxy.c
|
---|
671 |
|
---|
672 | ifeq ($(KBUILD_TARGET), win)
|
---|
673 | VBOX_SLIRP_SOURCES += Network/slirp/ip_icmpwin.c
|
---|
674 | else ifneq ($(KBUILD_TARGET),darwin)
|
---|
675 | # helper for debugging unprivileged
|
---|
676 | # Network/slirp/ip_icmp.c_DEFS += VBOX_RAWSOCK_DEBUG_HELPER
|
---|
677 | # VBOX_SLIRP_SOURCES += ../NetworkServices/NAT/getrawsock.c
|
---|
678 | endif
|
---|
679 |
|
---|
680 | ifneq ($(KBUILD_TARGET), win)
|
---|
681 | VBOX_SLIRP_SOURCES += Network/slirp/resolv_conf_parser.c
|
---|
682 | endif
|
---|
683 |
|
---|
684 | ifdef VBOX_WITH_SLIRP_BSD_SBUF
|
---|
685 | VBOX_SLIRP_SOURCES += Network/slirp/bsd/kern/subr_sbuf.c
|
---|
686 | endif
|
---|
687 | VBOX_SLIRP_BSD_ARCH = $(subst x86,i386,$(KBUILD_TARGET_ARCH))
|
---|
688 | VBOX_SLIRP_BSD_SOURCES += \
|
---|
689 | Network/slirp/bsd/kern/kern_mbuf.c \
|
---|
690 | Network/slirp/bsd/kern/uipc_mbuf.c \
|
---|
691 | Network/slirp/bsd/kern/uipc_mbuf2.c \
|
---|
692 | Network/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/in_cksum.c
|
---|
693 | VBOX_SLIRP_ALIAS_SOURCES = \
|
---|
694 | Network/slirp/libalias/alias.c \
|
---|
695 | Network/slirp/libalias/alias_db.c \
|
---|
696 | Network/slirp/libalias/alias_mod.c \
|
---|
697 | Network/slirp/libalias/alias_proxy.c \
|
---|
698 | Network/slirp/libalias/alias_ftp.c \
|
---|
699 | Network/slirp/libalias/alias_dns.c \
|
---|
700 | Network/slirp/libalias/alias_nbt.c \
|
---|
701 | Network/slirp/libalias/alias_util.c
|
---|
702 |
|
---|
703 | # Enable VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER here for a while, then move to
|
---|
704 | # $(file)_DEFS or clean the code disabled with this definition.
|
---|
705 | VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER=1
|
---|
706 |
|
---|
707 | # dump memory related operations.
|
---|
708 | Network/slirp/misc.c_DEFS += $(if $(VBOX_NAT_MEM_DEBUG),VBOX_NAT_MEM_DEBUG,)
|
---|
709 |
|
---|
710 | VBoxDD_SOURCES += $(VBOX_SLIRP_SOURCES)
|
---|
711 | define def_vbox_slirp_cflags
|
---|
712 | $(file)_DEFS += \
|
---|
713 | $(if $(VBOX_WITH_SLIRP_BSD_SBUF),VBOX_WITH_SLIRP_BSD_SBUF,) \
|
---|
714 | $(if $(VBOX_WITH_SLIRP_MEMORY_CHECK),RTMEM_WRAP_TO_EF_APIS,) \
|
---|
715 | $(if $(VBOX_WITH_DEBUG_NAT_SOCKETS),VBOX_WITH_DEBUG_NAT_SOCKETS,) \
|
---|
716 | $(if $(VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER),VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER,) \
|
---|
717 | $(if $(VBOX_WITH_NAT_UDP_SOCKET_CLONE),VBOX_WITH_NAT_UDP_SOCKET_CLONE,) \
|
---|
718 | $(if $(VBOX_WITH_NAT_SEND2HOME),VBOX_WITH_NAT_SEND2HOME,) \
|
---|
719 | $(if $(VBOX_WITH_HIDDEN_TCPTEMPLATE),VBOX_WITH_HIDDEN_TCPTEMPLATE,) \
|
---|
720 | $(if $(VBOX_WITH_SLIRP_MT),VBOX_WITH_SLIRP_MT,)
|
---|
721 | $(file)_INCS += \
|
---|
722 | $(1)/slirp/bsd/sys \
|
---|
723 | $(1)/slirp/bsd/sys/sys \
|
---|
724 | $(1)/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/include \
|
---|
725 | $(1)/slirp/bsd/netinet \
|
---|
726 | $(1)/slirp \
|
---|
727 | $(1)/slirp/libalias
|
---|
728 | ifeq ($(KBUILD_TARGET),win)
|
---|
729 | $(file)_CFLAGS = -wd4018
|
---|
730 | else
|
---|
731 | $(file)_CFLAGS += -Wno-sign-compare -Wno-format -Wno-bad-function-cast
|
---|
732 | endif
|
---|
733 | endef
|
---|
734 |
|
---|
735 | $(foreach file,$(VBOX_SLIRP_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
736 |
|
---|
737 | VBoxDD_SOURCES += $(VBOX_SLIRP_ALIAS_SOURCES)
|
---|
738 | define def_vbox_slirp_alias_cflags
|
---|
739 | $(file)_DEFS += VBOX_SLIRP_ALIAS \
|
---|
740 | $(if $(VBOX_WITH_DEBUG_LIBALIAS),VBOX_WITH_DEBUG_LIBALIAS,)
|
---|
741 | $(file)_INCS += \
|
---|
742 | $(1)/slirp/libalias \
|
---|
743 | $(1)/slirp \
|
---|
744 | $(1)/slirp/dnsproxy
|
---|
745 | ifneq ($(KBUILD_TARGET),win)
|
---|
746 | $(file)_CFLAGS += -Wno-shadow
|
---|
747 | endif
|
---|
748 | endef
|
---|
749 | $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
750 | $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_alias_cflags, Network)))
|
---|
751 |
|
---|
752 | VBOX_SLIRP_BSD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES.${KBUILD_TARGET_ARCH})
|
---|
753 | VBoxDD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES)
|
---|
754 | define def_vbox_slirp_bsd_cflags
|
---|
755 | $(file)_DEFS += VBOX_SLIRP_BSD
|
---|
756 | $(file)_INCS += $(1)/slirp/dnsproxy
|
---|
757 | endef
|
---|
758 | $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
759 | $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_bsd_cflags, Network)))
|
---|
760 |
|
---|
761 |
|
---|
762 | # --- OS specific driver hacks. ---
|
---|
763 |
|
---|
764 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
765 | VBoxDD_SOURCES.darwin += Serial/DrvHostSerial.cpp
|
---|
766 | endif # darwin
|
---|
767 |
|
---|
768 | ifeq ($(KBUILD_TARGET),freebsd)
|
---|
769 | VBoxDD_SOURCES += Serial/DrvHostSerial.cpp
|
---|
770 | VBoxDD_SOURCES.freebsd += Network/DrvTAP.cpp
|
---|
771 | endif # freebsd
|
---|
772 |
|
---|
773 | VBoxDD_SOURCES.linux += \
|
---|
774 | Network/DrvTAP.cpp \
|
---|
775 | Parallel/DrvHostParallel.cpp \
|
---|
776 | Serial/DrvHostSerial.cpp
|
---|
777 |
|
---|
778 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
779 | VBoxDD_SOURCES.solaris += Serial/DrvHostSerial.cpp
|
---|
780 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
781 | VBoxDD_DEFS += VBOX_WITH_SUID_WRAPPER
|
---|
782 | endif
|
---|
783 | endif
|
---|
784 |
|
---|
785 | VBoxDD_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
|
---|
786 | VBoxDD_SOURCES.win += \
|
---|
787 | Serial/DrvHostSerial.cpp \
|
---|
788 | Parallel/DrvHostParallel.cpp
|
---|
789 |
|
---|
790 | if defined(VBOX_WITH_NETFLT)
|
---|
791 | VBoxDD_DEFS += VBOX_WITH_NETFLT
|
---|
792 | if defined(VBOX_NETFLT_ONDEMAND_BIND)
|
---|
793 | VBoxDD_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
|
---|
794 | endif
|
---|
795 | endif
|
---|
796 |
|
---|
797 |
|
---|
798 | # --- Final bits, mostly libraries for order dependant linkers. ---
|
---|
799 |
|
---|
800 | VBoxDD_LIBS += \
|
---|
801 | $(PATH_STAGE_LIB)/VgaDefBiosLogo$(VBOX_SUFF_LIB) \
|
---|
802 | $(LIB_VMM) \
|
---|
803 | $(LIB_RUNTIME)
|
---|
804 | ifeq ($(KBUILD_TARGET),win)
|
---|
805 | VBoxDD_LIBS += \
|
---|
806 | $(LIB_DDU) \
|
---|
807 | $(PATH_STAGE_LIB)/VBoxDD2.lib \
|
---|
808 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
|
---|
809 | else
|
---|
810 | VBoxDD_LIBS += \
|
---|
811 | $(VBoxDDU_1_STAGE_TARGET) \
|
---|
812 | $(VBoxDD2_1_STAGE_TARGET)
|
---|
813 | endif
|
---|
814 |
|
---|
815 | ifdef VBOX_WITH_NETFLT
|
---|
816 | VBoxDD_LIBS.win += $(PATH_STAGE_LIB)/WinNetConfig.lib
|
---|
817 | endif
|
---|
818 |
|
---|
819 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
820 | VBoxDD_LIBS += adm
|
---|
821 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
822 | VBoxDD_LIBS += secdb
|
---|
823 | endif
|
---|
824 | ifdef VBOX_WITH_USB
|
---|
825 | VBoxDD_LIBS += aio
|
---|
826 | endif
|
---|
827 | endif
|
---|
828 |
|
---|
829 | VBoxDD_LIBS.darwin += \
|
---|
830 | $(LIB_REM)
|
---|
831 |
|
---|
832 |
|
---|
833 | ifdef VBOX_WITH_DYNAMIC_DSDT
|
---|
834 | VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
835 | PC/ACPI/VBoxAcpi.cpp_DEPS = $(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
836 |
|
---|
837 | $$(VBoxDD_0_OUTDIR)/vboxdsl.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
|
---|
838 | $(call MSG_TOOL,bin2c,VBoxDD,$<,$@)
|
---|
839 | $(QUIET)$(VBOX_BIN2C) -export VboxDslSource $< $@
|
---|
840 |
|
---|
841 | vboxdsl.hex:: $$(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
842 |
|
---|
843 | else # !VBOX_WITH_DYNAMIC_DSDT
|
---|
844 | # VBoxAcpi.cpp needs vboxaml.hex which we generate from PC/vbox.dsl
|
---|
845 | VBoxDD_CLEAN += \
|
---|
846 | $(VBoxDD_0_OUTDIR)/vboxaml.hex \
|
---|
847 | $(VBoxDD_0_OUTDIR)/vboxaml.aml \
|
---|
848 | $(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex \
|
---|
849 | $(VBoxDD_0_OUTDIR)/vboxssdt-standard.aml \
|
---|
850 | $(VBoxDD_0_OUTDIR)/vboxssdt-standard.aml.tmp \
|
---|
851 | $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex \
|
---|
852 | $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml \
|
---|
853 | $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml.tmp \
|
---|
854 | $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml.pre
|
---|
855 | PC/ACPI/VBoxAcpi.cpp_DEPS = \
|
---|
856 | $(VBoxDD_0_OUTDIR)/vboxaml.hex \
|
---|
857 | $(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex \
|
---|
858 | $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex
|
---|
859 |
|
---|
860 | $$(VBoxDD_0_OUTDIR)/vboxaml.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
|
---|
861 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
862 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
863 |
|
---|
864 | vboxaml.hex:: $$(VBoxDD_0_OUTDIR)/vboxaml.hex
|
---|
865 |
|
---|
866 | $$(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex: $(PATH_SUB_CURRENT)/PC/vbox-standard.dsl | $$(dir $$@)
|
---|
867 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
868 | $(QUIET)$(RM) -f $@ $@.tmp
|
---|
869 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
870 | $(QUIET)$(MV) -f $@ $@.tmp
|
---|
871 | $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtStandard/g" \
|
---|
872 | --output $@ $@.tmp
|
---|
873 | $(QUIET)$(RM) -f $@.tmp
|
---|
874 |
|
---|
875 |
|
---|
876 | vboxssdt-standard.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex
|
---|
877 |
|
---|
878 | $$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex: $(PATH_SUB_CURRENT)/PC/vbox-cpuhotplug.dsl | $$(dir $$@)
|
---|
879 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
880 | $(QUIET)$(RM) -f $@ $@.tmp $@.pre
|
---|
881 | $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o $@.pre $<
|
---|
882 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $@.pre
|
---|
883 | $(QUIET)$(MV) -f $@ $@.tmp
|
---|
884 | $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtCpuHotPlug/g" \
|
---|
885 | --output $@ $@.tmp
|
---|
886 | $(QUIET)$(RM) -f $@.tmp $@.pre
|
---|
887 |
|
---|
888 |
|
---|
889 | vboxssdt-cpuhotplug.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex
|
---|
890 |
|
---|
891 | endif # !VBOX_WITH_DYNAMIC_DSDT
|
---|
892 | PC/ACPI/VBoxAcpi.cpp_INCS = $(VBoxDD_0_OUTDIR)
|
---|
893 |
|
---|
894 | # For finding PCIInternal.h from VBox/pci.h.
|
---|
895 | Bus/DevPCI.cpp_INCS = Bus
|
---|
896 | Bus/DevPciIch9.cpp_INCS = Bus
|
---|
897 | Bus/MsiCommon.cpp_INCS = Bus
|
---|
898 | Bus/MsixCommon.cpp_INCS = Bus
|
---|
899 | Bus/DevPciRaw.cpp_INCS = Bus
|
---|
900 |
|
---|
901 | # For finding and generating vbetables.h (see Graphics/BIOS/Makefile.kmk).
|
---|
902 | Graphics/DevVGA.cpp_INCS = $(VgaBiosBin_0_OUTDIR)
|
---|
903 | Graphics/DevVGA.cpp_DEPS = $(VgaBiosBin_0_OUTDIR)/vbetables.h
|
---|
904 |
|
---|
905 |
|
---|
906 | ifdef VBOX_WITH_RAW_MODE
|
---|
907 | #
|
---|
908 | # VBoxDDGC (sysmod)
|
---|
909 | #
|
---|
910 | VBoxDDGC_TEMPLATE = VBoxRc
|
---|
911 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
912 | VBoxDDGC_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
913 | endif
|
---|
914 | VBoxDDGC_DEFS = $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,)
|
---|
915 | VBoxDDGC_INCS = build
|
---|
916 | VBoxDDGC_SOURCES = \
|
---|
917 | Audio/DevIchHda.cpp \
|
---|
918 | Bus/DevPCI.cpp \
|
---|
919 | Bus/DevPciIch9.cpp \
|
---|
920 | Bus/MsiCommon.cpp \
|
---|
921 | Bus/MsixCommon.cpp \
|
---|
922 | EFI/DevSmc.cpp \
|
---|
923 | Graphics/DevVGA.cpp \
|
---|
924 | Input/DevPS2.cpp \
|
---|
925 | Input/PS2K.cpp \
|
---|
926 | Input/PS2M.cpp \
|
---|
927 | PC/DevACPI.cpp \
|
---|
928 | PC/DevPit-i8254.cpp \
|
---|
929 | PC/DevPIC.cpp \
|
---|
930 | PC/DevRTC.cpp \
|
---|
931 | PC/DevHPET.cpp \
|
---|
932 | Storage/DevATA.cpp \
|
---|
933 | Network/DevPCNet.cpp \
|
---|
934 | Serial/DevSerial.cpp \
|
---|
935 | Parallel/DevParallel.cpp \
|
---|
936 | VMMDev/VMMDevTesting.cpp
|
---|
937 |
|
---|
938 | ifdef VBOX_WITH_E1000
|
---|
939 | VBoxDDGC_DEFS += VBOX_WITH_E1000
|
---|
940 | VBoxDDGC_SOURCES += \
|
---|
941 | Network/DevE1000.cpp \
|
---|
942 | Network/DevE1000Phy.cpp
|
---|
943 | endif
|
---|
944 |
|
---|
945 | ifdef VBOX_WITH_VIRTIO
|
---|
946 | VBoxDDGC_DEFS += VBOX_WITH_VIRTIO
|
---|
947 | VBoxDDGC_SOURCES += \
|
---|
948 | VirtIO/Virtio.cpp \
|
---|
949 | Network/DevVirtioNet.cpp
|
---|
950 | endif
|
---|
951 |
|
---|
952 | ifdef VBOX_WITH_HGSMI
|
---|
953 | VBoxDDGC_DEFS += VBOX_WITH_HGSMI
|
---|
954 | endif
|
---|
955 | ifdef VBOX_WITH_WDDM
|
---|
956 | VBoxDDGC_DEFS += VBOX_WITH_WDDM
|
---|
957 | endif
|
---|
958 | ifdef VBOX_WITH_VDMA
|
---|
959 | VBoxDDGC_DEFS += VBOX_WITH_VDMA
|
---|
960 | endif
|
---|
961 | ifdef VBOX_WITH_CRHGSMI
|
---|
962 | VBoxDDGC_DEFS += VBOX_WITH_CRHGSMI
|
---|
963 | endif
|
---|
964 | ifdef VBOXWDDM_WITH_VBVA
|
---|
965 | VBoxDDGC_DEFS += VBOXWDDM_WITH_VBVA
|
---|
966 | endif
|
---|
967 | ifdef VBOX_WITH_VMSVGA
|
---|
968 | VBoxDDGC_DEFS += VBOX_WITH_VMSVGA
|
---|
969 | VBoxDDGC_SOURCES += \
|
---|
970 | Graphics/DevVGA-SVGA.cpp
|
---|
971 | endif
|
---|
972 | ifdef VBOX_WITH_VMSVGA3D
|
---|
973 | VBoxDDGC_DEFS += VBOX_WITH_VMSVGA3D
|
---|
974 | endif
|
---|
975 | ifdef VBOX_VDMA_WITH_WATCHDOG
|
---|
976 | VBoxDDGC_DEFS += VBOX_VDMA_WITH_WATCHDOG
|
---|
977 | endif
|
---|
978 |
|
---|
979 | ifdef VBOX_WITH_VUSB
|
---|
980 | VBoxDDGC_DEFS += VBOX_WITH_VUSB
|
---|
981 | VBoxDDGC_SOURCES += \
|
---|
982 | USB/DevOHCI.cpp
|
---|
983 | endif
|
---|
984 |
|
---|
985 | ifdef VBOX_WITH_USB
|
---|
986 | VBoxDDGC_DEFS += VBOX_WITH_USB
|
---|
987 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
988 | VBoxDDGC_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
989 | VBoxDDGC_SOURCES += \
|
---|
990 | USB/DevEHCI.cpp
|
---|
991 | endif
|
---|
992 | if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
993 | VBoxDDGC_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
994 | VBoxDDGC_SOURCES += \
|
---|
995 | USB/DevXHCI.cpp
|
---|
996 | endif
|
---|
997 | endif
|
---|
998 |
|
---|
999 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
1000 | VBoxDDGC_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
1001 | endif
|
---|
1002 |
|
---|
1003 | ifdef VBOX_WITH_AHCI
|
---|
1004 | VBoxDDGC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
|
---|
1005 | VBoxDDGC_SOURCES += \
|
---|
1006 | Storage/DevAHCI.cpp
|
---|
1007 | endif
|
---|
1008 |
|
---|
1009 | ifdef VBOX_WITH_BUSLOGIC
|
---|
1010 | VBoxDDGC_DEFS += VBOX_WITH_BUSLOGIC
|
---|
1011 | VBoxDDGC_SOURCES += \
|
---|
1012 | Storage/DevBusLogic.cpp
|
---|
1013 | endif
|
---|
1014 |
|
---|
1015 | ifdef VBOX_WITH_LSILOGIC
|
---|
1016 | VBoxDDGC_DEFS += VBOX_WITH_LSILOGIC
|
---|
1017 | VBoxDDGC_SOURCES += \
|
---|
1018 | Storage/DevLsiLogicSCSI.cpp
|
---|
1019 | endif
|
---|
1020 |
|
---|
1021 | ifdef VBOX_WITH_NEW_PS2M
|
---|
1022 | VBoxDDGC_DEFS += VBOX_WITH_NEW_PS2M
|
---|
1023 | endif
|
---|
1024 |
|
---|
1025 | if1of ($(VBOX_LDR_FMT32), pe lx)
|
---|
1026 | VBoxDDGC_LIBS = \
|
---|
1027 | $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
|
---|
1028 | $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
|
---|
1029 | endif
|
---|
1030 | endif # VBOX_WITH_RAW_MODE
|
---|
1031 |
|
---|
1032 |
|
---|
1033 | #
|
---|
1034 | # VBoxDD2 (shared object)
|
---|
1035 | #
|
---|
1036 | VBoxDD2_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
1037 | VBoxDD2_DEFS = IN_VBOXDD2
|
---|
1038 | VBoxDD2_INCS := \
|
---|
1039 | build \
|
---|
1040 | $(PATH_SUB_CURRENT)
|
---|
1041 | VBoxDD2_SOURCES = \
|
---|
1042 | build/VBoxDD2.cpp \
|
---|
1043 | PC/DevAPIC.cpp \
|
---|
1044 | PC/DevIoApic.cpp \
|
---|
1045 | PC/DevLPC.cpp
|
---|
1046 | VBoxDD2_SOURCES.win = \
|
---|
1047 | build/VBoxDD2.rc
|
---|
1048 | VBoxDD2_LIBS = \
|
---|
1049 | $(PATH_STAGE_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
|
---|
1050 | $(PATH_STAGE_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
|
---|
1051 | $(if $(VBOX_WITH_PXE_ROM),\
|
---|
1052 | $(if $(VBOX_WITH_INTEL_PXE),\
|
---|
1053 | $(PATH_STAGE_LIB)/NetBiosBin$(VBOX_SUFF_LIB),\
|
---|
1054 | $(PATH_STAGE_LIB)/iPxeBiosBin$(VBOX_SUFF_LIB)),) \
|
---|
1055 | $(LIB_VMM) \
|
---|
1056 | $(LIB_RUNTIME)
|
---|
1057 | VBoxDD2_LIBS.darwin += $(LIB_REM)
|
---|
1058 | VBoxDD2_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD2.dylib
|
---|
1059 | VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined
|
---|
1060 |
|
---|
1061 | ifdef VBOX_WITH_PXE_ROM
|
---|
1062 | VBoxDD2_DEFS += VBOX_WITH_PXE_ROM
|
---|
1063 | endif
|
---|
1064 |
|
---|
1065 |
|
---|
1066 | #
|
---|
1067 | # VBoxDDR0 (sysmod)
|
---|
1068 | #
|
---|
1069 | VBoxDDR0_TEMPLATE = VBoxR0
|
---|
1070 | VBoxDDR0_DEFS.darwin.x86= VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
1071 | VBoxDDR0_DEFS = IN_RT_R0 $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) # - WTF is IN_RT_R0 doing here?
|
---|
1072 | VBoxDDR0_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
|
---|
1073 | VBoxDDR0_INCS = build
|
---|
1074 | VBoxDDR0_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
1075 | VBoxDDR0_SOURCES = \
|
---|
1076 | build/VBoxDDR0.cpp \
|
---|
1077 | Audio/DevIchHda.cpp \
|
---|
1078 | Bus/DevPCI.cpp \
|
---|
1079 | Bus/DevPciIch9.cpp \
|
---|
1080 | Bus/MsiCommon.cpp \
|
---|
1081 | Bus/MsixCommon.cpp \
|
---|
1082 | EFI/DevSmc.cpp \
|
---|
1083 | Graphics/DevVGA.cpp \
|
---|
1084 | Input/DevPS2.cpp \
|
---|
1085 | Input/PS2K.cpp \
|
---|
1086 | Input/PS2M.cpp \
|
---|
1087 | PC/DevACPI.cpp \
|
---|
1088 | PC/DevPit-i8254.cpp \
|
---|
1089 | PC/DevPIC.cpp \
|
---|
1090 | PC/DevRTC.cpp \
|
---|
1091 | PC/DevHPET.cpp \
|
---|
1092 | Storage/DevATA.cpp \
|
---|
1093 | Network/DevPCNet.cpp \
|
---|
1094 | Serial/DevSerial.cpp \
|
---|
1095 | Parallel/DevParallel.cpp \
|
---|
1096 | VMMDev/VMMDevTesting.cpp \
|
---|
1097 | \
|
---|
1098 | Network/DrvIntNet.cpp \
|
---|
1099 | Network/DrvDedicatedNic.cpp
|
---|
1100 |
|
---|
1101 | VBoxDDR0_SOURCES.win += Parallel/DrvHostParallel.cpp
|
---|
1102 |
|
---|
1103 | ifdef VBOX_WITH_E1000
|
---|
1104 | VBoxDDR0_DEFS += VBOX_WITH_E1000
|
---|
1105 | VBoxDDR0_SOURCES += \
|
---|
1106 | Network/DevE1000.cpp \
|
---|
1107 | Network/DevE1000Phy.cpp
|
---|
1108 | endif
|
---|
1109 |
|
---|
1110 | ifdef VBOX_WITH_VIRTIO
|
---|
1111 | VBoxDDR0_DEFS += VBOX_WITH_VIRTIO
|
---|
1112 | VBoxDDR0_SOURCES += \
|
---|
1113 | VirtIO/Virtio.cpp \
|
---|
1114 | Network/DevVirtioNet.cpp
|
---|
1115 | endif
|
---|
1116 |
|
---|
1117 | ifdef VBOX_WITH_NETSHAPER
|
---|
1118 | VBoxDDR0_DEFS += VBOX_WITH_NETSHAPER
|
---|
1119 | VBoxDDR0_SOURCES += \
|
---|
1120 | Network/DrvNetShaper.cpp
|
---|
1121 | endif
|
---|
1122 |
|
---|
1123 | ifdef VBOX_WITH_VMSVGA
|
---|
1124 | VBoxDDR0_DEFS += VBOX_WITH_VMSVGA
|
---|
1125 | VBoxDDR0_SOURCES += \
|
---|
1126 | Graphics/DevVGA-SVGA.cpp
|
---|
1127 | endif
|
---|
1128 | ifdef VBOX_WITH_VMSVGA3D
|
---|
1129 | VBoxDDR0_DEFS += VBOX_WITH_VMSVGA3D
|
---|
1130 | endif
|
---|
1131 |
|
---|
1132 | ifdef VBOX_WITH_HGSMI
|
---|
1133 | VBoxDDR0_DEFS += VBOX_WITH_HGSMI
|
---|
1134 | endif
|
---|
1135 | ifdef VBOX_WITH_WDDM
|
---|
1136 | VBoxDDR0_DEFS += VBOX_WITH_WDDM
|
---|
1137 | endif
|
---|
1138 | ifdef VBOX_WITH_VDMA
|
---|
1139 | VBoxDDR0_DEFS += VBOX_WITH_VDMA
|
---|
1140 | endif
|
---|
1141 | ifdef VBOX_WITH_CRHGSMI
|
---|
1142 | VBoxDDR0_DEFS += VBOX_WITH_CRHGSMI
|
---|
1143 | endif
|
---|
1144 | ifdef VBOXWDDM_WITH_VBVA
|
---|
1145 | VBoxDDR0_DEFS += VBOXWDDM_WITH_VBVA
|
---|
1146 | endif
|
---|
1147 | ifdef VBOX_VDMA_WITH_WATCHDOG
|
---|
1148 | VBoxDDR0_DEFS += VBOX_VDMA_WITH_WATCHDOG
|
---|
1149 | endif
|
---|
1150 |
|
---|
1151 | ifdef VBOX_WITH_VUSB
|
---|
1152 | VBoxDDR0_DEFS += VBOX_WITH_VUSB
|
---|
1153 | VBoxDDR0_SOURCES += \
|
---|
1154 | USB/DevOHCI.cpp
|
---|
1155 | endif
|
---|
1156 | ifdef VBOX_WITH_USB
|
---|
1157 | VBoxDDR0_DEFS += VBOX_WITH_USB
|
---|
1158 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1159 | VBoxDDR0_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
1160 | VBoxDDR0_SOURCES += \
|
---|
1161 | USB/DevEHCI.cpp
|
---|
1162 | endif
|
---|
1163 | if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1164 | VBoxDDR0_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
1165 | VBoxDDR0_SOURCES += \
|
---|
1166 | USB/DevXHCI.cpp
|
---|
1167 | endif
|
---|
1168 | endif
|
---|
1169 |
|
---|
1170 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1171 | VBoxDDR0_SOURCES += \
|
---|
1172 | Bus/DevPciRaw.cpp
|
---|
1173 | endif
|
---|
1174 |
|
---|
1175 | ifdef VBOX_WITH_AHCI
|
---|
1176 | VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
|
---|
1177 | VBoxDDR0_SOURCES += \
|
---|
1178 | Storage/DevAHCI.cpp
|
---|
1179 | endif
|
---|
1180 |
|
---|
1181 | ifdef VBOX_WITH_BUSLOGIC
|
---|
1182 | VBoxDDR0_DEFS += VBOX_WITH_BUSLOGIC
|
---|
1183 | VBoxDDR0_SOURCES += \
|
---|
1184 | Storage/DevBusLogic.cpp
|
---|
1185 | endif
|
---|
1186 |
|
---|
1187 | ifdef VBOX_WITH_LSILOGIC
|
---|
1188 | VBoxDDR0_DEFS += VBOX_WITH_LSILOGIC
|
---|
1189 | VBoxDDR0_SOURCES += \
|
---|
1190 | Storage/DevLsiLogicSCSI.cpp
|
---|
1191 | endif
|
---|
1192 |
|
---|
1193 | ifdef VBOX_WITH_NEW_PS2M
|
---|
1194 | VBoxDDR0_DEFS += VBOX_WITH_NEW_PS2M
|
---|
1195 | endif
|
---|
1196 |
|
---|
1197 | ifdef VBOX_WITH_HGSMI
|
---|
1198 | VBoxDDR0_DEFS += VBOX_WITH_HGSMI
|
---|
1199 | endif
|
---|
1200 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
1201 | VBoxDDR0_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
1202 | endif
|
---|
1203 |
|
---|
1204 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
1205 | VBoxDDR0_LIBS = \
|
---|
1206 | $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
|
---|
1207 | $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
1208 | endif
|
---|
1209 |
|
---|
1210 |
|
---|
1211 | ifdef VBOX_WITH_RAW_MODE
|
---|
1212 | #
|
---|
1213 | # VBoxDD2GC (LGPL sysmod)
|
---|
1214 | #
|
---|
1215 | VBoxDD2GC_TEMPLATE = VBoxRc
|
---|
1216 | VBoxDD2GC_INCS = build
|
---|
1217 | VBoxDD2GC_SOURCES = \
|
---|
1218 | PC/DevAPIC.cpp \
|
---|
1219 | PC/DevIoApic.cpp
|
---|
1220 | if1of ($(VBOX_LDR_FMT32), pe lx)
|
---|
1221 | VBoxDD2GC_LIBS = \
|
---|
1222 | $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
|
---|
1223 | $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
|
---|
1224 | endif
|
---|
1225 | endif
|
---|
1226 |
|
---|
1227 |
|
---|
1228 | #
|
---|
1229 | # VBoxDD2R0 (LGPL sysmod)
|
---|
1230 | #
|
---|
1231 | VBoxDD2R0_TEMPLATE = VBoxR0
|
---|
1232 | VBoxDD2R0_DEFS = IN_RT_R0
|
---|
1233 | VBoxDD2R0_INCS = build
|
---|
1234 | VBoxDD2R0_SOURCES = \
|
---|
1235 | build/VBoxDD2R0.cpp \
|
---|
1236 | PC/DevAPIC.cpp \
|
---|
1237 | PC/DevIoApic.cpp \
|
---|
1238 |
|
---|
1239 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
1240 | VBoxDD2R0_LIBS = \
|
---|
1241 | $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
|
---|
1242 | $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
1243 | endif
|
---|
1244 |
|
---|
1245 |
|
---|
1246 | #
|
---|
1247 | # Ring-0 Services (library, linked into VMMR0.r0)
|
---|
1248 | #
|
---|
1249 | ServicesR0_TEMPLATE = VBoxR0
|
---|
1250 | ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0 \
|
---|
1251 | $(if $(VBOX_WITH_PCI_PASSTHROUGH),IN_PCIRAW_R0,) \
|
---|
1252 | $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE,)
|
---|
1253 | ServicesR0_SOURCES = \
|
---|
1254 | Network/SrvIntNetR0.cpp \
|
---|
1255 | $(if $(VBOX_WITH_PCI_PASSTHROUGH),Bus/SrvPciRawR0.cpp,)
|
---|
1256 | Network/SrvIntNetR0.cpp_CXXFLAGS := $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
|
---|
1257 |
|
---|
1258 |
|
---|
1259 | #
|
---|
1260 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
1261 | #
|
---|
1262 | ifdef VBOX_WITH_TESTCASES
|
---|
1263 | PROGRAMS += tstIntNetR0
|
---|
1264 | tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
|
---|
1265 | tstIntNetR0_DEFS = IN_INTNET_R0
|
---|
1266 | tstIntNetR0_SOURCES = \
|
---|
1267 | Network/testcase/tstIntNetR0.cpp
|
---|
1268 | ifneq ($(KBUILD_TARGET),win)
|
---|
1269 | Network/testcase/tstIntNetR0.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
|
---|
1270 | endif
|
---|
1271 | endif
|
---|
1272 |
|
---|
1273 |
|
---|
1274 | #
|
---|
1275 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
1276 | #
|
---|
1277 | ifdef VBOX_WITH_TESTCASES
|
---|
1278 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
1279 | PROGRAMS += tstIntNetHardened-1
|
---|
1280 | tstIntNetHardened-1_TEMPLATE = VBoxR3HardenedTstExe
|
---|
1281 | tstIntNetHardened-1_NAME = tstIntNet-1
|
---|
1282 | tstIntNetHardened-1_DEFS = PROGRAM_NAME_STR=\"tstIntNet-1\"
|
---|
1283 | tstIntNetHardened-1_SOURCES = ../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
|
---|
1284 |
|
---|
1285 | DLLS += tstIntNet-1
|
---|
1286 | tstIntNet-1_TEMPLATE = VBoxR3TstDll
|
---|
1287 | else
|
---|
1288 | PROGRAMS += tstIntNet-1
|
---|
1289 | tstIntNet-1_TEMPLATE = VBOXR3TSTEXE
|
---|
1290 | endif
|
---|
1291 | tstIntNet-1_SOURCES = \
|
---|
1292 | Network/testcase/tstIntNet-1.cpp \
|
---|
1293 | Network/Pcap.cpp
|
---|
1294 | endif
|
---|
1295 |
|
---|
1296 |
|
---|
1297 | #
|
---|
1298 | # EEPROM device unit test requires cppunit
|
---|
1299 | #
|
---|
1300 | ifdef VBOX_WITH_CPPUNIT_TESTCASES
|
---|
1301 | ifdef VBOX_WITH_E1000
|
---|
1302 | PROGRAMS += tstDevEEPROM
|
---|
1303 | tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE
|
---|
1304 | tstDevEEPROM_SOURCES = \
|
---|
1305 | Network/testcase/tstDevEEPROM.cpp
|
---|
1306 | tstDevEEPROM_LIBS = \
|
---|
1307 | $(TARGET_VBoxDD)
|
---|
1308 | PROGRAMS += tstDevPhy
|
---|
1309 | tstDevPhy_TEMPLATE = VBOXCPPUNITEXE
|
---|
1310 | tstDevPhy_SOURCES = \
|
---|
1311 | Network/testcase/tstDevPhy.cpp \
|
---|
1312 | Network/DevE1000Phy.cpp
|
---|
1313 | tstDevPhy_DEFS = PHY_UNIT_TEST
|
---|
1314 | endif
|
---|
1315 | endif
|
---|
1316 |
|
---|
1317 | #
|
---|
1318 | # Apple SMC Utility.
|
---|
1319 | #
|
---|
1320 | ifdef VBOX_WITH_TESTCASES
|
---|
1321 | PROGRAMS.darwin += VBoxSmcUtil-darwin
|
---|
1322 | VBoxSmcUtil-darwin_TEMPLATE = VBOXR3TSTEXE
|
---|
1323 | VBoxSmcUtil-darwin_SOURCES = EFI/VBoxSmcUtil-darwin.cpp
|
---|
1324 | VBoxSmcUtil-darwin_LDFLAGS = -framework IOKit
|
---|
1325 | endif
|
---|
1326 |
|
---|
1327 | endif # !VBOX_ONLY_EXTPACKS
|
---|
1328 |
|
---|
1329 |
|
---|
1330 | if defined(VBOX_WITH_EXTPACK_PUEL) && defined(VBOX_WITH_EXTPACK_PUEL_BUILD)
|
---|
1331 | #
|
---|
1332 | # The EHCI (USB 2.0) Extension Pack Modules.
|
---|
1333 | #
|
---|
1334 | if defined(VBOX_WITH_USB)
|
---|
1335 | DLLS += VBoxEhciR3
|
---|
1336 | VBoxEhciR3_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1337 | VBoxEhciR3_SOURCES = \
|
---|
1338 | USB/DevEHCI.cpp \
|
---|
1339 | USB/DevXHCI.cpp
|
---|
1340 | VBoxEhciR3_SOURCES.win = \
|
---|
1341 | build/VBoxEhciR3.rc
|
---|
1342 |
|
---|
1343 | SYSMODS += VBoxEhciR0
|
---|
1344 | VBoxEhciR0_TEMPLATE = VBoxR0ExtPackPuel
|
---|
1345 | VBoxEhciR0_SOURCES = \
|
---|
1346 | USB/DevEHCI.cpp \
|
---|
1347 | USB/DevXHCI.cpp
|
---|
1348 |
|
---|
1349 | ifdef VBOX_WITH_RAW_MODE
|
---|
1350 | SYSMODS += VBoxEhciRC
|
---|
1351 | VBoxEhciRC_TEMPLATE = VBoxRcExtPackPuel
|
---|
1352 | VBoxEhciRC_SOURCES = \
|
---|
1353 | USB/DevEHCI.cpp \
|
---|
1354 | USB/DevXHCI.cpp
|
---|
1355 | endif
|
---|
1356 |
|
---|
1357 | # Hacky but MSI support *must* be enabled
|
---|
1358 | ifdef VBOX_WITH_MSI_DEVICES
|
---|
1359 | VBoxEhciR3_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1360 | VBoxEhciR0_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1361 | VBoxEhciRC_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1362 | endif
|
---|
1363 |
|
---|
1364 | endif
|
---|
1365 |
|
---|
1366 | if defined(VBOX_WITH_PCI_PASSTHROUGH)
|
---|
1367 | DLLS += VBoxPciRawR3
|
---|
1368 | VBoxPciRawR3_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1369 | VBoxPciRawR3_SOURCES = Bus/DevPciRaw.cpp
|
---|
1370 | VBoxPciRawR3_SOURCES.win = build/VBoxPciRawR3.rc
|
---|
1371 |
|
---|
1372 | DLLS += VBoxPciRawDrv
|
---|
1373 | VBoxPciRawDrv_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1374 | VBoxPciRawDrv_SOURCES = Bus/DrvPciRaw.cpp
|
---|
1375 | VBoxPciRawDrv_SOURCES.win = build/VBoxPciRawDrv.rc
|
---|
1376 |
|
---|
1377 | SYSMODS += VBoxPciRawR0
|
---|
1378 | VBoxPciRawR0_TEMPLATE = VBoxR0ExtPackPuel
|
---|
1379 | VBoxPciRawR0_SOURCES = Bus/DevPciRaw.cpp
|
---|
1380 |
|
---|
1381 | Bus/DevPciRaw.cpp_INCS = Bus
|
---|
1382 | endif
|
---|
1383 |
|
---|
1384 |
|
---|
1385 | #
|
---|
1386 | # The Intel PXE ROM.
|
---|
1387 | #
|
---|
1388 | INSTALLS += VBoxExtPackPuelInsRoms
|
---|
1389 | VBoxExtPackPuelInsRoms_TEMPLATE = VBoxInsExtPackPuel
|
---|
1390 | VBoxExtPackPuelInsRoms_SOURCES = PC/PXE/PXE-Intel.rom=>PXE-Intel.rom
|
---|
1391 | endif # VBOX_WITH_EXTPACK_PUEL
|
---|
1392 |
|
---|
1393 |
|
---|
1394 | if defined(VBOX_WITH_VMSVGA3D) && !defined(VBOX_ONLY_EXTPACKS)
|
---|
1395 | #
|
---|
1396 | # Template used for VBoxSVGA3D. (Stips away compiler options.)
|
---|
1397 | #
|
---|
1398 | TEMPLATE_VBoxSVGA3D := VBoxSVGA3D
|
---|
1399 | TEMPLATE_VBoxSVGA3D_EXTENDS := $(if-expr "$(KBUILD_TARGET)" == "darwin",VBoxR3DllOsX107,VBOXR3)
|
---|
1400 | TEMPLATE_VBoxSVGA3D_CFLAGS = $(filter-out -pedantic -Wstrict-prototypes,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CFLAGS))
|
---|
1401 | TEMPLATE_VBoxSVGA3D_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CXXFLAGS))
|
---|
1402 | TEMPLATE_VBoxSVGA3D_OBJCFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCFLAGS))
|
---|
1403 | TEMPLATE_VBoxSVGA3D_OBJCXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCXXFLAGS))
|
---|
1404 | TEMPLATE_VBoxSVGA3D_LDFLAGS.darwin = $(TEMPLATE_VBoxR3DllOsX107_LDFLAGS.darwin) \
|
---|
1405 | -framework AppKit -framework OpenGL -framework IOKit
|
---|
1406 |
|
---|
1407 | #
|
---|
1408 | # The shader library used by the SVGA3D implementation.
|
---|
1409 | #
|
---|
1410 | DLLS += VBoxSVGA3D
|
---|
1411 | VBoxSVGA3D_TEMPLATE = VBoxSVGA3D
|
---|
1412 | VBoxSVGA3D_SDKS = ReorderCompilerIncs
|
---|
1413 | VBoxSVGA3D_DEFS = \
|
---|
1414 | __WINESRC__ \
|
---|
1415 | WINE_UNICODE_API="" \
|
---|
1416 | _REENTRANT \
|
---|
1417 | WINE_NOWINSOCK \
|
---|
1418 | VBOX_WITH_VMSVGA \
|
---|
1419 | VBOX_WITH_VMSVGA3D \
|
---|
1420 | DLLDIR=\"\" \
|
---|
1421 | BINDIR=\"\" \
|
---|
1422 | LIB_TO_BINDIR=\"\" \
|
---|
1423 | LIB_TO_DLLDIR=\"\" \
|
---|
1424 | BIN_TO_DLLDIR=\"\" \
|
---|
1425 | LIB_TO_DATADIR=\"\" \
|
---|
1426 | BIN_TO_DATADIR=\"\" \
|
---|
1427 | _USE_MATH_DEFINES \
|
---|
1428 | VBOX_USING_WINDDK_W7_OR_LATER \
|
---|
1429 | VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT \
|
---|
1430 | IN_vmsvgashader_STATIC \
|
---|
1431 | IN_VMSVGA3D \
|
---|
1432 | VBOX_WINE_WITH_IPRT
|
---|
1433 | if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
|
---|
1434 | VBoxSVGA3D_DEFS += WINE_NO_DEBUG_MSGS
|
---|
1435 | endif
|
---|
1436 | VBoxSVGA3D_DEFS.x86 += __i386__
|
---|
1437 | VBoxSVGA3D_DEFS.amd64 += __x86_64__
|
---|
1438 | VBoxSVGA3D_DEFS.win += \
|
---|
1439 | USE_WIN32_OPENGL \
|
---|
1440 | VBOX_WINE_WITHOUT_LIBWINE
|
---|
1441 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DUAL_OPENGL_PROFILE
|
---|
1442 | if 0 # Use the OpenGL 3.2 Core profile (VBoxSVGA3D_DEFS.darwin).
|
---|
1443 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=3.2 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=2.1
|
---|
1444 | else
|
---|
1445 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=2.1 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=3.2
|
---|
1446 | endif
|
---|
1447 |
|
---|
1448 | # WINE relies on a gcc 4.4 feature but we have 4.2 on Darwin
|
---|
1449 | VBoxSVGA3D_DEFS.darwin += \
|
---|
1450 | __builtin_ms_va_list=va_list \
|
---|
1451 | __stdcall= \
|
---|
1452 | ms_abi=
|
---|
1453 | VBoxSVGA3D_INCS.win := \
|
---|
1454 | Graphics/shaderlib/libWineStub/include
|
---|
1455 | VBoxSVGA3D_INCS.linux := \
|
---|
1456 | Graphics/shaderlib/wine/include
|
---|
1457 | VBoxSVGA3D_INCS.darwin := \
|
---|
1458 | Graphics/ \
|
---|
1459 | Graphics/shaderlib/wine/include
|
---|
1460 | VBoxSVGA3D_SOURCES := \
|
---|
1461 | Graphics/shaderlib/glsl_shader.c \
|
---|
1462 | Graphics/shaderlib/shader.c \
|
---|
1463 | Graphics/shaderlib/shader_sm1.c \
|
---|
1464 | Graphics/shaderlib/shader_sm4.c \
|
---|
1465 | Graphics/shaderlib/shaderapi.c \
|
---|
1466 | Graphics/shaderlib/utils.c \
|
---|
1467 | Graphics/shaderlib/stateblock.c \
|
---|
1468 | Graphics/shaderlib/directx.c \
|
---|
1469 | Graphics/shaderlib/libWineStub/debug.c
|
---|
1470 | VBoxSVGA3D_SOURCES.win := \
|
---|
1471 | Graphics/VBoxSVGA3D.rc
|
---|
1472 | VBoxSVGA3D_LIBS = $(LIB_RUNTIME)
|
---|
1473 | VBoxSVGA3D_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
|
---|
1474 | if1of ($(KBUILD_TARGET), solaris linux freebsd)
|
---|
1475 | VBoxSVGA3D_LIBS += GL
|
---|
1476 | endif
|
---|
1477 | VBoxSVGA3D_LDFLAGS.darwin += \
|
---|
1478 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3D.dylib
|
---|
1479 |
|
---|
1480 | #
|
---|
1481 | # The Objective C code needs to be separate since the shaderlib redefines most
|
---|
1482 | # GL functions as pointers, making it impossible to mix with code calling OpenGL
|
---|
1483 | # functions directly. This module must be compiled for 10.7 or later, thus it
|
---|
1484 | # needs to be separate from VBoxDD.dylib, or at least that's our belief...
|
---|
1485 | #
|
---|
1486 | DLLS.darwin += VBoxSVGA3DObjC
|
---|
1487 | VBoxSVGA3DObjC_TEMPLATE = VBoxSVGA3D
|
---|
1488 | VBoxSVGA3DObjC_DEFS = $(VBoxSVGA3D_DEFS)
|
---|
1489 | VBoxSVGA3DObjC_DEFS.x86 = __i386__
|
---|
1490 | VBoxSVGA3DObjC_DEFS.amd64 = __x86_64__
|
---|
1491 | VBoxSVGA3DObjC_DEFS.darwin = $(VBoxSVGA3D_DEFS.darwin)
|
---|
1492 | VBoxSVGA3DObjC_INCS = $(VBoxSVGA3D_INCS)
|
---|
1493 | VBoxSVGA3DObjC_INCS.darwin = $(VBoxSVGA3D_INCS.darwin)
|
---|
1494 | VBoxSVGA3DObjC_LIBS = $(LIB_RUNTIME)
|
---|
1495 | VBoxSVGA3DObjC_LDFLAGS.darwin = \
|
---|
1496 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3DObjC.dylib \
|
---|
1497 | -framework OpenGL
|
---|
1498 | if 0
|
---|
1499 | VBoxSVGA3DObjC_SOURCES.darwin += \
|
---|
1500 | Graphics/DevVGA-SVGA3d-cocoa.m
|
---|
1501 | else
|
---|
1502 | VBoxSVGA3DObjC_SOURCES.darwin += \
|
---|
1503 | ../HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m \
|
---|
1504 | ../GuestHost/OpenGL/util/vreg.cpp \
|
---|
1505 | ../GuestHost/OpenGL/util/blitter.cpp \
|
---|
1506 | ../GuestHost/OpenGL/util/compositor.cpp \
|
---|
1507 | ../HostServices/SharedOpenGL/OpenGLTest/OpenGLTestDarwin.cpp
|
---|
1508 | endif
|
---|
1509 |
|
---|
1510 |
|
---|
1511 |
|
---|
1512 | endif # defined(VBOX_WITH_VMSVGA3D) && !defined(VBOX_ONLY_EXTPACKS)
|
---|
1513 |
|
---|
1514 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
1515 |
|
---|