Makefile.kmk revision d088a56ab5d741f03bee8f842f5e33d47bc78b27
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# $Id$
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync## @file
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# Makefile for the IPRT (IPRT).
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync# Copyright (C) 2006-2007 Sun Microsystems, Inc.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# available from http://www.virtualbox.org. This file is free software;
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# you can redistribute it and/or modify it under the terms of the GNU
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# General Public License (GPL) as published by the Free Software
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# The contents of this file may alternatively be used under the terms
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# of the Common Development and Distribution License Version 1.0
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# VirtualBox OSE distribution, in which case the provisions of the
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# CDDL are applicable instead of those of the GPL.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
590bfe12ce22cd3716448fbb9f4dc51664bfe5e2vboxsync# You may elect to license modified versions of this file under the
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# terms and conditions of either the GPL or the CDDL or both.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# Clara, CA 95054 USA or visit http://www.sun.com if you need
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# additional information or have any questions.
590bfe12ce22cd3716448fbb9f4dc51664bfe5e2vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncDEPTH = ../../..
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncinclude $(PATH_KBUILD)/header.kmk
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncifdef VBOX_ONLY_ADDITIONS
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync #
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync # Only build the additions, sort out the legacy names first.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync #
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync ifeq ($(BUILD_TARGET),win)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync LIBRARIES = RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync else
590bfe12ce22cd3716448fbb9f4dc51664bfe5e2vboxsync LIBRARIES = RuntimeGuestR0 RuntimeGuestR3 RuntimeGuestR3Mini
43747b1f0bc8302a238fb35e55857a5e9aa1933dvboxsync #LIBRARIES.os2 = RuntimeOS2Warp3GuestR0
43747b1f0bc8302a238fb35e55857a5e9aa1933dvboxsync #LIBRARIES.win = RuntimeW32NT4GuestR0
43747b1f0bc8302a238fb35e55857a5e9aa1933dvboxsync ifndef VBOX_WITH_ADDITION_DRIVERS
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync if1of ($(BUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0.
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync LIBRARIES := $(filter-out RuntimeGuestR0, $(LIBRARIES))
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync endif
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync endif
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync endif
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncelse
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync #
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync # Normal build.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync #
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync BLDPROGS = uniread
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync LIBRARIES = RuntimeR3 RuntimeR0 RuntimeGC RuntimeEFCPP RuntimeR3NoCRTGCC
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync ifdef VBOX_WITH_VBOXDRV
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync LIBRARIES += RuntimeR0Drv
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync endif
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync ifdef VBOX_WITH_ADDITIONS
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync ifdef VBOX_WITH_WIN32_ADDITIONS
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync LIBRARIES += RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync endif
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync ifneq ($(BUILD_TARGET),win)
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync LIBRARIES += RuntimeGuestR0 RuntimeGuestR3 RuntimeGuestR3Mini
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync #LIBRARIES.os2 = RuntimeOS2Warp3GuestR0
787c7e6ef15f993c455c374f5158e7bb753b1c33vboxsync #LIBRARIES.win = RuntimeW32NT4GuestR0
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync ifndef VBOX_WITH_ADDITION_DRIVERS
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync if1of ($(BUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync LIBRARIES := $(filter-out RuntimeGuestR0, $(LIBRARIES))
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync endif
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync endif
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync endif
787c7e6ef15f993c455c374f5158e7bb753b1c33vboxsync endif # VBOX_WITH_ADDITIONS
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync LIBRARIES.l4 = RuntimeR3L4 RuntimeLnxHostR3
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync DLLS = VBoxRT
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync OTHER_CLEAN = \
787c7e6ef15f993c455c374f5158e7bb753b1c33vboxsync $(PATH_TARGET)/errmsgdata.h \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(PATH_TARGET)/errmsgcomdata.h \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(PATH_TARGET)/Doxyfile \
ad27e1d5e48ca41245120c331cc88b50464813cevboxsync $(PATH_TARGET)/Doxyfile.dep \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(PATH_TARGET)/docs.iprt
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync SUBDIRS_AFTER = testcase
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncendif
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# global (for now at least)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncINCS += include
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# Unicode Specification reader used to regenerate unidata.cpp.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncuniread_TEMPLATE = VBOXBLDPROG
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncuniread_SOURCES = common/string/uniread.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# Win64 assembly sources.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeWin64ASM_SOURCES = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMAtomicBitClear.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMAtomicBitTestAndToggle.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMAtomicBitToggle.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMAtomicReadU64.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMAtomicXchgU16.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMAtomicXchgU8.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMBitFirstClear.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMBitFirstSet.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMGetCS.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMGetDS.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMGetES.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMGetFlags.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMGetFS.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMGetGS.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMGetIDTR.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMGetGDTR.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMGetTR.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMGetSS.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMProbeReadByte.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMSetFlags.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMGetDR0.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMGetDR1.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMGetDR2.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMGetDR3.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMGetDR6.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/amd64/ASMGetDR7.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/asm/ASMMultU64ByU32DivByU32.asm
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# Win32 assembly sources.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeWin32ASM_SOURCES = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/asm/ASMMultU64ByU32DivByU32.asm
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# RuntimeR3 - Static Runtime for Ring-3 executables.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3_TEMPLATE = VBOXR3EXE
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3_SDKS.win = WINPSDK W2K3DDK
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncifdef IPRT_WITH_KSTUFF
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync RuntimeR3_DEFS += LDR_WITH_KLDR
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncendif
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncifdef VBOX_MAIN_RELEASE_LOG ## @todo (dmik): temporary, until RTThreadSelf/RTThreadAdopt are properly updated
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync RuntimeR3_DEFS += RTCRITSECT_STRICT
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncendif
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsyncRuntimeR3_INCS = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(PATH_ROOT)/src/libs/liblzf-1.51
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsyncifdef IPRT_WITH_KSTUFF
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync RuntimeR3_INCS += \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(PATH_ROOT)/src/libs/kStuff/kStuff/include
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncendif
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3_INCS.l4 = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(L4_INCDIR)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# for iconv.h
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3_INCS.freebsd = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync /usr/local/include
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# RuntimeR3_INCS.solaris = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# /usr/include
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3_SOURCES = \
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsync common/alloc/alloc.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/alloc/heapsimple.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/checksum/crc32.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/checksum/crc64.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/checksum/md5.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/err/errmsg.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/err/RTErrConvertFromErrno.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/ldr/ldr.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/ldr/ldrELF.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/ldr/ldrEx.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/ldr/ldrFile.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/ldr/ldrNative.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/ldr/ldrPE.cpp \
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsync common/log/log.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/log/logcom.cpp \
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsync common/log/logformat.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/misc/assert.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/misc/cidr.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/misc/getopt.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/misc/rand.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/misc/req.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/misc/sanity-c.c \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/misc/sanity-cpp.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/misc/semspingpong.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/misc/thread.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/misc/zip.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/straprintf.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/strformat.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/strformatrt.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/strformattype.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/string.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/strprintf.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/strspace.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/strstrip.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/strtonum.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/uni.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/unidata.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/utf-16.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/utf-8.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/table/avlgcptr.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/table/avlhcphys.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/table/avllu32.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/table/avlogcphys.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/table/avlogcptr.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/table/avlohcphys.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/table/avloioport.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/table/avlpv.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/table/avlrgcptr.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/table/avlrogcphys.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/table/avlrogcptr.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/table/avlroioport.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/table/avlroogcptr.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/table/avlu32.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/table/avlul.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/table/table.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/time/time.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/time/timeprog.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/time/timesup.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/critsect-generic.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync generic/env-generic.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync generic/RTFileCopy-generic.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync generic/RTLogWriteStdErr-generic.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync generic/RTLogWriteStdOut-generic.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync generic/RTLogWriteUser-generic.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync generic/semfastmutex-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/spinlock-generic.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync r3/alloc-ef.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/alloc.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/dir.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync r3/fileio.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync r3/fs.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync r3/init.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync r3/path.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync r3/process.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync r3/stream.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync r3/tcp.cpp
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync#if1of ($(BUILD_TARGET_ARCH),amd64 x86)
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync# RuntimeR3_SOURCES += common/time/timesupA.asm
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync#else
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync RuntimeR3_SOURCES += common/time/timesupref.cpp
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync#endif
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsyncifdef IPRT_WITH_KSTUFF
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync RuntimeR3_SOURCES += \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync common/ldr/ldrkStuff.cpp
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsyncendif
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync# VBox specific stuff.
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsyncRuntimeR3_SOURCES += \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync VBox/strformat-vbox.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync VBox/RTAssertDoBreakpoint-vbox.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync VBox/log-vbox.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsyncRuntimeR3_SOURCES.win = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/rand-stubs-generic.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync generic/RTDirQueryInfo-generic.cpp \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync generic/RTDirSetTimes-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/semnoint-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/semsrw-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync nt/RTErrConvertFromNtStatus.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/env-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/alloc-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/dir-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/fileio-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/fs-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/ldrNative-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/mp-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/path-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/process-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/RTLogWriteDebugger-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/sched-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/sems-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/system-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/thread-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/time-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/timer-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/tls-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/utf16locale-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/utf8-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/win/uuid-win.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/errmsgwin.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync win/RTErrConvertFromWin32.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3_SOURCES.linux = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/pathhost-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTDirQueryInfo-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTDirSetTimes-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTFileMove-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTLogWriteDebugger-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTTimeLocalNow-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTTimerCreate-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/utf16locale-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/uuid-generic.cpp \
fbf08fabb4c4b383d6aa2830c2bd5b943a26f10cvboxsync r3/linux/sched-linux.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/linux/time-linux.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/alloc-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/dir-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/env-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/fileio-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/filelock-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/fs-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/ldrNative-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/path-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/process-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/rand-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/RTMpGetCount-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/RTTimeNow-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/semrw-posix.cpp \
fbf08fabb4c4b383d6aa2830c2bd5b943a26f10cvboxsync r3/posix/system-posix.cpp \
fbf08fabb4c4b383d6aa2830c2bd5b943a26f10cvboxsync r3/posix/thread-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/timelocal-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/timer-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/tls-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/utf8-posix.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3_SOURCES.linux.x86 += \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/semevent-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/semeventmulti-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/semmutex-posix.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3_SOURCES.linux.amd64 += \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/linux/semevent-linux.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/linux/semeventmulti-linux.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncifdef RT_NEW_LINUX_MUTEX_CODE
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync RuntimeR3_SOURCES.linux.amd64 += \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/linux/semmutex-linux.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncelse
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync RuntimeR3_SOURCES.linux.amd64 += \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/semmutex-posix.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncendif
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3_SOURCES.os2 = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/pathhost-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/rand-stubs-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTDirQueryInfo-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTDirSetTimes-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTFileMove-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTLogWriteDebugger-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTTimeLocalNow-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTTimerCreate-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/semnoint-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/semsrw-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/timer-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/utf16locale-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/uuid-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync os2/RTErrConvertFromOS2.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/os2/filelock-os2.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/os2/mp-os2.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/os2/sched-os2.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/os2/sems-os2.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/os2/system-os2.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/os2/thread-os2.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/os2/time-os2.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/alloc-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/dir-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/env-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/fileio-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/fs-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/ldrNative-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/path-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/process-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/RTTimeNow-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/timelocal-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/utf8-posix.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3_SOURCES.darwin = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync darwin/RTErrConvertFromDarwin.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync darwin/RTErrConvertFromDarwinCOM.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync darwin/RTErrConvertFromDarwinIO.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync darwin/RTErrConvertFromDarwinKern.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/pathhost-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTDirQueryInfo-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTDirSetTimes-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTFileMove-generic.cpp \
fbf08fabb4c4b383d6aa2830c2bd5b943a26f10cvboxsync generic/RTLogWriteDebugger-generic.cpp \
a7d402dcc23137e7b9527be6de80400043a5fbf4vboxsync generic/RTTimeLocalNow-generic.cpp \
fbf08fabb4c4b383d6aa2830c2bd5b943a26f10cvboxsync generic/RTTimerCreate-generic.cpp \
a7d402dcc23137e7b9527be6de80400043a5fbf4vboxsync generic/sched-generic.cpp \
fbf08fabb4c4b383d6aa2830c2bd5b943a26f10cvboxsync generic/timer-generic.cpp \
fbf08fabb4c4b383d6aa2830c2bd5b943a26f10cvboxsync generic/utf16locale-generic.cpp \
fbf08fabb4c4b383d6aa2830c2bd5b943a26f10cvboxsync generic/uuid-generic.cpp\
fbf08fabb4c4b383d6aa2830c2bd5b943a26f10cvboxsync r3/darwin/alloc-darwin.cpp \
fbf08fabb4c4b383d6aa2830c2bd5b943a26f10cvboxsync r3/darwin/filelock-darwin.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/darwin/time-darwin.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/dir-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/env-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/fileio-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/fs-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/ldrNative-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/path-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/process-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/RTMpGetCount-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/rand-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/semevent-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/semeventmulti-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/semmutex-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/semrw-posix.cpp \
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync r3/posix/system-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/thread-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/timelocal-posix.cpp \
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync r3/posix/tls-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/utf8-posix.cpp
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync
a39ea3668b7019c23a68936259545f9b71bce1aavboxsync## @todo Make BSD sched.
787c7e6ef15f993c455c374f5158e7bb753b1c33vboxsyncRuntimeR3_SOURCES.freebsd = \
ee4d840f54fd2dcea8a73b1b86d5ec0db370b05dvboxsync generic/pathhost-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTDirQueryInfo-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTDirSetTimes-generic.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync generic/RTFileMove-generic.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync generic/RTLogWriteDebugger-generic.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync generic/RTTimeLocalNow-generic.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync generic/RTTimerCreate-generic.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync generic/sched-generic.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync generic/utf16locale-generic.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync generic/uuid-generic.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/freebsd/alloc-freebsd.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/dir-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/env-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/fileio-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/filelock-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/fs-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/ldrNative-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/path-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/process-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/rand-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/RTMpGetCount-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/RTTimeNow-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/semevent-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/semeventmulti-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/semmutex-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/semrw-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/system-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/thread-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/time-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/timelocal-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/timer-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/tls-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/utf8-posix.cpp
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync
e74eef731a813e4e06680c587a6759b9974b29c9vboxsyncRuntimeR3_SOURCES.solaris = \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync generic/pathhost-generic.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync generic/RTDirQueryInfo-generic.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync generic/RTDirSetTimes-generic.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync generic/RTFileMove-generic.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync generic/RTLogWriteDebugger-generic.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync generic/RTTimeLocalNow-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTTimerCreate-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/sched-generic.cpp \
cad8876b46f9e366c4a1007a40c27ca1df078950vboxsync generic/utf16locale-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/uuid-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/dir-posix.cpp \
c28fa006ba669ad8f26ae31d00a338379c04ea1bvboxsync r3/posix/env-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/fileio-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/filelock-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/fs-posix.cpp \
c28fa006ba669ad8f26ae31d00a338379c04ea1bvboxsync r3/posix/ldrNative-posix.cpp \
c28fa006ba669ad8f26ae31d00a338379c04ea1bvboxsync r3/posix/path-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/process-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/rand-posix.cpp \
e74eef731a813e4e06680c587a6759b9974b29c9vboxsync r3/posix/RTMpGetCount-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/RTTimeNow-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/semevent-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/semeventmulti-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/semmutex-posix.cpp \
c28fa006ba669ad8f26ae31d00a338379c04ea1bvboxsync r3/posix/semrw-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/system-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/thread-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/time-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/timelocal-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/timer-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/tls-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/utf8-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/solaris/alloc-solaris.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync## PORTME: Porters add their selection of platform specific files for Ring-3 here.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# L4 RuntimeR3 subtarget since L4 headers won't work with VBOXR3.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3L4_TEMPLATE = VBOXR3NP
787c7e6ef15f993c455c374f5158e7bb753b1c33vboxsyncRuntimeR3L4_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF LDR_WITH_PE
fbf08fabb4c4b383d6aa2830c2bd5b943a26f10cvboxsyncifneq ($(BUILD_TARGET_ARCH),amd64)
fbf08fabb4c4b383d6aa2830c2bd5b943a26f10cvboxsyncRuntimeR3L4_DEFS += __PIC__
a7d402dcc23137e7b9527be6de80400043a5fbf4vboxsyncendif
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3L4_INCS = $(L4_INCDIR)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3L4_SOURCES = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/fs-stubs-generic.cpp \
c28fa006ba669ad8f26ae31d00a338379c04ea1bvboxsync generic/pathhost-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTDirQueryInfo-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTDirSetTimes-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTFileMove-generic.cpp \
c28fa006ba669ad8f26ae31d00a338379c04ea1bvboxsync generic/RTLogWriteDebugger-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTTimeLocalNow-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/sched-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/semnoint-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/semsrw-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/utf16locale-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/uuid-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync l4/l4-errno.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync l4/process-l4env.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync l4/sems-l4env.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync l4/system-l4env.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync l4/thread-l4env.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync l4/timer-l4env.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync l4/utf8-l4env.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/alloc-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/dir-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/env-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/fileio-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/filelock-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/ldrNative-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/path-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/rand-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/RTTimeNow-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/time-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/timelocal-posix.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# RuntimeGuestR3 - Guest Additions Runtime (static).
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# (The BUILD_PLATFORM inheritance here is for l4 cross building the linux
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# additions, while .x86 is for cross building x86 while targeting amd64.)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3_TEMPLATE := VBOXGUESTR3LIB
c28fa006ba669ad8f26ae31d00a338379c04ea1bvboxsyncRuntimeGuestR3_SDKS.win := $(RuntimeR3_SDKS.win)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3_DEFS := $(filter-out RTCRITSECT_STRICT, $(RuntimeR3_DEFS))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3_DEFS.$(BUILD_TARGET) := $(RuntimeR3_DEFS.$(BUILD_TARGET))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3_DEFS.$(BUILD_PLATFORM) := $(RuntimeR3_DEFS.$(BUILD_PLATFORM))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3_INCS := $(RuntimeR3_INCS)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3_INCS.$(BUILD_TARGET) := $(RuntimeR3_INCS.$(BUILD_TARGET))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3_INCS.$(BUILD_PLATFORM) := $(RuntimeR3_INCS.$(BUILD_PLATFORM))
c28fa006ba669ad8f26ae31d00a338379c04ea1bvboxsyncRuntimeGuestR3_SOURCES := $(filter-out \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/time/timesupref.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/time/timesupA.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/time/timesup.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTLogWriteUser-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync , $(RuntimeR3_SOURCES))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3_SOURCES += \
c28fa006ba669ad8f26ae31d00a338379c04ea1bvboxsync common/time/timesysalias.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync VBox/logbackdoor.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3_SOURCES.$(BUILD_TARGET) := $(RuntimeR3_SOURCES.$(BUILD_TARGET))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3_SOURCES.$(BUILD_PLATFORM):= $(RuntimeR3_SOURCES.$(BUILD_PLATFORM))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3_SOURCES.$(BUILD_PLATFORM).$(BUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(BUILD_PLATFORM).$(BUILD_TARGET_ARCH))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3_SOURCES.$(BUILD_TARGET).x86 := $(RuntimeR3_SOURCES.$(BUILD_TARGET).x86)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3_SOURCES.$(BUILD_PLATFORM).x86 := $(RuntimeR3_SOURCES.$(BUILD_PLATFORM).x86)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# RuntimeGuestR3Mini - Minimal Guest Additions Runtime which does not require
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# initialization and can be linked into an .so. Intended
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# for X11 drivers, GRADD and similar.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3Mini_TEMPLATE := VBOXGUESTR3DLL
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3Mini_INST := $(INST_ADDITIONS_LIB)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3Mini_SDKS.win := $(RuntimeR3_SDKS.win)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3Mini_DEFS := $(filter-out RTCRITSECT_STRICT, $(RuntimeR3_DEFS)) RT_MINI
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3Mini_DEFS.$(BUILD_TARGET) := $(RuntimeR3_DEFS.$(BUILD_TARGET))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3Mini_DEFS.$(BUILD_PLATFORM) := $(RuntimeR3_DEFS.$(BUILD_PLATFORM))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3Mini_INCS := $(RuntimeR3_INCS)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3Mini_INCS.$(BUILD_TARGET) := $(RuntimeR3_INCS.$(BUILD_TARGET))
787c7e6ef15f993c455c374f5158e7bb753b1c33vboxsyncRuntimeGuestR3Mini_INCS.$(BUILD_PLATFORM) := $(RuntimeR3_INCS.$(BUILD_PLATFORM))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3Mini_SOURCES = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/err/errmsg.cpp \
787c7e6ef15f993c455c374f5158e7bb753b1c33vboxsync common/err/RTErrConvertFromErrno.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/log/logformat.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/misc/assert.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/misc/sanity-c.c \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/misc/sanity-cpp.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/strformat.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/strformatrt.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/strformattype.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/string.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/strprintf.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/unidata.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/utf-8.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/utf-16.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/pathhost-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync generic/RTAssertDoBreakpoint-generic.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/alloc.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/fileio.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/fs.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/path.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3Mini_SOURCES.linux = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/fileio-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/path-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/utf8-posix.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3Mini_SOURCES.solaris = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/fileio-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/path-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/utf8-posix.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3Mini_SOURCES.freebsd = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/fileio-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/path-posix.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync r3/posix/utf8-posix.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# VBox specific stuff.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3Mini_SOURCES += \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync VBox/logbackdoor.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync VBox/logbackdoor-redirect.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync VBox/strformat-vbox.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# RuntimeW32GuestR3 - Win32 guest program runtime.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeW32GuestR3_TEMPLATE = VBOXW32GUESTR3LIB
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeW32GuestR3_SDKS = WINPSDK W2K3DDK
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeW32GuestR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncifdef IPRT_WITH_KSTUFF
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync RuntimeW32GuestR3_DEFS += LDR_WITH_KLDR
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncendif
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeW32GuestR3_SOURCES = $(RuntimeR3_SOURCES.win) $(RuntimeR3_SOURCES)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeW32GuestR3_INCS = $(RuntimeR3_INCS.win) $(RuntimeR3_INCS)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsync#
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsync# RuntimeLnxHostR3 Linux host program runtime
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeLnxHostR3_TEMPLATE = VBOXLNXHOSTR3LIB
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsyncRuntimeLnxHostR3_DEFS = IN_RT_R3 IN_SUP_R3 RT_WITH_VBOX RT_NO_GIP
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsyncRuntimeLnxHostR3_SOURCES = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(RuntimeR3_SOURCES.linux.$(BUILD_TARGET_ARCH)) \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(RuntimeR3_SOURCES.linux) \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(RuntimeR3_SOURCES)
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsyncRuntimeLnxHostR3_INCS = \
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsync $(RuntimeR3_INCS.linux.$(BUILD_TARGET_ARCH)) \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(RuntimeR3_INCS.linux) \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(RuntimeR3_INCS)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# VBoxRT - Shared Object / DLL version.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_TEMPLATE = VBOXR3
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncifeq ($(BUILD_TARGET),darwin)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_INST = $(INST_DLL) $(INST_TESTCASE)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncendif
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_DEFS = $(RuntimeR3_DEFS) IN_SUP_R3 IN_SUP_R3
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_DEFS.$(BUILD_TYPE) = $(RuntimeR3_DEFS.$(BUILD_TYPE))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_SOURCES = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync VBox/VBoxRTDeps.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(RuntimeR3_SOURCES)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_SOURCES.$(BUILD_TARGET) = $(RuntimeR3_SOURCES.$(BUILD_TARGET))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_SOURCES.win += r3/win/dllmain-win.cpp
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_SOURCES.win.x86 += r3/win/VBoxRT-win32.def
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_SOURCES.win.amd64 += r3/win/VBoxRT-win64.def
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_INCS = $(RuntimeR3_INCS)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_INCS.$(BUILD_TARGET) = $(RuntimeR3_INCS.$(BUILD_TARGET))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_INCS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH) = $(RuntimeR3_INCS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_LIBS = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(PATH_LIB)/SUPR3$(VBOX_SUFF_LIB) \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(PATH_LIB)/VBox-liblzf$(VBOX_SUFF_LIB)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncifdef IPRT_WITH_KSTUFF
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync VBoxRT_LIBS += \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(PATH_LIB)/VBox-kStuff$(VBOX_SUFF_LIB)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncendif
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_LIBS.darwin = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync iconv
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_LIBS.freebsd = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync iconv
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_LIBPATH.freebsd = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync /usr/local/lib
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_LDFLAGS.darwin = -framework IOKit -install_name @executable_path/VBoxRT.dylib
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncifdef VBOX_USE_VCC80
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_LDFLAGS.win = /MANIFEST
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncendif
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_LDFLAGS.l4 = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync -Wl,-whole-archive \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB) \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync -Wl,-no-whole-archive
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncifeq ($(BUILD_TARGET),l4)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_LIBS += \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(L4_LIBDIR)/libl4sys.a \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(L4_LIBDIR)/libl4sys.p.a
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncendif
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_LIBS.l4 = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
2c8ee291fb75c4a6f05df160f5d67f4e9ef1cabcvboxsync# RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# This is used together with VBoxRT.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync#
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3NoCRTGCC_TEMPLATE = VBOXNOCRTGCC
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3NoCRTGCC_LIBSUFF = $(VBOX_SUFF_LIB)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3NoCRTGCC_SOURCES = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/misc/sanity-cpp.cpp \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/misc/sanity-c.c \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/ceill.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/cosl.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/fabs.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/fabsf.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/fabsl.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/floor.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/floorf.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/floorl.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/ldexpl.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/llrint.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/llrintf.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/llrintl.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/logl.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/lrint.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/lrintf.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/lrintl.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/remainder.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/remainderf.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/remainderl.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/sinl.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/tanl.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/trunc.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/truncf.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/math/truncl.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/misc/setjmp.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/memchr.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/memchr_alias.c \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/memcmp.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/memcmp_alias.c \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/memcpy.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/memcpy_alias.c \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/mempcpy.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/memmove.asm \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/memmove_alias.c \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync common/string/memset.asm \
common/string/memset_alias.c \
common/string/strchr.asm \
common/string/strchr_alias.c \
common/string/strcmp.asm \
common/string/strcmp_alias.c
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 - Ring0 library for VMMR0.
#
RuntimeR0_TEMPLATE = VBOXR0
RuntimeR0_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS
RuntimeR0_SOURCES = \
common/log/logcom.cpp \
common/log/logformat.cpp \
common/misc/assert.cpp \
common/misc/sanity-c.c \
common/misc/sanity-cpp.cpp \
common/string/memchr.cpp \
common/string/memcmp.cpp \
common/string/memcpy.cpp \
common/string/memmove.asm \
common/string/memset.cpp \
common/string/strcmp.asm \
common/string/strcpy.cpp \
common/string/strformat.cpp \
common/string/strformatrt.cpp \
common/string/strformattype.cpp \
common/string/strlen.cpp \
common/string/strncmp.cpp \
common/string/strpbrk.cpp \
common/string/strprintf.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/time/timesup.cpp \
generic/RTAssertDoBreakpoint-generic.cpp \
VBox/strformat-vbox.cpp
#if1of ($(BUILD_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.os2 = \
os2/RTErrConvertFromOS2.cpp \
os2/sys0.asm
ifeq ($(filter-out darwin solaris freebsd,$(BUILD_TARGET)),)
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
common/string/memchr.cpp_CXXFLAGS.win = -Oi-
common/string/memcmp.cpp_CXXFLAGS.win = -Oi-
common/string/memcpy.cpp_CXXFLAGS.win = -Oi-
common/string/memset.cpp_CXXFLAGS.win = -Oi-
common/string/strcpy.cpp_CXXFLAGS.win = -Oi-
common/string/strlen.cpp_CXXFLAGS.win = -Oi-
ifeq ($(BUILD_TARGET),l4)
RuntimeR0Drv_BLD_TRG = linux
RuntimeR0Drv_BLD_TRG_ARCH = x86
RuntimeR0Drv_BLD_TRG_CPU = i386
endif
#
# RuntimeR0Drv - Ring0 library for host drivers.
#
RuntimeR0Drv_TEMPLATE = VBOXR0DRV
RuntimeR0Drv_SDKS.win = W2K3DDK WINPSDKINCS
RuntimeR0Drv_INCS := $(PATH_SUB_CURRENT)
RuntimeR0Drv_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS
RuntimeR0Drv_DEFS.win = IN_SUP_R0
RuntimeR0Drv_DEFS.linux = MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) IN_SUP_R0 # why is IN_SUP_R0 here? because!
RuntimeR0Drv_INCS.linux = \
r0drv/linux
RuntimeR0Drv_SOURCES = \
common/checksum/crc32.cpp \
common/checksum/crc64.cpp \
common/log/log.cpp \
common/log/logcom.cpp \
common/log/logformat.cpp \
common/misc/assert.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/strprintf.cpp \
common/string/strtonum.cpp \
common/table/avlpv.cpp \
generic/RTLogWriteStdErr-stub-generic.cpp \
generic/RTLogWriteStdOut-stub-generic.cpp \
generic/RTLogWriteUser-generic.cpp \
r0drv/alloc-r0drv.cpp \
r0drv/initterm-r0drv.cpp \
VBox/log-vbox.cpp \
VBox/strformat-vbox.cpp
RuntimeR0Drv_SOURCES.linux = \
common/alloc/heapsimple.cpp \
common/string/strpbrk.cpp \
common/err/RTErrConvertToErrno.cpp \
generic/RTAssertDoBreakpoint-generic.cpp \
r0drv/linux/alloc-r0drv-linux.c \
r0drv/linux/initterm-r0drv-linux.c \
r0drv/linux/memobj-r0drv-linux.c \
r0drv/linux/mp-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/spinlock-r0drv-linux.c \
r0drv/linux/thread-r0drv-linux.c \
r0drv/memobj-r0drv.cpp
## @todo thread2-r0drv-linux.c, timer-r0drv-linux.c and assert-r0drv-linux.c
RuntimeR0Drv_SOURCES.win = \
common/misc/thread.cpp \
common/string/memcmp.cpp \
common/string/strncmp.cpp \
common/string/strpbrk.cpp \
generic/RTAssertDoBreakpoint-generic.cpp \
r0drv/nt/mp-r0drv-nt.cpp \
nt/RTErrConvertFromNtStatus.cpp \
r0drv/memobj-r0drv.cpp \
r0drv/nt/alloc-r0drv-nt.cpp \
r0drv/nt/initterm-r0drv-nt.cpp \
r0drv/nt/memobj-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
## @todo timer-r0drv-nt.cpp and assert-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/RTAssertDoBreakpoint-generic.cpp \
generic/RTMpCpuId-generic.cpp \
generic/RTMpCpuIdFromSetIndex-generic.cpp \
generic/RTMpCpuIdToSetIndex-generic.cpp \
generic/RTMpDoesCpuExist-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/timer-generic.cpp \
r0drv/generic/RTMpOn-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/process-r0drv-darwin.cpp \
r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
r0drv/darwin/semaphore-r0drv-darwin.cpp \
r0drv/darwin/spinlock-r0drv-darwin.cpp \
r0drv/darwin/thread-r0drv-darwin.cpp \
r0drv/darwin/thread2-r0drv-darwin.cpp \
r0drv/darwin/time-r0drv-darwin.cpp \
r0drv/memobj-r0drv.cpp
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.cpp \
common/string/strlen.cpp \
common/string/strncmp.cpp \
common/string/strpbrk.cpp \
\
common/misc/thread.cpp \
generic/RTLogWriteDebugger-generic.cpp \
generic/RTMpCpuId-generic.cpp \
generic/RTMpCpuIdFromSetIndex-generic.cpp \
generic/RTMpCpuIdToSetIndex-generic.cpp \
generic/RTMpDoesCpuExist-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 \
os2/RTErrConvertFromOS2.cpp \
os2/sys0.asm \
r0drv/memobj-r0drv.cpp \
r0drv/generic/RTMpOn-r0drv-generic.cpp \
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/os2imports.imp \
r0drv/os2/process-r0drv-os2.cpp \
r0drv/os2/RTAssertDoBreakpoint-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/RTAssertDoBreakpoint-generic.cpp \
generic/RTLogWriteDebugger-generic.cpp \
generic/RTMpCpuId-generic.cpp \
generic/RTMpCpuIdFromSetIndex-generic.cpp \
generic/RTMpCpuIdToSetIndex-generic.cpp \
generic/RTMpDoesCpuExist-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 \
r0drv/generic/RTMpOn-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/process-r0drv-freebsd.c \
r0drv/freebsd/semevent-r0drv-freebsd.c \
r0drv/freebsd/semeventmulti-r0drv-freebsd.c \
r0drv/freebsd/semfastmutex-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/timer-r0drv-freebsd.c \
r0drv/memobj-r0drv.cpp
RuntimeR0Drv_SOURCES.solaris = \
common/err/RTErrConvertFromErrno.cpp \
common/misc/thread.cpp \
common/string/memchr.asm \
generic/RTAssertDoBreakpoint-generic.cpp \
generic/RTTimerCreate-generic.cpp \
r0drv/memobj-r0drv.cpp \
r0drv/solaris/alloc-r0drv-solaris.c \
r0drv/solaris/assert-r0drv-solaris.c \
r0drv/solaris/initterm-r0drv-solaris.c \
r0drv/solaris/memobj-r0drv-solaris.c \
r0drv/solaris/mp-r0drv-solaris.c \
r0drv/solaris/process-r0drv-solaris.c \
r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \
r0drv/solaris/semevent-r0drv-solaris.c \
r0drv/solaris/semeventmulti-r0drv-solaris.c \
r0drv/solaris/semfastmutex-r0drv-solaris.c \
r0drv/solaris/spinlock-r0drv-solaris.c \
r0drv/solaris/thread-r0drv-solaris.c \
r0drv/solaris/thread2-r0drv-solaris.c \
r0drv/solaris/time-r0drv-solaris.c \
r0drv/solaris/timer-r0drv-solaris.c
## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here.
#
# 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 RuntimeR0Rdrv).
#
# TODO: RuntimeGuestR0_EXTENDS = RuntimeR0Drv (kBuild)
#
RuntimeGuestR0_TEMPLATE := VBOXGUESTR0LIB
RuntimeGuestR0_SDKS.win := W2K3DDKX86 WINPSDKINCS
RuntimeGuestR0_DEFS := $(RuntimeR0Drv_DEFS)
RuntimeGuestR0_DEFS.$(BUILD_TARGET) := $(RuntimeR0Drv_DEFS.$(BUILD_TARGET))
RuntimeGuestR0_INCS := $(PATH_SUB_CURRENT)
RuntimeGuestR0_INCS.$(BUILD_TARGET) := $(RuntimeR0Drv_INCS.$(BUILD_TARGET))
RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES))
RuntimeGuestR0_SOURCES += VBox/logbackdoor.cpp
RuntimeGuestR0_SOURCES.$(BUILD_TARGET) := $(RuntimeR0Drv_SOURCES.$(BUILD_TARGET))
RuntimeGuestR0_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH) := $(RuntimeR0Drv_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH))
ifdef VBOX_USE_VCC80
RuntimeGuestR0_SOURCES.win += \
common/string/memchr.cpp \
common/string/memcpy.cpp \
common/string/memset.cpp \
common/string/memmove.asm \
common/string/strlen.cpp
endif
RuntimeGuestR0_SOURCES.freebsd += \
common/string/memset.cpp \
common/string/memcmp.cpp \
common/string/strchr.asm
RuntimeOS2GuestR0_TEMPLATE = VBOXOS2GUESTR0LIB
RuntimeOS2GuestR0_SOURCES = \
$(filter-out common/misc/assert.cpp generic/RTLogWriteUser-generic.cpp,$(RuntimeR0Drv_SOURCES)) \
$(RuntimeR0Drv_SOURCES.os2) \
VBox/logbackdoor.cpp
#
# RuntimeW32GuestR0 - Win32 guest driver runtime.
#
RuntimeW32GuestR0_TEMPLATE = VBOXW32GUESTR0LIB
RuntimeW32GuestR0_SDKS = W2K3DDKX86 WINPSDKINCS
RuntimeW32GuestR0_INCS := $(PATH_SUB_CURRENT)
RuntimeW32GuestR0_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS IN_SUP_R0
RuntimeW32GuestR0_DEFS.$(BUILD_TARGET) =
RuntimeW32GuestR0_SOURCES = \
$(filter-out generic/RTLogWriteUser-generic.cpp,$(RuntimeR0Drv_SOURCES)) \
$(RuntimeR0Drv_SOURCES.win) \
VBox/logbackdoor.cpp
ifdef VBOX_USE_VCC80
## @todo use the .asm versions of these.
RuntimeW32GuestR0_SOURCES += \
common/string/memchr.cpp \
common/string/memcpy.cpp \
common/string/memset.cpp \
common/string/memmove.asm \
common/string/strlen.cpp
endif
#
# RuntimeW32NT4GuestR0 - Win32 NT4 guest driver runtime.
#
RuntimeW32NT4GuestR0_TEMPLATE = VBOXW32GUESTR0LIB
RuntimeW32NT4GuestR0_SDKS = $(RuntimeW32GuestR0_SDKS)
RuntimeW32NT4GuestR0_DEFS = $(RuntimeW32GuestR0_DEFS) IPRT_TARGET_NT4
RuntimeW32NT4GuestR0_INCS = $(RuntimeW32GuestR0_INCS)
RuntimeW32NT4GuestR0_SOURCES = $(RuntimeW32GuestR0_SOURCES)
#
# RuntimeGC - Guest context library.
#
RuntimeGC_TEMPLATE = VBOXGC
RuntimeGC_DEFS = IN_RT_GC RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS
RuntimeGC_SOURCES = \
common/log/log.cpp \
common/log/logcom.cpp \
common/log/logformat.cpp \
common/misc/assert.cpp \
common/misc/sanity-c.c \
common/misc/sanity-cpp.cpp \
common/string/memchr.cpp \
common/string/memcmp.cpp \
common/string/memcpy.cpp \
common/string/memset.cpp \
common/string/memmove.asm \
common/string/strcpy.cpp \
common/string/strformat.cpp \
common/string/strformatrt.cpp \
common/string/strformattype.cpp \
common/string/strlen.cpp \
common/string/strncmp.cpp \
common/string/strpbrk.cpp \
common/string/strprintf.cpp \
common/table/avllu32.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/RTAssertDoBreakpoint-generic.cpp \
VBox/strformat-vbox.cpp \
#if1of ($(BUILD_TARGET_ARCH),amd64 x86)
# RuntimeGC_SOURCES += common/time/timesupA.asm
#else
RuntimeGC_SOURCES += common/time/timesupref.cpp
#endif
RuntimeGC_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
ifeq ($(VBOX_LDR_FMT32),lx)
RuntimeGC_SOURCES += os2/sys0.asm
endif
ifeq ($(filter-out darwin solaris freebsd,$(BUILD_TARGET)),)
RuntimeGC_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
#
# Static library for new & delete for the electric fence.
#
RuntimeEFCPP_TEMPLATE = $(RuntimeR3_TEMPLATE)
RuntimeEFCPP_SDKS = $(RuntimeR3_SDKS)
RuntimeEFCPP_SDKS.$(BUILD_TARGET) = $(RuntimeR3_SDKS.$(BUILD_TARGET))
RuntimeEFCPP_DEFS = $(RuntimeR3_DEFS)
RuntimeEFCPP_DEFS.$(BUILD_TARGET) = $(RuntimeR3_DEFS.$(BUILD_TARGET))
RuntimeEFCPP_INCS = $(RuntimeR3_INCS)
RuntimeEFCPP_INCS.$(BUILD_TARGET) = $(RuntimeR3_INCS.$(BUILD_TARGET))
RuntimeEFCPP_SOURCES = r3/alloc-ef-cpp.cpp
#
# errmsg.cpp depends on a generated header.
#
common/err/errmsg.cpp_DEPS = $(PATH_TARGET)/errmsgdata.h
common/err/errmsg.cpp_INCS = $(PATH_TARGET)
win/errmsgwin.cpp_DEPS = $(PATH_TARGET)/errmsgcomdata.h
win/errmsgwin.cpp_INCS = $(PATH_TARGET)
# Generate the rules
include $(PATH_KBUILD)/footer.kmk
ifneq ($(wildcard /usr/bin/chcon),)
# this is needed for testcases executed at build time
## @todo Make a special installer tool that does this.
$(PATH_BIN)/VBoxRT.so:
$(INSTALL) $(TARGET_VBoxRT) $@
chcon -t texrel_shlib_t $@ || true
endif
#
# Generate the status code data.
#
$(PATH_TARGET)/errmsgdata.h: common/err/errmsg.sed $(DEPTH)/include/iprt/err.h $(DEPTH)/include/VBox/err.h
$(call MSG_GENERATE,,$@,$(filter %.h,$^))
$(QUIET)$(MKDIR) -p $(PATH_TARGET)
$(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.
$(PATH_TARGET)/errmsgcomdata.h: common/err/errmsgcom.sed $(PATH_SDK_WINPSDK_INC)/WinError.h
$(call MSG_GENERATE,,$@,$(filter %.h,$^))
$(QUIET)$(MKDIR) -p $(PATH_TARGET)
$(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
$(PATH_TARGET)/errmsgxpcomdata.h: common/err/errmsgxpcom.sed $(DEPTH)/src/libs/xpcom18a4/xpcom/base/nsError.h
$(call MSG_GENERATE,,$@,$(filter %.h,$^))
$(QUIET)$(MKDIR) -p $(PATH_TARGET)
$(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
#
# 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.
#
DOXYGEN_INPUT_DIRS = \
$(PATH_ROOT)/include/iprt \
$(PATH_ROOT)/include/iprt/nocrt \
$(PATH_ROOT)/include/iprt/nocrt/x86 \
$(PATH_ROOT)/include/iprt/nocrt/amd64 \
include/internal \
common/alloc \
common/checksum \
common/err \
common/ldr \
common/log \
common/misc \
common/string \
common/table \
common/time \
VBox/ \
$(foreach dir, . r3 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.
DOXYGEN_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 \
DOXYGEN_INPUT := \
$(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(DOXYGEN_INPUT_DIRS)))) ) \
$(foreach dir, $(DOXYGEN_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
DOXYGEN_INPUT := \
$(DOXYGEN_INPUT_FIRST) \
$(filter-out $(DOXYGEN_INPUT_FIRST), $(DOXYGEN_INPUT))
DOXYGEN_OUTPUT = $(PATH_OUT)/docs/iprt
-include $(PATH_TARGET)/Doxyfile.dep
# Generate the Doxyfile
$(PATH_TARGET)/Doxyfile: Doxyfile Makefile.kmk \
$(comp-vars DOXYGEN_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
$(comp-vars DOXYGEN_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
| $(call DIRDEP, $(PATH_TARGET))
$(RM) -f $@ $@.tmp $(PATH_TARGET)/Doxyfile.dep
$(CP) -f Doxyfile $@.tmp
$(APPEND) $@.tmp
$(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(DOXYGEN_OUTPUT)"
$(APPEND) $@.tmp "WARN_LOGFILE = $(DOXYGEN_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 = $(DOXYGEN_INPUT)"
$(APPEND) $@.tmp
$(MV) -f $@.tmp $@
@$(APPEND) $(PATH_TARGET)/Doxyfile.dep "DOXYGEN_OUTPUT_PREV = $(DOXYGEN_OUTPUT)"
@$(APPEND) $(PATH_TARGET)/Doxyfile.dep "DOXYGEN_INPUT_PREV = $(DOXYGEN_INPUT)"
# Create the output directory.
$(call DIRDEP, $(DOXYGEN_OUTPUT)):
$(MKDIR) -p $@
# Do the actual job.
$(PATH_TARGET)/docs.iprt: $(PATH_TARGET)/Doxyfile $(DOXYGEN_INPUT) | $(call DIRDEP, $(DOXYGEN_OUTPUT))
$(RM) -f $(wildcard $(DOXYGEN_OUTPUT)/html/*) $(PATH_TARGET)/docs.iprt
doxygen $(PATH_TARGET)/Doxyfile
$(APPEND) $(PATH_TARGET)/docs.iprt
# alias
docs: $(PATH_TARGET)/docs.iprt
test:
@echo test-$(comp-vars DOXYGEN_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE)
@echo $(DOXYGEN_OUTPUT)
@echo $(DOXYGEN_OUTPUT_PREV)
@echo $(DOXYGEN_INPUT)