Makefile.kmk revision 23aff1fbd83554a22d3b1685280d444cb112d398
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Sub-Makefile for the IPRT (IPRT).
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Copyright (C) 2006-2010 Oracle Corporation
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# available from http://www.virtualbox.org. This file is free software;
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# you can redistribute it and/or modify it under the terms of the GNU
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# General Public License (GPL) as published by the Free Software
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# The contents of this file may alternatively be used under the terms
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# of the Common Development and Distribution License Version 1.0
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# VirtualBox OSE distribution, in which case the provisions of the
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# CDDL are applicable instead of those of the GPL.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# You may elect to license modified versions of this file under the
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# terms and conditions of either the GPL or the CDDL or both.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncSUB_DEPTH = ../../..
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncinclude $(KBUILD_PATH)/subheader.kmk
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncifdef VBOX_ONLY_ADDITIONS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync # Only build the additions, sort out the legacy names first.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeGuestR3Mini
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync ifdef VBOX_WITH_ADDITION_DRIVERS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES += RuntimeGuestR0
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync #LIBRARIES.os2 += RuntimeGuestR0OS2Warp3
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES.win.x86 += RuntimeGuestR0NT4
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncelse ifdef VBOX_ONLY_TESTSUITE
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync # Only build the testsuite.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeR3 RuntimeR0
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES.win += RuntimeR0Stub
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncelse ifdef VBOX_ONLY_DOCS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync # Build docs only - need just regular R3 runtime.
ecb98c0e709a5cebd8877fb39f61a821804024bcvboxsync LIBRARIES += RuntimeR3
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync DLLS += VBoxRT
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncelse # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_TESTSUITE && !VBOX_ONLY_DOCS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync # Normal build.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync BLDPROGS += uniread
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES += RuntimeR3 RuntimeR0 RuntimeEFCPP RuntimeR3NoCRTGCC
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES.win += RuntimeR0Stub
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync ifdef VBOX_WITH_RAW_MODE
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES += RuntimeRC
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES.win += RuntimeRCStub
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync ifdef VBOX_WITH_VBOXDRV
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES += RuntimeR0Drv
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync ifdef VBOX_WITH_ADDITIONS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeGuestR3Mini
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync ifdef VBOX_WITH_ADDITION_DRIVERS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES += RuntimeGuestR0
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync #LIBRARIES.os2 += RuntimeGuestR0OS2Warp3
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES.win.x86 += RuntimeGuestR0NT4
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync endif # VBOX_WITH_ADDITIONS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync LIBRARIES.l4 += RuntimeR3L4 RuntimeLnxHostR3
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync DLLS += VBoxRT
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Where the generated stuff goes.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncIPRT_OUT_DIR := $(PATH_TARGET)/Runtime
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncBLDDIRS += $(IPRT_OUT_DIR)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncOTHER_CLEAN += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(IPRT_OUT_DIR)/errmsgdata.h \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(IPRT_OUT_DIR)/errmsgcomdata.h \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(IPRT_OUT_DIR)/errmsgvboxcomdata.h \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(IPRT_OUT_DIR)/Doxyfile.iprt \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(IPRT_OUT_DIR)/Doxyfile.iprt.dep \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(IPRT_OUT_DIR)/docs.iprt
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncVBOX_PATH_RUNTIME_SRC := $(PATH_SUB_CURRENT)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Set the defines that buildconfig.cpp needs. Its used by several targets.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync IPRT_BLDCFG_SCM_REV=$(VBOX_SVN_REV) \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync IPRT_BLDCFG_VERSION_MAJOR=$(VBOX_VERSION_MAJOR) \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync IPRT_BLDCFG_VERSION_MINOR=$(VBOX_VERSION_MINOR) \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Unicode Specification reader used to regenerate unidata.cpp.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncuniread_TEMPLATE = VBOXBLDPROG
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncuniread_INCS = include
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Win64 assembly sources.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeWin64ASM_SOURCES = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Win32 assembly sources.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeWin32ASM_SOURCES = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# NoCRT sources (minus math stuff).
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncif1of ($(KBUILD_TARGET_ARCH), amd64 x86)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeNoCrt_SOURCES = \
83d61602c6968041692aa7203ee51c4085c7e460vboxsync# RuntimeR3 - Static Runtime for Ring-3 executables.
6a0359b8230a1b91fe49967c124a75191c3dfbf9vboxsyncRuntimeR3_TEMPLATE = VBoxR3Static
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SDKS = VBOX_LIBXML2 VBOX_BOOST
4f9276b4c85a4617d08094484cc1d983791bbb16vboxsyncRuntimeR3_SDKS.win = WINPSDK $(VBOX_WINDDK)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX RT_NO_GIP
a9d98aa17ecb241bc2c79b67dc044f0af2eb7448vboxsync#RuntimeR3_DEFS += RTMEM_WRAP_TO_EF_APIS
83d61602c6968041692aa7203ee51c4085c7e460vboxsyncifdef IPRT_WITH_KSTUFF
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_DEFS += LDR_WITH_KLDR
1e0e13b23ace43d2fe93d45953b123f63b7e547cvboxsyncifdef VBOX_MAIN_RELEASE_LOG ## @todo (dmik): temporary, until RTThreadSelf/RTThreadAdopt are properly updated
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_DEFS += RTCRITSECT_STRICT
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncifdef IPRT_WITH_LZJB
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_DEFS += RTZIP_USE_LZJB
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsyncifdef IPRT_WITH_LZO
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync RuntimeR3_DEFS += RTZIP_USE_LZO
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsyncifn1of ($(KBUILD_TARGET), win)
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync RuntimeR3_DEFS += RT_WITH_ICONV_CACHE
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsyncifdef IPRT_WITH_FUTEX_BASED_SEMS
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync RuntimeR3_DEFS.linux += IPRT_WITH_FUTEX_BASED_SEMS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_INCS = \
6a0359b8230a1b91fe49967c124a75191c3dfbf9vboxsync $(SDK_VBOX_ZLIB_INCS)
6a0359b8230a1b91fe49967c124a75191c3dfbf9vboxsyncRuntimeR3_INCS += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncifdef IPRT_WITH_KSTUFF
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_INCS += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(L4_INCDIR)
83d61602c6968041692aa7203ee51c4085c7e460vboxsyncRuntimeR3_SOURCES = \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# RuntimeR3_SOURCES += common/time/timesupA.asm
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_SOURCES += common/time/timesupref.cpp
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncifdef IPRT_WITH_LZJB
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_SOURCES += common/misc/lzjb.c
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# Some versions of GCC might require this.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncifdef IPRT_WITH_KSTUFF
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync RuntimeR3_SOURCES += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync# VBox specific stuff.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncifneq ($(KBUILD_TARGET),win)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncif1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd solaris)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncRuntimeR3_SOURCES += \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync $(if $(VBOX_WITH_DBUS),VBox/dbus.cpp,)
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsync generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
9d7b020d79101e5c23c1f58a0ce5fa49488ccf73vboxsyncRuntimeR3_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsyncRuntimeR3_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
6ea079037b825359aab1ba56bb4b9e202ecea648vboxsync generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsyncifdef IPRT_WITH_FUTEX_BASED_SEMS
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync ifdef RT_NEW_LINUX_MUTEX_CODE
90ce7af4052f25f4a94d18c0ef86181971396cd3vboxsync generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync## @todo Make BSD sched, implement RTMP*.
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
41d680dd6eb0287afc200adc5b0d61b07a32b72dvboxsync generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
# RuntimeGuestR3 - Guest Additions Runtime (static/exe).
RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
RuntimeGuestR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH))
# RuntimeGuestR3Shared - Guest Additions Runtime (static/dll).
$(RuntimeR3_SOURCES.linux.$(KBUILD_TARGET_ARCH)) \
$(RuntimeR3_INCS.linux.$(KBUILD_TARGET_ARCH)) \
$(RuntimeR3_INCS.linux) \
VBoxRT_SDKS.win = WINPSDK $(VBOX_WINDDK) VBOX_NTDLL
$(filter-out common/checksum/crc32.cpp, $(RuntimeR3_SOURCES))
VBoxRT_SOURCES += common/misc/s3.cpp
VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
VBoxRT_SOURCES.win += \
$(VBoxRT_0_OUTDIR)/VBoxRT.def
VBoxRT_SOURCES.linux += \
VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
VBoxRT_LIBS.solaris += smbios
VBoxRT_LIBS.win = \
$(PATH_SDK_$(VBOX_WINDDK)_LIB)/vccomsup.lib \
$(PATH_SDK_$(VBOX_WINDDK)_LIB)/wbemuuid.lib
VBoxRT_LDFLAGS.darwin = -framework IOKit -framework CoreFoundation -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxRT.dylib
VBoxRT_LDFLAGS.win = /MANIFEST
$(L4_LIBDIR)/libl4sys.a \
$(L4_LIBDIR)/libl4sys.p.a
VBoxRT_LIBS.l4 = \
$$(VBoxRT_0_OUTDIR)/VBoxRT.def: \
$(PATH_SUB_CURRENT)/r3/win/VBoxRT-$$(if-expr $$(KBUILD_TARGET_ARCH) == amd64,win64,win32).def \
ifneq ($(wildcard /usr/bin/chcon),)
VBoxRTDummy_LIBS = $(PATH_BIN)/VBoxRT.so
VBoxRTDummy_CLEAN= $(PATH_BIN)/VBoxRT.so
$(PATH_BIN)/VBoxRT.so: $$(TARGET_VBoxRT) | $$(dir $$@)
## @todo the *_alias.c stuff is busted, remove and use RT_WITH_NOCRT_ALIASES instead.
# 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 = $(VBOX_WINDDK) WINPSDKINCS
RuntimeR0Drv_DEFS.win = IN_SUP_R0
RuntimeR0Drv_DEFS.linux = MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) IN_SUP_R0
## references to several string functions (e.g. strlen). We could include the
## The prototypes for the unresolved externals are declared in <linux/string.h>.
RuntimeR0Drv_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
RuntimeR0Drv_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
$(PATH_INS)/gen-sys-hdrs/bus_if.h \
$(PATH_INS)/gen-sys-hdrs/device_if.h
# is in the backdoor logging and the lack of sup.h (which should be
RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES))
# RuntimeRC_SOURCES += common/time/timesupA.asm
RuntimeRC_SOURCES += common/time/timesupref.cpp
RuntimeRC_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
RuntimeRC_SOURCES += os2/sys0.asm
RuntimeEFCPP_SOURCES = r3/alloc-ef-cpp.cpp
# errmsg.cpp depends on a generated header.
common/err/errmsg.cpp_INCS = $(IPRT_OUT_DIR)
win/errmsgwin.cpp_INCS = $(IPRT_OUT_DIR)
$(lib)_common/err/errmsgxpcom.cpp_INCS = $(IPRT_OUT_DIR)
$(IPRT_OUT_DIR)/errmsgdata.h: \
$(VBOX_PATH_RUNTIME_SRC)/common/err/errmsg.sed \
$(PATH_ROOT)/include/iprt/err.h \
$(PATH_ROOT)/include/VBox/err.h \
$(IPRT_OUT_DIR)/errmsgcomdata.h: \
$(VBOX_PATH_RUNTIME_SRC)/common/err/errmsgcom.sed \
$$(PATH_SDK_WINPSDK_INC)/WinError.h \
$(IPRT_OUT_DIR)/errmsgvboxcomdata.h: \
$(VBOX_PATH_RUNTIME_SRC)/VBox/errmsgvboxcom.xsl \
VBOX_AWK := /usr/bin/awk
$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h \
$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h \
$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h
$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h: $(VBOX_FREEBSD_SRC)/kern/bus_if.m | $$(dir $$@)
$(QUIET)$(CP) -f $< $(@D)/bus_if.m
$(QUIET)$(RM) $(@D)/bus_if.m
$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h: $(VBOX_FREEBSD_SRC)/kern/device_if.m | $$(dir $$@)
$(QUIET)$(CP) -f $< $(@D)/device_if.m
$(QUIET)$(RM) $(@D)/device_if.m
$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h: $(VBOX_FREEBSD_SRC)/dev/pci/pci_if.m | $$(dir $$@)
$(QUIET)$(CP) -f $< $(@D)/pci_if.m
$(QUIET)$(RM) $(@D)/pci_if.m
# Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
$(PATH_ROOT)/include/iprt \
$(PATH_ROOT)/include/iprt/cpp \
$(PATH_ROOT)/include/iprt/linux \
$(PATH_ROOT)/include/iprt/nocrt \
$(PATH_ROOT)/include/iprt/nocrt/x86 \
$(PATH_ROOT)/include/iprt/nocrt/amd64 \
$(PATH_ROOT)/include/iprt/nocrt/compiler \
$(VBOX_PATH_RUNTIME_SRC)/include/internal \
$(VBOX_PATH_RUNTIME_SRC)/common/alloc \
$(VBOX_PATH_RUNTIME_SRC)/common/asm \
$(VBOX_PATH_RUNTIME_SRC)/common/checksum \
$(VBOX_PATH_RUNTIME_SRC)/common/dbg \
$(VBOX_PATH_RUNTIME_SRC)/common/err \
$(VBOX_PATH_RUNTIME_SRC)/common/ldr \
$(VBOX_PATH_RUNTIME_SRC)/common/log \
$(VBOX_PATH_RUNTIME_SRC)/common/math \
$(VBOX_PATH_RUNTIME_SRC)/common/math/amd64 \
$(VBOX_PATH_RUNTIME_SRC)/common/math/gcc \
$(VBOX_PATH_RUNTIME_SRC)/common/math/x86 \
$(VBOX_PATH_RUNTIME_SRC)/common/misc \
$(VBOX_PATH_RUNTIME_SRC)/common/path \
$(VBOX_PATH_RUNTIME_SRC)/common/rand \
$(VBOX_PATH_RUNTIME_SRC)/common/string \
$(VBOX_PATH_RUNTIME_SRC)/common/table \
$(VBOX_PATH_RUNTIME_SRC)/common/time \
$(foreach dir, $(VBOX_PATH_RUNTIME_SRC) $(VBOX_PATH_RUNTIME_SRC)/r3 $(VBOX_PATH_RUNTIME_SRC)/r0drv,\
$(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, $(IPRT_DOXYFILE_INPUT_DIRS)))) ) \
IPRT_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/iprt
includedep $(IPRT_OUT_DIR)/Doxyfile.iprt.dep
$(IPRT_OUT_DIR)/Doxyfile.iprt: \
$(VBOX_PATH_RUNTIME_SRC)/Makefile.kmk \
$(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include include . common/table"
$(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
$(IPRT_OUT_DIR)/docs.iprt: $(IPRT_OUT_DIR)/Doxyfile.iprt $$(IPRT_DOXYFILE_INPUT) | $(IPRT_DOXYFILE_OUTPUT)/
$(RM) -f $(wildcard $(IPRT_DOXYFILE_OUTPUT)/html/*) $(IPRT_OUT_DIR)/docs.iprt
doxygen $(IPRT_OUT_DIR)/Doxyfile.iprt
$(APPEND) $(IPRT_OUT_DIR)/docs.iprt
docs: $(IPRT_OUT_DIR)/docs.iprt
include $(KBUILD_PATH)/subfooter.kmk