Makefile.kmk revision d088a56ab5d741f03bee8f842f5e33d47bc78b27
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# Makefile for the IPRT (IPRT).
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync# Copyright (C) 2006-2007 Sun Microsystems, Inc.
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# 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.
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# 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.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncDEPTH = ../../..
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncinclude $(PATH_KBUILD)/header.kmk
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncifdef VBOX_ONLY_ADDITIONS
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync # Only build the additions, sort out the legacy names first.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync ifeq ($(BUILD_TARGET),win)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync LIBRARIES = RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0
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))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync # Normal build.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync BLDPROGS = uniread
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync LIBRARIES = RuntimeR3 RuntimeR0 RuntimeGC RuntimeEFCPP RuntimeR3NoCRTGCC
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync ifdef VBOX_WITH_VBOXDRV
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync LIBRARIES += RuntimeR0Drv
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync ifdef VBOX_WITH_ADDITIONS
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync ifdef VBOX_WITH_WIN32_ADDITIONS
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync LIBRARIES += RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0
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))
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 SUBDIRS_AFTER = testcase
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# global (for now at least)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncINCS += include
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# Unicode Specification reader used to regenerate unidata.cpp.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncuniread_TEMPLATE = VBOXBLDPROG
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# Win64 assembly sources.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeWin64ASM_SOURCES = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# Win32 assembly sources.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeWin32ASM_SOURCES = \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# RuntimeR3 - Static Runtime for Ring-3 executables.
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
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncifdef VBOX_MAIN_RELEASE_LOG ## @todo (dmik): temporary, until RTThreadSelf/RTThreadAdopt are properly updated
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync RuntimeR3_DEFS += RTCRITSECT_STRICT
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsyncRuntimeR3_INCS = \
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsyncifdef IPRT_WITH_KSTUFF
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync RuntimeR3_INCS += \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(L4_INCDIR)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3_SOURCES = \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync#if1of ($(BUILD_TARGET_ARCH),amd64 x86)
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync# RuntimeR3_SOURCES += common/time/timesupA.asm
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync RuntimeR3_SOURCES += common/time/timesupref.cpp
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsyncifdef IPRT_WITH_KSTUFF
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync RuntimeR3_SOURCES += \
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsync# VBox specific stuff.
4fcfe0bd966753617b7ab5fb81fb24709914fc1cvboxsyncRuntimeR3_SOURCES += \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncifdef RT_NEW_LINUX_MUTEX_CODE
a39ea3668b7019c23a68936259545f9b71bce1aavboxsync## @todo Make BSD sched.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync## PORTME: Porters add their selection of platform specific files for Ring-3 here.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# L4 RuntimeR3 subtarget since L4 headers won't work with VBOXR3.
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__
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3L4_INCS = $(L4_INCDIR)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3L4_SOURCES = \
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.)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3_TEMPLATE := VBOXGUESTR3LIB
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 , $(RuntimeR3_SOURCES))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3_SOURCES += \
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# 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.
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# VBox specific stuff.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeGuestR3Mini_SOURCES += \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# RuntimeW32GuestR3 - Win32 guest program runtime.
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
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeW32GuestR3_SOURCES = $(RuntimeR3_SOURCES.win) $(RuntimeR3_SOURCES)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeW32GuestR3_INCS = $(RuntimeR3_INCS.win) $(RuntimeR3_INCS)
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsync# RuntimeLnxHostR3 Linux host program runtime
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)
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsyncRuntimeLnxHostR3_INCS = \
25747178cb66800d8386c20b8ffd87f78f24f4e5vboxsync $(RuntimeR3_INCS.linux.$(BUILD_TARGET_ARCH)) \
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync $(RuntimeR3_INCS)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# VBoxRT - Shared Object / DLL version.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_TEMPLATE = VBOXR3
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncifeq ($(BUILD_TARGET),darwin)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_INST = $(INST_DLL) $(INST_TESTCASE)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_DEFS = $(RuntimeR3_DEFS) IN_SUP_R3 IN_SUP_R3
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_DEFS.$(BUILD_TYPE) = $(RuntimeR3_DEFS.$(BUILD_TYPE))
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_SOURCES = \
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_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)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncVBoxRT_LDFLAGS.darwin = -framework IOKit -install_name @executable_path/VBoxRT.dylib
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncifdef VBOX_USE_VCC80
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 $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB)
2c8ee291fb75c4a6f05df160f5d67f4e9ef1cabcvboxsync# RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsync# This is used together with VBoxRT.
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3NoCRTGCC_TEMPLATE = VBOXNOCRTGCC
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3NoCRTGCC_LIBSUFF = $(VBOX_SUFF_LIB)
24ab761b2beb5af0393c6f2585b6351d8b3085f0vboxsyncRuntimeR3NoCRTGCC_SOURCES = \
# RuntimeR0_SOURCES += common/time/timesupA.asm
RuntimeR0_SOURCES += common/time/timesupref.cpp
RuntimeR0_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
RuntimeR0_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
RuntimeR0Drv_SDKS.win = W2K3DDK WINPSDKINCS
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_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
RuntimeR0Drv_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
# is in the backdoor logging and the lack of sup.h (which should be
RuntimeGuestR0_SDKS.win := W2K3DDKX86 WINPSDKINCS
RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES))
RuntimeGuestR0_SOURCES += VBox/logbackdoor.cpp
RuntimeGuestR0_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH) := $(RuntimeR0Drv_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH))
$(filter-out generic/RTLogWriteUser-generic.cpp,$(RuntimeR0Drv_SOURCES)) \
# RuntimeGC_SOURCES += common/time/timesupA.asm
RuntimeGC_SOURCES += common/time/timesupref.cpp
RuntimeGC_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
RuntimeGC_SOURCES += os2/sys0.asm
RuntimeEFCPP_SOURCES = r3/alloc-ef-cpp.cpp
# errmsg.cpp depends on a generated header.
common/err/errmsg.cpp_INCS = $(PATH_TARGET)
win/errmsgwin.cpp_INCS = $(PATH_TARGET)
include $(PATH_KBUILD)/footer.kmk
ifneq ($(wildcard /usr/bin/chcon),)
$(PATH_BIN)/VBoxRT.so:
$(PATH_TARGET)/errmsgdata.h: common/err/errmsg.sed $(DEPTH)/include/iprt/err.h $(DEPTH)/include/VBox/err.h
$(PATH_TARGET)/errmsgxpcomdata.h: common/err/errmsgxpcom.sed $(DEPTH)/src/libs/xpcom18a4/xpcom/base/nsError.h
# Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
$(PATH_ROOT)/include/iprt \
$(PATH_ROOT)/include/iprt/nocrt \
$(PATH_ROOT)/include/iprt/nocrt/x86 \
$(PATH_ROOT)/include/iprt/nocrt/amd64 \
$(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 \
$(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(DOXYGEN_INPUT_DIRS)))) ) \
DOXYGEN_OUTPUT = $(PATH_OUT)/docs/iprt
-include $(PATH_TARGET)/Doxyfile.dep
$(PATH_TARGET)/Doxyfile: Doxyfile Makefile.kmk \
$(RM) -f $@ $@.tmp $(PATH_TARGET)/Doxyfile.dep
$(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include include . common/table"
$(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
@$(APPEND) $(PATH_TARGET)/Doxyfile.dep "DOXYGEN_OUTPUT_PREV = $(DOXYGEN_OUTPUT)"
@$(APPEND) $(PATH_TARGET)/Doxyfile.dep "DOXYGEN_INPUT_PREV = $(DOXYGEN_INPUT)"
$(PATH_TARGET)/docs.iprt: $(PATH_TARGET)/Doxyfile $(DOXYGEN_INPUT) | $(call DIRDEP, $(DOXYGEN_OUTPUT))
$(RM) -f $(wildcard $(DOXYGEN_OUTPUT)/html/*) $(PATH_TARGET)/docs.iprt
$(APPEND) $(PATH_TARGET)/docs.iprt
docs: $(PATH_TARGET)/docs.iprt