Makefile.kmk revision 23aff1fbd83554a22d3b1685280d444cb112d398
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# $Id$
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync## @file
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Sub-Makefile for the IPRT (IPRT).
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Copyright (C) 2006-2010 Oracle Corporation
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# available from http://www.virtualbox.org. This file is free software;
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# you can redistribute it and/or modify it under the terms of the GNU
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# General Public License (GPL) as published by the Free Software
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# The contents of this file may alternatively be used under the terms
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# of the Common Development and Distribution License Version 1.0
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# VirtualBox OSE distribution, in which case the provisions of the
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# CDDL are applicable instead of those of the GPL.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# You may elect to license modified versions of this file under the
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# terms and conditions of either the GPL or the CDDL or both.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncSUB_DEPTH = ../../..
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncinclude $(KBUILD_PATH)/subheader.kmk
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncifdef VBOX_ONLY_ADDITIONS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync #
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync # Only build the additions, sort out the legacy names first.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync #
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeGuestR3Mini
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync ifdef VBOX_WITH_ADDITION_DRIVERS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES += RuntimeGuestR0
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync #LIBRARIES.os2 += RuntimeGuestR0OS2Warp3
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES.win.x86 += RuntimeGuestR0NT4
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync endif
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncelse ifdef VBOX_ONLY_TESTSUITE
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync #
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync # Only build the testsuite.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync #
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeR3 RuntimeR0
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES.win += RuntimeR0Stub
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncelse ifdef VBOX_ONLY_DOCS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync #
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync # Build docs only - need just regular R3 runtime.
ecb98c0e709a5cebd8877fb39f61a821804024bcvboxsync #
ecb98c0e709a5cebd8877fb39f61a821804024bcvboxsync LIBRARIES += RuntimeR3
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync DLLS += VBoxRT
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncelse # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_TESTSUITE && !VBOX_ONLY_DOCS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync #
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync # Normal build.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync #
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync BLDPROGS += uniread
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES += RuntimeR3 RuntimeR0 RuntimeEFCPP RuntimeR3NoCRTGCC
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES.win += RuntimeR0Stub
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync ifdef VBOX_WITH_RAW_MODE
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES += RuntimeRC
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES.win += RuntimeRCStub
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync endif
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync ifdef VBOX_WITH_VBOXDRV
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES += RuntimeR0Drv
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync endif
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync ifdef VBOX_WITH_ADDITIONS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeGuestR3Mini
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync ifdef VBOX_WITH_ADDITION_DRIVERS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES += RuntimeGuestR0
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync endif
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync #LIBRARIES.os2 += RuntimeGuestR0OS2Warp3
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES.win.x86 += RuntimeGuestR0NT4
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync endif # VBOX_WITH_ADDITIONS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES.l4 += RuntimeR3L4 RuntimeLnxHostR3
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync DLLS += VBoxRT
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncendif
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Where the generated stuff goes.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncIPRT_OUT_DIR := $(PATH_TARGET)/Runtime
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncBLDDIRS += $(IPRT_OUT_DIR)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncOTHER_CLEAN += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(IPRT_OUT_DIR)/errmsgdata.h \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(IPRT_OUT_DIR)/errmsgcomdata.h \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(IPRT_OUT_DIR)/errmsgvboxcomdata.h \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(IPRT_OUT_DIR)/Doxyfile.iprt \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(IPRT_OUT_DIR)/Doxyfile.iprt.dep \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(IPRT_OUT_DIR)/docs.iprt
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Globals
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncVBOX_PATH_RUNTIME_SRC := $(PATH_SUB_CURRENT)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Set the defines that buildconfig.cpp needs. Its used by several targets.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsynccommon/misc/buildconfig.cpp_DEFS = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync IPRT_BLDCFG_SCM_REV=$(VBOX_SVN_REV) \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync IPRT_BLDCFG_VERSION_MAJOR=$(VBOX_VERSION_MAJOR) \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync IPRT_BLDCFG_VERSION_MINOR=$(VBOX_VERSION_MINOR) \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Unicode Specification reader used to regenerate unidata.cpp.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncuniread_TEMPLATE = VBOXBLDPROG
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncuniread_SOURCES = common/string/uniread.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncuniread_INCS = include
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Win64 assembly sources.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeWin64ASM_SOURCES = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMAtomicBitClear.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMAtomicBitTestAndToggle.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMAtomicBitToggle.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMAtomicReadU64.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMAtomicXchgU16.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMAtomicXchgU8.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMBitFirstClear.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMBitFirstSet.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMGetCS.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMGetDS.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMGetES.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMGetFlags.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMGetFS.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMGetGS.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMGetIDTR.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMGetGDTR.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMGetTR.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMGetSS.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMProbeReadByte.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMSetFlags.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMGetDR0.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMGetDR1.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMGetDR2.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMGetDR3.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMGetDR6.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync win/amd64/ASMGetDR7.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/asm/ASMAtomicCmpXchgU8.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/asm/ASMMultU64ByU32DivByU32.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/asm/ASMNopPause.asm
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Win32 assembly sources.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeWin32ASM_SOURCES = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/asm/ASMAtomicCmpXchgU8.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/asm/ASMMultU64ByU32DivByU32.asm
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# NoCRT sources (minus math stuff).
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncif1of ($(KBUILD_TARGET_ARCH), amd64 x86)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeNoCrt_SOURCES = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/setjmp.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/memchr.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/memcmp.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/memcpy.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/mempcpy.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/memmove.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/memset.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/strchr.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/strcpy.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/strcmp.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/strlen.asm
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncendif
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
6a0359b8230a1b91fe49967c124a75191c3dfbf9vboxsync
9f22c692723a5d3cb78b91896c48cf681c4fb608vboxsync#
83d61602c6968041692aa7203ee51c4085c7e460vboxsync# RuntimeR3 - Static Runtime for Ring-3 executables.
83d61602c6968041692aa7203ee51c4085c7e460vboxsync#
6a0359b8230a1b91fe49967c124a75191c3dfbf9vboxsyncRuntimeR3_TEMPLATE = VBoxR3Static
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SDKS = VBOX_LIBXML2 VBOX_BOOST
4f9276b4c85a4617d08094484cc1d983791bbb16vboxsyncRuntimeR3_SDKS.win = WINPSDK $(VBOX_WINDDK)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX RT_NO_GIP
a9d98aa17ecb241bc2c79b67dc044f0af2eb7448vboxsync#RuntimeR3_DEFS += RTMEM_WRAP_TO_EF_APIS
83d61602c6968041692aa7203ee51c4085c7e460vboxsyncifdef IPRT_WITH_KSTUFF
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_DEFS += LDR_WITH_KLDR
1e0e13b23ace43d2fe93d45953b123f63b7e547cvboxsyncendif
1e0e13b23ace43d2fe93d45953b123f63b7e547cvboxsyncifdef VBOX_MAIN_RELEASE_LOG ## @todo (dmik): temporary, until RTThreadSelf/RTThreadAdopt are properly updated
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_DEFS += RTCRITSECT_STRICT
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncendif
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncifdef IPRT_WITH_LZJB
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_DEFS += RTZIP_USE_LZJB
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncendif
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsyncifdef IPRT_WITH_LZO
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync RuntimeR3_DEFS += RTZIP_USE_LZO
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsyncendif
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsyncifn1of ($(KBUILD_TARGET), win)
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync RuntimeR3_DEFS += RT_WITH_ICONV_CACHE
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsyncendif
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsyncifdef IPRT_WITH_FUTEX_BASED_SEMS
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync RuntimeR3_DEFS.linux += IPRT_WITH_FUTEX_BASED_SEMS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncendif
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_INCS = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync include \
6a0359b8230a1b91fe49967c124a75191c3dfbf9vboxsync $(SDK_VBOX_ZLIB_INCS)
6a0359b8230a1b91fe49967c124a75191c3dfbf9vboxsyncRuntimeR3_INCS += \
6a0359b8230a1b91fe49967c124a75191c3dfbf9vboxsync $(PATH_ROOT)/src/libs/liblzf-3.4
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncifdef IPRT_WITH_KSTUFF
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_INCS += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(PATH_ROOT)/src/libs/kStuff/kStuff/include
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncendif
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_INCS.l4 = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(L4_INCDIR)
9f22c692723a5d3cb78b91896c48cf681c4fb608vboxsync
9f22c692723a5d3cb78b91896c48cf681c4fb608vboxsync# RuntimeR3_INCS.solaris = \
9f22c692723a5d3cb78b91896c48cf681c4fb608vboxsync# /usr/include
83d61602c6968041692aa7203ee51c4085c7e460vboxsync
83d61602c6968041692aa7203ee51c4085c7e460vboxsyncRuntimeR3_SOURCES = \
83d61602c6968041692aa7203ee51c4085c7e460vboxsync common/alloc/alloc.cpp \
83d61602c6968041692aa7203ee51c4085c7e460vboxsync common/alloc/heapsimple.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/alloc/heapoffset.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/alloc/memcache.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/checksum/adler32.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/checksum/crc32.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/checksum/crc64.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/checksum/md5.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/checksum/md5str.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/checksum/ipv4.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/checksum/ipv6.cpp \
a9d98aa17ecb241bc2c79b67dc044f0af2eb7448vboxsync common/dbg/dbg.cpp \
a9d98aa17ecb241bc2c79b67dc044f0af2eb7448vboxsync common/dbg/dbgas.cpp \
a9d98aa17ecb241bc2c79b67dc044f0af2eb7448vboxsync common/dbg/dbgmod.cpp \
83d61602c6968041692aa7203ee51c4085c7e460vboxsync common/dbg/dbgmodcontainer.cpp \
83d61602c6968041692aa7203ee51c4085c7e460vboxsync common/dbg/dbgmodnm.cpp \
83d61602c6968041692aa7203ee51c4085c7e460vboxsync common/err/errmsg.cpp \
1e0e13b23ace43d2fe93d45953b123f63b7e547cvboxsync common/err/RTErrConvertFromErrno.cpp \
1e0e13b23ace43d2fe93d45953b123f63b7e547cvboxsync common/err/RTErrConvertToErrno.cpp \
1e0e13b23ace43d2fe93d45953b123f63b7e547cvboxsync common/ldr/ldr.cpp \
1e0e13b23ace43d2fe93d45953b123f63b7e547cvboxsync common/ldr/ldrELF.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/ldr/ldrEx.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/ldr/ldrFile.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/ldr/ldrNative.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/ldr/ldrPE.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/log/log.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/log/logellipsis.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/log/logrel.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/log/logrelellipsis.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/log/logcom.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/log/logformat.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/RTAssertMsg1Weak.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/RTAssertMsg2.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/RTAssertMsg2Add.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/RTAssertMsg2AddWeak.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/RTAssertMsg2AddWeakV.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/RTAssertMsg2Weak.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/RTAssertMsg2WeakV.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/RTFileOpenF.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/RTFileOpenV.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/RTMemWipeThoroughly.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/assert.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/buildconfig.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/cidr.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/getopt.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/getoptargv.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/handle.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/handletable.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/handletablectx.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/handletablesimple.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/lockvalidator.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/message.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/once.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/req.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/sanity-c.c \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/sanity-cpp.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/semspingpong.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/sg.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/thread.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/zip.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/term.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/misc/tar.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/rtPathRootSpecLen.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/rtPathVolumeSpecLen.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathAbsDup.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathAbsEx.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathAbsExDup.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathAppend.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathChangeToDosSlashes.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathChangeToUnixSlashes.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathCopyComponents.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathCountComponents.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathExt.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathFilename.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathHaveExt.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathHavePath.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathJoin.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathParse.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathRealDup.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathStripExt.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathStripFilename.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathStripTrailingSlash.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/RTPathTraverseList.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/path/comparepaths.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/rand/rand.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/rand/randadv.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/rand/randparkmiller.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/sort/RTSortIsSorted.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/sort/RTSortApvIsSorted.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/sort/shellsort.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/RTStrCmp.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/RTStrConvertHexBytes.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/RTStrCopy.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/RTStrCopyEx.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/RTStrNCmp.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/RTStrNLen.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/RTStrNLenEx.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/RTStrPrintHexBytes.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/RTStrStr.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/base64.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/simplepattern.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/straprintf.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/strformat.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/strformatrt.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/strformattype.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/stringalloc.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/strprintf.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/strspace.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/strstrip.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/strtonum.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/strversion.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/uni.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/unidata.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/utf-16.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/utf-8.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/utf-8-case.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/string/ministring.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlgcptr.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlhcphys.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlgcphys.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avllu32.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlou32.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlogcphys.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlogcptr.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlohcphys.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avloioport.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlpv.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlrgcptr.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlrogcphys.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlrogcptr.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlroioport.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlroogcptr.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlruintptr.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlrfoff.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlu32.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avluintptr.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/avlul.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/table/table.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/time/time.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/time/timeprog.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/time/timesup.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/critsect-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/env-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTDirCreateTemp-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTEnvDupEx-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTFileCopy-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTFileQuerySize-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTFileReadAll-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTFileReadAllEx-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTFileReadAllByHandle-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTFileReadAllByHandleEx-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTFileReadAllFree-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTLogWriteStdErr-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTLogWriteStdOut-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTLogWriteUser-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTTimerLRCreate-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/mempool-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/semfastmutex-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/semxroads-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/spinlock-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/strcache-stubs-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/timerlr-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/alloc-ef.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/alloc.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/dir.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/fileio.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/fs.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/init.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/isofs.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/path.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/process.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/socket.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/stream.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/test.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/testi.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/tcp.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/generic/semspinmutex-r3-generic.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# RuntimeR3_SOURCES += common/time/timesupA.asm
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#else
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_SOURCES += common/time/timesupref.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#endif
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES.x86 += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTMpGetDescription-generic.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES.amd64 += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTMpGetDescription-generic.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES.sparc32 += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTMpGetDescription-generic-stub.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/asm/asm-fake.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES.sparc64 += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTMpGetDescription-generic-stub.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/asm/asm-fake.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncifdef IPRT_WITH_LZJB
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_SOURCES += common/misc/lzjb.c
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncendif
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Some versions of GCC might require this.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES.x86 += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/asm/ASMAtomicXchgU64.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/asm/ASMAtomicCmpXchgU64.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/asm/ASMAtomicCmpXchgExU64.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/asm/ASMAtomicReadU64.asm \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/asm/ASMAtomicUoReadU64.asm
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncifdef IPRT_WITH_KSTUFF
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_SOURCES += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/ldr/ldrkStuff.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncendif
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# VBox specific stuff.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync VBox/RTAssertShouldPanic-vbox.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync VBox/log-vbox.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncifneq ($(KBUILD_TARGET),win)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync common/err/errmsgxpcom.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncendif
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncif1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd solaris)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(if $(VBOX_WITH_DBUS),VBox/dbus.cpp,)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncendif
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES.win = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTDirExists-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTDirQueryInfo-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTDirSetTimes-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTFileExists-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTMpGetCurFrequency-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTMpGetMaxFrequency-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTRandAdvCreateSystemFaster-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTRandAdvCreateSystemTruer-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTSemEventWait-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTSemEventMultiWait-2-ex-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTSemMutexRequest-generic.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync generic/RTSemMutexRequestDebug-generic.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync generic/mppresent-generic.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync generic/uuid-generic.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync generic/RTProcDaemonize-generic.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync generic/RTProcIsRunningByName-generic.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync generic/RTThreadGetNativeState-generic.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync nt/RTErrConvertFromNtStatus.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/posix/env-posix.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/win/RTSystemQueryOSInfo-win.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/win/RTSystemQueryDmiString-win.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/win/alloc-win.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/win/dir-win.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/win/fileio-win.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/win/fs-win.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/win/ldrNative-win.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/win/localipc-win.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/win/mp-win.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/win/path-win.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/win/pipe-win.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/win/poll-win.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/win/process-win.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/win/RTLogWriteDebugger-win.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/win/rtProcInitExePath-win.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/win/sched-win.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/win/semevent-win.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/win/semeventmulti-win.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/win/semmutex-win.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/win/rtFileNativeSetAttributes-win.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/win/thread-win.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/win/time-win.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/win/timer-win.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/win/tls-win.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/win/utf16locale-win.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/win/utf8-win.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/win/RTUuidCreate-win.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync win/errmsgwin.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync win/RTErrConvertFromWin32.cpp
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsyncRuntimeR3_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsyncRuntimeR3_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsyncRuntimeR3_SOURCES.linux = \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync generic/RTDirQueryInfo-generic.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync generic/RTDirSetTimes-generic.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync generic/RTFileMove-generic.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync generic/RTLogWriteDebugger-generic.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync generic/RTProcDaemonize-generic.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync generic/RTSemEventMultiWait-2-ex-generic.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync generic/RTTimeLocalNow-generic.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync generic/RTTimerCreate-generic.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync generic/RTUuidCreate-generic.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync generic/mppresent-generic.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync generic/utf16locale-generic.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync generic/uuid-generic.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/linux/RTThreadGetNativeState-linux.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/linux/mp-linux.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/linux/rtProcInitExePath-linux.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/linux/sched-linux.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/linux/sysfs.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/linux/time-linux.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/linux/RTProcIsRunningByName-linux.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/linux/RTSystemQueryDmiString-linux.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/posix/RTFileQueryFsSizes-posix.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/posix/RTSystemQueryOSInfo-posix.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/posix/alloc-posix.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/posix/dir-posix.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/posix/env-posix.cpp \
34c7651e294c98d15cac0b35e5a585404c0d26aavboxsync r3/posix/fileio-posix.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/posix/filelock-posix.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/posix/fs-posix.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/posix/ldrNative-posix.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync r3/posix/path-posix.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/posix/pathhost-posix.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/posix/pipe-posix.cpp \
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync r3/posix/poll-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/process-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/rand-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/RTTimeNow-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/RTTimeSet-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/semrw-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/thread-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/timelocal-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/timer-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/tls-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/utf8-posix.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncifdef IPRT_WITH_FUTEX_BASED_SEMS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_SOURCES.linux += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/linux/semevent-linux.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/linux/semeventmulti-linux.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/linux/semmutex-linux.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncelse
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_SOURCES.linux.x86 += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/semevent-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/semeventmulti-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/semmutex-posix.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_SOURCES.linux.amd64 += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/linux/semevent-linux.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/linux/semeventmulti-linux.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync ifdef RT_NEW_LINUX_MUTEX_CODE
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_SOURCES.linux.amd64 += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/linux/semmutex-linux.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync else
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_SOURCES.linux.amd64 += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/semmutex-posix.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync endif
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncendif
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES.os2 = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTDirQueryInfo-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTDirSetTimes-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/RTFileMove-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/RTLogWriteDebugger-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/RTProcDaemonize-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/RTRandAdvCreateSystemFaster-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTRandAdvCreateSystemTruer-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/RTSystemQueryDmiString-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTTimeLocalNow-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/RTTimerCreate-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTUuidCreate-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/mppresent-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/RTSemEventWait-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/RTSemEventMultiWait-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/RTSemMutexRequest-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/RTSemMutexRequestDebug-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/timer-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/utf16locale-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/uuid-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/RTMpGetCurFrequency-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/RTMpGetMaxFrequency-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/RTProcIsRunningByName-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/RTThreadGetNativeState-generic.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync os2/RTErrConvertFromOS2.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/os2/filelock-os2.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/os2/mp-os2.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/os2/pipe-os2.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/os2/poll-os2.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/os2/rtProcInitExePath-os2.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/os2/sched-os2.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/os2/sems-os2.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/os2/thread-os2.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/os2/time-os2.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/posix/RTFileQueryFsSizes-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/RTSystemQueryOSInfo-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/alloc-posix.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/posix/dir-posix.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/posix/env-posix.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/posix/fileio-posix.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/posix/fs-posix.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/posix/ldrNative-posix.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/posix/path-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/pathhost-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/process-posix.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/posix/RTTimeNow-posix.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/posix/RTTimeSet-posix.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/posix/timelocal-posix.cpp \
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync r3/posix/utf8-posix.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES.darwin = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync darwin/RTErrConvertFromDarwin.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync darwin/RTErrConvertFromDarwinCOM.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync darwin/RTErrConvertFromDarwinIO.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync darwin/RTErrConvertFromDarwinKern.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTDirQueryInfo-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTDirSetTimes-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTFileMove-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTLogWriteDebugger-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTProcDaemonize-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTTimeLocalNow-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTTimerCreate-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTUuidCreate-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/mppresent-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTSemEventMultiWait-2-ex-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/timer-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/utf16locale-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/uuid-generic.cpp\
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTProcIsRunningByName-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTThreadGetNativeState-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/darwin/alloc-darwin.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/darwin/filelock-darwin.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/darwin/mp-darwin.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/darwin/pathhost-darwin.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/darwin/rtProcInitExePath-darwin.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/darwin/RTSystemQueryDmiString-darwin.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/darwin/sched-darwin.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/darwin/time-darwin.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/RTFileQueryFsSizes-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/RTSystemQueryOSInfo-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/RTTimeSet-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/dir-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/env-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/fileio-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/fs-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/ldrNative-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/path-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/pipe-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/poll-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/process-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/rand-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/semevent-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/semeventmulti-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/semmutex-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/thread-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/timelocal-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/tls-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/utf8-posix.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync## @todo Make BSD sched, implement RTMP*.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES.freebsd = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTDirQueryInfo-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTDirSetTimes-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTFileMove-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTLogWriteDebugger-generic.cpp \
ecb98c0e709a5cebd8877fb39f61a821804024bcvboxsync generic/RTSemEventMultiWait-2-ex-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTSystemQueryDmiString-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTTimeLocalNow-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTTimerCreate-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTUuidCreate-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/mppresent-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/sched-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/utf16locale-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/uuid-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTMpCpuId-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTMpCpuIdFromSetIndex-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTMpCpuIdToSetIndex-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTMpIsCpuPossible-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTMpGetMaxCpuId-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTMpGetOnlineSet-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTMpGetSet-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTMpIsCpuOnline-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTProcDaemonize-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTProcIsRunningByName-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTThreadGetNativeState-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/freebsd/mp-freebsd.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/freebsd/alloc-freebsd.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/freebsd/rtProcInitExePath-freebsd.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/RTFileQueryFsSizes-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/RTSystemQueryOSInfo-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/dir-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/env-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/fileio-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/filelock-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/fs-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/ldrNative-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/path-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/pathhost-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/pipe-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/poll-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/process-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/rand-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/RTMpGetCount-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/RTTimeNow-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/RTTimeSet-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/semevent-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/semeventmulti-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/semmutex-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/semrw-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/thread-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/time-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/timelocal-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/timer-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/tls-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/utf8-posix.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES.solaris = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTDirQueryInfo-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTDirSetTimes-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTFileMove-generic.cpp \
728b52f802ac19865bd4aa8e9ade8f506a9e6c10vboxsync generic/RTLogWriteDebugger-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTProcDaemonize-generic.cpp \
728b52f802ac19865bd4aa8e9ade8f506a9e6c10vboxsync generic/RTProcIsRunningByName-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTSemEventMultiWait-2-ex-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTTimeLocalNow-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTTimerCreate-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTUuidCreate-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/sched-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/utf16locale-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/uuid-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTThreadGetNativeState-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/RTFileQueryFsSizes-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/RTSystemQueryOSInfo-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/dir-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/env-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/fileio-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/filelock-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/fs-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/ldrNative-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/path-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/pathhost-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/pipe-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/poll-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/process-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/rand-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/RTTimeNow-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/RTTimeSet-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/semevent-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/semeventmulti-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/semmutex-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/semrw-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/thread-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/time-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/timelocal-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/timer-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/tls-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/posix/utf8-posix.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/solaris/alloc-solaris.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/solaris/mp-solaris.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/solaris/rtProcInitExePath-solaris.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES.solaris.amd64 = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/solaris/coredumper-solaris.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync r3/solaris/RTSystemQueryDmiString-solaris.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES.solaris.x86 = \
r3/solaris/coredumper-solaris.cpp \
r3/solaris/RTSystemQueryDmiString-solaris.cpp
RuntimeR3_SOURCES.solaris.sparc32 = \
generic/RTSystemQueryDmiString-generic.cpp
RuntimeR3_SOURCES.solaris.sparc64 = \
generic/RTSystemQueryDmiString-generic.cpp
## PORTME: Porters add their selection of platform specific files for Ring-3 here.
#
# L4 RuntimeR3 subtarget since L4 headers won't work with VBOXR3.
#
RuntimeR3L4_TEMPLATE = VBOXR3NP
RuntimeR3L4_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF LDR_WITH_PE
ifneq ($(KBUILD_TARGET_ARCH),amd64)
RuntimeR3L4_DEFS += __PIC__
endif
RuntimeR3L4_INCS = \
include \
$(L4_INCDIR)
RuntimeR3L4_SOURCES = \
generic/fs-stubs-generic.cpp \
generic/pathhost-generic.cpp \
generic/RTDirQueryInfo-generic.cpp \
generic/RTDirSetTimes-generic.cpp \
generic/RTFileMove-generic.cpp \
generic/RTLogWriteDebugger-generic.cpp \
generic/RTProcDaemonize-generic.cpp \
generic/RTSystemQueryOSInfo-generic.cpp \
generic/RTSystemQueryDmiString-generic.cpp \
generic/RTTimeLocalNow-generic.cpp \
generic/RTUuidCreate-generic.cpp \
generic/mppresent-generic.cpp \
generic/sched-generic.cpp \
generic/RTSemEventWait-generic.cpp \
generic/RTSemEventMultiWait-generic.cpp \
generic/RTSemMutexRequest-generic.cpp \
generic/RTSemMutexRequestDebug-generic.cpp \
generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
generic/utf16locale-generic.cpp \
generic/uuid-generic.cpp \
generic/RTProcIsRunningByName-generic.cpp \
generic/RTThreadGetNativeState-generic.cpp \
l4/l4-errno.cpp \
l4/rtProcInitExePath-l4.cpp \
l4/process-l4env.cpp \
l4/sems-l4env.cpp \
l4/thread-l4env.cpp \
l4/timer-l4env.cpp \
l4/utf8-l4env.cpp \
r3/posix/RTFileQueryFsSizes-posix.cpp \
r3/posix/alloc-posix.cpp \
r3/posix/dir-posix.cpp \
r3/posix/env-posix.cpp \
r3/posix/fileio-posix.cpp \
r3/posix/filelock-posix.cpp \
r3/posix/ldrNative-posix.cpp \
r3/posix/path-posix.cpp \
r3/posix/rand-posix.cpp \
r3/posix/RTTimeNow-posix.cpp \
r3/posix/RTTimeSet-posix.cpp \
r3/posix/time-posix.cpp \
r3/posix/timelocal-posix.cpp
#
# RuntimeGuestR3 - Guest Additions Runtime (static/exe).
# (The KBUILD_HOST inheritance here is for l4 cross building the linux
# additions, while .x86 is for cross building x86 while targeting amd64.)
#
RuntimeGuestR3_TEMPLATE := VBOXGUESTR3LIB
## @todo change this to EXTEND the RuntimeR3 target.
RuntimeGuestR3_SDKS.win := $(RuntimeR3_SDKS.win)
RuntimeGuestR3_DEFS := $(filter-out RTCRITSECT_STRICT RT_NO_GIP, $(RuntimeR3_DEFS))
RuntimeGuestR3_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
RuntimeGuestR3_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST))
RuntimeGuestR3_INCS := $(RuntimeR3_INCS)
RuntimeGuestR3_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
RuntimeGuestR3_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST))
RuntimeGuestR3_SOURCES := $(filter-out \
common/time/timesupref.cpp \
common/time/timesupA.asm \
common/time/timesup.cpp \
generic/RTLogWriteUser-generic.cpp \
, $(RuntimeR3_SOURCES))
RuntimeGuestR3_SOURCES += \
common/time/timesysalias.cpp \
VBox/logbackdoor.cpp
RuntimeGuestR3_SOURCES.$(KBUILD_TARGET) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
RuntimeGuestR3_SOURCES.$(KBUILD_HOST) := $(RuntimeR3_SOURCES.$(KBUILD_HOST))
RuntimeGuestR3_SOURCES.$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
RuntimeGuestR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH))
#
# RuntimeGuestR3Shared - Guest Additions Runtime (static/dll).
#
RuntimeGuestR3Shared_TEMPLATE := VBOXGUESTR3DLL
RuntimeGuestR3Shared_EXTENDS := RuntimeGuestR3
RuntimeGuestR3Shared_INST = $(INST_ADDITIONS_LIB)
#
# RuntimeGuestR3Mini - Minimal Guest Additions Runtime which does not require
# initialization and can be linked into an .so. Intended
# for X11 drivers, GRADD and similar.
#
RuntimeGuestR3Mini_TEMPLATE := VBOXGUESTR3DLL
## @todo change this to EXTEND the RuntimeGuestR3 target.
RuntimeGuestR3Mini_INST := $(INST_ADDITIONS_LIB)
RuntimeGuestR3Mini_SDKS.win := $(RuntimeR3_SDKS.win)
RuntimeGuestR3Mini_DEFS := \
$(filter-out RTCRITSECT_STRICT RT_NO_GIP RT_WITH_ICONV_CACHE, $(RuntimeR3_DEFS)) \
RT_MINI
RuntimeGuestR3Mini_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
RuntimeGuestR3Mini_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST))
RuntimeGuestR3Mini_INCS := $(RuntimeR3_INCS)
RuntimeGuestR3Mini_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
RuntimeGuestR3Mini_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST))
RuntimeGuestR3Mini_SOURCES = \
common/alloc/alloc.cpp \
common/err/errmsg.cpp \
common/err/errmsgxpcom.cpp \
common/err/RTErrConvertFromErrno.cpp \
common/log/logformat.cpp \
common/misc/RTAssertMsg1Weak.cpp \
common/misc/RTAssertMsg2.cpp \
common/misc/RTAssertMsg2Add.cpp \
common/misc/RTAssertMsg2AddWeak.cpp \
common/misc/RTAssertMsg2AddWeakV.cpp \
common/misc/RTAssertMsg2Weak.cpp \
common/misc/RTAssertMsg2WeakV.cpp \
common/misc/assert.cpp \
common/misc/buildconfig.cpp \
common/misc/sanity-c.c \
common/misc/sanity-cpp.cpp \
common/path/rtPathVolumeSpecLen.cpp \
common/path/RTPathAbsDup.cpp \
common/path/RTPathAbsEx.cpp \
common/path/RTPathAbsExDup.cpp \
common/path/RTPathAppend.cpp \
common/path/RTPathExt.cpp \
common/path/RTPathFilename.cpp \
common/path/RTPathHaveExt.cpp \
common/path/RTPathHavePath.cpp \
common/path/RTPathJoin.cpp \
common/path/RTPathParse.cpp \
common/path/RTPathRealDup.cpp \
common/path/RTPathStripExt.cpp \
common/path/RTPathStripFilename.cpp \
common/path/RTPathStripTrailingSlash.cpp \
common/string/RTStrCmp.cpp \
common/string/RTStrCopy.cpp \
common/string/RTStrCopyEx.cpp \
common/string/RTStrNCmp.cpp \
common/string/RTStrNLen.cpp \
common/string/RTStrNLenEx.cpp \
common/string/RTStrStr.cpp \
common/string/straprintf.cpp \
common/string/strformat.cpp \
common/string/strformatrt.cpp \
common/string/strformattype.cpp \
common/string/stringalloc.cpp \
common/string/strprintf.cpp \
common/string/strtonum.cpp \
common/string/unidata.cpp \
common/string/utf-8.cpp \
common/string/utf-8-case.cpp \
common/string/utf-16.cpp \
common/table/avlpv.cpp \
generic/pathhost-generic.cpp \
generic/RTAssertShouldPanic-generic.cpp \
r3/alloc.cpp \
r3/alloc-ef.cpp \
r3/fileio.cpp \
r3/fs.cpp
RuntimeGuestR3Mini_SOURCES.freebsd = \
r3/posix/alloc-posix.cpp \
r3/posix/env-posix.cpp \
r3/posix/fileio-posix.cpp \
r3/posix/path-posix.cpp \
r3/posix/utf8-posix.cpp
RuntimeGuestR3Mini_SOURCES.linux = \
r3/posix/alloc-posix.cpp \
r3/posix/env-posix.cpp \
r3/posix/fileio-posix.cpp \
r3/posix/path-posix.cpp \
r3/posix/utf8-posix.cpp
RuntimeGuestR3Mini_SOURCES.solaris = \
r3/posix/alloc-posix.cpp \
r3/posix/env-posix.cpp \
r3/posix/fileio-posix.cpp \
r3/posix/path-posix.cpp \
r3/posix/utf8-posix.cpp
RuntimeGuestR3Mini_SOURCES.win = \
r3/win/alloc-win.cpp \
r3/win/fileio-win.cpp \
r3/win/path-win.cpp \
r3/win/utf8-win.cpp \
win/errmsgwin.cpp \
win/RTErrConvertFromWin32.cpp
# VBox specific stuff.
RuntimeGuestR3Mini_SOURCES += \
VBox/logbackdoor.cpp \
VBox/logbackdoor-redirect.cpp
#
# RuntimeLnxHostR3 Linux host program runtime
# (Only used when building L4.)
#
RuntimeLnxHostR3_TEMPLATE = VBOXLNXHOSTR3LIB
RuntimeLnxHostR3_DEFS = IN_RT_R3 IN_SUP_R3 RT_WITH_VBOX RT_NO_GIP
RuntimeLnxHostR3_SOURCES = \
$(RuntimeR3_SOURCES.linux.$(KBUILD_TARGET_ARCH)) \
$(RuntimeR3_SOURCES.linux) \
$(RuntimeR3_SOURCES)
RuntimeLnxHostR3_INCS = \
$(RuntimeR3_INCS.linux.$(KBUILD_TARGET_ARCH)) \
$(RuntimeR3_INCS.linux) \
$(RuntimeR3_INCS)
#
# VBoxRT - Shared Object / DLL version.
#
VBoxRT_TEMPLATE = VBoxR3Dll
VBoxRT_SDKS = VBOX_OPENSSL VBOX_LIBXML2 VBOX_BOOST
ifdef VBOX_WITH_LIBCURL
VBoxRT_SDKS += VBOX_LIBCURL
endif
VBoxRT_SDKS.win = WINPSDK $(VBOX_WINDDK) VBOX_NTDLL
if1of ($(KBUILD_TARGET)$(VBOX_WITH_HARDENING), darwin win)
VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE)
endif
VBoxRT_DEFS = $(filter-out RT_NO_GIP,$(RuntimeR3_DEFS)) IN_SUP_R3 IN_SUP_R3
ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
VBoxRT_DEFS += RT_NO_GIP
endif
VBoxRT_DEFS.$(KBUILD_TYPE) = $(RuntimeR3_DEFS.$(KBUILD_TYPE))
VBoxRT_SOURCES = \
VBox/VBoxRTDeps.cpp \
$(filter-out common/checksum/crc32.cpp, $(RuntimeR3_SOURCES))
VBoxRT_SOURCES += \
r3/xml.cpp \
common/checksum/RTSha1Digest.cpp \
common/checksum/crc32-zlib.cpp \
common/checksum/manifest.cpp \
common/checksum/sha1.cpp \
common/checksum/sha1str.cpp \
common/checksum/sha256.cpp \
common/checksum/sha256str.cpp \
common/checksum/sha512.cpp \
common/checksum/sha512str.cpp
ifdef VBOX_WITH_LIBCURL
VBoxRT_SOURCES += common/misc/s3.cpp
endif
VBoxRT_SOURCES.$(KBUILD_TARGET) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
VBoxRT_SOURCES.$(KBUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
VBoxRT_SOURCES.win += \
r3/win/dllmain-win.cpp \
r3/win/fileaio-win.cpp \
$(VBoxRT_0_OUTDIR)/VBoxRT.def
VBoxRT_SOURCES.linux += \
r3/linux/fileaio-linux.cpp
VBoxRT_SOURCES.solaris += \
r3/solaris/fileaio-solaris.cpp
VBoxRT_SOURCES.darwin += \
r3/posix/fileaio-posix.cpp
VBoxRT_SOURCES.freebsd += \
r3/freebsd/fileaio-freebsd.cpp
VBoxRT_INCS = $(RuntimeR3_INCS)
VBoxRT_INCS.$(KBUILD_TARGET) = $(RuntimeR3_INCS.$(KBUILD_TARGET))
VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
VBoxRT_LIBS = \
$(PATH_LIB)/VBox-liblzf$(VBOX_SUFF_LIB) \
$(SDK_VBOX_ZLIB_LIBS)
if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
VBoxRT_LIBS += \
$(PATH_LIB)/SUPR3$(VBOX_SUFF_LIB)
endif
ifdef IPRT_WITH_KSTUFF
VBoxRT_LIBS += \
$(PATH_LIB)/VBox-kStuff$(VBOX_SUFF_LIB)
endif
ifndef SDK_VBOX_LIBXML2_LIBS
VBoxRT_LIBS += \
$(PATH_LIB)/VBox-libxml2$(VBOX_SUFF_LIB)
endif
ifndef SDK_VBOX_OPENSSL_LIBS
VBoxRT_LIBS += \
$(PATH_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB)
endif
ifdef IPRT_WITH_LZO
VBoxRT_LIBS += lzo2
endif
VBoxRT_LIBS.linux = \
crypt
VBoxRT_LIBS.darwin = \
iconv
VBoxRT_LIBS.freebsd = \
iconv \
rt
VBoxRT_LIBS.solaris = \
kstat \
contract
ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)
# SMBIOS not available on Solaris SPARC.
VBoxRT_LIBS.solaris += smbios
endif
VBoxRT_LIBS.win = \
$(PATH_SDK_$(VBOX_WINDDK)_LIB)/vccomsup.lib \
$(PATH_SDK_$(VBOX_WINDDK)_LIB)/wbemuuid.lib
VBoxRT_LDFLAGS.darwin = -framework IOKit -framework CoreFoundation -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxRT.dylib
ifdef VBOX_USE_VCC80
VBoxRT_LDFLAGS.win = /MANIFEST
endif
VBoxRT_LDFLAGS.l4 = \
-Wl,-whole-archive \
$(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB) \
-Wl,-no-whole-archive
ifeq ($(KBUILD_TARGET),l4)
VBoxRT_LIBS += \
$(L4_LIBDIR)/libl4sys.a \
$(L4_LIBDIR)/libl4sys.p.a
endif
VBoxRT_LIBS.l4 = \
$(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB)
if1of ($(DLLS), VBoxRT)
$$(VBoxRT_0_OUTDIR)/VBoxRT.def: \
$(PATH_SUB_CURRENT)/r3/win/VBoxRT-$$(if-expr $$(KBUILD_TARGET_ARCH) == amd64,win64,win32).def \
$(PATH_SUB_CURRENT)/r3/win/$(if $(VBOX_OSE),VBoxRT-openssl-ose.def,VBoxRT-openssl.def)
$(RM) -f -- $@
$(REDIRECT) -wto $@ -- $(CAT_EXT) $^
endif
#
# HACK ALLERT! Make testcase run during build on SELinux boxes.
# Create a dummy DLL that ensure that VBoxRT is installed
# during the DLL pass and cleaned up later.
#
ifeq ($(KBUILD_TARGET),linux)
if1of (VBoxRT, $(DLLS))
ifneq ($(wildcard /usr/bin/chcon),)
VBoxRT_NOINST = true
DLLS += VBoxRTDummy
VBoxRTDummy_TEMPLATE = VBOXR3
VBoxRTDummy_NOINST = true
VBoxRTDummy_LIBS = $(PATH_BIN)/VBoxRT.so
VBoxRTDummy_CLEAN= $(PATH_BIN)/VBoxRT.so
BLDDIRS += $(PATH_BIN)
$(PATH_BIN)/VBoxRT.so: $$(TARGET_VBoxRT) | $$(dir $$@)
$(INSTALL) $< $@
chcon -t texrel_shlib_t $@ || true
VBoxRT:: VBoxRTDummy
endif # chcon present.
endif # building VBoxRT
endif # linux
#
# RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
# This is used together with VBoxRT.
#
## @todo the *_alias.c stuff is busted, remove and use RT_WITH_NOCRT_ALIASES instead.
RuntimeR3NoCRTGCC_TEMPLATE = VBOXNOCRTGCC
RuntimeR3NoCRTGCC_LIBSUFF = $(VBOX_SUFF_LIB)
ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
RuntimeR3NoCRTGCC_DEFS += RT_NO_GIP
endif
RuntimeR3NoCRTGCC_INCS = include
RuntimeR3NoCRTGCC_SOURCES = \
common/misc/sanity-cpp.cpp \
common/misc/sanity-c.c \
\
$(RuntimeNoCrt_SOURCES)
if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
RuntimeR3NoCRTGCC_SOURCES += \
common/math/ceill.asm \
common/math/cosl.asm \
common/math/fabs.asm \
common/math/fabsf.asm \
common/math/fabsl.asm \
common/math/floor.asm \
common/math/floorf.asm \
common/math/floorl.asm \
common/math/ldexpl.asm \
common/math/llrint.asm \
common/math/llrintf.asm \
common/math/llrintl.asm \
common/math/logl.asm \
common/math/lrint.asm \
common/math/lrintf.asm \
common/math/lrintl.asm \
common/math/remainder.asm \
common/math/remainderf.asm \
common/math/remainderl.asm \
common/math/sinl.asm \
common/math/tanl.asm \
common/math/trunc.asm \
common/math/truncf.asm \
common/math/truncl.asm \
\
common/string/memchr_alias.c \
common/string/memcmp_alias.c \
common/string/memcpy_alias.c \
common/string/memmove_alias.c \
common/string/memset_alias.c \
common/string/strchr_alias.c \
common/string/strcmp_alias.c \
common/string/strlen_alias.c
endif
RuntimeR3NoCRTGCC_SOURCES.x86 = \
common/math/x86/fenv-x86.c \
common/math/gcc/adddi3.c \
common/math/gcc/anddi3.c \
common/math/gcc/ashldi3.c \
common/math/gcc/ashrdi3.c \
common/math/gcc/cmpdi2.c \
common/math/gcc/divdi3.c \
common/math/gcc/iordi3.c \
common/math/gcc/lshldi3.c \
common/math/gcc/lshrdi3.c \
common/math/gcc/moddi3.c \
common/math/gcc/muldi3.c \
common/math/gcc/negdi2.c \
common/math/gcc/notdi2.c \
common/math/gcc/qdivrem.c \
common/math/gcc/subdi3.c \
common/math/gcc/ucmpdi2.c \
common/math/gcc/udivdi3.c \
common/math/gcc/umoddi3.c \
common/math/gcc/xordi3.c
## @todo stop using the old memcpy.c and memset.c code.
#
# RuntimeR0 - Ring-0 library for VMMR0.
#
RuntimeR0_TEMPLATE = VBoxR0
RuntimeR0_DEFS = IN_RT_R0 RT_WITH_VBOX
ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
RuntimeR0_DEFS += RT_NO_GIP
endif
RuntimeR0_INCS = include
RuntimeR0_SOURCES = \
common/log/logellipsis.cpp \
common/log/logrelellipsis.cpp \
common/log/logcom.cpp \
common/log/logformat.cpp \
common/misc/RTAssertMsg1Weak.cpp \
common/misc/RTAssertMsg2.cpp \
common/misc/RTAssertMsg2Add.cpp \
common/misc/RTAssertMsg2AddWeak.cpp \
common/misc/RTAssertMsg2AddWeakV.cpp \
common/misc/RTAssertMsg2Weak.cpp \
common/misc/RTAssertMsg2WeakV.cpp \
common/misc/buildconfig.cpp \
common/misc/once.cpp \
common/misc/sanity-c.c \
common/misc/sanity-cpp.cpp \
common/misc/term.cpp \
common/string/strncmp.cpp \
common/string/strpbrk.cpp \
common/string/RTStrCopy.cpp \
common/string/RTStrCopyEx.cpp \
common/string/RTStrNLen.cpp \
common/string/RTStrNLenEx.cpp \
common/table/avlgcptr.cpp \
common/table/avlhcphys.cpp \
common/table/avllu32.cpp \
common/table/avlogcphys.cpp \
common/table/avlogcptr.cpp \
common/table/avlohcphys.cpp \
common/table/avloioport.cpp \
common/table/avlpv.cpp \
common/table/avlrogcphys.cpp \
common/table/avlrogcptr.cpp \
common/table/avlroioport.cpp \
common/table/avlroogcptr.cpp \
common/table/avlu32.cpp \
common/table/avlou32.cpp \
common/time/timesup.cpp \
generic/RTAssertShouldPanic-generic.cpp \
\
$(RuntimeNoCrt_SOURCES)
if1of ($(KBUILD_TARGET), darwin solaris freebsd)
RuntimeR0_SOURCES += \
common/math/gcc/adddi3.c \
common/math/gcc/anddi3.c \
common/math/gcc/ashldi3.c \
common/math/gcc/ashrdi3.c \
common/math/gcc/cmpdi2.c \
common/math/gcc/divdi3.c \
common/math/gcc/iordi3.c \
common/math/gcc/lshldi3.c \
common/math/gcc/lshrdi3.c \
common/math/gcc/moddi3.c \
common/math/gcc/muldi3.c \
common/math/gcc/negdi2.c \
common/math/gcc/notdi2.c \
common/math/gcc/qdivrem.c \
common/math/gcc/subdi3.c \
common/math/gcc/ucmpdi2.c \
common/math/gcc/udivdi3.c \
common/math/gcc/umoddi3.c \
common/math/gcc/xordi3.c
endif
#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
# RuntimeR0_SOURCES += common/time/timesupA.asm
#else
RuntimeR0_SOURCES += common/time/timesupref.cpp
#endif
RuntimeR0_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
RuntimeR0_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
RuntimeR0_SOURCES.win = \
nt/NtProcessStartup-stub.cpp
RuntimeR0_SOURCES.os2 = \
os2/RTErrConvertFromOS2.cpp \
os2/sys0.asm
#
# RuntimeR0Stub - Ring-0 context startup stub for Windows.
#
RuntimeR0Stub_TEMPLATE = VBoxR0
RuntimeR0Stub_SOURCES.win = \
nt/NtProcessStartup-stub.cpp
#
# RuntimeR0Drv - Ring-0 library for host drivers.
#
RuntimeR0Drv_TEMPLATE = VBOXR0DRV
RuntimeR0Drv_SDKS.win = $(VBOX_WINDDK) WINPSDKINCS
RuntimeR0Drv_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS RT_NO_EXPORT_SYMBOL
RuntimeR0Drv_DEFS.win = IN_SUP_R0
RuntimeR0Drv_DEFS.linux = MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) IN_SUP_R0
RuntimeR0Drv_INCS := $(PATH_SUB_CURRENT) include
RuntimeR0Drv_INCS.freebsd = \
$(PATH_INS)/gen-sys-hdrs
RuntimeR0Drv_INCS.linux = \
r0drv/linux
RuntimeR0Drv_INCS.solaris = \
r0drv/solaris/vbi/i86pc \
r0drv/solaris/vbi/i86pc/sys
RuntimeR0Drv_SOURCES = \
common/alloc/alloc.cpp \
common/alloc/heapsimple.cpp \
common/alloc/heapoffset.cpp \
common/checksum/crc32.cpp \
common/checksum/crc64.cpp \
common/checksum/md5.cpp \
common/checksum/ipv4.cpp \
common/checksum/ipv6.cpp \
common/log/log.cpp \
common/log/logellipsis.cpp \
common/log/logrel.cpp \
common/log/logrelellipsis.cpp \
common/log/logcom.cpp \
common/log/logformat.cpp \
common/misc/RTAssertMsg1Weak.cpp \
common/misc/RTAssertMsg2.cpp \
common/misc/RTAssertMsg2Add.cpp \
common/misc/RTAssertMsg2AddWeak.cpp \
common/misc/RTAssertMsg2AddWeakV.cpp \
common/misc/RTAssertMsg2Weak.cpp \
common/misc/RTAssertMsg2WeakV.cpp \
common/misc/assert.cpp \
common/misc/buildconfig.cpp \
common/misc/handletable.cpp \
common/misc/handletablectx.cpp \
common/misc/handletablesimple.cpp \
common/misc/once.cpp \
common/misc/sanity-c.c \
common/misc/sanity-cpp.cpp \
common/misc/term.cpp \
common/path/rtPathVolumeSpecLen.cpp \
common/path/RTPathAbsDup.cpp \
common/path/RTPathAbsEx.cpp \
common/path/RTPathAbsExDup.cpp \
common/path/RTPathAppend.cpp \
common/path/RTPathExt.cpp \
common/path/RTPathFilename.cpp \
common/path/RTPathHaveExt.cpp \
common/path/RTPathHavePath.cpp \
common/path/RTPathParse.cpp \
common/path/RTPathRealDup.cpp \
common/path/RTPathStripExt.cpp \
common/path/RTPathStripFilename.cpp \
common/path/RTPathStripTrailingSlash.cpp \
common/rand/rand.cpp \
common/rand/randadv.cpp \
common/rand/randparkmiller.cpp \
common/string/RTStrCmp.cpp \
common/string/RTStrCopy.cpp \
common/string/RTStrCopyEx.cpp \
common/string/RTStrNCmp.cpp \
common/string/RTStrNLen.cpp \
common/string/RTStrNLenEx.cpp \
common/string/strformat.cpp \
common/string/strformatrt.cpp \
common/string/strformattype.cpp \
common/string/strprintf.cpp \
common/string/strtonum.cpp \
common/string/stringalloc.cpp \
common/string/utf-16.cpp \
common/string/utf-8.cpp \
common/table/avlpv.cpp \
common/time/time.cpp \
generic/RTLogWriteStdErr-stub-generic.cpp \
generic/RTLogWriteUser-generic.cpp \
generic/RTMpGetArraySize-generic.cpp \
generic/RTRandAdvCreateSystemFaster-generic.cpp \
generic/RTSemEventWait-2-ex-generic.cpp \
generic/RTSemEventWaitNoResume-2-ex-generic.cpp \
generic/RTSemEventMultiWait-2-ex-generic.cpp \
generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
generic/uuid-generic.cpp \
r0drv/alloc-r0drv.cpp \
r0drv/initterm-r0drv.cpp \
r0drv/generic/semspinmutex-r0drv-generic.c \
VBox/log-vbox.cpp \
## @todo: Linking against RuntimeR0Drv on Linux will result in unresolved external
## references to several string functions (e.g. strlen). We could include the
## missing functions here but our own implementations conflict with declarations
## of some Linux kernels (inline versus not inline, size_t versus unsigned int).
##
## The prototypes for the unresolved externals are declared in <linux/string.h>.
## This file is not included with extern "C" { ... } and therefore the function
## prototypes are mangled during C++ compilation. That's why we have to provide
## implementations with mangled function names.
##
## bird: Why don't we just extern "C" {} that file then?
RuntimeR0Drv_SOURCES.linux = \
common/string/strpbrk.cpp \
common/err/RTErrConvertToErrno.cpp \
common/err/RTErrConvertFromErrno.cpp \
generic/RTAssertShouldPanic-generic.cpp \
generic/RTLogWriteStdOut-stub-generic.cpp \
generic/mppresent-generic.cpp \
r0drv/linux/alloc-r0drv-linux.c \
r0drv/linux/assert-r0drv-linux.c \
r0drv/linux/initterm-r0drv-linux.c \
r0drv/linux/memobj-r0drv-linux.c \
r0drv/linux/memuserkernel-r0drv-linux.c \
r0drv/linux/mp-r0drv-linux.c \
r0drv/linux/mpnotification-r0drv-linux.c \
r0drv/linux/process-r0drv-linux.c \
r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \
r0drv/linux/semevent-r0drv-linux.c \
r0drv/linux/semeventmulti-r0drv-linux.c \
r0drv/linux/semfastmutex-r0drv-linux.c \
r0drv/linux/semmutex-r0drv-linux.c \
r0drv/linux/spinlock-r0drv-linux.c \
r0drv/linux/thread-r0drv-linux.c \
r0drv/linux/thread2-r0drv-linux.c \
r0drv/linux/time-r0drv-linux.c \
r0drv/linux/timer-r0drv-linux.c \
r0drv/memobj-r0drv.cpp \
r0drv/mpnotification-r0drv.c \
r0drv/powernotification-r0drv.c
RuntimeR0Drv_SOURCES.win = \
common/misc/thread.cpp \
common/string/memcmp.asm \
common/string/memchr.asm \
common/string/memcpy.asm \
common/string/memset.asm \
common/string/memmove.asm \
common/string/strlen.asm \
common/string/strncmp.cpp \
common/string/strpbrk.cpp \
generic/RTAssertShouldPanic-generic.cpp \
generic/RTLogWriteStdOut-stub-generic.cpp \
generic/RTTimerCreate-generic.cpp \
generic/mppresent-generic.cpp \
nt/RTErrConvertFromNtStatus.cpp \
r0drv/memobj-r0drv.cpp \
r0drv/mpnotification-r0drv.c \
r0drv/powernotification-r0drv.c \
r0drv/nt/alloc-r0drv-nt.cpp \
r0drv/nt/assert-r0drv-nt.cpp \
r0drv/nt/initterm-r0drv-nt.cpp \
r0drv/nt/memobj-r0drv-nt.cpp \
r0drv/nt/memuserkernel-r0drv-nt.cpp \
r0drv/nt/mp-r0drv-nt.cpp \
r0drv/nt/mpnotification-r0drv-nt.cpp \
r0drv/nt/process-r0drv-nt.cpp \
r0drv/nt/RTLogWriteDebugger-r0drv-nt.cpp \
r0drv/nt/semevent-r0drv-nt.cpp \
r0drv/nt/semeventmulti-r0drv-nt.cpp \
r0drv/nt/semfastmutex-r0drv-nt.cpp \
r0drv/nt/semmutex-r0drv-nt.cpp \
r0drv/nt/spinlock-r0drv-nt.cpp \
r0drv/nt/thread-r0drv-nt.cpp \
r0drv/nt/thread2-r0drv-nt.cpp \
r0drv/nt/time-r0drv-nt.cpp \
r0drv/nt/timer-r0drv-nt.cpp
RuntimeR0Drv_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
RuntimeR0Drv_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
RuntimeR0Drv_SOURCES.darwin = \
common/err/RTErrConvertFromErrno.cpp \
common/misc/thread.cpp \
common/string/memchr.asm \
common/string/strpbrk.cpp \
darwin/RTErrConvertFromDarwin.cpp \
darwin/RTErrConvertFromDarwinIO.cpp \
darwin/RTErrConvertFromDarwinKern.cpp \
generic/RTAssertShouldPanic-generic.cpp \
generic/RTTimerCreate-generic.cpp \
generic/mppresent-generic.cpp \
generic/timer-generic.cpp \
r0drv/generic/mpnotification-r0drv-generic.cpp \
r0drv/darwin/alloc-r0drv-darwin.cpp \
r0drv/darwin/assert-r0drv-darwin.cpp \
r0drv/darwin/initterm-r0drv-darwin.cpp \
r0drv/darwin/memobj-r0drv-darwin.cpp \
r0drv/darwin/mp-r0drv-darwin.cpp \
r0drv/darwin/memuserkernel-r0drv-darwin.cpp \
r0drv/darwin/process-r0drv-darwin.cpp \
r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
r0drv/darwin/RTLogWriteStdOut-r0drv-darwin.cpp \
r0drv/darwin/semevent-r0drv-darwin.cpp \
r0drv/darwin/semeventmulti-r0drv-darwin.cpp \
r0drv/darwin/semfastmutex-r0drv-darwin.cpp \
r0drv/darwin/semmutex-r0drv-darwin.cpp \
r0drv/darwin/spinlock-r0drv-darwin.cpp \
r0drv/darwin/thread-r0drv-darwin.cpp \
r0drv/darwin/thread2-r0drv-darwin.cpp \
r0drv/darwin/threadpreempt-r0drv-darwin.cpp \
r0drv/darwin/time-r0drv-darwin.cpp \
r0drv/memobj-r0drv.cpp \
r0drv/powernotification-r0drv.c
RuntimeR0Drv_SOURCES.os2 = \
common/string/memchr.asm \
common/string/memcmp.asm \
common/string/memcpy.asm \
common/string/mempcpy.asm \
common/string/memmove.asm \
common/string/memset.asm \
common/string/strchr.asm \
common/string/strcmp.asm \
common/string/strcpy.asm \
common/string/strlen.asm \
\
common/string/strncmp.cpp \
common/string/strpbrk.cpp \
\
common/misc/thread.cpp \
generic/RTAssertShouldPanic-generic.cpp \
generic/RTLogWriteDebugger-generic.cpp \
generic/RTLogWriteStdOut-stub-generic.cpp \
generic/RTMpCpuId-generic.cpp \
generic/RTMpCpuIdFromSetIndex-generic.cpp \
generic/RTMpCpuIdToSetIndex-generic.cpp \
generic/RTMpIsCpuPossible-generic.cpp \
generic/RTMpGetCount-generic.cpp \
generic/RTMpGetMaxCpuId-generic.cpp \
generic/RTMpGetOnlineCount-generic.cpp \
generic/RTMpGetOnlineSet-generic.cpp \
generic/RTMpGetSet-generic.cpp \
generic/RTMpIsCpuOnline-generic.cpp \
generic/RTTimerCreate-generic.cpp \
generic/mppresent-generic.cpp \
os2/RTErrConvertFromOS2.cpp \
os2/sys0.asm \
r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
r0drv/generic/RTMpOn-r0drv-generic.cpp \
r0drv/generic/mpnotification-r0drv-generic.cpp \
r0drv/memobj-r0drv.cpp \
r0drv/powernotification-r0drv.c \
r0drv/os2/alloc-r0drv-os2.cpp \
r0drv/os2/assert-r0drv-os2.cpp \
r0drv/os2/assertA-r0drv-os2.asm \
r0drv/os2/initterm-r0drv-os2.cpp \
r0drv/os2/memobj-r0drv-os2.cpp \
r0drv/os2/memuserkernel-r0drv-os2.cpp \
r0drv/os2/os2imports.imp \
r0drv/os2/process-r0drv-os2.cpp \
r0drv/os2/RTR0AssertPanicSystem-r0drv-os2.asm \
r0drv/os2/RTR0Os2DHQueryDOSVar.asm \
r0drv/os2/RTR0Os2DHVMGlobalToProcess.asm \
r0drv/os2/semevent-r0drv-os2.cpp \
r0drv/os2/semeventmulti-r0drv-os2.cpp \
r0drv/os2/semfastmutex-r0drv-os2.cpp \
r0drv/os2/spinlock-r0drv-os2.cpp \
r0drv/os2/thread-r0drv-os2.cpp \
r0drv/os2/thread2-r0drv-os2.cpp \
r0drv/os2/time-r0drv-os2.cpp \
r0drv/os2/timer-r0drv-os2.cpp \
r0drv/os2/timerA-r0drv-os2.asm
RuntimeR0Drv_SOURCES.freebsd = \
common/err/RTErrConvertFromErrno.cpp \
common/err/RTErrConvertToErrno.cpp \
common/misc/thread.cpp \
common/string/memchr.asm \
common/string/memmove.asm \
common/string/strpbrk.cpp \
common/string/memcmp.asm \
common/string/strchr.asm \
generic/RTAssertShouldPanic-generic.cpp \
generic/RTLogWriteDebugger-generic.cpp \
generic/RTLogWriteStdOut-stub-generic.cpp \
generic/RTTimerCreate-generic.cpp \
generic/mppresent-generic.cpp \
r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
r0drv/generic/mpnotification-r0drv-generic.cpp \
r0drv/freebsd/alloc-r0drv-freebsd.c \
r0drv/freebsd/assert-r0drv-freebsd.c \
r0drv/freebsd/initterm-r0drv-freebsd.c \
r0drv/freebsd/memobj-r0drv-freebsd.c \
r0drv/freebsd/memuserkernel-r0drv-freebsd.c \
r0drv/freebsd/process-r0drv-freebsd.c \
r0drv/freebsd/semevent-r0drv-freebsd.c \
r0drv/freebsd/semeventmulti-r0drv-freebsd.c \
r0drv/freebsd/semfastmutex-r0drv-freebsd.c \
r0drv/freebsd/semmutex-r0drv-freebsd.c \
r0drv/freebsd/spinlock-r0drv-freebsd.c \
r0drv/freebsd/thread-r0drv-freebsd.c \
r0drv/freebsd/thread2-r0drv-freebsd.c \
r0drv/freebsd/time-r0drv-freebsd.c \
r0drv/freebsd/mp-r0drv-freebsd.c \
generic/timer-generic.cpp \
r0drv/memobj-r0drv.cpp \
r0drv/powernotification-r0drv.c
RuntimeR0Drv_SOURCES.solaris = \
common/err/RTErrConvertFromErrno.cpp \
common/err/RTErrConvertToErrno.cpp \
common/misc/thread.cpp \
common/string/memchr.asm \
generic/RTAssertShouldPanic-generic.cpp \
generic/RTLogWriteStdOut-stub-generic.cpp \
generic/RTTimerCreate-generic.cpp \
generic/mppresent-generic.cpp \
r0drv/memobj-r0drv.cpp \
r0drv/mpnotification-r0drv.c \
r0drv/powernotification-r0drv.c \
r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \
r0drv/solaris/assert-r0drv-solaris.c \
r0drv/solaris/initterm-r0drv-solaris.c \
r0drv/solaris/memuserkernel-r0drv-solaris.c \
r0drv/solaris/semevent-r0drv-solaris.c \
r0drv/solaris/semeventmulti-r0drv-solaris.c \
r0drv/solaris/semfastmutex-r0drv-solaris.c \
r0drv/solaris/semmutex-r0drv-solaris.c \
r0drv/solaris/spinlock-r0drv-solaris.c
# VBI is now compiled into IPRT
RuntimeR0Drv_SOURCES.solaris += \
r0drv/solaris/vbi/RTMpPokeCpu-r0drv-solaris.c \
r0drv/solaris/vbi/mpnotification-r0drv-solaris.c \
r0drv/solaris/vbi/alloc-r0drv-solaris.c \
r0drv/solaris/vbi/memobj-r0drv-solaris.c \
r0drv/solaris/vbi/mp-r0drv-solaris.c \
r0drv/solaris/vbi/process-r0drv-solaris.c \
r0drv/solaris/vbi/thread-r0drv-solaris.c \
r0drv/solaris/vbi/thread2-r0drv-solaris.c \
r0drv/solaris/vbi/time-r0drv-solaris.c \
r0drv/solaris/vbi/timer-r0drv-solaris.c \
r0drv/solaris/vbi/i86pc/os/vbi.c
## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here.
RuntimeR0Drv_ORDERDEPS.freebsd = \
$(PATH_INS)/gen-sys-hdrs/bus_if.h \
$(PATH_INS)/gen-sys-hdrs/device_if.h
#
# RuntimeGuestR0 - Guest driver runtime.
# This is almost the same as the RuntimeR0Drv, the main difference
# is in the backdoor logging and the lack of sup.h (which should be
# made irrelevant even for RuntimeR0Drv).
#
RuntimeGuestR0_TEMPLATE := VBOXGUESTR0LIB
RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES))
RuntimeGuestR0_SOURCES += \
VBox/logbackdoor.cpp
RuntimeGuestR0_EXTENDS = RuntimeR0Drv
#
# RuntimeGuestR0NT4 - Win32 NT4 guest driver runtime.
#
RuntimeGuestR0NT4_EXTENDS = RuntimeGuestR0
RuntimeGuestR0NT4_EXTENDS_BY = appending
RuntimeGuestR0NT4_DEFS = IPRT_TARGET_NT4
ifdef VBOX_WITH_RAW_MODE
#
# RuntimeRC - Raw-mode context library.
#
RuntimeRC_TEMPLATE = VBoxRc
RuntimeRC_DEFS = IN_RT_RC RT_WITH_VBOX
RuntimeRC_INCS = include
RuntimeRC_SOURCES = \
common/checksum/crc32.cpp \
common/checksum/crc64.cpp \
common/checksum/md5.cpp \
common/log/log.cpp \
common/log/logellipsis.cpp \
common/log/logrel.cpp \
common/log/logrelellipsis.cpp \
common/log/logcom.cpp \
common/log/logformat.cpp \
common/misc/RTAssertMsg1Weak.cpp \
common/misc/RTAssertMsg2.cpp \
common/misc/RTAssertMsg2Add.cpp \
common/misc/RTAssertMsg2AddWeak.cpp \
common/misc/RTAssertMsg2AddWeakV.cpp \
common/misc/RTAssertMsg2Weak.cpp \
common/misc/RTAssertMsg2WeakV.cpp \
common/misc/assert.cpp \
common/misc/buildconfig.cpp \
common/misc/sanity-c.c \
common/misc/sanity-cpp.cpp \
common/string/strformat.cpp \
common/string/strformatrt.cpp \
common/string/strformattype.cpp \
common/string/strncmp.cpp \
common/string/strpbrk.cpp \
common/string/strprintf.cpp \
common/table/avllu32.cpp \
common/table/avlou32.cpp \
common/table/avlogcphys.cpp \
common/table/avlogcptr.cpp \
common/table/avlohcphys.cpp \
common/table/avloioport.cpp \
common/table/avlrogcphys.cpp \
common/table/avlrogcptr.cpp \
common/table/avlroioport.cpp \
common/table/avlroogcptr.cpp \
common/table/avlu32.cpp \
common/time/timeprog.cpp \
common/time/timesup.cpp \
gc/initterm-gc.cpp \
generic/RTAssertShouldPanic-generic.cpp \
\
$(RuntimeNoCrt_SOURCES)
#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
# RuntimeRC_SOURCES += common/time/timesupA.asm
#else
RuntimeRC_SOURCES += common/time/timesupref.cpp
#endif
RuntimeRC_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
ifeq ($(VBOX_LDR_FMT32),lx)
RuntimeRC_SOURCES += os2/sys0.asm
endif
if1of ($(KBUILD_TARGET), darwin solaris freebsd)
RuntimeRC_SOURCES += \
common/math/gcc/adddi3.c \
common/math/gcc/anddi3.c \
common/math/gcc/ashldi3.c \
common/math/gcc/ashrdi3.c \
common/math/gcc/cmpdi2.c \
common/math/gcc/divdi3.c \
common/math/gcc/iordi3.c \
common/math/gcc/lshldi3.c \
common/math/gcc/lshrdi3.c \
common/math/gcc/moddi3.c \
common/math/gcc/muldi3.c \
common/math/gcc/negdi2.c \
common/math/gcc/notdi2.c \
common/math/gcc/qdivrem.c \
common/math/gcc/subdi3.c \
common/math/gcc/ucmpdi2.c \
common/math/gcc/udivdi3.c \
common/math/gcc/umoddi3.c \
common/math/gcc/xordi3.c
endif
#
# RuntimeRCStub - Raw-mode context startup stub for Windows.
#
RuntimeRCStub_TEMPLATE = VBoxRc
RuntimeRCStub_SOURCES.win = \
nt/NtProcessStartup-stub.cpp
endif # VBOX_WITH_RAW_MODE
#
# Static library for new & delete for the electric fence.
#
RuntimeEFCPP_TEMPLATE = $(VBoxRT_TEMPLATE)
RuntimeEFCPP_SDKS = $(RuntimeR3_SDKS)
RuntimeEFCPP_SDKS.$(KBUILD_TARGET) = $(RuntimeR3_SDKS.$(KBUILD_TARGET))
RuntimeEFCPP_DEFS = $(RuntimeR3_DEFS)
RuntimeEFCPP_DEFS.$(KBUILD_TARGET) = $(RuntimeR3_DEFS.$(KBUILD_TARGET))
RuntimeEFCPP_INCS = $(RuntimeR3_INCS)
RuntimeEFCPP_INCS.$(KBUILD_TARGET) = $(RuntimeR3_INCS.$(KBUILD_TARGET))
RuntimeEFCPP_SOURCES = r3/alloc-ef-cpp.cpp
#
# errmsg.cpp depends on a generated header.
#
common/err/errmsg.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h
common/err/errmsg.cpp_INCS = $(IPRT_OUT_DIR)
win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgcomdata.h
win/errmsgwin.cpp_INCS = $(IPRT_OUT_DIR)
# Our COM errors only for R3 libraries on the host
define def_errmsgwin_deps
$(lib)_win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
$(lib)_common/err/errmsgxpcom.cpp_INCS = $(IPRT_OUT_DIR)
$(lib)_common/err/errmsgxpcom.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
endef
$(foreach lib,RuntimeR3 VBoxRT RuntimeLnxHostR3,$(eval $(def_errmsgwin_deps)))
#
# Generate the status code data.
#
$(IPRT_OUT_DIR)/errmsgdata.h: \
$(VBOX_PATH_RUNTIME_SRC)/common/err/errmsg.sed \
$(PATH_ROOT)/include/iprt/err.h \
$(PATH_ROOT)/include/VBox/err.h \
| $$(dir $$@)
$(call MSG_GENERATE,,$@,$(filter %.h,$^))
$(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
## @todo r=bird: rename this to indicate that it's not only COM errors, but all win32/64 errors.
$(IPRT_OUT_DIR)/errmsgcomdata.h: \
$(VBOX_PATH_RUNTIME_SRC)/common/err/errmsgcom.sed \
$$(PATH_SDK_WINPSDK_INC)/WinError.h \
| $$(dir $$@)
$(call MSG_GENERATE,,$@,$(filter %.h,$^))
$(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
$(IPRT_OUT_DIR)/errmsgvboxcomdata.h: \
$(VBOX_PATH_RUNTIME_SRC)/VBox/errmsgvboxcom.xsl \
$(VBOX_XIDL_FILE_SRC) \
| $$(dir $$@)
$(call MSG_GENERATE,,$@,$(filter %.xidl,$^))
$(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(filter %.xidl,$^)
if "$(KBUILD_TARGET)" == "freebsd"
#
# FreeBSDGeneratedKernelHeaders - Generate some kernel interface headers.
#
# These are used by:
# - The RTMp* API in IPRT.
# - VBoxGuest
#
# Note! We cannot give a output path to the awk program, it will always
# generate the header next to the source. So, we'll have to temporarily copy
# the source file to the destination directory to work.
#
VBOX_AWK := /usr/bin/awk
INSTALLS += FreeBSDGeneratedKernelHeaders
FreeBSDGeneratedKernelHeaders_INST = gen-sys-hdrs/
FreeBSDGeneratedKernelHeaders_SOURCES = \
$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h \
$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h \
$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h
FreeBSDGeneratedKernelHeaders_CLEAN = $(FreeBSDGeneratedKernelHeaders_SOURCES)
$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h: $(VBOX_FREEBSD_SRC)/kern/bus_if.m | $$(dir $$@)
$(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
$(QUIET)$(CP) -f $< $(@D)/bus_if.m
$(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/bus_if.m -h -p
$(QUIET)$(RM) $(@D)/bus_if.m
$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h: $(VBOX_FREEBSD_SRC)/kern/device_if.m | $$(dir $$@)
$(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
$(QUIET)$(CP) -f $< $(@D)/device_if.m
$(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/device_if.m -h -p
$(QUIET)$(RM) $(@D)/device_if.m
$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h: $(VBOX_FREEBSD_SRC)/dev/pci/pci_if.m | $$(dir $$@)
$(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
$(QUIET)$(CP) -f $< $(@D)/pci_if.m
$(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/pci_if.m -h -p
$(QUIET)$(RM) $(@D)/pci_if.m
endif # FreeBSD
#
# Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
#
ldrELFRelocatable.cpp.o: ldrELF.o
ldrELFRelocatable.cpp.obj: ldrELF.obj
#
# Doxygen documentation.
#
IPRT_DOXYFILE_INPUT_DIRS = \
$(PATH_ROOT)/include/iprt \
$(PATH_ROOT)/include/iprt/cpp \
$(PATH_ROOT)/include/iprt/linux \
$(PATH_ROOT)/include/iprt/nocrt \
$(PATH_ROOT)/include/iprt/nocrt/x86 \
$(PATH_ROOT)/include/iprt/nocrt/amd64 \
$(PATH_ROOT)/include/iprt/nocrt/compiler \
$(VBOX_PATH_RUNTIME_SRC)/include/internal \
$(VBOX_PATH_RUNTIME_SRC)/common/alloc \
$(VBOX_PATH_RUNTIME_SRC)/common/asm \
$(VBOX_PATH_RUNTIME_SRC)/common/checksum \
$(VBOX_PATH_RUNTIME_SRC)/common/dbg \
$(VBOX_PATH_RUNTIME_SRC)/common/err \
$(VBOX_PATH_RUNTIME_SRC)/common/ldr \
$(VBOX_PATH_RUNTIME_SRC)/common/log \
$(VBOX_PATH_RUNTIME_SRC)/common/math \
$(VBOX_PATH_RUNTIME_SRC)/common/math/amd64 \
$(VBOX_PATH_RUNTIME_SRC)/common/math/gcc \
$(VBOX_PATH_RUNTIME_SRC)/common/math/x86 \
$(VBOX_PATH_RUNTIME_SRC)/common/misc \
$(VBOX_PATH_RUNTIME_SRC)/common/path \
$(VBOX_PATH_RUNTIME_SRC)/common/rand \
$(VBOX_PATH_RUNTIME_SRC)/common/string \
$(VBOX_PATH_RUNTIME_SRC)/common/table \
$(VBOX_PATH_RUNTIME_SRC)/common/time \
$(VBOX_PATH_RUNTIME_SRC)/VBox \
$(foreach dir, $(VBOX_PATH_RUNTIME_SRC) $(VBOX_PATH_RUNTIME_SRC)/r3 $(VBOX_PATH_RUNTIME_SRC)/r0drv,\
$(dir) \
$(dir)/darwin \
$(dir)/l4 \
$(dir)/linux \
$(dir)/nt \
$(dir)/os2 \
$(dir)/win \
$(dir)/win32 \
$(dir)/win64 \
$(dir)/generic \
)
# These must come first in order to make things look nice.
IPRT_DOXYFILE_INPUT_FIRST =\
$(PATH_ROOT)/include/iprt/cdefs.h \
$(PATH_ROOT)/include/iprt/types.h \
$(PATH_ROOT)/include/iprt/runtime.h \
$(PATH_ROOT)/include/iprt/param.h \
$(PATH_ROOT)/include/iprt/assert.h \
$(PATH_ROOT)/include/iprt/asm.h \
IPRT_DOXYFILE_INPUT := \
$(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(IPRT_DOXYFILE_INPUT_DIRS)))) ) \
$(foreach dir, $(IPRT_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
IPRT_DOXYFILE_INPUT := \
$(IPRT_DOXYFILE_INPUT_FIRST) \
$(filter-out $(IPRT_DOXYFILE_INPUT_FIRST), $(IPRT_DOXYFILE_INPUT))
IPRT_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/iprt
BLDDIRS += $(IPRT_DOXYFILE_OUTPUT)
includedep $(IPRT_OUT_DIR)/Doxyfile.iprt.dep
# Generate the Doxyfile
$(IPRT_OUT_DIR)/Doxyfile.iprt: \
$(VBOX_PATH_RUNTIME_SRC)/Doxyfile \
$(VBOX_PATH_RUNTIME_SRC)/Makefile.kmk \
$(comp-vars IPRT_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
$(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
| $$(dir $$@)
$(RM) -f $@ $@.tmp $@.dep
$(CP) -f $(VBOX_PATH_RUNTIME_SRC)/Doxyfile $@.tmp
$(APPEND) $@.tmp
$(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(IPRT_DOXYFILE_OUTPUT)"
$(APPEND) $@.tmp "WARN_LOGFILE = $(IPRT_DOXYFILE_OUTPUT)/errors"
$(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include include . common/table"
$(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
$(APPEND) $@.tmp "PREDEFINED += $(ARCH_BITS_DEFS)"
$(APPEND) $@.tmp
$(APPEND) $@.tmp "INPUT = $(IPRT_DOXYFILE_INPUT)"
$(APPEND) $@.tmp
$(MV) -f $@.tmp $@
@$(APPEND) $@.dep "DOXYGEN_OUTPUT_PREV = $(IPRT_DOXYFILE_OUTPUT)"
@$(APPEND) $@.dep "DOXYGEN_INPUT_PREV = $(IPRT_DOXYFILE_INPUT)"
# Do the actual job.
$(IPRT_OUT_DIR)/docs.iprt: $(IPRT_OUT_DIR)/Doxyfile.iprt $$(IPRT_DOXYFILE_INPUT) | $(IPRT_DOXYFILE_OUTPUT)/
$(RM) -f $(wildcard $(IPRT_DOXYFILE_OUTPUT)/html/*) $(IPRT_OUT_DIR)/docs.iprt
doxygen $(IPRT_OUT_DIR)/Doxyfile.iprt
$(APPEND) $(IPRT_OUT_DIR)/docs.iprt
# aliases
docs.iprt: $(IPRT_OUT_DIR)/docs.iprt
if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
docs: $(IPRT_OUT_DIR)/docs.iprt
endif
test-doxygen::
@echo test-$(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE)
@echo $(IPRT_DOXYFILE_OUTPUT)
@echo $(DOXYGEN_OUTPUT_PREV)
@echo $(IPRT_DOXYFILE_INPUT)
#
# Generate the rules (we're the to sub-makefile).
#
include $(KBUILD_PATH)/subfooter.kmk