Makefile.kmk revision 5dcae142d05d0d6307e097f026b53a048b8ef949
5383c976362d5b18656cf7b9248b2063a764a203vboxsync# Top-level makefile for the devices, drivers and services.
c7814cf6e1240a519cbec0441e033d0e2470ed00vboxsync# Copyright (C) 2006-2007 Sun Microsystems, Inc.
5383c976362d5b18656cf7b9248b2063a764a203vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
5383c976362d5b18656cf7b9248b2063a764a203vboxsync# available from http://www.virtualbox.org. This file is free software;
5383c976362d5b18656cf7b9248b2063a764a203vboxsync# you can redistribute it and/or modify it under the terms of the GNU
5383c976362d5b18656cf7b9248b2063a764a203vboxsync# General Public License (GPL) as published by the Free Software
5383c976362d5b18656cf7b9248b2063a764a203vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
5383c976362d5b18656cf7b9248b2063a764a203vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
5383c976362d5b18656cf7b9248b2063a764a203vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
5383c976362d5b18656cf7b9248b2063a764a203vboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
5383c976362d5b18656cf7b9248b2063a764a203vboxsync# Clara, CA 95054 USA or visit http://www.sun.com if you need
5383c976362d5b18656cf7b9248b2063a764a203vboxsync# additional information or have any questions.
5383c976362d5b18656cf7b9248b2063a764a203vboxsyncSUB_DEPTH = ../../..
5383c976362d5b18656cf7b9248b2063a764a203vboxsyncinclude $(KBUILD_PATH)/subheader.kmk
5383c976362d5b18656cf7b9248b2063a764a203vboxsyncVBOX_PATH_DEVICES_SRC := $(PATH_SUB_CURRENT)
5383c976362d5b18656cf7b9248b2063a764a203vboxsync# Include sub-makefiles.
5383c976362d5b18656cf7b9248b2063a764a203vboxsyncinclude $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
5383c976362d5b18656cf7b9248b2063a764a203vboxsyncifdef VBOX_WITH_VMI
5383c976362d5b18656cf7b9248b2063a764a203vboxsync include $(PATH_SUB_CURRENT)/PC/VMI/Makefile.kmk
d1966fe9681e9a100f8c895f08e450fc32dafd48vboxsyncinclude $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
5383c976362d5b18656cf7b9248b2063a764a203vboxsyncinclude $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
5383c976362d5b18656cf7b9248b2063a764a203vboxsyncinclude $(PATH_SUB_CURRENT)/Storage/testcase/Makefile.kmk
f1a03f23d2b1cd7569d8e96ca52a725ef39a83c9vboxsyncifndef VBOX_OSE
f1a03f23d2b1cd7569d8e96ca52a725ef39a83c9vboxsync include $(PATH_SUB_CURRENT)/Storage/VBoxHDDFormats/Makefile.kmk
f1a03f23d2b1cd7569d8e96ca52a725ef39a83c9vboxsyncifdef VBOX_WITH_EFI
f1a03f23d2b1cd7569d8e96ca52a725ef39a83c9vboxsync include $(PATH_SUB_CURRENT)/EFI/Thunk/Makefile.kmk
f1a03f23d2b1cd7569d8e96ca52a725ef39a83c9vboxsyncifdef VBOX_WITH_INTEL_PXE
f1a03f23d2b1cd7569d8e96ca52a725ef39a83c9vboxsync include $(PATH_SUB_CURRENT)/PC/PXE/Makefile.kmk
f1a03f23d2b1cd7569d8e96ca52a725ef39a83c9vboxsync # Subdir with complex makefile.
f1a03f23d2b1cd7569d8e96ca52a725ef39a83c9vboxsync SUBDIRS_LIBRARIES += $(VBOX_PATH_DEVICES_SRC)/PC/Etherboot-src
f1a03f23d2b1cd7569d8e96ca52a725ef39a83c9vboxsync SUBDIRS_CLEAN += $(VBOX_PATH_DEVICES_SRC)/PC/Etherboot-src
f1a03f23d2b1cd7569d8e96ca52a725ef39a83c9vboxsync # Disable the unsafe pass order optimizations.
f1a03f23d2b1cd7569d8e96ca52a725ef39a83c9vboxsync KBUILD_SAFE_PARALLEL = 1
d1966fe9681e9a100f8c895f08e450fc32dafd48vboxsync# Main targets.
f1a03f23d2b1cd7569d8e96ca52a725ef39a83c9vboxsyncLIBRARIES += DevicesR3 Drivers ServicesR0
5383c976362d5b18656cf7b9248b2063a764a203vboxsyncDLLS += VBoxDDU VBoxDD VBoxDD2
280173a9a1d01b33c087a762ffb9e522efe5c0d5vboxsyncSYSMODS += VBoxDDGC VBoxDD2GC VBoxDDR0 VBoxDD2R0
5383c976362d5b18656cf7b9248b2063a764a203vboxsync# VBoxDDU (shared object)
d1966fe9681e9a100f8c895f08e450fc32dafd48vboxsyncVBoxDDU_TEMPLATE = VBOXR3
5b05f43fc07d02aa6997b203bad9cf92633b89d5vboxsyncVBoxDDU_NAME = $(basename $(notdir $(LIB_DDU)))
d1966fe9681e9a100f8c895f08e450fc32dafd48vboxsyncVBoxDDU_INST.darwin = $(INST_DLL) $(INST_TESTCASE)
0fbb26e55fd320c3d5c5b4bfe85e578c867c657avboxsyncVBoxDDU_DEFS = IN_VBOXDDU
5383c976362d5b18656cf7b9248b2063a764a203vboxsyncifdef VBOX_WITH_USB
5383c976362d5b18656cf7b9248b2063a764a203vboxsync VBoxDDU_DEFS += VBOX_WITH_USB IN_USBLIB
5383c976362d5b18656cf7b9248b2063a764a203vboxsync VBoxDDU_SDKS.win = WINPSDK W2K3DDK
5383c976362d5b18656cf7b9248b2063a764a203vboxsync ifdef VBOX_WITH_EHCI
5383c976362d5b18656cf7b9248b2063a764a203vboxsync VBoxDDU_DEFS += VBOX_WITH_EHCI
VBoxDDU_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
VBoxDDU_SDKS.win = WINPSDK
VBoxDDU_INCS.os2 += \
$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
$(L4_LIBDIR)/libl4sys.p.a
VBoxDDU_LDFLAGS.darwin += -framework IOKit
VBoxDDU_LDFLAGS.linux = -Wl,--no-undefined
VBoxDDU_LDFLAGS.l4 = -Wl,--no-undefined
VBoxDD_SDKS.win = WINPSDK DXSDK W2K3DDK VBOX_NTDLL
$(PATH_LIB)/VBoxDD2.lib \
$(PATH_SDK_DXSDK_LIB)/dxguid.lib
$(L4_LIBDIR)/libl4sys.p.a
VBoxDD_LIBS.darwin += \
VBoxDD_LDFLAGS.linux = -Wl,--no-undefined
VBoxDD_LDFLAGS.l4 = -Wl,--no-undefined
$(L4_LIBDIR)/libl4sys.p.a
VBoxDD2_LIBS.darwin += $(LIB_REM)
VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined
VBoxDD2_LDFLAGS.l4 = -Wl,--no-undefined
DevicesR3_SDKS.win = WINPSDK W2K3DDK
DevicesR3_DEFS.darwin.x86 = VBOX_WITH_2X_4GB_ADDR_SPACE
DevicesR3_DEFS.linux += _GNU_SOURCE
DevicesR3_DEFS.l4 += _GNU_SOURCE
DevicesR3_SOURCES += PC/DevHPET.cpp
DevicesR3_SOURCES += PC/DevSMC.cpp
DevicesR3_SOURCES += PC/DevLPC.cpp
DevicesR3_SOURCES += EFI/DevEFI.cpp
DevicesR3_INTERMEDIATES += $(DevicesR3_0_OUTDIR)/VBoxDD-dtrace.h
DevicesR3_CLEAN += $(PATH_DevicesR3)/vboxdsl.hex
PC/ACPI/VBoxAcpi.cpp_INCS = $(PATH_DevicesR3)
Bus/DevPCI.cpp_INCS = Bus
Graphics/DevVGA.cpp_INCS = $(PATH_VgaBiosBin)
VBoxDDGC_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
VBoxDDGC_SOURCES += PC/DevHPET.cpp
VBoxDDR0_DEFS.darwin.x86= VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 VBOX_WITH_2X_4GB_ADDR_SPACE
VBoxDDR0_SOURCES += PC/DevHPET.cpp
Drivers_SDKS.win = WINPSDK W2K3DDK
Storage/DrvHostDVD.cpp_SDKS.win = W2K3DDK
Drivers_DEFS.win += _WIN32_WINNT=0x0510
VBOX_SLIRP_BSD_SOURCES += Network/slirp/bsd/kern/kern_mbuf.c
VBOX_SLIRP_BSD_SOURCES += Network/slirp/bsd/kern/uipc_mbuf.c
VBOX_SLIRP_BSD_SOURCES += Network/slirp/bsd/kern/uipc_mbuf2.c
VBOX_SLIRP_SOURCES += Network/slirp/mbuf.c \
$(file)_INCS += $(1)/slirp/bsd/sys
$(file)_INCS += $(1)/slirp/bsd/sys/sys
$(file)_INCS += $(1)/slirp/bsd/$(BSD_ARCH)/include
$(file)_INCS += $(1)/slirp/bsd/netinet
$(file)_INCS += $(1)/slirp/libalias
$(file)_INCS += $(1)/slirp/libalias
$(file)_INCS += $(1)/slirp/dnsproxy
$(file)_INCS += $(1)/slirp/dnsproxy
Drivers_SOURCES += Audio/ossaudio.c
Drivers_SOURCES += Network/solaris/vbox-libdlpi.cpp
Drivers_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
Drivers_DEFS.linux += VBOX_WITH_ALSA
Drivers_DEFS.linux += VBOX_WITH_PULSE
Drivers_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
Drivers_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
Drivers_DEFS.linux += \
Drivers_DEFS.l4 += VUSB_HAVE_USBPROXY_DEVICE
Drivers_SOURCES.l4 += \
Drivers_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
Drivers_SOURCES.os2 += \
Drivers_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
Drivers_SOURCES.win += \
Drivers_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
USB/solaris/$(if $(VBOX_WITH_NEW_USB_CODE_ON_SOLARIS),USBProxyDevice2-solaris.cpp,USBProxyDevice-solaris.cpp)
# Ring-0 Services (library, linked into VMMR0.r0)
ServicesR0_DEFS.win.amd64 += RT_WITH_W64_UNWIND_HACK
include $(KBUILD_PATH)/subfooter.kmk