Config.kmk revision b462aa2f4cc3e48140d004c1c6245a813b362f52
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# The global build configuration file for VBox.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# This file gets included by all makefiles through the
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# include $(KBUILD_PATH)/header.kmk statement.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Copyright (C) 2006-2010 Oracle Corporation
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# available from http://www.virtualbox.org. This file is free software;
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# you can redistribute it and/or modify it under the terms of the GNU
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# General Public License (GPL) as published by the Free Software
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_ROOT_CONFIG_KMK_INCLUDED = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# kBuild stuff
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Experimental
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync.SECONDTARGETEXPANSION:
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable automatic installation of what's built.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncKBUILD_DO_AUTO_INSTALL := 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncPASSES := $(filter-out PACKING,$(PASSES)) PACKING # temporary hack
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Modify the order of the INSTALLS and OTHERS passes.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncDEFAULT_PASSES := BLDPROGS LIBRARIES DLLS BINARIES INSTALLS OTHERS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Modify the build types.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## @todo checked and dbgopt
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncKBUILD_BLD_TYPES = release profile debug kprofile
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## 'strict' builds
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Same as release builds, except that RT_STRICT and VBOX_STRICT are defined,
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# meaning all assertions are in action. (Appending means '.strict' props take
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# precedence in argument lists.)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncKBUILD_BLD_TYPES += strict
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncBLD_TYPE_strict_EXTENDS = release
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncBLD_TYPE_strict_EXTENDS_BY = appending
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## 'dbgopt' builds
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Same as debug builds, except that compiler optimizations are enabled. This
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# intended for cases where all the debug facitities (logging, assertions, ++)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# is wanted but actual source level debugging as important as execution speed.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncKBUILD_BLD_TYPES += dbgopt
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncBLD_TYPE_dbgopt_EXTENDS = debug
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncBLD_TYPE_dbgopt_EXTENDS_BY = appending
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Temporary hack for kBuild ticket #83.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## @todo kBuild: remove after closing ticket #83.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncPROPS_ACCUMULATE_L_LNK += INTERMEDIATES
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncPROPS_PROGRAMS_ACCUMULATE_L += INTERMEDIATES
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncPROPS_LIBRARIES_ACCUMULATE_L += INTERMEDIATES
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncPROPS_DLLS_ACCUMULATE_L += INTERMEDIATES
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncPROPS_SYSMODS_ACCUMULATE_L += INTERMEDIATES
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncPROPS_MISCBINS_ACCUMULATE_L += INTERMEDIATES
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Misc names used bye the install paths below.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_PUEL_MANGLED_NAME := Oracle_VM_VirtualBox_Extension_Pack
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Install paths.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncPATH_INS = $(PATH_OUT)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(KBUILD_TARGET),darwin)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_DIST = dist/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_SDK = $(INST_DIST)sdk/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # the bundles
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_VIRTUALBOX = $(INST_DIST)VirtualBox.app/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_VBOXDRV = $(INST_DIST)VBoxDrv.kext/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_VBOXNETFLT = $(INST_DIST)VBoxNetFlt.kext/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_VBOXNETADP = $(INST_DIST)VBoxNetAdp.kext/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_VBOXUSB = $(INST_DIST)VBoxUSB.kext/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # put everything in the VirtualBox app bundle.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_BIN = $(INST_VIRTUALBOX)Contents/MacOS/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_DLL = $(INST_BIN)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_SYS = $(INST_BIN)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_TESTCASE = $(INST_BIN)testcase/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_ADDITIONS = $(INST_BIN)additions/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_ADDITIONS_ISO = $(INST_BIN)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # other paths
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_TESTSUITE = testsuite/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_LIB = lib/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_ADDITIONS_LIB = $(INST_LIB)/additions/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_BIN = bin/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_DIST = $(INST_BIN)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_DLL = $(INST_BIN)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_SDK = $(INST_BIN)sdk/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_DLL = $(INST_BIN)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_SYS = $(INST_BIN)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_TESTCASE = $(INST_BIN)testcase/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_ADDITIONS = $(INST_BIN)additions/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_ADDITIONS_ISO = $(INST_ADDITIONS)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_TESTSUITE = testsuite/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_LIB = lib/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync INST_ADDITIONS_LIB = $(INST_LIB)additions/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncINST_EXTPACK = $(INST_BIN)ExtensionPacks/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncINST_EXTPACK_CERTS = $(INST_BIN)ExtPackCertificates/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncINST_EXTPACK_PUEL = $(INST_EXTPACK)$(VBOX_PUEL_MANGLED_NAME)/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncINST_PACKAGES = packages/
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncPATH_BIN = $(patsubst %/,%,$(PATH_INS)/$(INST_BIN))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncPATH_DLL = $(patsubst %/,%,$(PATH_INS)/$(INST_DLL))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncPATH_SYS = $(patsubst %/,%,$(PATH_INS)/$(INST_SYS))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncPATH_LIB = $(patsubst %/,%,$(PATH_INS)/$(INST_LIB))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncPATH_DOC = $(PATH_OUT)/doc
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_PATH_SDK = $(patsubst %/,%,$(PATH_INS)/$(INST_SDK))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_PATH_DIST = $(patsubst %/,%,$(PATH_INS)/$(INST_DIST))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_PATH_TESTSUITE = $(patsubst %/,%,$(PATH_INS)/$(INST_TESTSUITE))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_PATH_ADDITIONS = $(patsubst %/,%,$(PATH_INS)/$(INST_ADDITIONS))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_PATH_ADDITIONS_ISO = $(patsubst %/,%,$(PATH_INS)/$(INST_ADDITIONS_ISO))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_PATH_ADDITIONS_LIB = $(patsubst %/,%,$(PATH_INS)/$(INST_ADDITIONS_LIB))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_PATH_EXTPACK_PUEL= $(patsubst %/,%,$(PATH_INS)/$(INST_EXTPACK_PUEL))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_PATH_PACKAGES = $(patsubst %/,%,$(PATH_INS)/$(INST_PACKAGES))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Delete targets on failure.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync.DELETE_ON_ERROR:
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Notify about important kBuild updates.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifneq ($(call if-expr, $(KMK_REVISION) >= 2274 && $(KBUILD_KMK_REVISION) >= 2206,fine,old),fine)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync $(error You must update kBuild! KMK_REVISION=$(KMK_REVISION) KBUILD_KMK_REVISION=$(KBUILD_KMK_REVISION) KBUILD_PATH=$(KBUILD_PATH))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Define USERNAME early on.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifndef USERNAME
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync USERNAME = $(USER)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync $(warning Warning: You must have USERNAME or USER in your environment.)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# The VirtualBox version.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Major version.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_VERSION_MAJOR = 4
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Minor version.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_VERSION_MINOR = 0
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# This is the current build number. It should be increased every time we publish a
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# new build. The define is available in every source file. Only even build numbers
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# will be published, odd numbers are set during development.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_VERSION_BUILD = 0
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Full version string (may include more than just x.y.z, but no spaces or other problematic chars).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_VERSION_STRING = $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)_ALPHA
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Force the additions.sh script to get an exact additions build when we're doing the release.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(int-mod $(VBOX_VERSION_BUILD),2),0)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# export VBOX_ADDITIONS_SH_MODE = release
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# export VBOX_DOCUMENTATION_SH_MODE = release
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# export VBOX_EFI_SH_MODE = release
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Some info on the vendor
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_VENDOR = Oracle Corporation
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_VENDOR_SHORT = Oracle
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_PRODUCT = Oracle VM VirtualBox
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Not all could be done automatically. Here is a list of known places which
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# have to be updated manually, please keep this up to date:
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# src/VBox/RDP/webclient/flash/com/sun/network/rdp/Version.as
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# src/VBox/Frontends/VirtualBox/src/settings/global/VBoxGLSettingsLanguage.cpp
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# src/VBox/Additions/WINNT/Installer/ISO/ReadmeDrivers.txt
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# */*.inf, */*.rc
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Maybe we want set this manually.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_C_YEAR = $(date-utc %Y)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# The VirtualBox package type.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(KBUILD_TARGET),win)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PACKAGE_OS = WINDOWS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncelse ifeq ($(KBUILD_TARGET),linux)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PACKAGE_OS = LINUX
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncelse ifeq ($(KBUILD_TARGET),darwin)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PACKAGE_OS = DARWIN
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncelse ifeq ($(KBUILD_TARGET),solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PACKAGE_OS = SOLARIS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncelse ifeq ($(KBUILD_TARGET),os2)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PACKAGE_OS = OS2
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncelse if1of ($(KBUILD_TARGET), dragonfly freebsd netbsd openbsd)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PACKAGE_OS = BSD
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync $(error Cannot determine VBOX_PACKAGE_OS)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(KBUILD_TARGET_ARCH),x86)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PACKAGE_ARCH = 32BITS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PACKAGE_ARCH = 64BITS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# distribution, mostly for Linux/Solaris where we support different distributions
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# this strip will be overridden by the Linux packaging scripts
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_PACKAGE_DIST ?= GENERIC
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Full string
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_PACKAGE_STRING = $(VBOX_PACKAGE_OS)_$(VBOX_PACKAGE_ARCH)_$(VBOX_PACKAGE_DIST)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# The VirtualBox Configuration Defaults.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# We try to document all the build configuration options here, thing which
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# aren't enabled by default is left commented out just to show that they
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# exist and which value they should have (usually 1, but anyway).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## @name Additions
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# This indicates that additions (of some kind or another) is being _built_.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# VBOX_WITHOUT_ADDITIONS overrides it.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#if1of ($(KBUILD_TARGET), freebsd linux os2 solaris win)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), freebsd linux solaris win)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_ADDITIONS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Build the optional ring-0 part of the additions for syntax checking.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# (Except when cross-building on linux since we're using /usr/src/...)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifn1of ($(KBUILD_TARGET).$(KBUILD_HOST_ARCH).$(KBUILD_TARGET_ARCH), linux.x86.amd64 linux.amd64.x86)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_ADDITION_DRIVERS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Build X11 additions. Can be disabled separately.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), dragonfly freebsd linux netbsd openbsd solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_X11_ADDITIONS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the building of shared folders in the windows additions.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_WIN32_ADDITIONS_SHAREDFOLDERS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Take the binaries of the OS/2 Additions.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_OS2_ADDITIONS_BIN = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Use additions from the build server.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Include additions in the package
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_ADDITIONS_PACKING = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Only build the additions (for the additions build server).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_ONLY_ADDITIONS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_ADDITIONS_ONLY # typical mistake.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync $(error It is VBOX_ONLY_ADDITIONS=1 not VBOX_ADDITIONS_ONLY!)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Don't bother with additions, overrides VBOX_WITH_ADDITIONS.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# This is not used by makefiles, only Config.kmk, see below.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_ONLY_SDK
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITHOUT_ADDITIONS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Don't create the additions ISO.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# (Used by the additions build server, don't invert it.)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITHOUT_ADDITIONS_ISO = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## @name Documentation
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# The documentation
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_DOCS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Use documentation from the build server.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITH_DOCS_FROM_BUILD_SERVER = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Include documentation in the package
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_DOCS_PACKING = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Include CHM when building docs (unset in LocalConfig.kmk to suppress CHM)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifn1of ($(KBUILD_TARGET), linux)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DOCS_CHM = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Don't bother with documentation, overrides VBOX_WITH_DOCS.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# This is not used by makefiles, only Config.kmk, see below.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITHOUT_DOCS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Only build the documentation (for the documentation build server).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_ONLY_DOCS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_DOCS_ONLY # typical mistake.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync $(error It is VBOX_ONLY_DOCS=1 not VBOX_DOCS_ONLY!)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## @name VMM related settings.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the tradition raw-mode virtualization.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_RAW_MODE = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable support for 64-bit guests.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_64_BITS_GUESTS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable multi-core VCPUs.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_MULTI_CORE = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Activate this to force the VM to pre-allocate the guest RAM before startup
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_PREALLOC_RAM_BY_DEFAULT =
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the debugger.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_DEBUGGER = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the debugger GUI.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_DEBUGGER_GUI = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the PDM Lock and let I/O threads call into the PICs.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# TODO: Eliminate VBOX_WITH_PDM_LOCK.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_PDM_LOCK = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## @name Devices, Drivers,
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Build the Host Guest Communication Manager component.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_HGCM = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## Build the bugcheck detection code.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITH_GUEST_BUGCHECK_DETECTION =
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the USB feature. This includes VBOX_WITH_VUSB!
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_USB = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the USB 1.1 controller plus virtual USB HID devices.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_VUSB = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the USB 2.0 controller.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_EHCI = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the ISCSI feature.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_ISCSI = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable INIP support in the ISCSI feature.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_INIP = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the E1000 feature.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_E1000 = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the Virtio feature.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_VIRTIO = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable ALSA support for Linux.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_ALSA = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable Pulse support for Linux.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_PULSE = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable statically linked dbus support
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), linux solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DBUS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable building PAM modules
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), linux solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_PAM = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Disable WINMM support for Windows (not implemented).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_WINMM =
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enabled internal networking.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_INTERNAL_NETWORKING = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable Host Guest Shared Memory Interface
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_HGSMI = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable Video 2D Acceleration
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), darwin linux win freebsd)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VIDEOHWACCEL = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable Wddm Video driver for Vista+ guests
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_WDDM = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOXWDDM_WITH_VBVA = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_VDMA = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_CRHGSMI = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable VBVA lock
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_OLD_VBVA_LOCK = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Disable the Intel PXE ROM (uses Etherboot).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_INTEL_PXE =
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable EFI support
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_EFI = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Fetch EFI firmware image from the build server
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITH_EFIFW_FROM_BUILD_SERVER = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Include the EFI firmware into the package
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_EFIFW_PACKING = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Use kStuff for MACH-O and LX binary loading.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), darwin os2)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync IPRT_WITH_KSTUFF = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable Crossbow support for Solaris TAP driver.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_CROSSBOW = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable setuid wrapper for Solaris host DVD.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITH_SUID_WRAPPER = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the virtual SATA/AHCI controller
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_AHCI = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the new async completion manager
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_PDM_ASYNC_COMPLETION = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Temporary switch for enabling / disabling the new USB code on Darwin.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_NEW_USB_CODE_ON_DARWIN = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_WITH_USB
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VUSB = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the hal/sysfs USB code on Linux.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(KBUILD_TARGET),linux)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_USB_WITH_SYSFS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # Disabled for now
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # VBOX_USB_WITH_DBUS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_USB_WITH_INOTIFY = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Use the new VBI module on Solaris.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITH_SOLARIS_VBI = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable performance API.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_RESOURCE_USAGE_API = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable BusLogic SCSI host adapter
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_BUSLOGIC = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable LsiLogic SCSI host adapter
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_LSILOGIC = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable SCSI drivers
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_SCSI = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable this setting to force a fallback to default DMI data on configuration errors
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BIOS_DMI_FALLBACK =
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable MSI support in devices
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_MSI_DEVICES = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable host network interface API.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), darwin freebsd linux solaris win)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_HOSTNETIF_API = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## @name Other Component
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Build the installer.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_INSTALLER = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# The kernel driver/module and related runtime libraries.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_VBOXDRV = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# The main api.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_MAIN = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Set this to prefix all C symbols in XPCOM, to avoid dynamic linking problems
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# caused by our XPCOM library polluting the symbol namespace for system libs.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), linux solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_XPCOM_NAMESPACE_CLEANUP = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Set this to not use COM or XPCOM in places where it can be avoided.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITHOUT_COM = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# The webservices api.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_WEBSERVICES = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# The Qt 4 GUI.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_QTGUI = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Indicates the Qt is Cocoa based on the Mac.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(KBUILD_TARGET),darwin)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_COCOA_QT = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# The SDL based GUI.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_VBOXSDL = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Build VBoxSDL with secure label support.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(filter win.amd64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) # too much work with freetype and all that.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_SECURELABEL = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# The headless frontend.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_HEADLESS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the build of VRDP server.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_VRDP = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable support for video redirection VRDP channel.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_VRDP_VIDEO_CHANNEL = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable memory consumption limit in VRDP server.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_VRDP_SB_LIMIT = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Build the VRDP authentication modules.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_VRDP_AUTHMOD = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Build enhanced version of rdesktop.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_VRDP_RDESKTOP = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# The basic frontend (w/o Main).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_VBOXBFE = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## The Direct Framebuffer GUI.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITH_VBOXFB = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enables the Python<->XPCOM and Python<->COM bindings.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_PYTHON ?= 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), darwin linux solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # Enable Java<->XPCOM bridge + glue code
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_JXPCOM ?= 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), )
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # Enable Java<->MSCOM glue, bridge is provided by an external lib (Jacob)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_JMSCOM ?= 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), darwin linux solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # Enable Java<->JAX-WS bridge
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_JWS ?= 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Use XPIDL instead of XSLT stylesheet
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_JAVA_SUPPORT_IN_XPIDL ?=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Build against multiple Python versions present in the system
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_MULTIVERSION_PYTHON ?= 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the kchmviewer.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_KCHMVIEWER = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Build the testsuite.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_TESTSUITE = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Build the testcases.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_TESTCASES = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enables the ffmpeg module for recording test runs.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# TODO: Enable this for normal build server builds?
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#if1of ($(KBUILD_TARGET), linux)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# VBOX_WITH_FFMPEG = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable shared folders
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_SHARED_FOLDERS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable shared clipboard
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_SHARED_CLIPBOARD = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the host/guest information service (aka guest properties).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_GUEST_PROPS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable this to prevent the guest from writing guest properties.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_GUEST_PROPS_RDONLY_GUEST =
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the guest control service.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), darwin freebsd linux solaris win)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_GUEST_CONTROL = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable ballooning
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_MEMBALLOON = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable crOpenGL service
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), darwin freebsd linux solaris win)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_CROGL = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the VNC server in VBoxHeadless (GPL only).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITH_VNC = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## @name Networking
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Use VBoxNetFlt for host interface networking.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), darwin freebsd linux solaris win)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_NETFLT = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifeq ($(KBUILD_TARGET),solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # Disabled until some Nevada version ships the required headers.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # VBOX_WITH_NETFLT_CROSSBOW = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # Use VBoxNetAdp for host only networking.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync if1of ($(KBUILD_TARGET), darwin freebsd linux solaris) ## @todo this should be set and used on windows too.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_NETADP = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable Virtual Distributed Ethernet or not.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), freebsd linux)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VDE = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## @name Extension pack
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enables the extension pack feature.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_EXTPACK = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enables building of the Oracle VM VirtualBox Extension Pack, dubbed PUEL.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_EXTPACK_PUEL = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## @name Misc
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable Seamless mode
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_X11_SEAMLESS_GUEST = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enables all the doxgen bits.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_ALL_DOXYGEN_TARGETS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Set this to skip installing the redistributable compiler runtime.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITHOUT_COMPILER_REDIST = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Set this to enable user mode dtrace probes (darwin & solaris only).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), darwin)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DTRACE_R3 = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Set this to enable kernel driver dtrace probes (darwin & solaris only).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITH_DTRACE_R0DRV = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Set this to enable dtrace probes in platform agnostic kernel code.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITH_DTRACE_R0 = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Set this to enable dtrace probes raw-mode context code.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITH_DTRACE_RC = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Set this to enable support for dtrace probes in guest code.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITH_DTRACE_GST = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## @name Compiler and linker config
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# For treating compiler and linker warnings as errors where possible.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), darwin.x86 darwin.amd64 linux.x86 linux.amd64 win.x86 win.amd64)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_WARNINGS_AS_ERRORS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## @name Hardening
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enables hardening.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Most developers will want to disable this in their LocalConfig.kmk.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifn1of ($(KBUILD_TARGET), win)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_HARDENING = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Where the application files are (going to be) installed.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_PATH_APP_PRIVATE = /usr/lib/virtualbox
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_WITH_HARDENING
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync if1of ($(KBUILD_TARGET), solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PATH_APP_PRIVATE = /opt/VirtualBox/$(if-expr $(KBUILD_TARGET_ARCH) == "amd64",amd64,i386)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync else ifeq ($(KBUILD_TARGET),linux)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PATH_APP_PRIVATE = /opt/VirtualBox
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync else ifeq ($(KBUILD_TARGET),darwin)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PATH_APP_PRIVATE = /Applications/VirtualBox.app/Contents/MacOS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync else ifeq ($(KBUILD_TARGET),freebsd)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PATH_APP_PRIVATE = /usr/local/lib/virtualbox
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Where the architecture specific application files are (going to be) installed.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_PATH_APP_PRIVATE_ARCH = /usr/lib/virtualbox
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_WITH_HARDENING
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync if1of ($(KBUILD_TARGET), darwin solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PATH_APP_PRIVATE_ARCH = $(VBOX_PATH_APP_PRIVATE)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Where the shared libraries are (going to be) installed.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_PATH_SHARED_LIBS = /usr/lib
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_WITH_HARDENING
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync if1of ($(KBUILD_TARGET), darwin solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PATH_SHARED_LIBS = $(VBOX_PATH_APP_PRIVATE)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Where the documentation is (going to be) installed.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_PATH_APP_DOCS = /usr/share/doc/virtualbox
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_WITH_HARDENING
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync if1of ($(KBUILD_TARGET), darwin solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PATH_APP_DOCS = $(VBOX_PATH_APP_PRIVATE)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# The DT_RPATH/DT_RUNPATH to embed into the binaries (ELF).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# (This one is used for all binaries, there is no need to adjust this
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# depending on the location of the object.)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITH_RUNPATH = /usr/lib/virtualbox
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_WITH_HARDENING
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync if1of ($(KBUILD_TARGET), freebsd linux solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_RUNPATH = $(VBOX_PATH_APP_PRIVATE)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable use of the $ORIGIN DT_RPATH/DT_RUNPATH feature (ELF).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Because of the setuid usage on all ELF platforms when hardening the build
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# things gets a bit complicated since the $ORIGIN+setuid policy differs.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITH_ORIGIN = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifndef VBOX_WITH_HARDENING
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync if1of ($(KBUILD_TARGET), linux solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_ORIGIN = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Enable the system wide support service/daemon.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Work in progress, but required for hardening on Windows.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync#VBOX_WITH_SUPSVC = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_WITH_HARDENING
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync if1of ($(KBUILD_TARGET), win)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_SUPSVC = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Strip binaries of release and profile builds before packing them into the installer
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# archive. When building .deb/.rpms, don't strip the symbols as they are required for
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# the debug packages containing symbols for gdb located in /usr/lib/debug.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_DO_STRIP := $(if $(filter release profile,$(KBUILD_TYPE)),1,)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Strip R0/GC modules (current requirement for our loader)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# TODO: This shouldn't be a requirement any longer. FIXME XXX
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_DO_STRIP_MODULES = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Config items for enabling work in progress.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# It's good pratice to add stuff here even if it is currently disabled by
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Note! Please, do *not* add stuff to the global DEFS unless it is *really*
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# necessary! The other guys will hate for it you when they have to
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# recompile everything when the feature is enabled or disabled. Put
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# the ifdefs in target or template definitions.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## For experimenting with disabling preemption instead of interrupts
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# when working VT-x/AMD-V in VMMR0.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## @todo os2? Reconsider perhaps windows? (see defect) This should be made the default.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), darwin freebsd linux solaris win)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VMMR0_DISABLE_PREEMPTION = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Mask all Local APIC interrupt vectors which are set up to NMI mode when switching
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# to/from the guest in raw mode. Modern Linux kernels use the performance counter
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# to raise an NMI from time to time.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), linux)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync## For testing deadlock detection and lock order validation.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# If issues are found, create high priority defects and temporarily comment
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# the next line.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_WITH_STRICT_LOCKS = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_BIOS_LOGO := $(PATH_ROOT)/src/VBox/Devices/Graphics/BIOS/puel_logo.bmp
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_LICENSE_HTML := $(PATH_ROOT)/doc/License-gpl-2.0.html
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_LICENSE_RTF := $(PATH_ROOT)/doc/License-gpl-2.0.rtf
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_LICENSE_TXT := $(PATH_ROOT)/doc/License-gpl-2.0.txt
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_LICENSE_VER :=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_GUI_ABOUT_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/NonOSE/about.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_GUI_ABOUT_16PX_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/NonOSE/about_16px.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_GUI_VBOX_16PX_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/NonOSE/VirtualBox_16px.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_GUI_VBOX_20PX_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/NonOSE/VirtualBox_20px.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_GUI_VBOX_32PX_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/NonOSE/VirtualBox_32px.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_GUI_VBOX_40PX_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/NonOSE/VirtualBox_40px.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_GUI_VBOX_48PX_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/NonOSE/VirtualBox_48px.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_GUI_VBOX_64PX_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/NonOSE/VirtualBox_64px.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_WIN_INST_DLGBMP := $(PATH_ROOT)/src/VBox/Installer/win/Binary/Dialog.bmp
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_WIN_INST_EXT :=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_WIN_ADD_INST_DLGBMP := $(PATH_ROOT)/src/VBox/Additions/WINNT/Installer/welcome.bmp
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_DARWIN_DISKIMAGE_DS_STORE := $(PATH_ROOT)/src/VBox/Installer/darwin/DiskImage/DS_Store
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_DARWIN_DISKIMAGE_BG := $(PATH_ROOT)/src/VBox/Installer/darwin/DiskImage/vbox_folder.tiff
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_BRAND_DARWIN_INSTALLER_BG := $(PATH_ROOT)/src/VBox/Installer/darwin/VirtualBox_mpkg/background.tif
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Skip stuff.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_ONLY_EXTPACKS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # Clear some VBOX_WITH_XXX variables instead of adding ifdefs all over the place.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DEBUGGER =
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_ADDITIONS =
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VBOXDRV =
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_TESTCASES =
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# VBOX_QUICK can be used by core developers to speed to the build
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_QUICK
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # undefine variables by assigning blank.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_TESTSUITE=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_TESTCASES=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_MAIN =
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VBOXSDL =
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VBOXBFE =
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_QTGUI =
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DEBUGGER_GUI =
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DOCS =
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncendif # VBOX_QUICK
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(KBUILD_TARGET),darwin)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # Don't bother with SDL ttf for now.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_SECURELABEL=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # We'll use the native html/help viewer.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_KCHMVIEWER=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VRDP_RDESKTOP=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # Permanent (no working SDL).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VBOXSDL=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VBOXBFE=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(KBUILD_TARGET),freebsd)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DOCS=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(KBUILD_TARGET),l4)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VBOXDRV=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_ADDITION_DRIVERS=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VRDP=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_HEADLESS=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VBOXSDL=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_QTGUI=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_MAIN=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DOCS=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_ISCSI=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_INIP=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_INTERNAL_NETWORKING=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_PDM_ASYNC_COMPLETION=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_KCHMVIEWER=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_HARDENING=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(KBUILD_TARGET),os2)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_WEBSERVICES=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_INSTALLER=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_SECURELABEL=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VRDP_AUTHMOD=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VRDP_RDESKTOP=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_TESTSUITE=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_QTGUI=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_USB=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_EHCI=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DOCS=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_PDM_ASYNC_COMPLETION=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_KCHMVIEWER=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_HARDENING=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(KBUILD_TARGET),solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_SECURELABEL=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_OGL=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(KBUILD_TARGET),win)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VRDP_RDESKTOP=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_KCHMVIEWER=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifn1of ($(KBUILD_TARGET_ARCH), x86 amd64)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_ADDITION_DRIVERS=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_CROGL=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DEBUGGER=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DOCS=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_EHCI=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_HARDENING=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_HEADLESS=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_HGCM=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_HGSMI=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_INIP=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_INSTALLER=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_INTERNAL_NETWORKING=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_ISCSI=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_KCHMVIEWER=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_MAIN=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_PDM_ASYNC_COMPLETION=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_QTGUI=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_RAW_MODE=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_SECURELABEL=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_TESTSUITE=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_USB=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VBOXBFE=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VBOXDRV=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VBOXSDL=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_WEBSERVICES=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_XPCOM=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITHOUT_HARDENING=1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # remove later:
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VRDP=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VRDP_AUTHMOD=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VRDP_RDESKTOP=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Include automatic and local config file to override the above settings
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# and to provide defaults for the settings below this point.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifndef AUTOCFG
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync AUTOCFG := $(wildcard $(PATH_ROOT)/AutoConfig.kmk)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifneq ($(AUTOCFG),)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync include $(AUTOCFG)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifndef LOCALCFG
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync LOCALCFG := $(wildcard $(PATH_ROOT)/LocalConfig.kmk)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifneq ($(LOCALCFG),)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync include $(LOCALCFG)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # Ignore it if it doesn't exist.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync if exists "$(LOCALCFG)"
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync include $(LOCALCFG)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync $(warning LOCALCFG='$(LOCALCFG)' does not exist)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync override LOCALCFG :=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Allow to overwrite the branding information from an external file
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_BRANDING_CFG
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync include $(VBOX_BRANDING_CFG)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Bitch about old settings.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_WITHOUT_LINUX_COMPILER_H
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync $(warning VBOX_WITHOUT_LINUX_COMPILER_H was renamed to VBOX_WITH_LINUX_COMPILER_H, the meaning is inverted.)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# For the docs build box.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_ONLY_DOCS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DOCS_CHM = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Disable components that are not open sourced.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_OSE
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VRDP=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_EHCI=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_EXTPACK_PUEL=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_OS2_ADDITIONS_BIN=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_SECURELABEL=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_KCHMVIEWER=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifn1of ($(KBUILD_TARGET), linux)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DOCS=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DOCS_PACKING=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_TESTSUITE=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_INTEL_PXE=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_FFMPEG=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifn1of ($(KBUILD_TARGET), darwin linux solaris win)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_INSTALLER=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_BRAND_LICENSE_HTML := $(PATH_ROOT)/doc/License-gpl-2.0.html
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_BRAND_LICENSE_RTF := $(PATH_ROOT)/doc/License-gpl-2.0.rtf
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_BRAND_LICENSE_TXT := $(PATH_ROOT)/doc/License-gpl-2.0.txt
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_BRAND_BIOS_LOGO := $(PATH_ROOT)/src/VBox/Devices/Graphics/BIOS/ose_logo.bmp
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_BRAND_GUI_ABOUT_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/OSE/about.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_BRAND_GUI_ABOUT_16PX_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/OSE/about_16px.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_BRAND_GUI_VBOX_16PX_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_16px.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_BRAND_GUI_VBOX_20PX_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_20px.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_BRAND_GUI_VBOX_32PX_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_32px.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_BRAND_GUI_VBOX_40PX_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_40px.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_BRAND_GUI_VBOX_48PX_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_48px.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_BRAND_GUI_VBOX_64PX_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_64px.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_BRAND_GUI_CUBE_42PX_PNG := $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_cube_42px.png
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# VBOX_WITHOUT_HARDENING is for developers (put in LocalConfig.kmk).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Note that this is a bit rough since hardening governs more than one
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# variable... Also note that we allow VBOX_WITH_HARDENING=1 on the
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# command line to overrule VBOX_WITHOUT_HARDENING (the check below).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_WITHOUT_HARDENING
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_HARDENING=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifeq ($(VBOX_WITH_HARDENING),)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PATH_APP_PRIVATE=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PATH_APP_PRIVATE_ARCH=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PATH_SHARED_LIBS=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_PATH_APP_DOCS=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_RUNPATH=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync if1of ($(KBUILD_TARGET), linux solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_ORIGIN=1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Sanitize the additions build config variables.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITHOUT_ADDITIONS := 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifdef VBOX_ONLY_ADDITIONS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync $(error VBOX_ONLY_ADDITIONS + VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER does not add up!)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_ONLY_ADDITIONS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifdef VBOX_WITHOUT_ADDITIONS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync $(error VBOX_ONLY_ADDITIONS + VBOX_WITHOUT_ADDITIONS does not add up!)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_WITHOUT_ADDITIONS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # Zap anything that could be contradicting this.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_ADDITIONS :=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Sanitize the documentation build config variables.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITHOUT_DOCS := 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifdef VBOX_ONLY_DOCS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync $(error VBOX_ONLY_DOCS + VBOX_WITH_DOCS_FROM_BUILD_SERVER does not add up!)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_ONLY_DOCS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifdef VBOX_WITHOUT_DOCS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync $(error VBOX_ONLY_DOCS + VBOX_WITHOUT_DOCS does not add up!)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_WITHOUT_DOCS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync # Zap anything that could be contradicting this.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DOCS :=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Disable components for headless
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_HEADLESS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_QTGUI=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VBOXSDL=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VBOXBFE=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_OGL=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_KCHMVIEWER=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VRDP_RDESKTOP=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Undefined VBOX_WITH_MAIN implies exclusion of a few more items.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifndef VBOX_WITH_MAIN
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VBOXSDL=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_QTGUI=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DEBUGGER_GUI=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_HEADLESS=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifdef VBOX_ONLY_DOCS
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync $(error Oh, does VBOX_ONLY_DOCS actually end up here. sweet.)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_DOCS=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifndef VBOX_WITH_QTGUI
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_KCHMVIEWER=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Mark OSE builds clearly, helps figuring out limitations more easily.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifdef VBOX_OSE
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_VERSION_STRING = $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)_OSE
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Keep in sync with G_virtualBoxPackage in glue-jaxws.xsl and glue-java.xsl
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Changed with every new version, so beware!
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif $(VBOX_VERSION_BUILD) < 51
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_API_SUFFIX = _$(VBOX_VERSION_MAJOR)_$(VBOX_VERSION_MINOR)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_API_SUFFIX = _$(VBOX_VERSION_MAJOR)_$(expr $(VBOX_VERSION_MINOR) + 1)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_JAVA_PACKAGE = org.virtualbox$(VBOX_API_SUFFIX)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Derived / helper config indicators. Not configurable.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Use the OpenGL module in qt when the video hardware acceleartion feature
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# is enabled.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif defined(VBOX_WITH_VIDEOHWACCEL) && defined(VBOX_WITH_QTGUI)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_GUI_USE_QGL = 1
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_GUI_USE_QGL=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Image and object format config.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncif1of ($(KBUILD_TARGET), freebsd linux l4 netbsd openbsd solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_LDR_FMT = elf
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(KBUILD_TARGET),darwin)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_LDR_FMT = macho
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(KBUILD_TARGET),os2)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_LDR_FMT = lx
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_LDR_FMT32 = lx
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_LDR_FMT64 = elf
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync DONT_USE_YASM = 1 # yasm doesn't implement omf yet.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(KBUILD_TARGET),win)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_LDR_FMT = pe
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_LDR_FMT32 ?= $(VBOX_LDR_FMT)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_LDR_FMT64 ?= $(VBOX_LDR_FMT)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Assembler setup.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# This is a bit complicated since we have to support two different assmblers
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# (yasm/nasm) and possibly two different formats (32-bit/64-bit).
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(VBOX_LDR_FMT),elf)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifeq ($(KBUILD_TARGET_ARCH),x86)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_ASFLAGS_FMT = -f elf32 -DASM_FORMAT_ELF
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_ASFLAGS_FMT = -f elf64 -DASM_FORMAT_ELF
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_DBFINFO = -g dwarf2
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(VBOX_LDR_FMT),lx)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_FMT = -f obj -DASM_FORMAT_OMF
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_DBFINFO = -g stabs
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(VBOX_LDR_FMT),macho)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifeq ($(KBUILD_TARGET_ARCH),x86)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_FMT = -f macho32 -DASM_FORMAT_MACHO
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_FMT = -f macho64 -DASM_FORMAT_MACHO
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_DBFINFO = -g dwarf2
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(VBOX_LDR_FMT),pe)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifeq ($(KBUILD_TARGET_ARCH),x86)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_ASFLAGS_FMT = -f win32 -DASM_FORMAT_PE
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_ASFLAGS_FMT = -f win64 -DASM_FORMAT_PE
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncVBOX_ASFLAGS_DBFINFO = -g cv8
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifndef VBOX_ASFLAGS_FMT
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync $(error VBOX_ASFLAGS_FMT is not defined. VBOX_LDR_FMT=$(VBOX_LDR_FMT))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(VBOX_LDR_FMT32),elf)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_FMT32 = -f elf32 -DASM_FORMAT_ELF
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_DBFINFO32 = -g dwarf2
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(VBOX_LDR_FMT32),lx)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_FMT32 = -f obj -DASM_FORMAT_OMF
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_DBFINFO32 = -g stabs
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(VBOX_LDR_FMT32),macho)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_FMT32 = -f macho32 -DASM_FORMAT_MACHO
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_DBFINFO32 = -g dwarf2
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(VBOX_LDR_FMT32),pe)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_FMT32 = -f win32 -DASM_FORMAT_PE
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_DBFINFO32 = -g cv8
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifndef VBOX_ASFLAGS_FMT32
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync $(error VBOX_ASFLAGS_FMT32 is not defined. VBOX_LDR_FMT32=$(VBOX_LDR_FMT32))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(VBOX_LDR_FMT64),elf)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_FMT64 = -f elf64 -DASM_FORMAT_ELF
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_DBFINFO64 = -g dwarf2
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(VBOX_LDR_FMT64),macho)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_FMT64 = -f macho64 -DASM_FORMAT_MACHO
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_DBFINFO64 = -g dwarf2
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifeq ($(VBOX_LDR_FMT64),pe)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_FMT64 = -f win64 -DASM_FORMAT_PE
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS_DBFINFO64 = -g cv8
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifndef VBOX_ASFLAGS_FMT64
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync $(error VBOX_ASFLAGS_FMT64 is not defined. VBOX_LDR_FMT64=$(VBOX_LDR_FMT64))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifndef DONT_USE_YASM
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASTOOL = YASM
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS = $(VBOX_ASFLAGS_FMT) -D__YASM__ -Worphan-labels $(VBOX_LDR_FMT_2_YASM_DBGINFO.$(VBOX_LDR_FMT))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS32 = $(VBOX_ASFLAGS_FMT32) -D__YASM__ -Worphan-labels $(VBOX_LDR_FMT_2_YASM_DBGINFO.$(VBOX_LDR_FMT32))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS64 = $(VBOX_ASFLAGS_FMT64) -D__YASM__ -Worphan-labels $(VBOX_LDR_FMT_2_YASM_DBGINFO.$(VBOX_LDR_FMT64))
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASTOOL = NASM
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS = $(subst elf32,elf,$(VBOX_ASFLAGS_FMT)) -D__NASM__ -w+orphan-labels -g
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS32 = $(subst elf32,elf,$(VBOX_ASFLAGS_FMT32)) -D__NASM__ -w+orphan-labels -g
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_ASFLAGS64 = $(VBOX_ASFLAGS_FMT64) -D__NASM__ -w+orphan-labels -g
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Windows only has mingw handy. On *nix we have to deal with cross compiling
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# 32-bit targets on 64-bit platforms, meaning we'll be using gcc32/g++32.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# In the latter case we'll also have to disable all the all the R0 driver related stuff.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifndef VBOX_GCC_TOOL
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifeq ($(KBUILD_TARGET),win)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_GCC_TOOL := MINGW32
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync TOOL_MINGW32_CFLAGS := $(UNDEFINED) # override -g
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync else ifeq ($(KBUILD_TARGET),os2)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_GCC_TOOL := GXX3OMF
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync else ifeq ($(KBUILD_TARGET),darwin)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_GCC_TOOL := GXX4MACHO
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync else ifeq ($(KBUILD_TARGET),solaris)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_GCC_TOOL := GXX3PLAIN
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_GCC32_TOOL := GXX3PLAIN
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync TOOL_GXX3PLAIN_LD_SYSMOD ?= /usr/ccs/bin/ld
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_GCC_TOOL := GXX3
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifeq ($(KBUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH),x86.amd64) ## @todo mixing target/host here!
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_GCC_TOOL := GXX32
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VBOXDRV=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync else ifeq ($(KBUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH),amd64.x86)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_GCC_TOOL := GXX64
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_WITH_VBOXDRV=
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifndef VBOX_GCC32_TOOL
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifeq ($(KBUILD_TARGET_ARCH),x86)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_GCC32_TOOL := $(VBOX_GCC_TOOL)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync else ifeq ($(KBUILD_TARGET),win)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_GCC32_TOOL := MINGW32
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_GCC32_TOOL := GXX32
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync# Decide which Visual C++ compiler version we're using by default.
316572fd6bf59ec1038f0476f6536fc10163beebvboxsyncifndef VBOX_VCC_TOOL
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifndef VBOX_USE_VCC100
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_USE_VCC80 ?= 1 # the default for win.amd64
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync ifdef VBOX_USE_VCC100
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_VCC_TOOL_STEM = VCC100
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync else ifdef VBOX_USE_VCC80
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_VCC_TOOL_STEM = VCC80
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync VBOX_VCC_TOOL := VCC70
if !defined(VBOX_USE_VCC100) && !defined(VBOX_USE_VCC90) && !defined(VBOX_USE_VCC80) && !defined(VBOX_USE_VCC70)
TOOL.win = VCC70
TOOL.win.x86 = $(VBOX_VCC_TOOL_STEM)X86
TOOL.win.amd64 = $(VBOX_VCC_TOOL_STEM)AMD64
$(L4LINUX26_DIR)/include/asm-l4/i386-arch
CFLAGS.l4 = -mno-red-zone
CXXFLAGS.l4 = -mno-red-zone
$(L4_OBJ)/include/uclibc++ \
$(L4_OBJ)/include/uclibc \
$(L4_DIR)/tool/dice/include
ifeq ($(KBUILD_TARGET).$(KBUILD_TYPE),l4.debug)
DEFS.debug := DEBUG DEBUG_$(subst $(subst _, ,_),_,$(USERNAME)) DEBUG_USERNAME=$(subst $(subst _, ,_),_,$(USERNAME))
DEFS.profile = VBOX_WITH_STATISTICS
DEFS.strict = RT_STRICT VBOX_STRICT
DEFS.x86 = RT_ARCH_X86 __X86__
DEFS.amd64 = RT_ARCH_AMD64 __AMD64__
DEFS.darwin = RT_OS_DARWIN __DARWIN__
DEFS.freebsd = RT_OS_FREEBSD __FREEBSD__
DEFS.l4 = RT_OS_L4 __L4__ __L4ENV__ L4API_l4v2 ARCH_$(KBUILD_TARGET_ARCH) __NO_CTYPE _FILE_OFFSET_BITS=64
DEFS.linux = RT_OS_LINUX _FILE_OFFSET_BITS=64
DEFS.netbsd = RT_OS_NETBSD
DEFS.openbsd = RT_OS_OPENBSD
DEFS.os2 = RT_OS_OS2 __OS2__
DEFS.solaris = RT_OS_SOLARIS _FILE_OFFSET_BITS=64
DEFS.win = RT_OS_WINDOWS __WIN__
DEFS.win.x86 = __WIN32__
DEFS.win.amd64 = __WIN64__
VBOX_GCC_WARN ?= -Wall $(VBOX_GCC_Wextra) $(VBOX_GCC_Wno-missing-field-initializers) -Wno-unused -Wno-trigraphs $(VBOX_GCC_fdiagnostics-show-option)
VBOX_GCC_PEDANTIC_C ?= -pedantic -Wshadow $(VBOX_GCC_WARN) -Wno-long-long -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror-implicit-function-declaration
LIB_RUNTIME = $(PATH_BIN)/VBoxRT.dylib
LIB_RUNTIME_EF = #$(PATH_LIB)/RuntimeEFCPP.a
LIB_KPROFILE = $(PATH_BIN)/kPrf2.dylib
LIB_VMM = $(PATH_BIN)/VBoxVMM.dylib
LIB_VMMGC = $(PATH_BIN)/VMMGC.gc
LIB_REM = $(PATH_LIB)/VBoxREM.dylib
LIB_XPCOM = $(PATH_BIN)/VBoxXPCOM.dylib
LIB_DDU = $(PATH_BIN)/VBoxDDU.dylib
LIB_RUNTIME = $(PATH_BIN)/VBoxRT.s.so
LIB_RUNTIME_EF = #$(PATH_LIB)/RuntimeEFCPP.a
LIB_KPROFILE = $(PATH_BIN)/kPrf2.s.so
LIB_VMM = $(PATH_BIN)/VBoxVMM.s.so
LIB_VMMGC = $(PATH_BIN)/VMMGC.gc
LIB_REM = $(PATH_LIB)/VBoxREM.s.so
LIB_XPCOM = $(PATH_BIN)/VBoxXPCOM.s.so
LIB_DDU = $(PATH_BIN)/VBoxDDU.s.so
LIB_RUNTIME = $(PATH_BIN)/VBoxRT.so
LIB_RUNTIME_EF = $(PATH_LIB)/RuntimeEFCPP.a
LIB_KPROFILE = $(PATH_BIN)/kPrf2.so
LIB_VMM = $(PATH_BIN)/VBoxVMM.so
LIB_VMMGC = $(PATH_BIN)/VMMGC.gc
LIB_REM = $(PATH_LIB)/VBoxREM.so
LIB_XPCOM = $(PATH_BIN)/VBoxXPCOM.so
LIB_DDU = $(PATH_BIN)/VBoxDDU.so
LIB_RUNTIME = $(PATH_BIN)/VBoxRT.dll
LIB_RUNTIME_EF = #$(PATH_LIB)/RuntimeEFCPP.a
LIB_KPROFILE = $(PATH_BIN)/kPrf2.dll
LIB_VMM = $(PATH_BIN)/VBoxVMM.dll
LIB_VMMGC = $(PATH_LIB)/VMMGCImp.lib
LIB_REM = $(PATH_LIB)/VBoxREMImp.lib
LIB_XPCOM = $(PATH_BIN)/VBoxXCOM.dll
LIB_DDU = $(PATH_BIN)/VBoxDDU.dll
VBOX_OBJ_SYS0 = $(PATH_OBJ)/RuntimeR0/os2/sys0.obj
LIB_RUNTIME = $(PATH_LIB)/VBoxRT.lib
LIB_RUNTIME_EF = #$(PATH_LIB)/RuntimeEFCPP.lib
LIB_KPROFILE = $(PATH_LIB)/kPrf2.lib
LIB_VMM = $(PATH_LIB)/VBoxVMM.lib
LIB_VMMGC = $(PATH_OBJ)/VMMGC/VMMGC.lib
LIB_REM = $(PATH_LIB)/VBoxREMImp.lib
LIB_XPCOM = $(PATH_BIN)/VBoxXPCOM.dll
LIB_DDU = $(PATH_LIB)/VBoxDDU.lib
VBOX_BLD_PYTHON := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS)/win.x86/python/v*/python$(HOSTSUFF_EXE))) python-not-found.exe)
# Enable C++ electric fence heap. (Warning: will easily run out of virtual memory / kernel stuff on Linux/Windows.)
VBOX_XCURSOR_LIBS := $(lastword $(wildcard $(PATH_DEVTOOLS_TRG)/libXcursor/*/lib/libXcursor.a))
VBOX_XCURSOR_INCS := $(patsubst %/lib/libXcursor.a,%/include, $(VBOX_XCURSOR_LIBS))
VBOX_IASLCMD ?= $(firstword $(wildcard $(PATH_DEVTOOLS_BLD)/bin/iasl$(HOSTSUFF_EXE)) iasl$(HOSTSUFF_EXE))
if exists "$(PATH_DEVTOOLS_BLD)/bin/bcc$(HOSTSUFF_EXE)"
VBOX_BCC := $(PATH_DEVTOOLS_BLD)/bin/bcc$(HOSTSUFF_EXE) -B $(PATH_DEVTOOLS_BLD)/bin/
if exists "$(PATH_DEVTOOLS_BLD)/bin/as86$(HOSTSUFF_EXE)"
VBOX_AS86 := $(PATH_DEVTOOLS_BLD)/bin/as86$(HOSTSUFF_EXE)
VBOX_XSLTPROC ?= $(PATH_DEVTOOLS)/win.x86/bin/xsltproc.exe
VBOX_XSLTPROC ?= BEGINLIBPATH="$(PATH_DEVTOOLS_BLD)/bin;$$BEGINLIBPATH" $(PATH_DEVTOOLS_BLD)/bin/xsltproc.exe
VBOX_BIN2C ?= $(PATH_OBJ)/bin2c/bin2c$(HOSTSUFF_EXE)
VBOX_BIOSSUMS ?= $(PATH_OBJ)/biossums/biossums$(HOSTSUFF_EXE)
VBOX_RTMANIFEST ?= $(PATH_OBJ)/bldRTManifest/bldRTManifest$(HOSTSUFF_EXE)
VBOX_FILESPLIT ?= $(PATH_OBJ)/filesplitter/filesplitter$(HOSTSUFF_EXE)
VBOX_MKISOFS ?= $(PATH_DEVTOOLS_BLD)/bin/mkisofs.exe
VBOX_MAKESELF ?= $(PATH_DEVTOOLS)/common/makeself/v2.1.5/makeself.sh
VBOX_PATH_HTML_HELP_WORKSHOP ?= $(PATH_DEVTOOLS)/win.x86/HTML_Help_Workshop/v1.3/
VBOX_PATH_NSIS ?= $(PATH_DEVTOOLS)/win.x86/nsis/v2.46-log-nsscm-r1
VBOX_PATH_AUTOIT3 ?= $(PATH_DEVTOOLS)/win.x86/autoit/v3.2.10.0
VBOX_PATH_WIX ?= $(PATH_DEVTOOLS)/win.x86/wix/v2.0.5805.0
VBOX_PATH_DIFX ?= $(PATH_DEVTOOLS)/win.$(KBUILD_TARGET_ARCH)/DIFx/v2.1-r2
VBOX_PATH_CABSDK ?= $(PATH_DEVTOOLS)/win.x86/cabsdk/r1
VBOX_PATH_MAKECAB ?= $(VBOX_PATH_CABSDK)/BIN/MAKECAB.EXE
# if updating, also update xpidl_INST var in src/libs/xpcom18a4/Makefile.kmk
VBOX_PATH_XPCOM_IDL ?= $(VBOX_PATH_SDK)/bindings/xpcom/idl
$(VBOX_PATH_SDK)/bindings/xpcom/include \
$(VBOX_PATH_SDK)/bindings/xpcom/include/xpcom \
$(VBOX_PATH_SDK)/bindings/xpcom/include/string \
$(VBOX_PATH_SDK)/bindings/xpcom/include/xpcom \
$(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub \
$(VBOX_PATH_SDK)/bindings/xpcom/include/ipcd
export VBOX_LIBIDL_CONFIG := $(firstword $(shell which libIDL-config-2 libIDL-config 2> /dev/null))
VBOX_LIBPATH_X11 ?= /usr/X11R6/lib
TOOL_GXX4MACHO_OBJC= gcc$(VBOX_MACOSX_GCC_INFIX)$(HOSTSUFF_EXE) $(if-expr $(KBUILD_TARGET_ARCH) == "x86",-m32,-m64) -fvisibility=hidden
TOOL_GXX4MACHO_OBJCXX = gcc$(VBOX_MACOSX_GCC_INFIX)$(HOSTSUFF_EXE) $(if-expr $(KBUILD_TARGET_ARCH) == "x86",-m32,-m64) -fvisibility=hidden -fvisibility-inlines-hidden
VBOX_PATH_MACOSX_SDK ?= /Developer/SDKs/MacOSX$(VBOX_DEF_MACOSX_VERSION_MIN).sdk
VBOX_DARWIN_DEF_SDK_DEFS := MAC_OS_X_VERSION_MIN_REQUIRED=$(subst .,,$(VBOX_DEF_MACOSX_VERSION_MIN))0 \
VBOX_DARWIN_DEF_SDK_CFLAGS := -mmacosx-version-min=$(VBOX_DEF_MACOSX_VERSION_MIN) -isysroot $(VBOX_PATH_MACOSX_SDK)
VBOX_DARWIN_DEF_SDK_CXXFLAGS := -mmacosx-version-min=$(VBOX_DEF_MACOSX_VERSION_MIN) -isysroot $(VBOX_PATH_MACOSX_SDK)
VBOX_DARWIN_DEF_SDK_OBJCFLAGS := -mmacosx-version-min=$(VBOX_DEF_MACOSX_VERSION_MIN) -isysroot $(VBOX_PATH_MACOSX_SDK)
VBOX_DARWIN_DEF_SDK_OBJCXXFLAGS := -mmacosx-version-min=$(VBOX_DEF_MACOSX_VERSION_MIN) -isysroot $(VBOX_PATH_MACOSX_SDK)
VBOX_DARWIN_DEF_SDK_LDFLAGS = -mmacosx-version-min=$(VBOX_DEF_MACOSX_VERSION_MIN) -Wl,-syslibroot,$(VBOX_PATH_MACOSX_SDK) \
## @todo s/VBOX_DARWIN_DEF_SDK_10/VBOX_DARWIN_SDK_10/g
VBOX_PATH_MACOSX_SDK_10_4 ?= /Developer/SDKs/MacOSX10.4u.sdk
VBOX_DARWIN_DEF_SDK_10_4_DEFS := MAC_OS_X_VERSION_MIN_REQUIRED=1040 MAC_OS_X_VERSION_MAX_ALLOWED=1040
VBOX_DARWIN_DEF_SDK_10_4_CXXFLAGS := -mmacosx-version-min=10.4 -isysroot $(VBOX_PATH_MACOSX_SDK_10_4)
VBOX_DARWIN_DEF_SDK_10_4_OBJCFLAGS := -mmacosx-version-min=10.4 -isysroot $(VBOX_PATH_MACOSX_SDK_10_4)
VBOX_DARWIN_DEF_SDK_10_4_OBJCXXFLAGS := -mmacosx-version-min=10.4 -isysroot $(VBOX_PATH_MACOSX_SDK_10_4)
VBOX_DARWIN_DEF_SDK_10_4_LDFLAGS := -mmacosx-version-min=10.4 -Wl,-syslibroot,$(VBOX_PATH_MACOSX_SDK_10_4) \
VBOX_PATH_MACOSX_SDK_10_5 ?= /Developer/SDKs/MacOSX10.5.sdk
VBOX_DARWIN_DEF_SDK_10_5_DEFS := MAC_OS_X_VERSION_MIN_REQUIRED=1050 MAC_OS_X_VERSION_MAX_ALLOWED=1050
VBOX_DARWIN_DEF_SDK_10_5_CXXFLAGS := -mmacosx-version-min=10.5 -isysroot $(VBOX_PATH_MACOSX_SDK_10_5)
VBOX_DARWIN_DEF_SDK_10_5_OBJCFLAGS := -mmacosx-version-min=10.5 -isysroot $(VBOX_PATH_MACOSX_SDK_10_5)
VBOX_DARWIN_DEF_SDK_10_5_OBJCXXFLAGS := -mmacosx-version-min=10.5 -isysroot $(VBOX_PATH_MACOSX_SDK_10_5)
VBOX_DARWIN_DEF_SDK_10_5_LDFLAGS := -mmacosx-version-min=10.5 -Wl,-syslibroot,$(VBOX_PATH_MACOSX_SDK_10_5) \
VBOX_PATH_MACOSX_SDK_10_6 ?= /Developer/SDKs/MacOSX10.6.sdk
VBOX_DARWIN_DEF_SDK_10_6_DEFS := MAC_OS_X_VERSION_MIN_REQUIRED=1060 MAC_OS_X_VERSION_MAX_ALLOWED=1060
VBOX_DARWIN_DEF_SDK_10_6_CXXFLAGS := -mmacosx-version-min=10.6 -isysroot $(VBOX_PATH_MACOSX_SDK_10_6)
VBOX_DARWIN_DEF_SDK_10_6_OBJCFLAGS := -mmacosx-version-min=10.6 -isysroot $(VBOX_PATH_MACOSX_SDK_10_6)
VBOX_DARWIN_DEF_SDK_10_6_OBJCXXFLAGS := -mmacosx-version-min=10.6 -isysroot $(VBOX_PATH_MACOSX_SDK_10_6)
VBOX_DARWIN_DEF_SDK_10_6_LDFLAGS := -mmacosx-version-min=10.6 -Wl,-syslibroot,$(VBOX_PATH_MACOSX_SDK_10_6) \
# Macro switching between @executable_path, @rpath and /Applications/VirtualBox.app
# VBOX_GCC_RPATH_OPT - Different GCC/LD combinations needs different options.
VBOX_PATH_X11_ROOT = $(PATH_ROOT)/src/VBox/Additions/x11/x11include
VBOX_PATH_CROGL_GLAPI = $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/glapi_parser
VBOX_PATH_CROGL_INCLUDE = $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/include
VBOX_PATH_CROGL_PYTHON_INCLUDE = $(VBOX_PATH_CROGL_GLAPI);$(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer;$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib
VBOX_PATH_CROGL_PYTHON_INCLUDE = $(VBOX_PATH_CROGL_GLAPI):$(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer:$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib
VBOX_LIB_OGL_CRUTIL = $(PATH_OBJ)/VBoxOGLcrutil/VBoxOGLcrutil$(VBOX_SUFF_LIB)
VBOX_LIB_OGL_HOSTCRUTIL = $(PATH_OBJ)/VBoxOGLhostcrutil/VBoxOGLhostcrutil$(VBOX_SUFF_LIB)
# VBOX_PATH_MESA_SOURCE = $(PATH_ROOT)/src/libs/mesa-7.2
$(VBOX_PATH_MESA_SOURCE)/src/mesa/ \
$(VBOX_PATH_MESA_SOURCE)/src/mesa/glapi \
$(VBOX_PATH_MESA_SOURCE)/src/mesa/main \
$(VBOX_PATH_MESA_SOURCE)/src/mesa/drivers/dri/common
VBOX_DARWIN_OPENGL_INST = obj/VBoxOGL/GL/
SDK_DARWIN-OPENGL_INCS = $(PATH_OUT)/obj/VBoxOGL
SDK_DARWIN-OPENGL_ORDERDEPS = $(addprefix $(PATH_OUT)/obj/VBoxOGL/GL/./,$(VBOX_DARWIN_OPENGL_HEADERS))
VBOX_WINDOWS_ICON_FILE ?= $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_win.ico
VBOX_WINDOWS_ADDITIONS_ICON_FILE ?= $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_win.ico
VBOX_NSIS_ICON_FILE ?= $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_win.ico
VBOX_MACOSX_ICON_FILE ?= $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox.icns
VBOX_WINDOWS_ICON_FILE ?= $(PATH_ROOT)/src/VBox/Artwork/VirtualBox-vista.ico
VBOX_WINDOWS_ADDITIONS_ICON_FILE ?= $(PATH_ROOT)/src/VBox/Artwork/VirtualBoxGA-vista.ico
VBOX_NSIS_ICON_FILE ?= $(PATH_ROOT)/src/VBox/Artwork/VirtualBoxGA-nsis.ico
VBOX_WINDOWS_ICON_FILE ?= $(PATH_ROOT)/src/VBox/Artwork/VirtualBox-winxp.ico
VBOX_WINDOWS_ADDITIONS_ICON_FILE ?= $(PATH_ROOT)/src/VBox/Artwork/VirtualBoxGA-winxp.ico
VBOX_NSIS_ICON_FILE ?= $(PATH_ROOT)/src/VBox/Artwork/VirtualBox-nsis.ico
VBOX_MACOSX_ICON_FILE ?= $(PATH_ROOT)/src/VBox/Artwork/VirtualBox.icns
# These tests never worked on Windows because of /dev/null, so, there
if $(TOOL_$(VBOX_GCC_TOOL)_LD) -Wl,$(1) $(if $(eq $(KBUILD_HOST),darwin),-Wl$(COMMA)-u$(COMMA)start -Wl$(COMMA)-undefined$(COMMA)dynamic_lookup,) -nostdlib -o /dev/null -xc /dev/null > /dev/null 2>&1 ;\
$(1) -dumpversion | $(SED_EXT) 's|\([0-9]\)\.\([0-9]\)\.\{0,1\}\([0-9]\{0,1\}\)|$$(int-add $$(int-mul 10000, \1), $$(int-mul 100, \2), $$(firstword \3 0))|' )
$(APPEND) '$@' 'VBOX_GCC_Wno-array_bounds ?= $$(if $$(int-ge $$(VBOX_GCC_VERSION_CXX),40300),-Wno-array-bounds,)'
# -Wextra produces additional useful warnings but includes -Wno-missing-field-initializers (too noisy)
$(APPEND) '$@' 'VBOX_GCC_Wno-missing-field-initializers ?= $(call VBOX_GCC_CHECK_CC,-Wno-missing-field-initializers,)'
$(APPEND) '$@' 'VBOX_GCC_Wno-pointer-to-int-cast ?= $(call VBOX_GCC_CHECK_CC,-Wno-pointer-to-int-cast,)'
$(APPEND) '$@' 'VBOX_GCC_Wno-int-to-pointer-cast ?= $(call VBOX_GCC_CHECK_CC,-Wno-int-to-pointer-cast,)'
$(APPEND) '$@' 'VBOX_GCC_fdiagnostics-show-option ?= $(call VBOX_GCC_CHECK_CC,-fdiagnostics-show-option,)'
# Produce code optimized for the most common IA32/AMD64/EM64T processors. Introduced with gcc version 4.2.
# See http://osdir.com/ml/gcc.prs/2002-08/msg00223.html and probably http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20004
$(APPEND) '$@' ' VBOX_GCC_fvisibility-hidden ?= $(call VBOX_GCC_CHECK_CC,-fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT,)'
$(APPEND) '$@' ' VBOX_GCC_fvisibility-inlines-hidden ?= $(call VBOX_GCC_CHECK_CXX,-fvisibility-inlines-hidden,)'
# Note that `$(dir $(gcc -print-libgcc-file-name))/include does not work for a 64-bit cross build on a 32-bit build host.
$(APPEND) '$@' 'VBOX_PATH_GCC_INCS ?= $(shell LC_ALL=C $(TOOL_$(VBOX_GCC_TOOL)_CC) -print-search-dirs|$(SED_EXT) -ne 's+^install: \(.*[^/][^/]*\)/+\1+p')/include'
$(APPEND) '$@' 'VBOX_GCC32_LIBGCC ?= $(shell $(TOOL_$(VBOX_GCC32_TOOL)_CC) -print-libgcc-file-name)'
$(APPEND) '$@' 'VBOX_GCC32_Wno-variadic-macros ?= $(call VBOX_GCC32_CHECK_CXX,-Wno-variadic-macros,)'
include $(PATH_OUT)/GCCConfig.kmk
$(1)_SOURCES = $$($(1)_0_OUTDIR)/$(1)Imp.def
$(1)_CLEAN = $$($(1)_0_OUTDIR)/$(1)Imp.def
$(1)_SOURCES = $$($(1)_0_OUTDIR)/$(1)Imp.c
$(1)_CLEAN = $$($(1)_0_OUTDIR)/$(1)Imp.c
$$$$($(1)_SOURCES): $(PATH_SUB_CURRENT)/$(2) $(PATH_ROOT)/src/bldprogs/deftoimp.sed | $$$$(dir $$$$@)
-e 's/^LIBRARY[[:space:]][[:space:]]*\(.*\)\.dll/LIBRARY \1 INITINSTANCE TERMINSTANCE\nDATA MULTIPLE\n/' \
-f $(PATH_ROOT)/src/bldprogs/deftoimp.sed \
# VBOX_PATH_SELFSIGN points to the Vista WDK bin/SelfSign directory.
VBOX_PATH_SELFSIGN := $(lastword $(sort $(wildcard $(PATH_DEVTOOLS)/win.x86/selfsign/*)))
VBOX_PATH_SELFSIGN := $(PATH_DEVTOOLS)/win.x86/selfsign/r1
VBOX_INF2CAT ?= $(VBOX_PATH_SELFSIGN)/Inf2Cat.exe
VBOX_CROSS_CERTIFICATE_FILE ?= $(VBOX_PATH_SELFSIGN)/MSCV-VSClass3.cer
VBOX_TSA_URL ?= http://timestamp.verisign.com/scripts/timestamp.dll
-e 's/^;edit-DriverVer.*/DriverVer = $(date-utc %m\/%d\/%Y),$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)/' \
-e 's/^;edit-DriverVer.*/DriverVer = $(date-utc %m\/%d\/%Y),$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)/' \
SDK_VBOX_LIBXML2_INCS ?= $(PATH_ROOT)/src/libs/libxml2-2.6.30/include
SDK_VBOX_LIBXML2_DEFS.win += WIN32 _WINDOWS _MBCS
# note: no linking to LIB here, we do that explicitly in src/VBox/Runtime/Makefile.kmk to link
SDK_VBOX_LIBXSLT_INCS ?= $(PATH_ROOT)/src/libs/libxslt-1.1.22
SDK_VBOX_LIBXSLT_DEFS.win += WIN32 _WINDOWS _MBCS _REENTRANT
SDK_VBOX_LIBPNG_INCS ?= $(PATH_ROOT)/src/libs/libpng-1.2.8
SDK_VBOX_ZLIB_INCS ?= $(PATH_ROOT)/src/libs/zlib-1.2.1
SDK_VBOX_ZLIB_DEFS.linux ?= _LARGEFILE64_SOURCE
SDK_VBOX_OPENSSL_VBOX_DEFAULT_INCS := $(PATH_OUT)/obj/crypto-headers/include
SDK_VBOX_LIBCURL_INCS ?= $(PATH_ROOT)/src/libs/curl-7.19.4/include
$(PATH_ROOT)/src/libs/ffmpeg-20060710/libavutil \
$(PATH_ROOT)/src/libs/ffmpeg-20060710/libavcodec \
$(PATH_ROOT)/src/libs/ffmpeg-20060710/libavformat
#SDK_VBOX_FFMPEG_LIBS ?= $(PATH_LIB)/VBoxFFmpeg.a
SDK_VBOX_FFMPEG_LIBS ?= $(PATH_LIB)/VBoxFFmpegImp.lib
SDK_VBOX_BOOST_INCS ?= $(PATH_ROOT)/src/libs/boost-1.37.0
# Special SDK for the problematic NTDLL.LIB.
SDK_VBOX_NTDLL_LIBS ?= $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ntdll.lib
export VBOX_LINUX_SRC := /lib/modules/$(shell uname -r)/build
export VBOX_LINUX_SRC := /usr/src/linux
kernelpath := $(shell $(SED_EXT) -ne 's+^MAKEARGS *:= *-C *\(\S*\).*+\1+p' $(VBOX_LINUX_SRC)/Makefile)
VBOX_LINUX_INCS += $(kernelpath)/include/asm-i386/mach-default \
$(kernelpath)/include/asm-x86/mach-default \
$(kernelpath)/arch/x86/include \
$(kernelpath)/arch/x86/include/asm/mach-default \
# Since Linux 2.6.15, <linux/autoconf.h> is included like this. It cannot hurt to do the
ifneq ($(wildcard $(VBOX_LINUX_SRC)/include/generated/autoconf.h),)
export VBOX_LINUX_INCLUDE := -include $(VBOX_LINUX_SRC)/include/generated/autoconf.h
else ifneq ($(wildcard $(VBOX_LINUX_SRC)/include/linux/autoconf.h),)
export VBOX_LINUX_INCLUDE := -include $(VBOX_LINUX_SRC)/include/linux/autoconf.h
$(eval export VBOX_SOLARIS_VERSION := $(shell uname -r | $(SED_EXT) 's|\([0-9]*\)\.\([0-9]*\)|$$(int-add $$(int-mul 100, \1), \2)|' ))
DEFS.solaris += RT_OS_SOLARIS_10
TEMPLATE_VBoxRc_INCS = $(PATH_ROOT)/include/iprt/nocrt
TEMPLATE_VBoxRc_CXXFLAGS = -Zi -Zl -GR- -EHs- -GF -W3 -wd4244 -GS- -wd4996 -Zc:wchar_t- -Gs8192 $(VBOX_VCC_GC_OPT) $(VBOX_VCC_GC_FP) $(VBOX_VCC_WERR)
TEMPLATE_VBoxRc_CXXFLAGS = -Zi -Zl -GR- -EHs- -GF -W3 -wd4244 $(VBOX_VCC_GC_OPT) $(VBOX_VCC_GC_FP) $(VBOX_VCC_WERR)
TEMPLATE_VBoxRc_LDFLAGS = -Driver -Subsystem:NATIVE -Incremental:NO -Align:64 -MapInfo:Exports -NoD $(VBOX_VCC_LD_WERR) -Debug
include $(KBUILD_PATH)/sdks/W2K3DDKX86.kmk
$(PATH_SDK_W2K3DDKX86_LIB)/int64.lib
TEMPLATE_VBoxRc_CXXFLAGS = -nostdinc -g -pipe $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC32_Wno-variadic-macros) -fno-exceptions $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden) -fno-rtti
TEMPLATE_VBoxRc_CFLAGS = -nostdinc -g -pipe $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC32_Wno-variadic-macros) -fno-exceptions $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-strict-aliasing $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden)
TEMPLATE_VBoxRc_LDFLAGS.release = $(if $(VBOX_DO_STRIP_MODULES),-S,)
TEMPLATE_VBoxRc_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -m32 -nostdinc -g -pipe $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC32_Wno-variadic-macros) -fno-common -msoft-float -static $(VBOX_GCC_fno-stack-protector) -fno-exceptions $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing -fno-rtti
TEMPLATE_VBoxRc_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -m32 -nostdinc -g -pipe $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC32_Wno-variadic-macros) -fno-common -msoft-float -static $(VBOX_GCC_fno-stack-protector) -fno-exceptions $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing
#TEMPLATE_VBoxRc_LDFLAGS.release = -Wl,-S ???
TEMPLATE_VBoxRc_CXXFLAGS = -nostdinc -g -pipe $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC32_Wno-variadic-macros) $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing -fno-exceptions -fno-rtti
TEMPLATE_VBoxRc_CFLAGS = -nostdinc -g -pipe $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC32_Wno-variadic-macros) $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing -fno-exceptions
$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/libcmt.lib \
$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/oldnames.lib
$(PATH_TOOL_VCC70_LIB)/libcmt.lib \
$(PATH_TOOL_VCC70_LIB)/oldnames.lib
if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), freebsd.amd64)
TEMPLATE_VBoxRcExe_DEFS.$(KBUILD_TARGET) = $(TEMPLATE_VBoxRc_DEFS.$(KBUILD_TARGET)) IPRT_DONT_USE_SYSTEM_STDINT_H
TEMPLATE_VBoxRcExe_LDFLAGS.$(KBUILD_TARGET) = $(TEMPLATE_VBoxRc_LDFLAGS.$(KBUILD_TARGET)) -nostdlib -v
TEMPLATE_VBoxRcExe_LIBPATH.$(KBUILD_TARGET) = /usr/lib32
TEMPLATE_VBoxRcExe_LIBS.$(KBUILD_TARGET) = /usr/lib32/libc.so
TEMPLATE_VBoxR0_DEFS = IN_RING0 IN_RING0_AGNOSTIC IPRT_NO_CRT RT_WITH_NOCRT_ALIASES $(ARCH_BITS_DEFS)
TEMPLATE_VBoxR0_INCS = $(PATH_ROOT)/include/iprt/nocrt
TEMPLATE_VBoxR0_CXXFLAGS = -Zi -Zl -GR- -EHs- -GF -W3 -wd4244 -GS- -wd4996 -Zc:wchar_t- $(VBOX_VCC_OPT) $(VBOX_VCC_FP) $(VBOX_VCC_WERR)
TEMPLATE_VBoxR0_CXXFLAGS = -Zi -Zl -GR- -EHs- -GF -W3 -wd4244 $(VBOX_VCC_OPT) $(VBOX_VCC_FP) $(VBOX_VCC_WERR)
TEMPLATE_VBoxR0_LDFLAGS = -Driver -Subsystem:NATIVE -Incremental:NO -Align:64 -MapInfo:Exports -NoD $(VBOX_VCC_LD_WERR) -Debug
$(PATH_SDK_W2K3DDKX86_LIB)/int64.lib
TEMPLATE_VBoxR0_CFLAGS = -nostdinc -g -pipe $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-hidden) -std=gnu99
TEMPLATE_VBoxR0_CXXFLAGS = -nostdinc -g -pipe $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) -fno-rtti
TEMPLATE_VBoxR0_CFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-asynchronous-unwind-tables -ffreestanding
TEMPLATE_VBoxR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-asynchronous-unwind-tables
TEMPLATE_VBoxR0_LDFLAGS.release = $(if $(VBOX_DO_STRIP_MODULES),-S,)
TEMPLATE_VBoxR0_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -nostdinc -g -pipe $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) \
-fno-common -msoft-float -static -fno-rtti -fno-exceptions $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing \
TEMPLATE_VBoxR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mno-sse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -fno-unwind-tables
TEMPLATE_VBoxR0_CXXFLAGS.x86 = -m32
TEMPLATE_VBoxR0_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -nostdinc -g -pipe $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC_Wno-variadic-macros) \
-fno-common -msoft-float -static -fno-exceptions $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing \
TEMPLATE_VBoxR0_CFLAGS.amd64 = -m64 -mno-red-zone -mno-sse3 -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -fno-unwind-tables
TEMPLATE_VBoxR0_CFLAGS.x86 = -m32
#TEMPLATE_VBoxR0_LDFLAGS.release = -Wl,-S ???
TEMPLATE_VBoxR0_LDFLAGS.amd64 = -m64 -static
TEMPLATE_VBoxR0_LDFLAGS.x86 = -m32
TEMPLATE_VBoxR0_CFLAGS = -nostdinc -g -pipe $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions
TEMPLATE_VBoxR0_CXXFLAGS = -nostdinc -g -pipe $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions -fno-rtti
TEMPLATE_VBOXR0DRV_DEFS.x86 = _X86_
TEMPLATE_VBOXR0DRV_DEFS.amd64 = _AMD64_
TEMPLATE_VBOXR0DRV_CXXFLAGS = -Zi -Zl -GR- -EHs- -GF -Gz -W3 -GS- -wd4996 -Zc:wchar_t- $(VBOX_VCC_OPT) $(VBOX_VCC_FP)
TEMPLATE_VBOXR0DRV_LDFLAGS = -Driver -Subsystem:NATIVE -Incremental:NO -Align:64 -MapInfo:Exports -NoD -Debug
$(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration
TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -mpreferred-stack-boundary=2 -msoft-float
TEMPLATE_VBOXR0DRV_CFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow \
TEMPLATE_VBOXR0DRV_CXXFLAGS = $(filter-out -Wstrict-prototypes -Wno-pointer-sign -ffreestanding -Wdeclaration-after-statement -Werror-implicit-function-declaration,$(TEMPLATE_VBOXR0DRV_CFLAGS) $(TEMPLATE_VBOXR0DRV_CFLAGS.$(KBUILD_TARGET_ARCH))) -fno-exceptions -fno-rtti
TEMPLATE_VBOXR0DRV_LDFLAGS.x86 = -m elf_i386 -r
TEMPLATE_VBOXR0DRV_LDFLAGS.amd64 = -m elf_x86_64 -r
TEMPLATE_VBOXR0DRV_CXXFLAGS = -g -pipe $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions -fno-rtti
TEMPLATE_VBOXR0DRV_CFLAGS = -g -pipe $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions
TEMPLATE_VBOXR0DRV_DEFS += $(VBOX_DARWIN_DEF_SDK_DEFS) KERNEL KERNEL_PRIVATE DRIVER_PRIVATE APPLE NeXT RT_USE_VISIBILITY_HIDDEN
TEMPLATE_VBOXR0DRV_INCS += $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/Kernel.framework/Headers
TEMPLATE_VBOXR0DRV_CXXFLAGS.amd64 = -m64 -mkernel -mno-red-zone -gdwarf-2
TEMPLATE_VBOXR0DRV_CXXFLAGS.x86 = -m32 -static
TEMPLATE_VBOXR0DRV_CFLAGS.amd64 = -m64 -mkernel -mno-red-zone -gdwarf-2
TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -m32 -static
TEMPLATE_VBOXR0DRV_LDFLAGS = $(filter-out $(VBOX_DARWIN_NO_COMPACT_LINKEDIT),$(VBOX_DARWIN_DEF_SDK_LDFLAGS)) -static -nostdlib -r -Wl,-Y,1455 -keep_private_extern
TEMPLATE_VBOXR0DRV_LDFLAGS.amd64 = -m64 -Xlinker -kext
-Wformat -Wimplicit-int -Wimplicit-function-declaration -Werror-implicit-function-declaration -Wparentheses \
TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -m32 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
TEMPLATE_VBOXR0DRV_CFLAGS.amd64 = -m64 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow $(if $(VBOX_SOLARIS_10),,-msave-args) -mno-red-zone -mcmodel=kernel \
-O2 -nodefaultlibs -fno-omit-frame-pointer -fno-strict-aliasing -fno-common -fno-exceptions -fno-rtti
# -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions \
# -std=c99 -c ../my.c
# awk -f /usr/src/sys/modules/my/../../conf/kmod_syms.awk my.kld export_syms | xargs -J% objcopy % my.kld
# cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I. -I@ -I@/contrib/altq \
# -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common \
# -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign \
# awk -f /usr/src/sys/modules/my/../../conf/kmod_syms.awk if_my.ko export_syms | xargs -J% objcopy % if_my.ko
VBOX_FREEBSD_SRC ?= /usr/src/sys
## The FreeBSD /usr/include.
VBOX_FREEBSD_SYS_INCS ?= /usr/include
$(VBOX_FREEBSD_SRC)/contrib/altq \
TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -m32 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2
TEMPLATE_VBOXR0DRV_CFLAGS.amd64 = -m64 --param inline-unit-growth=100 --param large-function-growth=1000 \
TEMPLATE_VBOXR0DRV_LDFLAGS.x86 = -m elf_i386_fbsd
TEMPLATE_VBOXR0DRV_LDFLAGS.amd64 = -m elf_x86_64_fbsd
# See kBuild/tools/GCC3.kmk for docs.
TOOL_FREEBSDKMODLD_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))
$(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib)))
$(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib)))
awk -f $(VBOX_FREEBSD_SRC)/conf/kmod_syms.awk $(outbase).kld $(if $(othersrc), $(othersrc),/dev/null) \
TEMPLATE_VBOXR3EXE_ASFLAGS.x86 = $(VBOX_ASFLAGS32)
TEMPLATE_VBOXR3EXE_ASFLAGS.amd64 = $(VBOX_ASFLAGS64)
TEMPLATE_VBOXR3EXE_LIBS.kprofile = $(LIB_KPROFILE)
TEMPLATE_VBOXR3EXE_TOOL.x86 = $(VBOX_VCC_TOOL)
TEMPLATE_VBOXR3EXE_TOOL.amd64 = VCC80AMD64
TEMPLATE_VBOXR3EXE_TOOL.x86 = $(VBOX_VCC_TOOL_STEM)X86
TEMPLATE_VBOXR3EXE_TOOL.amd64 = $(VBOX_VCC_TOOL_STEM)AMD64
TEMPLATE_VBOXR3EXE_CXXFLAGS = -Zi -Zl -GR- -EHsc -GF -MD$(VBOX_VCC_CRT_TYPE) -W3 -wd4065 -wd4244 -wd4996 -Zc:wchar_t- $(VBOX_VCC_OPT) $(VBOX_VCC_FP)
TEMPLATE_VBOXR3EXE_CXXFLAGS.debug = -RTCsu
TEMPLATE_VBOXR3EXE_CXXFLAGS = -Zi -Zl -GR- -EHsc -GF -MD$(VBOX_VCC_CRT_TYPE) -W3 -wd4065 -wd4244 $(VBOX_VCC_OPT) $(VBOX_VCC_FP)
TEMPLATE_VBOXR3EXE_CXXFLAGS.kprofile = -Gh -GH
/DISALLOWLIB:libc.lib \
/DISALLOWLIB:libcd.lib \
/DISALLOWLIB:libcmt.lib \
/DISALLOWLIB:libcmtd.lib \
$(PATH_TOOL_$(TEMPLATE_VBOXR3EXE_TOOL.x86)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \
$(PATH_TOOL_$(TEMPLATE_VBOXR3EXE_TOOL.x86)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \
$(PATH_TOOL_$(TEMPLATE_VBOXR3EXE_TOOL.amd64)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \
$(PATH_TOOL_$(TEMPLATE_VBOXR3EXE_TOOL.amd64)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \
TEMPLATE_VBOXR3EXE_CINCS.win = $(TOOL_$(VBOX_VCC_TOOL)_CINCS)
TEMPLATE_VBOXR3EXE_CXXINCS.win = $(TOOL_$(VBOX_VCC_TOOL)_CXXINCS)
TEMPLATE_VBOXR3EXE_CXXFLAGS = -g -pipe $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_fvisibility-inlines-hidden)
TEMPLATE_VBOXR3EXE_CXXFLAGS.l4 = -fno-exceptions -nostdinc \
TEMPLATE_VBOXR3EXE_CXXFLAGS.kprofile = -finstrument-functions
TEMPLATE_VBOXR3EXE_CFLAGS = -g -pipe $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fvisibility-hidden)
TEMPLATE_VBOXR3EXE_CFLAGS.l4 = -nostdinc \
TEMPLATE_VBOXR3EXE_DEFS.l4 = L4_THREAD_SAFE
$(L4_LIBDIR)/../crt0.o \
-T$(L4_LIBDIR)/../main_dyn.ld -nostdlib \
-Wl,--export-dynamic,--dynamic-linker=libld-l4.s.so \
TEMPLATE_VBOXR3EXE_LDFLAGS.linux = -Wl,-z,noexecstack $(VBOX_LD_as_needed)
$(L4_LIBDIR)/libvboxserver.s.so \
$(L4_LIBDIR)/libuc++.0.s.so \
$(L4_LIBDIR)/libdl.s.so \
$(L4_LIBDIR)/libuc.0.s.so
TEMPLATE_VBOXR3EXE_DEFS.darwin = $(VBOX_DARWIN_DEF_SDK_DEFS)
TEMPLATE_VBOXR3EXE_CFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -fno-common
TEMPLATE_VBOXR3EXE_CXXFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS)
TEMPLATE_VBOXR3EXE_OBJCFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_OBJCFLAGS)
TEMPLATE_VBOXR3EXE_OBJCXXFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_OBJCXXFLAGS)
TEMPLATE_VBOXR3EXE_LDFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_LDFLAGS)
TEMPLATE_VBOXR3EXE_LDFLAGS.darwin.x86 = -read_only_relocs suppress
/usr/lib \
TEMPLATE_VBOXR3EXE_LDFLAGS.linux += $(VBOX_GCC_ORIGIN_OPT)
TEMPLATE_VBOXR3 = VBox Ring 3 SO/DLLs
ifeq ($(filter-out solaris.x86 %.amd64 %.sparc32 %.sparc64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) ## TODO: cleanup!
TEMPLATE_VBoxR3Dll += VBox ring-3 SO/DLLs, no warnings
TEMPLATE_VBOXR3STATIC_CFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE), $(TEMPLATE_VBOXR3EXE_CFLAGS)) -MT$(VBOX_VCC_CRT_TYPE)
TEMPLATE_VBOXR3STATIC_CXXFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE), $(TEMPLATE_VBOXR3EXE_CFLAGS)) -MT$(VBOX_VCC_CRT_TYPE)
TEMPLATE_VBOXR3STATIC_LDFLAGS = $(filter-out /DISALLOWLIB:libcmt$(VBOX_VCC_CRT_TYPE).lib /DISALLOWLIB:libcpmt$(VBOX_VCC_CRT_TYPE).lib, $(TEMPLATE_VBOXR3EXE_LDFLAGS)) \
/DISALLOWLIB:msvcrt.lib \
/DISALLOWLIB:msvcrtd.lib \
/DISALLOWLIB:msvcprt.lib \
/DISALLOWLIB:msvcprtd.lib
$(PATH_TOOL_$(TEMPLATE_VBOXR3STATIC_TOOL.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
$(PATH_TOOL_$(TEMPLATE_VBOXR3STATIC_TOOL.x86)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib
$(PATH_TOOL_$(TEMPLATE_VBOXR3STATIC_TOOL.amd64)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
$(PATH_TOOL_$(TEMPLATE_VBOXR3STATIC_TOOL.amd64)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib \
TEMPLATE_VBOXR3DLLNOXCPT = VBox Ring 3 SO/DLLs without C++ exception
# not necessary except USE_LIB_PCAP is defined in SUPR3HardenedMain.cpp
TEMPLATE_VBOXR3HARDENEDEXE_LDFLAGS = $(filter-out '$(VBOX_GCC_RPATH_OPT)%,$(TEMPLATE_VBOXR3EXE_LDFLAGS))
TEMPLATE_VBOXR3HARDENEDEXE_LDFLAGS.linux = $(filter-out $(VBOX_GCC_ORIGIN_OPT),$(TEMPLATE_VBOXR3EXE_LDFLAGS.linux))
TEMPLATE_VBoxR3SetUidToRoot_LDFLAGS.linux += $(VBOX_GCC_ORIGIN_OPT)
TEMPLATE_VBOXR3OSX105 = VBox Ring 3 SO/DLLs for OS X 10.5
TEMPLATE_VBOXR3OSX105_DEFS.darwin = $(VBOX_DARWIN_DEF_SDK_10_5_DEFS) PIC
TEMPLATE_VBOXR3OSX105_CFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_5_CFLAGS) -fno-common
TEMPLATE_VBOXR3OSX105_CXXFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_5_CXXFLAGS)
TEMPLATE_VBOXR3OSX105_OBJCFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_5_OBJCFLAGS)
TEMPLATE_VBOXR3OSX105_OBJCXXFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_5_OBJCFLAGS)
TEMPLATE_VBOXR3OSX105_LDFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_5_LDFLAGS) \
TEMPLATE_VBOXR3TSTEXE_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' $(TEMPLATE_VBOXR3EXE_LDFLAGS)
TEMPLATE_VBOXR3TSTEXE_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..' $(TEMPLATE_VBOXR3EXE_LDFLAGS)
TEMPLATE_VBOXR3TSTNPEXE_CXXFLAGS = $(filter-out -pedantic -Wshadow,$(TEMPLATE_VBOXR3TSTEXE_CXXFLAGS)) -Wno-sign-compare
TEMPLATE_VBOXR3TSTNPEXE_CFLAGS = $(filter-out -pedantic -Wshadow -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations,$(TEMPLATE_VBOXR3TSTEXE_CFLAGS)) -Wno-sign-compare
TEMPLATE_VBOXR3NPEXE_CXXFLAGS = $(filter-out -pedantic -Wshadow,$(TEMPLATE_VBOXR3EXE_CXXFLAGS)) -Wno-sign-compare
TEMPLATE_VBOXR3NPEXE_CFLAGS = $(filter-out -pedantic -Wshadow -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations,$(TEMPLATE_VBOXR3EXE_CFLAGS)) \
TEMPLATE_VBOXR3NP_CXXFLAGS = $(filter-out -pedantic -Wshadow,$(TEMPLATE_VBOXR3_CXXFLAGS)) -Wno-sign-compare
TEMPLATE_VBOXR3NP_CFLAGS = $(filter-out -pedantic -Wshadow -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations,$(TEMPLATE_VBOXR3_CFLAGS)) \
TEMPLATE_VBOXNOCRTGCC = VBox no-crt GCC libraries and modules, yasm/nasm.
TEMPLATE_VBOXNOCRTGCC_CFLAGS = -nostdinc -fno-strict-aliasing -fno-math-errno $(VBOX_GCC_WARN) -Werror-implicit-function-declaration
TEMPLATE_VBOXNOCRTGCC_CFLAGS.amd64 = -m64 -mcmodel=medium -fno-common
TEMPLATE_VBOXNOCRTGCC_CFLAGS.release = -O2 -fno-strict-aliasing
TEMPLATE_VBOXNOCRTGCC_CFLAGS.darwin = -static
TEMPLATE_VBOXNOCRTGCC_CXXFLAGS.$(KBUILD_TARGET_ARCH) = $(TEMPLATE_VBOXNOCRTGCC_CFLAGS.$(KBUILD_TARGET_ARCH))
TEMPLATE_VBOXNOCRTGCC_INCS = $(PATH_ROOT)/include/iprt/nocrt
ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
TEMPLATE_VBOXNOCRTGCC_LIBS = $(PATH_DEVTOOLS)/win.x86/x86_64-unknown-linux-gnu/20060701-r2/lib/gcc/x86_64-unknown-linux-gnu/3.4.6/libgcc.a
else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
# The use of --exclude-libs ALL is to avoid confusing the linux ld.so.
TEMPLATE_VBOXNOCRTGCC_LDFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_LDFLAGS)
# Same as VBOXNOCRTGCC only it uses GAS as the assembler instead of yasm/nasm.
ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
# (COM/XPCOM interface to VirtualBox).
TEMPLATE_VBOXMAINEXE_DEFS.win = _UNICODE
TEMPLATE_VBOXMAINEXE_LIBS.kprofile = $(LIB_KPROFILE)
TEMPLATE_VBOXMAINEXE_CXXFLAGS = -Zi -Zl -GR -EHsc -GF -MD$(VBOX_VCC_CRT_TYPE) -W3 -wd4065 -wd4996 -wd4250 -Zc:wchar_t- $(VBOX_VCC_OPT) $(VBOX_VCC_FP)
TEMPLATE_VBOXMAINEXE_CXXFLAGS.debug = -RTCsu
TEMPLATE_VBOXMAINEXE_CXXFLAGS = -Zi -Zl -GR -EHsc -GF -MD$(VBOX_VCC_CRT_TYPE) -W3 -wd4065 -wd4250 $(VBOX_VCC_OPT) $(VBOX_VCC_FP)
TEMPLATE_VBOXMAINEXE_CXXFLAGS.kprofile = -Gh -GH
/DISALLOWLIB:libc.lib \
/DISALLOWLIB:libcd.lib \
/DISALLOWLIB:libcmt.lib \
/DISALLOWLIB:libcmtd.lib \
$(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/oldnames.lib \
$(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) -Wno-long-long -Wno-non-virtual-dtor -Wshadow \
-fshort-wchar -fpermissive -fexceptions -frtti $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing \
TEMPLATE_VBOXMAINEXE_CXXFLAGS.kprofile = -finstrument-functions
TEMPLATE_VBOXMAINEXE_LDFLAGS.linux = $(VBOX_LD_as_needed)
TEMPLATE_VBOXMAINEXE_LDFLAGS.darwin += -bind_at_load
/usr/lib \
TEMPLATE_VBOXMAINEXE_LDFLAGS.linux += $(VBOX_GCC_ORIGIN_OPT)
# Add COM/XPCOM stuff
$(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h
$(VBOX_PATH_SDK)/bindings/mscom/include
$(VBOX_PATH_SDK)/bindings/mscom/include/VirtualBox.h
# Template for building the Main DLL modules (such as in-process COM/XPCOM
ifeq ($(filter-out solaris.x86 %.amd64 %.sparc32 %.sparc64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) ## TODO: cleanup!
TEMPLATE_VBOXMAINDLL_LDFLAGS.darwin = $(filter-out -bind_at_load,$(TEMPLATE_VBOXMAINEXE_LDFLAGS.darwin)) \
TEMPLATE_VBOXMAINCOMP = VBox Main COM/XPCOM Component (shared library)
ifeq ($(filter-out solaris.x86 %.amd64 %.sparc32 %.sparc64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) ## TODO: cleanup!
TEMPLATE_VBOXMAINCOMP_LDFLAGS = -fPIC $(filter-out '$(VBOX_GCC_RPATH_OPT)%',$(TEMPLATE_VBOXMAINEXE_LDFLAGS)) '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..'
TEMPLATE_VBOXMAINCOMP_LDFLAGS = $(filter-out '$(VBOX_GCC_RPATH_OPT)%',$(TEMPLATE_VBOXMAINEXE_LDFLAGS)) '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..'
TEMPLATE_VBOXMAINCOMP_LDFLAGS.darwin = $(filter-out -bind_at_load,$(TEMPLATE_VBOXMAINEXE_LDFLAGS.darwin)) \
$(PATH_SDK_WINPSDK_LIB)/User32.Lib \
$(PATH_SDK_WINPSDK_LIB)/Shell32.Lib \
$(PATH_SDK_WINPSDK_LIB)/ShLwApi.Lib \
$(PATH_SDK_WINPSDK_LIB)/Ole32.Lib \
$(PATH_SDK_WINPSDK_LIB)/OleAut32.Lib \
$(PATH_SDK_WINPSDK_LIB)/Uuid.Lib
ifeq ($(filter-out solaris.x86 %.amd64 %.sparc32 %.sparc64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) ## TODO: cleanup!
TEMPLATE_VBOXMAINCLIENTDLL_LDFLAGS.darwin = $(filter-out -bind_at_load,$(TEMPLATE_VBOXMAINCLIENTEXE_LDFLAGS.darwin))
TEMPLATE_VBoxR3ExtPack_DEFS = $(TEMPLATE_VBOXNOCRTGCC_DEFS) VBOX_IN_EXTPACK VBOX_IN_EXTPACK_R3 IPRT_NO_CRT IN_RING3
TEMPLATE_VBoxR3ExtPack_INCS = $(PATH_ROOT)/include/iprt/nocrt $(TEMPLATE_VBOXR3DLLNOXCPT_INCS)
TEMPLATE_VBoxR3ExtPack_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/../../..' $(filter-out '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)', $(TEMPLATE_VBOXR3DLLNOXCPT_LDFLAGS))
VBOX_PATH_QT4 := $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*)))
ifneq ($(wildcard /Library/Frameworks/QtCore.framework),)
VBOX_PATH_QT4_FRAMEWORKS ?= /Library/Frameworks
VBOX_PATH_QT4 ?= $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*)))
VBOX_PATH_QT4 ?= $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*)))
VBOX_PATH_QT4_LIB ?= /usr/lib/qt4
TEMPLATE_VBOXQT4GUIEXE_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H $(ARCH_BITS_DEFS)
/DELAYLOAD:oleaut32.dll
$(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/msvcprt.lib \
$(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/msvcrt.lib \
$(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/oldnames.lib \
$(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib \
$(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls.lib
TEMPLATE_VBOXQT4GUIEXE_LDFLAGS.win.x86 += /LARGEADDRESSAWARE
TEMPLATE_VBOXQT4GUIEXE_DEFS.linux = _REENTRANT
TEMPLATE_VBOXQT4GUIEXE_DEFS.solaris = _REENTRANT
TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.linux = -pthread
TEMPLATE_VBOXQT4GUIEXE_DEFS.darwin += $(VBOX_DARWIN_DEF_SDK_DEFS)
TEMPLATE_VBOXQT4GUIEXE_CFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_CFLAGS)
TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_CXXFLAGS)
TEMPLATE_VBOXQT4GUIEXE_OBJCFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_OBJCFLAGS)
TEMPLATE_VBOXQT4GUIEXE_OBJCXXFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_OBJCXXFLAGS)
TEMPLATE_VBOXQT4GUIEXE_LDFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -bind_at_load
/usr/lib \
# Add COM/XPCOM stuff
$(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h
$(VBOX_PATH_SDK)/bindings/mscom/include
$(VBOX_PATH_SDK)/bindings/mscom/include/VirtualBox.h
TEMPLATE_VBOXQT4GUI_LDFLAGS.darwin += $(filter-out -bind_at_load,$(TEMPLATE_VBOXQT4GUIEXE_LDFLAGS.darwin)) \
ifeq ($(filter-out solaris.x86 %.amd64 %.sparc32 %.sparc64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) ## TODO: cleanup!
TEMPLATE_VBOXBLDPROG_DEFS.win := _CRT_SECURE_NO_DEPRECATE
TEMPLATE_VBOXBLDPROG_ASFLAGS.x86 := $(VBOX_ASFLAGS32)
TEMPLATE_VBOXBLDPROG_ASFLAGS.amd64 := $(VBOX_ASFLAGS64)
TEMPLATE_VBOXBLDPROG_CXXFLAGS = -Zi -Zl -GR- -EHs- -GF -MT$(VBOX_VCC_CRT_TYPE) -W3 -wd4996 -Zc:wchar_t-
TEMPLATE_VBOXBLDPROG_CXXFLAGS.debug = -RTCsu
TEMPLATE_VBOXBLDPROG_CXXFLAGS.release = -O2 -Oy- -GS-
TEMPLATE_VBOXBLDPROG_CXXFLAGS.release = -Ogitb2 -Oy-
/DISALLOWLIB:msvcrt.lib \
/DISALLOWLIB:msvcrtd.lib \
/DISALLOWLIB:msvcprt.lib \
/DISALLOWLIB:msvcprtd.lib
$(PATH_TOOL_$(TEMPLATE_VBOXBLDPROG_TOOL)_LIB)/oldnames.lib \
TEMPLATE_VBOXBLDPROG_CFLAGS.release = -O2 -fno-omit-frame-pointer -fno-strict-aliasing
TEMPLATE_VBOXBLDPROG_CXXFLAGS.release = -O2 -fno-omit-frame-pointer -fno-strict-aliasing
ifeq ($(KBUILD_HOST_ARCH).$(KBUILD_TARGET_ARCH),amd64.x86) # MESS ALERT!
TEMPLATE_VBOXBLDPROG_DEFS.darwin = $(VBOX_DARWIN_DEF_SDK_10_6_DEFS)
TEMPLATE_VBOXBLDPROG_CFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_6_CFLAGS) -fno-common
TEMPLATE_VBOXBLDPROG_CXXFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_6_CXXFLAGS)
TEMPLATE_VBOXBLDPROG_OBJCFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_6_OBJCFLAGS) $(VBOX_GCC_PEDANTIC_C)
TEMPLATE_VBOXBLDPROG_OBJCXXFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_6_OBJCXXFLAGS) $(VBOX_GCC_PEDANTIC_CXX)
TEMPLATE_VBOXBLDPROG_LDFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_6_LDFLAGS)
else ifdef VBOX_MACOS_10_5_WORKAROUND # enable this if you have problems linking xpidl and is running 10.5 or later.
TEMPLATE_VBOXBLDPROG_DEFS.darwin = $(VBOX_DARWIN_DEF_SDK_10_5_DEFS)
TEMPLATE_VBOXBLDPROG_CFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_5_CFLAGS) -fno-common
TEMPLATE_VBOXBLDPROG_CXXFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_5_CXXFLAGS)
TEMPLATE_VBOXBLDPROG_OBJCFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_5_OBJCFLAGS) $(VBOX_GCC_PEDANTIC_C)
TEMPLATE_VBOXBLDPROG_OBJCXXFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_5_OBJCXXFLAGS) $(VBOX_GCC_PEDANTIC_CXX)
TEMPLATE_VBOXBLDPROG_LDFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_5_LDFLAGS)
TEMPLATE_VBOXBLDPROG_DEFS.darwin = $(VBOX_DARWIN_DEF_SDK_DEFS)
TEMPLATE_VBOXBLDPROG_CFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -fno-common
TEMPLATE_VBOXBLDPROG_CXXFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS)
TEMPLATE_VBOXBLDPROG_OBJCFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_OBJCFLAGS) $(VBOX_GCC_PEDANTIC_C)
TEMPLATE_VBOXBLDPROG_OBJCXXFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_OBJCXXFLAGS) $(VBOX_GCC_PEDANTIC_CXX)
TEMPLATE_VBOXBLDPROG_LDFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_LDFLAGS)
/usr/lib \
# (Some (old) Wine versions fails loading msvcrt.dll from the VCC bin directory.)
TOOL_VCC100X86_RC := $(EXEC_X86_WIN32) $(PATH_DEVTOOLS)/win.x86/bin/rc.exe
TOOL_VCC100AMD64_RC := $(EXEC_X86_WIN32) $(PATH_DEVTOOLS)/win.x86/bin/rc.exe
TOOL_VCC80X86_RC := $(EXEC_X86_WIN32) $(PATH_DEVTOOLS)/win.x86/bin/rc.exe
TOOL_VCC80AMD64_RC := $(EXEC_X86_WIN32) $(PATH_DEVTOOLS)/win.x86/bin/rc.exe
TOOL_VCC70_RC := $(EXEC_X86_WIN32) $(PATH_DEVTOOLS)/win.x86/bin/rc.exe
WIN32_MC = $(EXEC_X86_WIN32) $(PATH_DEVTOOLS)/win.x86/bin/mc.exe
$(PATH_SDK_WINPSDK_BIN)/MC.Exe\
$(PATH_SDK_WINPSDK)/Bin/MC.Exe\
$(PATH_SDK_WIN32SDK_BIN)/MC.Exe\
$(PATH_SDK_WIN64SDK_BIN)/MC.Exe\
$(PATH_DEVTOOLS)/win.x86/bin/mc.exe\
TEMPLATE_VBOXLNXHOSTR3EXE_CXXFLAGS = -g -pipe $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_fno-stack-protector)
TEMPLATE_VBOXLNXHOSTR3EXE_CXXFLAGS.debug = -fno-inline
TEMPLATE_VBOXLNXHOSTR3EXE_CXXFLAGS.release = -O2 -fno-omit-frame-pointer -fno-strict-aliasing
TEMPLATE_VBOXGUESTR3EXE_CFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE), $(TEMPLATE_VBOXR3EXE_CFLAGS)) -MT$(VBOX_VCC_CRT_TYPE)
TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE), $(TEMPLATE_VBOXR3EXE_CFLAGS)) -MT$(VBOX_VCC_CRT_TYPE)
TEMPLATE_VBOXGUESTR3EXE_LDFLAGS = $(filter-out /DISALLOWLIB:libcmt$(VBOX_VCC_CRT_TYPE).lib /DISALLOWLIB:libcpmt$(VBOX_VCC_CRT_TYPE).lib, $(TEMPLATE_VBOXR3EXE_LDFLAGS)) \
$(PATH_TOOL_$(TEMPLATE_VBOXGUESTR3EXE_TOOL.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
$(PATH_TOOL_$(TEMPLATE_VBOXGUESTR3EXE_TOOL.x86)_LIB)/libcpmt$(VBOX_sVCC_CRT_TYPE).lib
$(PATH_TOOL_$(TEMPLATE_VBOXGUESTR3EXE_TOOL.amd64)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
$(PATH_TOOL_$(TEMPLATE_VBOXGUESTR3EXE_TOOL.amd64)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib
TEMPLATE_VBOXGUESTR3EXE_LDFLAGS = $(filter-out '$(VBOX_GCC_RPATH_OPT)%,$(TEMPLATE_VBOXR3EXE_LDFLAGS))
TEMPLATE_VBOXGUESTR3EXE_LDFLAGS.linux = $(filter-out $(VBOX_GCC_ORIGIN_OPT),$(TEMPLATE_VBOXR3EXE_LDFLAGS.linux))
TEMPLATE_VBOXGUESTR3EXE_DEFS.linux := $(TEMPLATE_VBOXR3EXE_DEFS.linux) LOG_USE_C99 RT_WITHOUT_EXEC_ALLOC
if1of ($(KBUILD_TARGET), solaris) ## @todo r=bird: Fix the *R3Mini template to VBOXGUESTR3DLL and remove this hack.
TEMPLATE_VBOXGUESTR3NPEXE_CXXFLAGS = $(filter-out -pedantic -Wshadow,$(TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS)) -Wno-sign-compare
TEMPLATE_VBOXGUESTR3NPEXE_CFLAGS = $(filter-out -pedantic -Wshadow -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations,$(TEMPLATE_VBOXGUESTR3EXE_CFLAGS)) -Wno-sign-compare
ifeq ($(filter-out solaris.x86 %.amd64 %.sparc32 %.sparc64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) ## TODO: cleanup!
# Template for XFree86 guest modules (relocatable module, i.e. sysmod).
TEMPLATE_VBOXGUESTR3XF86MOD_LDFLAGS.x86 = -m elf_i386
TEMPLATE_VBOXGUESTR3XF86MOD_LDFLAGS.amd64 = -m elf_x86_64
TEMPLATE_VBOXGUESTR3XF86MOD_CFLAGS = $(TEMPLATE_VBOXGUESTR3EXE_CFLAGS) -fno-merge-constants -std=c99 $(VBOX_GCC_fno-stack-protector) -ffreestanding
TEMPLATE_VBOXGUESTR3XF86MOD_CXXFLAGS= $(TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS) -fno-merge-constants $(VBOX_GCC_fno-stack-protector) -ffreestanding
TEMPLATE_VBOXGUESTR3XF86MOD_DEFS = $(TEMPLATE_VBOXGUESTR3DLL_DEFS) VBOX_GUESTR3XF86MOD RTMEM_NO_WRAP_TO_EF_APIS
# Template for X.org guest modules (shared libs).
TEMPLATE_VBOXGUESTR3XORGMOD = VBox X.org Guest Module
TEMPLATE_VBOXGUESTR3XORGMOD_DEFS = $(TEMPLATE_VBOXGUESTR3DLL_DEFS) LOG_TO_BACKDOOR VBOX_GUESTR3XORGMOD RTMEM_NO_WRAP_TO_EF_APIS
TEMPLATE_VBOXGUESTR0_SDKS.win.x86 = WIN32SDK $(VBOX_WINDDK)
TEMPLATE_VBOXGUESTR0_SDKS.win.amd64 = $(VBOX_WINDDK) WINPSDKINCS
$(PATH_SDK_$(VBOX_WINDDK)_LIB)/int64.lib
TEMPLATE_VBOXCROGLR3HOSTDLL_DEFS.win = _WIN32_WINNT=0x0500 WINDOWS=1
TEMPLATE_VBOXCROGLR3HOSTDLL_DEFS.linux = Linux=1 _GNU_SOURCE
TEMPLATE_VBOXCROGLR3HOSTDLL_DEFS.solaris = SunOS=1 _GNU_SOURCE #GLEXT_64_TYPES_DEFINED
TEMPLATE_VBOXCROGLR3HOSTDLL_DEFS.darwin = DARWIN=1 GL_GLEXT_LEGACY _GNU_SOURCE
TEMPLATE_VBOXCROGLR3HOSTDLL_DEFS.darwin += VBOX_WITH_COCOA_QT
TEMPLATE_VBOXCROGLR3HOSTDLL_LDFLAGS.darwin = -framework AppKit
TEMPLATE_VBOXCROGLR3HOSTDLL_LDFLAGS.darwin = -framework Carbon
TEMPLATE_VBOXCROGLR3HOSTDLL_DEFS.freebsd = FreeBSD=1 _GNU_SOURCE
TEMPLATE_VBOXCROGLR3HOSTDLL_SDKS.darwin = DARWIN-OPENGL
TEMPLATE_VBOXCROGLR3HOSTDLL_LDFLAGS.linux = -Wl,--no-as-needed
TEMPLATE_VBOXCROGLR3GUESTDLL_DEFS.win = WINDOWS=1
TEMPLATE_VBOXCROGLR3GUESTDLL_DEFS.linux = Linux=1 _GNU_SOURCE
TEMPLATE_VBOXCROGLR3GUESTDLL_DEFS.solaris = SunOS=1 _GNU_SOURCE #GLEXT_64_TYPES_DEFINED
TEMPLATE_VBOXCROGLR3GUESTDLL_DEFS.darwin = DARWIN=1 GL_GLEXT_LEGACY _GNU_SOURCE
TEMPLATE_VBOXCROGLR3GUESTDLL_DEFS.darwin += VBOX_WITH_COCOA_QT
TEMPLATE_VBOXCROGLR3GUESTDLL_LDFLAGS.darwin = -framework AppKit
TEMPLATE_VBOXCROGLR3GUESTDLL_LDFLAGS.darwin = -framework Carbon
TEMPLATE_VBOXCROGLR3GUESTDLL_DEFS.freebsd = FreeBSD=1 _GNU_SOURCE
TEMPLATE_VBOXCROGLR3GUESTDLL_SDKS.darwin = DARWIN-OPENGL
TEMPLATE_VBOXMESAR3GUESTLIB_DEFS.linux = Linux=1
TEMPLATE_VBOXMESAR3GUESTLIB_DEFS.solaris = SunOS=1
TEMPLATE_VBOXMESAR3GUESTLIB_DEFS.darwin = DARWIN=1 GL_GLEXT_LEGACY
VBOX_VERSION_STAMP = $(PATH_OUT)/version-stamp-$(translate $(VBOX_VERSION_STRING)-$(VBOX_C_YEAR)-$(VBOX_VENDOR)-$(VBOX_PRODUCT),$(VBOX_BAD_CHAR_SET),,_)
VBOX_VERSION_HEADER = $(PATH_OUT)/version-generated.h
VBOX_VERSION_MK = $(PATH_OUT)/version-generated.mk
$(VBOX_VERSION_STAMP): | $(PATH_ROOT)/Config.kmk
VBOX_PACKAGE_HEADER = $(PATH_OUT)/package-generated.h
VBOX_PRODUCT_HEADER = $(PATH_OUT)/product-generated.h
# Used for external makefiles which cannot include Config.kmk
VBOX_LICENSE_VER_KMK = $(PATH_OUT)/license-version.kmk
$(QUIET)$(SED) -e "s/.*License version \([0-9.]*\) *[,&].*/VBOX_LICENSE_VER=\1/;t;d" --output $@ $(VBOX_BRAND_LICENSE_HTML)
Makefile.kmk: | $(VBOX_VERSION_HEADER) $(VBOX_VERSION_MK) $(VBOX_PRODUCT_HEADER) $(VBOX_PACKAGE_HEADER)
# the Config.kmk revision.
VBOX_SVN_REV_KMK = $(PATH_OUT)/revision.kmk
$(VBOX_SVN_REV_KMK).ts +| $(VBOX_SVN_REV_KMK): $(if $(VBOX_SVN_DEP), $(VBOX_SVN_DEP), $(PATH_ROOT)/Config.kmk)
$(SED) -e '/^Last Changed Rev/!d' -e 's/Last Changed Rev\: */export VBOX_SVN_REV=/' --output $@ $@.tmp
$(SED) -e '/^Revision/!d' -e 's/Revision\: */export VBOX_SVN_REV=/' --output $@ $@.tmp
# only needed for VBoxGuest for Linux/FreeBSD guests
VBOX_SVN_REV_HEADER = $(PATH_OUT)/revision-generated.h
# a second XIDL file, from which the COM/XPCOM IDL files are then generated:
VBOX_XIDL_FILE_SRC = $(PATH_ROOT)/src/VBox/Main/idl/VirtualBox.xidl
# second XIDL file to use as source for COM/XPCOM IDL (with stripped docs):
VBOX_XIDL_FILE = $(PATH_OUT)/obj/VirtualBox_stripped.xidl
) /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands)
VBOX_JAVA_INC = $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Headers
$(PATH_DEVTOOLS)/linux.x86/jdk1.6.0_21 \
# VBOX_JAVA_HOME ?= /usr/jdk/jdk1.6.0
VBOX_JAVA_HOME ?= /usr/java
VBOX_JAVAC = $(VBOX_JAVA_HOME)/bin/javac
VBOX_JAVAH = $(VBOX_JAVA_HOME)/bin/javah
VBOX_JAR = $(VBOX_JAVA_HOME)/bin/jar
VBOX_WSIMPORT = $(VBOX_JAVA_HOME)/bin/wsimport