Makefile.kmk revision 6b362bc00d2820ca57d348a77ddb1dc558dc94f8
828c58761d90445b8b9d20a82d85dc1479317f71Tripp# $Id$
828c58761d90445b8b9d20a82d85dc1479317f71Tripp## @file
828c58761d90445b8b9d20a82d85dc1479317f71Tripp# Top-level sub-makefile for the devices, drivers and services.
828c58761d90445b8b9d20a82d85dc1479317f71Tripp#
828c58761d90445b8b9d20a82d85dc1479317f71Tripp
828c58761d90445b8b9d20a82d85dc1479317f71Tripp#
828c58761d90445b8b9d20a82d85dc1479317f71Tripp# Copyright (C) 2006-2012 Oracle Corporation
828c58761d90445b8b9d20a82d85dc1479317f71Tripp#
828c58761d90445b8b9d20a82d85dc1479317f71Tripp# This file is part of VirtualBox Open Source Edition (OSE), as
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp# available from http://www.virtualbox.org. This file is free software;
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp# you can redistribute it and/or modify it under the terms of the GNU
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp# General Public License (GPL) as published by the Free Software
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp# Foundation, in version 2 as it comes in the "COPYING" file of the
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp#
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
828c58761d90445b8b9d20a82d85dc1479317f71TrippSUB_DEPTH = ../../..
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTrippinclude $(KBUILD_PATH)/subheader.kmk
828c58761d90445b8b9d20a82d85dc1479317f71Tripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp# Make sure our Config.kmk is included.
828c58761d90445b8b9d20a82d85dc1479317f71Trippifndef VBOX_DEVICES_CONFIG_KMK_INCLUDED
828c58761d90445b8b9d20a82d85dc1479317f71Tripp include $(PATH_SUB_CURRENT)/Config.kmk
828c58761d90445b8b9d20a82d85dc1479317f71Trippendif
828c58761d90445b8b9d20a82d85dc1479317f71Tripp
828c58761d90445b8b9d20a82d85dc1479317f71Tripp# Include sub-makefiles.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTrippinclude $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTrippif defined(VBOX_WITH_INTEL_PXE) || defined(VBOX_ONLY_EXTPACKS)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp include $(PATH_SUB_CURRENT)/PC/PXE/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTrippelse if defined(VBOX_WITH_PXE_ROM)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp if !defined(VBOX_WITHOUT_ETHERBOOT)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp include $(PATH_SUB_CURRENT)/PC/Etherboot-src/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp if !defined(VBOX_WITHOUT_IPXE)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp include $(PATH_SUB_CURRENT)/PC/ipxe/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTrippendif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTrippif !defined(VBOX_ONLY_EXTPACKS) # Goes on almost to the end of the file.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp include $(PATH_SUB_CURRENT)/BiosCommonCode/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp #
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # Main targets.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp #
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp LIBRARIES += ServicesR0
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp DLLS += VBoxDDU VBoxDD VBoxDD2
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp SYSMODS += VBoxDDR0 VBoxDD2R0
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_RAW_MODE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp SYSMODS += VBoxDDGC VBoxDD2GC
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp #
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # VBoxDDU (shared object)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp #
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_TEMPLATE = VBoxR3DllWarnNoPic
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_NAME = $(basename $(notdir $(LIB_DDU)))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_INST.darwin = $(INST_DLL) $(INST_TESTCASE)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_DEFS = IN_VBOXDDU
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_VUSB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_DEFS += VBOX_WITH_VUSB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_DEFS += VBOX_WITH_USB IN_USBLIB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_DEFS += VBOX_WITH_EHCI_IMPL
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp else
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_SOURCES = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/VSCSI/VSCSIDevice.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/VSCSI/VSCSILun.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/VSCSI/VSCSILunSbc.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/VSCSI/VSCSILunMmc.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/VSCSI/VSCSISense.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/VSCSI/VSCSIIoReq.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/VSCSI/VSCSIVpdPagePool.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp build/VBoxDDUDeps.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_INCS.os2 += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_LIBS = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(LIB_RUNTIME) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_STAGE_LIB)/StorageLib$(VBOX_SUFF_LIB)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_LIBS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_STAGE_LIB)/USBLib$(VBOX_SUFF_LIB)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_LIBS.win += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),l4)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_LIBS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(L4_LIBDIR)/libl4sys.p.a
9eaaa502227248d304ac9170902697d02158c1d9Tripp endif
9eaaa502227248d304ac9170902697d02158c1d9Tripp VBoxDDU_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDDU.dylib
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_LDFLAGS.darwin += -framework IOKit
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_LDFLAGS.linux = -Wl,--no-undefined
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_LDFLAGS.l4 = -Wl,--no-undefined
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp #
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # VBoxDDULnxHostR3 (Only needed for l4, currently for executing vditool on L4Linux.)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp #
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),l4)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp LIBRARIES += VBoxDDULnxHostR3
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDULnxHostR3_TEMPLATE = VBOXLNXHOSTR3LIB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDULnxHostR3_DEFS = IN_VBOXDDU
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDULnxHostR3_SOURCES = $(VBoxDDU_SOURCES)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp #
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # VBoxDD (shared object)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp #
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_TEMPLATE = VBoxR3DllWarnNoPic
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
9eaaa502227248d304ac9170902697d02158c1d9Tripp Storage/DrvHostDVD.cpp_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK)
9eaaa502227248d304ac9170902697d02158c1d9Tripp VBoxDD_INCS = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp build \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_ACPI \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_HGCM_HOST_CODE \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_WITH_HGCM \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_BIOS_DMI_FALLBACK),VBOX_BIOS_DMI_FALLBACK,) \
9eaaa502227248d304ac9170902697d02158c1d9Tripp VBOX_WITH_DMI_CHASSIS \
9eaaa502227248d304ac9170902697d02158c1d9Tripp VBOX_WITH_DMI_OEMSTRINGS
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.win = _WIN32_WINNT=0x0510
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET_ARCH),x86)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp build/VBoxDD.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Input/DevPS2.cpp \
9eaaa502227248d304ac9170902697d02158c1d9Tripp Input/PS2K.cpp \
9eaaa502227248d304ac9170902697d02158c1d9Tripp Input/UsbKbd.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Input/UsbMouse.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Bus/DevPCI.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Bus/DevPciIch9.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Bus/MsiCommon.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Bus/MsixCommon.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Graphics/DevVGA.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/DevATA.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DevPit-i8254.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DevPIC.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DevACPI.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/ACPI/VBoxAcpi.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DevRTC.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DevPcBios.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DevFwCommon.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DevPcArch.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VMMDev/VMMDev.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VMMDev/VMMDevHGCM.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VMMDev/VMMDevTesting.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DevPCNet.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/DevIchAc97.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/DevSB16.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/DevIchHda.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/DevIchHdaCodec.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DevDMA.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DevHPET.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DevSMC.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DevLPC.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/fdc.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Serial/DevSerial.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Parallel/DevParallel.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/audio.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/audiosniffer.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/mixeng.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/noaudio.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/filteraudio.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Input/DrvKeyboardQueue.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Input/DrvMouseQueue.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DrvIntNet.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DrvDedicatedNic.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DrvACPI.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DrvAcpiCpu.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Serial/DrvChar.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Serial/DrvNamedPipe.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Serial/DrvRawFile.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/DrvBlock.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/DrvHostBase.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/DrvHostDVD.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/DrvHostFloppy.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/DrvMediaISO.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/DrvRawImage.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/Debug.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/DrvVD.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/ATAPIPassthrough.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DrvNetSniffer.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/Pcap.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS = # more later.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD.dylib \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp -framework CoreAudio \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp -framework AudioUnit \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp -framework AudioToolbox \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp -framework IOKit \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp -framework Carbon \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp -framework DiskArbitration
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LDFLAGS.linux = -Wl,--no-undefined
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LDFLAGS.l4 = -Wl,--no-undefined
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- Tracing bits. ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_DTRACE_R3
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_DTRACE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_USES += dtrace
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += build/VBoxDD.d
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- Graphics bits. ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_CRHGSMI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_CRHGSMI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOXWDDM_TEST_UHGSMI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOXWDDM_TEST_UHGSMI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOXWDDM_WITH_VBVA
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOXWDDM_WITH_VBVA
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_VIDEOHWACCEL
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_VIDEOHWACCEL
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_HGSMI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_HGSMI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Graphics/DevVGA_VBVA.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Graphics/HGSMI/HGSMIHost.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Graphics/HGSMI/HGSMIHostHlp.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_STAGE_LIB)/HGSMIHostR3Lib$(VBOX_SUFF_LIB)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_WDDM
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_WDDM
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Graphics/HGSMI/SHGSMIHost.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_VDMA
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_VDMA
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Graphics/DevVGA_VDMA.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_VDMA_WITH_WATCHDOG
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_VDMA_WITH_WATCHDOG
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_PXE_ROM
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_PXE_ROM
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- USB bits. ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/vrdp/USBProxyDevice-vrdp.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.darwin += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/USBProxyDevice.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/darwin/USBProxyDevice-darwin.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.linux += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VUSB_HAVE_USBPROXY_DEVICE \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.linux += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/USBProxyDevice.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/linux/USBProxyDevice-linux.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.l4 += VUSB_HAVE_USBPROXY_DEVICE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.l4 += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/USBProxyDevice.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/linux/USBProxyDevice-linux.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.os2 += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/USBProxyDevice.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/os2/USBProxyDevice-os2.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.win += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/USBProxyDevice.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/win/USBProxyDevice-win.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.solaris+= \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/USBProxyDevice.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/solaris/USBProxyDevice-solaris.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.freebsd += VUSB_HAVE_USBPROXY_DEVICE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.freebsd+= \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/USBProxyDevice.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/freebsd/USBProxyDevice-freebsd.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_SCSI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/UsbMsd.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_EHCI_IMPL
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_EHCI_IMPL
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/DevEHCI.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif # VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_VUSB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_VUSB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/DevOHCI.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/DrvVUSBRootHub.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/VUSBDevice.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/VUSBReadAhead.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp USB/VUSBUrb.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- Networking bits. ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_INIP
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifndef VBOX_WITH_NEW_LWIP
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp include $(PATH_SUB_CURRENT)/Network/lwip/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp else
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp include $(PATH_SUB_CURRENT)/Network/lwip-new/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_INIP
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += $(LWIP_SOURCES)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_INCS += $(LWIP_INCS)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += Network/DevINIP.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_E1000
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_E1000
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DevE1000.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DevE1000Phy.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DevEEPROM.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_VIRTIO
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_VIRTIO
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VirtIO/Virtio.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DevVirtioNet.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_UDPTUNNEL
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_UDPTUNNEL
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DrvUDPTunnel.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_VDE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_VDE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DrvVDE.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/VDEPlug.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_NETSHAPER
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_NETSHAPER
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DrvNetShaper.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- Storage bits. ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_AHCI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_AHCI IN_AHCI_R3
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/DevAHCI.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_BUSLOGIC
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_BUSLOGIC
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/DevBusLogic.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/VBoxSCSI.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_LSILOGIC
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_LSILOGIC
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/DevLsiLogicSCSI.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_SCSI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_SCSI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/DrvSCSI.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.linux += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/DrvSCSIHost.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_ISCSI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/DrvVD.cpp_INCS = $(LWIP_INCS)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_DRV_DISK_INTEGRITY
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_DRV_DISK_INTEGRITY
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/DrvDiskIntegrity.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_STAGE_LIB)/StorageDbgLib$(VBOX_SUFF_LIB)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_EFI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_EFI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += EFI/DevEFI.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp EFI/DevEFI.cpp_INCS += EFI/tools/include
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp EFI/DevEFI.cpp_INCS.x86 += EFI/tools/include/Ia32
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp EFI/DevEFI.cpp_INCS.amd64 += EFI/tools/include/X64
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_PCI_PASSTHROUGH_IMPL
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Bus/DevPciRaw.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Bus/DrvPciRaw.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_MSI_DEVICES
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_MSI_DEVICES
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_DYNAMIC_DSDT
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_DYNAMIC_DSDT
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- Audio bits. ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_ALSA
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.linux += VBOX_WITH_ALSA
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.linux += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/alsaaudio.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/alsa_stubs.c
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_PULSE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.linux += VBOX_WITH_PULSE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.linux += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/pulseaudio.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/pulse_stubs.c
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.freebsd += VBOX_WITH_PULSE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.freebsd+= \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/pulseaudio.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/pulse_stubs.c
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- WARNING! SLIRP MESS AHEAD! ;-) ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_SLIRP_SOURCES = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DrvNAT.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/bootp.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/debug.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/ip_icmp.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/ip_input.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/ip_output.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/misc.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/sbuf.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/slirp.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/slirp_dns.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/socket.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/tcp_input.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/tcp_output.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/tcp_subr.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/tcp_timer.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/udp.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/dnsproxy/hash.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/tftp.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/dnsproxy/dnsproxy.c
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_SLIRP_BSD_SBUF
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_SLIRP_SOURCES += Network/slirp/bsd/kern/subr_sbuf.c
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_SLIRP_BSD_ARCH = $(subst x86,i386,$(KBUILD_TARGET_ARCH))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_SLIRP_BSD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/bsd/kern/kern_mbuf.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/bsd/kern/uipc_mbuf.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/bsd/kern/uipc_mbuf2.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/in_cksum.c
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_SLIRP_ALIAS_SOURCES = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/libalias/alias.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/libalias/alias_db.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/libalias/alias_mod.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/libalias/alias_proxy.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/libalias/alias_ftp.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/libalias/alias_dns.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/libalias/alias_nbt.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/libalias/alias_util.c
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # Enable VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER here for a while, then move to
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # $(file)_DEFS or clean the code disabled with this definition.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER=1
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # dump memory related operations.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/misc.c_DEFS += $(if $(VBOX_NAT_MEM_DEBUG),VBOX_NAT_MEM_DEBUG,)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += $(VBOX_SLIRP_SOURCES)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp define def_vbox_slirp_cflags
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_DEFS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_SLIRP_BSD_SBUF),VBOX_WITH_SLIRP_BSD_SBUF,) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_SLIRP_MEMORY_CHECK),RTMEM_WRAP_TO_EF_APIS,) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_DEBUG_NAT_SOCKETS),VBOX_WITH_DEBUG_NAT_SOCKETS,) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER),VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER,) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_NAT_UDP_SOCKET_CLONE),VBOX_WITH_NAT_UDP_SOCKET_CLONE,) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_NAT_SEND2HOME),VBOX_WITH_NAT_SEND2HOME,) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_HIDDEN_TCPTEMPLATE),VBOX_WITH_HIDDEN_TCPTEMPLATE,) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_SLIRP_MT),VBOX_WITH_SLIRP_MT,)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_INCS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(1)/slirp/bsd/sys \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(1)/slirp/bsd/sys/sys \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(1)/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/include \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(1)/slirp/bsd/netinet \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(1)/slirp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(1)/slirp/libalias
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),win)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_CFLAGS = -wd4018
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp else
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_CFLAGS += -Wno-sign-compare -Wno-format -Wno-bad-function-cast
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endef
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(foreach file,$(VBOX_SLIRP_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += $(VBOX_SLIRP_ALIAS_SOURCES)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp define def_vbox_slirp_alias_cflags
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_DEFS += VBOX_SLIRP_ALIAS \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_DEBUG_LIBALIAS),VBOX_WITH_DEBUG_LIBALIAS,)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_INCS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(1)/slirp/libalias \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(1)/slirp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(1)/slirp/dnsproxy
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifneq ($(KBUILD_TARGET),win)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_CFLAGS += -Wno-shadow
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endef
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_alias_cflags, Network)))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_SLIRP_BSD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES.${KBUILD_TARGET_ARCH})
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp define def_vbox_slirp_bsd_cflags
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_DEFS += VBOX_SLIRP_BSD
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_INCS += $(1)/slirp/dnsproxy
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endef
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_bsd_cflags, Network)))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- OS specific driver hacks. ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),darwin)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES := \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(filter-out Storage/DrvHostRaw% Storage/DrvHostFloppy%, $(VBoxDD_SOURCES)) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/coreaudio.c
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.darwin += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Serial/DrvHostSerial.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif # darwin
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),freebsd)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES := \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(filter-out Storage/DrvHostFloppy%, $(VBoxDD_SOURCES)) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/ossaudio.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Serial/DrvHostSerial.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.freebsd += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DrvTAP.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif # freebsd
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),l4)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(error L4 is busted. Fix when needed.)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp #VBoxDD_SOURCES = filter needed
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.l4 += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/ossaudio.c
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif # l4
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.linux += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DrvTAP.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/ossaudio.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Parallel/DrvHostParallel.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Serial/DrvHostSerial.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),os2)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES := $(filter-out Storage/DrvHost%, $(VBoxDD_SOURCES))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),solaris)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES := $(filter-out Storage/DrvHostFloppy%, $(VBoxDD_SOURCES))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.solaris += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/solaudio.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Serial/DrvHostSerial.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_SOLARIS_OSS
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += Audio/ossaudio.c
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_SOLARIS_OSS
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_SUID_WRAPPER
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_SUID_WRAPPER
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES.win += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Audio/dsoundaudio.c \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Serial/DrvHostSerial.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Parallel/DrvHostParallel.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp if defined(VBOX_WITH_NETFLT)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_NETFLT
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp if defined(VBOX_NETFLT_ONDEMAND_BIND)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- Final bits, mostly libraries for order dependant linkers. ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_STAGE_LIB)/VgaDefBiosLogo$(VBOX_SUFF_LIB) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(LIB_VMM) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(LIB_RUNTIME)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),win)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(LIB_DDU) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_STAGE_LIB)/VBoxDD2.lib \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp else
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDDU_1_STAGE_TARGET) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD2_1_STAGE_TARGET)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),l4)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(L4_LIBDIR)/libl4sys.p.a
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_NETFLT
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS.win += $(PATH_STAGE_LIB)/WinNetConfig.lib
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),solaris)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += adm
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_SUID_WRAPPER
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += secdb
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += aio
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS.darwin += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(LIB_REM)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_DYNAMIC_DSDT
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/vboxdsl.hex
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/ACPI/VBoxAcpi.cpp_DEPS = $(VBoxDD_0_OUTDIR)/vboxdsl.hex
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $$(VBoxDD_0_OUTDIR)/vboxdsl.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(call MSG_TOOL,bin2c,VBoxDD,$<,$@)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(VBOX_BIN2C) -export VboxDslSource $< $@
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp vboxdsl.hex:: $$(VBoxDD_0_OUTDIR)/vboxdsl.hex
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp else # !VBOX_WITH_DYNAMIC_DSDT
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # VBoxAcpi.cpp needs vboxaml.hex which we generate from PC/vbox.dsl
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_CLEAN += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxaml.hex \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxaml.aml \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-standard.aml \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-standard.aml.tmp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml.tmp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml.pre
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/ACPI/VBoxAcpi.cpp_DEPS = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxaml.hex \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $$(VBoxDD_0_OUTDIR)/vboxaml.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp vboxaml.hex:: $$(VBoxDD_0_OUTDIR)/vboxaml.hex
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $$(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex: $(PATH_SUB_CURRENT)/PC/vbox-standard.dsl | $$(dir $$@)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(RM) -f $@ $@.tmp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(MV) -f $@ $@.tmp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtStandard/g" \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp --output $@ $@.tmp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(RM) -f $@.tmp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp vboxssdt-standard.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex: $(PATH_SUB_CURRENT)/PC/vbox-cpuhotplug.dsl | $$(dir $$@)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(RM) -f $@ $@.tmp $@.pre
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o $@.pre $<
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $@.pre
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(MV) -f $@ $@.tmp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtCpuHotPlug/g" \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp --output $@ $@.tmp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(RM) -f $@.tmp $@.pre
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp vboxssdt-cpuhotplug.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif # !VBOX_WITH_DYNAMIC_DSDT
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/ACPI/VBoxAcpi.cpp_INCS = $(VBoxDD_0_OUTDIR)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # For finding PCIInternal.h from VBox/pci.h.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Bus/DevPCI.cpp_INCS = Bus
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Bus/DevPciIch9.cpp_INCS = Bus
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Bus/MsiCommon.cpp_INCS = Bus
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Bus/MsixCommon.cpp_INCS = Bus
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Bus/DevPciRaw.cpp_INCS = Bus
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # For finding and generating vbetables.h (see Graphics/BIOS/Makefile.kmk).
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Graphics/DevVGA.cpp_INCS = $(VgaBiosBin_0_OUTDIR)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Graphics/DevVGA.cpp_DEPS = $(VgaBiosBin_0_OUTDIR)/vbetables.h
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_RAW_MODE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp #
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # VBoxDDGC (sysmod)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp #
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_TEMPLATE = VBoxRc
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET_ARCH),x86)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_DEFS = VBOX_WITH_HGCM
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_INCS = build
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_SOURCES = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Bus/DevPCI.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Bus/DevPciIch9.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Bus/MsiCommon.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Bus/MsixCommon.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Graphics/DevVGA.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Input/DevPS2.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Input/PS2K.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DevACPI.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DevPit-i8254.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DevPIC.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DevRTC.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/DevHPET.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Storage/DevATA.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DevPCNet.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Serial/DevSerial.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Parallel/DevParallel.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VMMDev/VMMDevTesting.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_E1000
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_DEFS += VBOX_WITH_E1000
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DevE1000.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DevE1000Phy.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_VIRTIO
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_DEFS += VBOX_WITH_VIRTIO
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VirtIO/Virtio.cpp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/DevVirtioNet.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_HGSMI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_DEFS += VBOX_WITH_HGSMI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_WDDM
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_DEFS += VBOX_WITH_WDDM
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_VDMA
VBoxDDGC_DEFS += VBOX_WITH_VDMA
endif
ifdef VBOX_WITH_CRHGSMI
VBoxDDGC_DEFS += VBOX_WITH_CRHGSMI
endif
ifdef VBOXWDDM_WITH_VBVA
VBoxDDGC_DEFS += VBOXWDDM_WITH_VBVA
endif
ifdef VBOX_VDMA_WITH_WATCHDOG
VBoxDDGC_DEFS += VBOX_VDMA_WITH_WATCHDOG
endif
ifdef VBOX_WITH_VUSB
VBoxDDGC_DEFS += VBOX_WITH_VUSB
VBoxDDGC_SOURCES += \
USB/DevOHCI.cpp
endif
ifdef VBOX_WITH_USB
VBoxDDGC_DEFS += VBOX_WITH_USB
if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
VBoxDDGC_DEFS += VBOX_WITH_EHCI_IMPL
VBoxDDGC_SOURCES += \
USB/DevEHCI.cpp
endif
endif
ifdef VBOX_WITH_VIDEOHWACCEL
VBoxDDGC_DEFS += VBOX_WITH_VIDEOHWACCEL
endif
ifdef VBOX_WITH_AHCI
VBoxDDGC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
VBoxDDGC_SOURCES += \
Storage/DevAHCI.cpp
endif
ifdef VBOX_WITH_BUSLOGIC
VBoxDDGC_DEFS += VBOX_WITH_BUSLOGIC
VBoxDDGC_SOURCES += \
Storage/DevBusLogic.cpp
endif
ifdef VBOX_WITH_LSILOGIC
VBoxDDGC_DEFS += VBOX_WITH_LSILOGIC
VBoxDDGC_SOURCES += \
Storage/DevLsiLogicSCSI.cpp
endif
if1of ($(VBOX_LDR_FMT32), pe lx)
VBoxDDGC_LIBS = \
$(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
$(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
endif
endif # VBOX_WITH_RAW_MODE
#
# VBoxDD2 (shared object)
#
VBoxDD2_TEMPLATE = VBoxR3DllWarnNoPic
VBoxDD2_DEFS = IN_VBOXDD2
VBoxDD2_INCS := \
build \
$(PATH_SUB_CURRENT)
VBoxDD2_SOURCES = \
build/VBoxDD2.cpp \
PC/DevAPIC.cpp \
PC/DevIoApic.cpp \
PC/DevSMC.cpp \
PC/DevLPC.cpp
VBoxDD2_LIBS = \
$(PATH_STAGE_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
$(PATH_STAGE_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
$(if $(VBOX_WITH_PXE_ROM),$(if $(VBOX_WITHOUT_IPXE),$(PATH_STAGE_LIB)/NetBiosBin$(VBOX_SUFF_LIB),$(PATH_STAGE_LIB)/iPxeBiosBin$(VBOX_SUFF_LIB)),) \
$(LIB_VMM) \
$(LIB_RUNTIME)
ifeq ($(KBUILD_TARGET),l4)
VBoxDD2_LIBS += \
$(L4_LIBDIR)/libl4sys.p.a
endif
VBoxDD2_LIBS.darwin += $(LIB_REM)
VBoxDD2_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD2.dylib
VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined
VBoxDD2_LDFLAGS.l4 = -Wl,--no-undefined
ifdef VBOX_WITH_PXE_ROM
VBoxDD2_DEFS += VBOX_WITH_PXE_ROM
endif
#
# VBoxDDR0 (sysmod)
#
VBoxDDR0_TEMPLATE = VBoxR0
VBoxDDR0_DEFS.darwin.x86= VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 VBOX_WITH_2X_4GB_ADDR_SPACE
VBoxDDR0_DEFS = IN_RT_R0 VBOX_WITH_HGCM # - WTF is IN_RT_R0 doing here?
VBoxDDR0_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
VBoxDDR0_INCS = build
VBoxDDR0_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
VBoxDDR0_SOURCES = \
build/VBoxDDR0.cpp \
Bus/DevPCI.cpp \
Bus/DevPciIch9.cpp \
Bus/MsiCommon.cpp \
Bus/MsixCommon.cpp \
Graphics/DevVGA.cpp \
Input/DevPS2.cpp \
Input/PS2K.cpp \
PC/DevACPI.cpp \
PC/DevPit-i8254.cpp \
PC/DevPIC.cpp \
PC/DevRTC.cpp \
PC/DevHPET.cpp \
Storage/DevATA.cpp \
Network/DevPCNet.cpp \
Serial/DevSerial.cpp \
Parallel/DevParallel.cpp \
VMMDev/VMMDevTesting.cpp \
\
Network/DrvIntNet.cpp \
Network/DrvDedicatedNic.cpp
VBoxDDR0_SOURCES.win += Parallel/DrvHostParallel.cpp
ifdef VBOX_WITH_E1000
VBoxDDR0_DEFS += VBOX_WITH_E1000
VBoxDDR0_SOURCES += \
Network/DevE1000.cpp \
Network/DevE1000Phy.cpp
endif
ifdef VBOX_WITH_VIRTIO
VBoxDDR0_DEFS += VBOX_WITH_VIRTIO
VBoxDDR0_SOURCES += \
VirtIO/Virtio.cpp \
Network/DevVirtioNet.cpp
endif
ifdef VBOX_WITH_NETSHAPER
VBoxDDR0_DEFS += VBOX_WITH_NETSHAPER
VBoxDDR0_SOURCES += \
Network/DrvNetShaper.cpp
endif
ifdef VBOX_WITH_HGSMI
VBoxDDR0_DEFS += VBOX_WITH_HGSMI
endif
ifdef VBOX_WITH_WDDM
VBoxDDR0_DEFS += VBOX_WITH_WDDM
endif
ifdef VBOX_WITH_VDMA
VBoxDDR0_DEFS += VBOX_WITH_VDMA
endif
ifdef VBOX_WITH_CRHGSMI
VBoxDDR0_DEFS += VBOX_WITH_CRHGSMI
endif
ifdef VBOXWDDM_WITH_VBVA
VBoxDDR0_DEFS += VBOXWDDM_WITH_VBVA
endif
ifdef VBOX_VDMA_WITH_WATCHDOG
VBoxDDR0_DEFS += VBOX_VDMA_WITH_WATCHDOG
endif
ifdef VBOX_WITH_VUSB
VBoxDDR0_DEFS += VBOX_WITH_VUSB
VBoxDDR0_SOURCES += \
USB/DevOHCI.cpp
endif
ifdef VBOX_WITH_USB
VBoxDDR0_DEFS += VBOX_WITH_USB
if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
VBoxDDR0_DEFS += VBOX_WITH_EHCI_IMPL
VBoxDDR0_SOURCES += \
USB/DevEHCI.cpp
endif
endif
if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
VBoxDDR0_SOURCES += \
Bus/DevPciRaw.cpp
endif
ifdef VBOX_WITH_AHCI
VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
VBoxDDR0_SOURCES += \
Storage/DevAHCI.cpp
endif
ifdef VBOX_WITH_BUSLOGIC
VBoxDDR0_DEFS += VBOX_WITH_BUSLOGIC
VBoxDDR0_SOURCES += \
Storage/DevBusLogic.cpp
endif
ifdef VBOX_WITH_LSILOGIC
VBoxDDR0_DEFS += VBOX_WITH_LSILOGIC
VBoxDDR0_SOURCES += \
Storage/DevLsiLogicSCSI.cpp
endif
ifdef VBOX_WITH_HGSMI
VBoxDDR0_DEFS += VBOX_WITH_HGSMI
endif
ifdef VBOX_WITH_VIDEOHWACCEL
VBoxDDR0_DEFS += VBOX_WITH_VIDEOHWACCEL
endif
if1of ($(VBOX_LDR_FMT), pe lx)
VBoxDDR0_LIBS = \
$(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
$(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
endif
ifdef VBOX_WITH_RAW_MODE
#
# VBoxDD2GC (LGPL sysmod)
#
VBoxDD2GC_TEMPLATE = VBoxRc
VBoxDD2GC_DEFS =
VBoxDD2GC_INCS = build
VBoxDD2GC_SOURCES = \
PC/DevAPIC.cpp \
PC/DevIoApic.cpp \
PC/DevSMC.cpp
if1of ($(VBOX_LDR_FMT32), pe lx)
VBoxDD2GC_LIBS = \
$(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
$(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
endif
endif
#
# VBoxDD2R0 (LGPL sysmod)
#
VBoxDD2R0_TEMPLATE = VBoxR0
VBoxDD2R0_DEFS = IN_RT_R0
VBoxDD2R0_INCS = build
VBoxDD2R0_SOURCES = \
build/VBoxDD2R0.cpp \
PC/DevAPIC.cpp \
PC/DevIoApic.cpp \
PC/DevSMC.cpp
if1of ($(VBOX_LDR_FMT), pe lx)
VBoxDD2R0_LIBS = \
$(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
$(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
endif
#
# Ring-0 Services (library, linked into VMMR0.r0)
#
ServicesR0_TEMPLATE = VBoxR0
ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0 $(if $(VBOX_WITH_PCI_PASSTHROUGH),IN_PCIRAW_R0,)
ServicesR0_SOURCES = \
Network/SrvIntNetR0.cpp \
$(if $(VBOX_WITH_PCI_PASSTHROUGH),Bus/SrvPciRawR0.cpp,)
Network/SrvIntNetR0.cpp_CXXFLAGS := $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
#
# Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
#
ifdef VBOX_WITH_TESTCASES
PROGRAMS += tstIntNetR0
tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
tstIntNetR0_DEFS = IN_INTNET_R0
tstIntNetR0_SOURCES = \
Network/testcase/tstIntNetR0.cpp
ifneq ($(KBUILD_TARGET),win)
Network/testcase/tstIntNetR0.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
endif
endif
#
# Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
#
ifdef VBOX_WITH_TESTCASES
PROGRAMS += tstIntNet-1
tstIntNet-1_TEMPLATE = VBOXR3TSTEXE
tstIntNet-1_SOURCES = \
Network/testcase/tstIntNet-1.cpp \
Network/Pcap.cpp
endif
#
# EEPROM device unit test requires cppunit
#
ifdef VBOX_WITH_CPPUNIT_TESTCASES
ifdef VBOX_WITH_E1000
PROGRAMS += tstDevEEPROM
tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE
tstDevEEPROM_SOURCES = \
Network/testcase/tstDevEEPROM.cpp
tstDevEEPROM_LIBS = \
$(TARGET_VBoxDD)
PROGRAMS += tstDevPhy
tstDevPhy_TEMPLATE = VBOXCPPUNITEXE
tstDevPhy_SOURCES = \
Network/testcase/tstDevPhy.cpp \
Network/DevE1000Phy.cpp
tstDevPhy_DEFS = PHY_UNIT_TEST
endif
endif
endif # !VBOX_ONLY_EXTPACKS
if defined(VBOX_WITH_EXTPACK_PUEL) && defined(VBOX_WITH_EXTPACK_PUEL_BUILD)
#
# The EHCI (USB 2.0) Extension Pack Modules.
#
if defined(VBOX_WITH_USB)
DLLS += VBoxEhciR3
VBoxEhciR3_TEMPLATE = VBoxR3ExtPackPuel
VBoxEhciR3_SOURCES = USB/DevEHCI.cpp
SYSMODS += VBoxEhciR0
VBoxEhciR0_TEMPLATE = VBoxR0ExtPackPuel
VBoxEhciR0_SOURCES = USB/DevEHCI.cpp
ifdef VBOX_WITH_RAW_MODE
SYSMODS += VBoxEhciRC
VBoxEhciRC_TEMPLATE = VBoxRcExtPackPuel
VBoxEhciRC_SOURCES = USB/DevEHCI.cpp
endif
endif
if defined(VBOX_WITH_PCI_PASSTHROUGH)
DLLS += VBoxPciRawR3
VBoxPciRawR3_TEMPLATE = VBoxR3ExtPackPuel
VBoxPciRawR3_SOURCES = Bus/DevPciRaw.cpp
DLLS += VBoxPciRawDrv
VBoxPciRawDrv_TEMPLATE = VBoxR3ExtPackPuel
VBoxPciRawDrv_SOURCES = Bus/DrvPciRaw.cpp
SYSMODS += VBoxPciRawR0
VBoxPciRawR0_TEMPLATE = VBoxR0ExtPackPuel
VBoxPciRawR0_SOURCES = Bus/DevPciRaw.cpp
Bus/DevPciRaw.cpp_INCS = Bus
endif
#
# The Intel PXE rom.
#
INSTALLS += VBoxExtPackPuelInsRoms
VBoxExtPackPuelInsRoms_TEMPLATE = VBoxInsExtPackPuel
VBoxExtPackPuelInsRoms_SOURCES = PC/PXE/PXE-Intel.rom=>PXE-Intel.rom
endif # VBOX_WITH_EXTPACK_PUEL
include $(FILE_KBUILD_SUB_FOOTER)