Makefile.kmk revision 9faa0437c9a57427990bef6d4f6cd5df41be47f0
1375N/A# available from http://www.virtualbox.org. This file is free software;
1375N/Ainclude $(KBUILD_PATH)/subheader.kmk
1375N/A# Make sure our Config.kmk is included.
1375N/A include $(PATH_SUB_CURRENT)/Config.kmk
1375N/Ainclude $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
1375N/Ainclude $(PATH_SUB_CURRENT)/Input/testcase/Makefile.kmk
1375N/A include $(PATH_SUB_CURRENT)/PC/PXE/Makefile.kmk
1375N/A include $(PATH_SUB_CURRENT)/PC/ipxe/Makefile.kmk
1375N/A include $(PATH_SUB_CURRENT)/BiosCommonCode/Makefile.kmk
1375N/A include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
1375N/A include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
1375N/A VBoxDDU_INST.darwin = $(INST_DLL) $(INST_TESTCASE)
1375N/A VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
1375N/A VBoxDDU_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
1375N/A VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK)
VBoxDDU_INCS.os2 += \
$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
VBoxDDU_LIBS.win += \
$(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib
VBoxDDU_LDFLAGS.darwin += -framework IOKit
VBoxDDU_LDFLAGS.linux = -Wl,--no-undefined
VBoxDD_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
Storage/DrvHostDVD.cpp_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK)
VBoxDD_DEFS.win = _WIN32_WINNT=0x0510
VBoxDD_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
$(if $(VBOX_WITH_HGCM),VMMDev/VMMDevHGCM.cpp,) \
VBoxDD_LDFLAGS.linux = -Wl,--no-undefined
VBoxDD_SOURCES += build/VBoxDD.d
VBoxDD_SOURCES += Graphics/DevVGA-SVGA.cpp
VBoxDD_SOURCES += Graphics/DevVGA-SVGA3d-shared.cpp
VBoxDD_SOURCES += Graphics/DevVGA-SVGA3d-win.cpp
VBoxDD_SOURCES += Graphics/DevVGA-SVGA3d-ogl.cpp
VBoxDD_LIBS.linux += GL X11
VBoxDD_LDFLAGS.darwin += -framework OpenGL
Graphics/DevVGA-SVGA3d-ogl.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
VBoxDD_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
VBoxDD_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
VBoxDD_DEFS.linux += \
VBoxDD_SOURCES.linux += \
VBoxDD_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
VBoxDD_SOURCES.os2 += \
VBoxDD_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
VBoxDD_SOURCES.win += \
VBoxDD_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
VBoxDD_DEFS.freebsd += VUSB_HAVE_USBPROXY_DEVICE
$(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/UsbWebcam.cpp \
$(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/UsbWebcamDesc.cpp \
$(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/jpggen.cpp \
$(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/JPEGEnc.cpp_INCS = \
$(PATH_ROOT)/src/libs/jpeg-8a
VBoxDD_SOURCES.linux += \
include $(PATH_SUB_CURRENT)/Network/lwip/Makefile.kmk
include $(PATH_SUB_CURRENT)/Network/lwip-new/Makefile.kmk
Network/DevINIP.cpp_DEFS += VBOX_WITH_NEW_LWIP
VBoxDD_LWIP_INCS += Network # for lwipopts.h
VBoxDD, Network/lwip-new))
VBoxDD_SOURCES.linux += \
Storage/DrvVD.cpp_DEFS += VBOX_WITH_NEW_LWIP
Storage/DrvVD.cpp_INCS = $(LWIP_INCS)
VBoxDD_SOURCES += EFI/DevEFI.cpp
VBoxDD_SOURCES += Audio/DrvAudio.c \
VBoxDD_SOURCES += Audio/audio.c \
VBoxDD_DEFS.linux += VBOX_WITH_ALSA
VBoxDD_DEFS.linux += VBOX_WITH_WITH_PDM_AUDIO_DRIVER
VBoxDD_SOURCES.linux += \
VBoxDD_SOURCES.linux += \
VBoxDD_DEFS.linux += VBOX_WITH_PULSE
VBoxDD_DEFS.linux += VBOX_WITH_PDM_AUDIO_DRIVER
VBoxDD_SOURCES.linux += \
VBoxDD_SOURCES.linux += \
VBoxDD_DEFS.freebsd += VBOX_WITH_PULSE
VBOX_SLIRP_SOURCES += Network/slirp/resolv_conf_parser.c
VBOX_SLIRP_SOURCES += Network/slirp/bsd/kern/subr_sbuf.c
Network/slirp/misc.c_DEFS += $(if $(VBOX_NAT_MEM_DEBUG),VBOX_NAT_MEM_DEBUG,)
$(1)/slirp/bsd/sys \
$(1)/slirp/bsd/sys/sys \
$(1)/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/include \
$(1)/slirp/bsd/netinet \
$(1)/slirp/libalias
$(1)/slirp/libalias \
$(1)/slirp/dnsproxy
$(file)_INCS += $(1)/slirp/dnsproxy
$(filter-out Storage/DrvHostFloppy%, $(VBoxDD_SOURCES)) \
$(filter-out Storage/DrvHostFloppy%, $(VBoxDD_SOURCES)) \
VBoxDD_SOURCES.linux += \
VBoxDD_SOURCES.linux += \
VBoxDD_SOURCES.linux += \
VBoxDD_SOURCES := $(filter-out Storage/DrvHost%, $(VBoxDD_SOURCES))
VBoxDD_SOURCES := $(filter-out Storage/DrvHostFloppy%, $(VBoxDD_SOURCES))
VBoxDD_SOURCES += Audio/DrvHostOssAudio.c
VBoxDD_SOURCES += Audio/ossaudio.c
VBoxDD_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
VBoxDD_DEFS.win += VBOX_WITH_PDM_AUDIO_DRIVER
VBoxDD_SOURCES.win += \
VBoxDD_SOURCES.win += \
VBoxDD_SOURCES.win += \
VBoxDD_DEFS.win += VBOX_WITH_VIRTUALKD
VBoxDD_SOURCES.win += \
VBoxDD_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
$(PATH_STAGE_LIB)/VBoxDD2.lib \
$(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
VBoxDD_LIBS.darwin += \
VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/vboxdsl.hex
$(VBoxDD_0_OUTDIR)/vboxaml.hex \
$(VBoxDD_0_OUTDIR)/vboxaml.aml \
$(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex \
$(VBoxDD_0_OUTDIR)/vboxssdt-standard.aml \
$(VBoxDD_0_OUTDIR)/vboxssdt-standard.aml.tmp \
$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex \
$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml \
$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml.tmp \
$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml.pre
$(VBoxDD_0_OUTDIR)/vboxaml.hex \
$(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex \
$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex
$(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtStandard/g" \
$$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex: $(PATH_SUB_CURRENT)/PC/vbox-cpuhotplug.dsl | $$(dir $$@)
$(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtCpuHotPlug/g" \
PC/ACPI/VBoxAcpi.cpp_INCS = $(VBoxDD_0_OUTDIR)
Bus/DevPCI.cpp_INCS = Bus
Bus/DevPciIch9.cpp_INCS = Bus
Bus/MsiCommon.cpp_INCS = Bus
Bus/MsixCommon.cpp_INCS = Bus
Bus/DevPciRaw.cpp_INCS = Bus
Graphics/DevVGA.cpp_INCS = $(VgaBiosBin_0_OUTDIR)
VBoxDDGC_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
VBoxDD2_LIBS.darwin += $(LIB_REM)
VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined
VBoxDDR0_DEFS.darwin.x86= VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 VBOX_WITH_2X_4GB_ADDR_SPACE
VBoxDDR0_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
VBoxDDR0_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
# Ring-0 Services (library, linked into VMMR0.r0)
$(if $(VBOX_WITH_PCI_PASSTHROUGH),Bus/SrvPciRawR0.cpp,)
Network/SrvIntNetR0.cpp_CXXFLAGS := $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
Network/testcase/tstIntNetR0.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
tstIntNetHardened-1_SOURCES = ../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
PROGRAMS.darwin += VBoxSmcUtil-darwin
VBoxSmcUtil-darwin_SOURCES = EFI/VBoxSmcUtil-darwin.cpp
VBoxPciRawR3_SOURCES = Bus/DevPciRaw.cpp
VBoxPciRawDrv_SOURCES = Bus/DrvPciRaw.cpp
VBoxPciRawR0_SOURCES = Bus/DevPciRaw.cpp
Bus/DevPciRaw.cpp_INCS = Bus
$(filter-out -fno-common,$(TEMPLATE_VBOXR3_CFLAGS.darwin))
VBoxSVGA3D_DEFS.x86 += __i386__
VBoxSVGA3D_DEFS.amd64 += __x86_64__
VBoxSVGA3D_DEFS.win += \
VBoxSVGA3D_INCS.win := \
-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3D.dylib