Makefile.kmk revision 8501c64eb9053ff5159068f5ffec0cb7fb02a30c
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync# $Id$
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync## @file
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# Sub-Makefile for the support library and the drivers/modules/kexts it uses.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync# Copyright (C) 2006-2011 Oracle Corporation
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# available from http://www.virtualbox.org. This file is free software;
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# you can redistribute it and/or modify it under the terms of the GNU
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# General Public License (GPL) as published by the Free Software
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# The contents of this file may alternatively be used under the terms
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# of the Common Development and Distribution License Version 1.0
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# VirtualBox OSE distribution, in which case the provisions of the
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# CDDL are applicable instead of those of the GPL.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# You may elect to license modified versions of this file under the
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# terms and conditions of either the GPL or the CDDL or both.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncSUB_DEPTH = ../../../..
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncinclude $(KBUILD_PATH)/subheader.kmk
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# Targets
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncLIBRARIES += SUPR3 SUPR3Static SUPR3HardenedStatic
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncifndef VBOX_ONLY_DOCS
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync if1of ($(VBOX_LDR_FMT), pe lx)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync LIBRARIES += SUPR0
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync endif
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncendif
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncif !defined(VBOX_ONLY_DOCS) \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync && !defined(VBOX_ONLY_EXTPACKS) \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync && !defined(VBOX_ONLY_TESTSUITE)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync ifdef VBOX_WITH_SUPSVC
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync PROGRAMS += VBoxSupSvc
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync endif
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync ifdef VBOX_WITH_VBOXDRV
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync LIBRARIES += SUPR0IdcClient
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync SYSMODS.freebsd += vboxdrv
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync SYSMODS.linux += vboxdrv
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync SYSMODS.win += VBoxDrv
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync SYSMODS.os2 += VBoxDrv
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync SYSMODS.solaris += vboxdrv
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync endif
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync INSTALLS.linux += vboxdrv-mod
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync INSTALLS.freebsd += vboxdrv-mod
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync #
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync # Include sub-makefile(s).
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync #
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync #
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync # Populate FILES_VBOXDRV_NOBIN and FILES_VBOXDRV_BIN
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync #
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync ifeq ($(KBUILD_TARGET),linux)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync include $(PATH_SUB_CURRENT)/linux/files_vboxdrv
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync endif
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync ifeq ($(KBUILD_TARGET),freebsd)
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync include $(PATH_SUB_CURRENT)/freebsd/files_vboxdrv
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync endif
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsyncendif # !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_TESTSUITE
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync# The Ring-3 Support Library (this is linked into the IPRT dll, VBoxRT).
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync#
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsyncifneq ($(filter l4%,$(KBUILD_TARGET) $(BUILD_TARGET_SUB)),)
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync # L4 has trouble with -pedantic. It also make trouble when inlining is not enabled.
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync SUPR3_TEMPLATE = VBOXR3NP
6b07d9a23ed1c650aa0a3b8de9d19f51b6b67e9fvboxsyncelse
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync SUPR3_TEMPLATE = VBOXR3
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncendif
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncSUPR3_DEFS = \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync IN_SUP_R3 IN_RT_R3 \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(if $(VBOX_WITH_SUPSVC),VBOX_WITH_SUPSVC) \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(if $(VBOX_WITH_MAIN),VBOX_WITH_MAIN,)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncSUPR3_INCS := $(PATH_SUB_CURRENT)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncSUPR3_INCS.l4 = $(L4_INCDIR)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncSUPR3_SOURCES = \
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync SUPLib.cpp \
bf8889d6b20936475381d2ed2b80b06eaf2a03d1vboxsync SUPLibSem.cpp \
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync SUPR3HardenedIPRT.cpp \
bf8889d6b20936475381d2ed2b80b06eaf2a03d1vboxsync SUPR3HardenedVerify.cpp \
bf8889d6b20936475381d2ed2b80b06eaf2a03d1vboxsync $(KBUILD_TARGET)/SUPLib-$(KBUILD_TARGET).cpp
bf8889d6b20936475381d2ed2b80b06eaf2a03d1vboxsync
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync#
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync# Static version of SUPR3.
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync#
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncSUPR3Static_TEMPLATE = VBOXR3STATIC
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncSUPR3Static_EXTENDS = SUPR3
6b07d9a23ed1c650aa0a3b8de9d19f51b6b67e9fvboxsync
6b07d9a23ed1c650aa0a3b8de9d19f51b6b67e9fvboxsync#
6b07d9a23ed1c650aa0a3b8de9d19f51b6b67e9fvboxsync# The static part of the hardened support library (ring-3).
6b07d9a23ed1c650aa0a3b8de9d19f51b6b67e9fvboxsync#
6b07d9a23ed1c650aa0a3b8de9d19f51b6b67e9fvboxsyncSUPR3HardenedStatic_TEMPLATE = VBOXR3HARDENEDLIB
6b07d9a23ed1c650aa0a3b8de9d19f51b6b67e9fvboxsyncSUPR3HardenedStatic_DEFS = IN_SUP_HARDENED_R3
6b07d9a23ed1c650aa0a3b8de9d19f51b6b67e9fvboxsyncSUPR3HardenedStatic_DEFS += \
6b07d9a23ed1c650aa0a3b8de9d19f51b6b67e9fvboxsync $(if $(VBOX_WITH_SUPSVC),VBOX_WITH_SUPSVC,) \
6b07d9a23ed1c650aa0a3b8de9d19f51b6b67e9fvboxsync $(if $(VBOX_WITH_MAIN),VBOX_WITH_MAIN,)
6b07d9a23ed1c650aa0a3b8de9d19f51b6b67e9fvboxsyncSUPR3HardenedStatic_INCS = .
6b07d9a23ed1c650aa0a3b8de9d19f51b6b67e9fvboxsyncSUPR3HardenedStatic_SOURCES = \
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync SUPR3HardenedMain.cpp \
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync SUPR3HardenedVerify.cpp \
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync $(KBUILD_TARGET)/SUPLib-$(KBUILD_TARGET).cpp
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsync# VBoxSupSvc - The system wide service/daemon.
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsync#
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsyncVBoxSupSvc_TEMPLATE = VBOXR3EXE
e94ff1af89bf631c68367d4e291ddbb491b5e5c0vboxsyncVBoxSupSvc_SOURCES = \
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsync SUPSvc.cpp \
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync SUPSvcGlobal.cpp \
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync $(KBUILD_TARGET)/SUPSvc-$(KBUILD_TARGET).cpp
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncif1of ($(KBUILD_TARGET), win)
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsync VBoxSupSvc_SOURCES += \
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync SUPSvcGrant.cpp
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncendif
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncifn1of ($(KBUILD_TARGET), win)
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync VBoxSupSvc_SOURCES += \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync SUPSvcMain-posix.cpp
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsyncendif
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxSupSvc_LIBS = \
e94ff1af89bf631c68367d4e291ddbb491b5e5c0vboxsync $(LIB_RUNTIME)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# SUPR0 - The Ring-0 Import / Thunk library.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncSUPR0_TEMPLATE = VBoxR0
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncifeq ($(VBOX_LDR_FMT),pe)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync SUPR0_SOURCES += SUPR0.def
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncendif
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncifeq ($(VBOX_LDR_FMT),lx)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncSUPR0_SOURCES += $$(SUPR0_0_OUTDIR)/SUPR0.def
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync$$(SUPR0_0_OUTDIR)/SUPR0.def: $(PATH_SUB_CURRENT)/SUPR0.def | $$(dir $$@)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(SED) \
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync -e 's/^[ \t][ \t]*\([gA-Z]\)/ _\1/' \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync -e 's/[ \t]DATA[ \t]*/ /' \
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync -e 's/g_pSUPGlobalInfoPage/g_SUPGlobalInfoPage/' \
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync --output $@.tmp\
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync $<
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync $(MV) -f $@.tmp $@
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncendif
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# SUPR0IdcClient - The Ring-0 IDC client driver library.
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync#
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncSUPR0IdcClient_TEMPLATE = VBOXR0DRV
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsyncSUPR0IdcClient_INSTTYPE = stage
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsyncSUPR0IdcClient_DEFS = IN_RT_R0 IN_SUP_R0 IN_SUP_STATIC
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncSUPR0IdcClient_SDKS.win = W2K3DDK WINPSDKINCS
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsyncSUPR0IdcClient_SOURCES.$(KBUILD_TARGET) = \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(KBUILD_TARGET)/SUPR0IdcClient-$(KBUILD_TARGET).c
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsyncSUPR0IdcClient_SOURCES = \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync SUPR0IdcClient.c \
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync SUPR0IdcClientComponent.c \
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync SUPR0IdcClientStubs.c
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncif !defined(VBOX_ONLY_DOCS) \
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync && !defined(VBOX_ONLY_EXTPACKS) \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync && !defined(VBOX_ONLY_TESTSUITE)
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync#
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync# VBoxDrv.sys - The Windows driver.
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync#
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync## @todo consolidate all the targets into a single mess.
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsyncifeq ($(KBUILD_TARGET),win)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv_TEMPLATE = VBOXR0DRV
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncifdef VBOX_SIGNING_MODE
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync VBoxDrv_INSTTYPE = none
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync VBoxDrv_DEBUG_INSTTYPE = both
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncendif
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncVBoxDrv_DEFS = IN_RT_R0 IN_SUP_R0 SUPDRV_WITH_RELEASE_LOGGER
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncifdef VBOX_WITHOUT_NATIVE_R0_LOADER
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync VBoxDrv_DEFS += VBOX_WITHOUT_NATIVE_R0_LOADER
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncendif
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncifdef VBOX_WITH_VMMR0_DISABLE_PREEMPTION
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync VBoxDrv_DEFS += VBOX_WITH_VMMR0_DISABLE_PREEMPTION
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncendif
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncVBoxDrv_SDKS = W2K3DDK WINPSDKINCS
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncVBoxDrv_INCS := $(PATH_SUB_CURRENT)
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncVBoxDrv_SOURCES = \
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync win/SUPDrv-win.cpp \
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync win/SUPDrvA-win.asm \
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync SUPDrv.c \
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync SUPDrvSem.c \
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync win/VBoxDrv.rc
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncVBoxDrv_LDFLAGS.x86 = -Entry:DriverEntry@8
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncVBoxDrv_LDFLAGS.amd64 = -Entry:DriverEntry
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsyncVBoxDrv_LIBS = \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync $(PATH_SDK_W2K3DDK_LIB)/hal.lib \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncINSTALLS += VBoxDrv-inf
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncVBoxDrv-inf_INST = $(INST_BIN)
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncVBoxDrv-inf_MODE = a+r,u+w
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncVBoxDrv-inf_SOURCES = \
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.inf
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncVBoxDrv-inf_CLEAN = $(VBoxDrv-inf_SOURCES)
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsyncVBoxDrv-inf_BLDDIRS = $(PATH_TARGET)/VBoxDrvCat.dir
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync$(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.inf: $(PATH_SUB_CURRENT)/win/VBoxDrv.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync $(call MSG_GENERATE,VBoxDrv-inf,$@,$<)
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync $(call VBOX_EDIT_INF_FN,$<,$@)
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync ifdef VBOX_SIGNING_MODE
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv-inf_SOURCES += \
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.sys \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.cat
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
b9473064e26edc9a65150b4206ea1e52f3ca600avboxsync$(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.sys: $$(VBoxDrv_1_TARGET) | $$(dir $$@)
b9473064e26edc9a65150b4206ea1e52f3ca600avboxsync $(INSTALL) -m 644 $< $(@D)
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync
b9473064e26edc9a65150b4206ea1e52f3ca600avboxsync$(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.cat: \
b9473064e26edc9a65150b4206ea1e52f3ca600avboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.inf \
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.sys
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsync $(call MSG_TOOL,Inf2Cat,VBoxDrv-inf,$@,$<)
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsync $(call VBOX_MAKE_CAT_FN, $(@D),$@)
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync endif # signing
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsyncendif # win
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsync
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsync#
b9473064e26edc9a65150b4206ea1e52f3ca600avboxsync# vboxdrv.ko - The Linux Kernel Module (syntax check only).
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync#
07557d07616212d7ba6e7ab3059e85cb14633775vboxsyncifeq ($(KBUILD_TARGET),linux)
07557d07616212d7ba6e7ab3059e85cb14633775vboxsyncvboxdrv_TEMPLATE = VBOXR0DRV
07557d07616212d7ba6e7ab3059e85cb14633775vboxsyncvboxdrv_DEFS = KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) MODULE IN_RT_R0 IN_SUP_R0 CONFIG_VBOXDRV_AS_MISC
07557d07616212d7ba6e7ab3059e85cb14633775vboxsyncifdef VBOX_LINUX_VERSION_2_4
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync vboxdrv_DEFS += EXPORT_SYMTAB
07557d07616212d7ba6e7ab3059e85cb14633775vboxsyncendif
b9473064e26edc9a65150b4206ea1e52f3ca600avboxsyncvboxdrv_INCS := \
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync $(PATH_SUB_CURRENT) \
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsyncvboxdrv_LIBS = $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsyncvboxdrv_LIBS.debug = $(vboxdrv_LIBS) $(VBOX_GCC_LIBGCC)
07557d07616212d7ba6e7ab3059e85cb14633775vboxsyncvboxdrv_SOURCES = \
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsync $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).c \
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsync SUPDrv.c \
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync SUPDrvSem.c
07557d07616212d7ba6e7ab3059e85cb14633775vboxsyncifndef VBOX_LINUX_VERSION_2_4
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync vboxdrv_SOURCES += \
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).mod.c
07557d07616212d7ba6e7ab3059e85cb14633775vboxsyncendif
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync#
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync# Targets for installing the linux sources.
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsync#
07557d07616212d7ba6e7ab3059e85cb14633775vboxsyncvboxdrv-mod_INST = bin/src/vboxdrv/
07557d07616212d7ba6e7ab3059e85cb14633775vboxsyncvboxdrv-mod_SOURCES = \
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync $(subst $(DQUOTE),,$(FILES_VBOXDRV_NOBIN)) \
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsync $(vboxdrv-mod_0_OUTDIR)/Makefile
529e6bec97f5ef2e005c99c205c9624583ecb7f0vboxsyncvboxdrv-mod_EXEC_SOURCES = \
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync $(subst $(DQUOTE),,$(FILES_VBOXDRV_BIN)) \
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync $(vboxdrv-mod_0_OUTDIR)/build_in_tmp \
9a379ef11a4bb232c8e41c12b82ec94c8e10d9a0vboxsync $(PATH_ROOT)/src/VBox/HostDrivers/linux/do_Module.symvers
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncvboxdrv-mod_CLEAN = \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(vboxdrv-mod_0_OUTDIR)/Makefile \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(PATH_TARGET)/vboxdrv-mod-1.dep \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(vboxdrv-mod_0_OUTDIR)/build_in_tmp
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# Scripts needed for building the kernel modules
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync$$(vboxdrv-mod_0_OUTDIR)/build_in_tmp: \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(PATH_ROOT)/src/VBox/HostDrivers/linux/build_in_tmp \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(VBOX_VERSION_STAMP) \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync | $$(dir $$@)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(call MSG_TOOL,Creating,,$@)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(QUIET)$(SED) \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync -e "s;_VERSION_;${VBOX_VERSION_STRING};g" \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync -e "s;_MODULE_;vboxdrv;g" \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync -e "s;_BUILDTYPE_;${KBUILD_TYPE};g" --output $@ $<
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(QUIET)chmod 0755 $@
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncincludedep $(PATH_TARGET)/vboxdrv-mod-1.dep
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync$$(vboxdrv-mod_0_OUTDIR)/Makefile: \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(PATH_SUB_CURRENT)/linux/Makefile \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $$(if $$(eq $$(Support/linux/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync | $$(dir $$@)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(call MSG_TOOL,Creating,,$@)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync ifndef VBOX_WITH_HARDENING
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync else
2b114c590cf5a19f8047cd7bde9c7e5ae00aa22bvboxsync $(QUIET)$(CP) -f $< $@
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync endif
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync %$(QUIET2)$(APPEND) -t '$(PATH_TARGET)/vboxdrv-mod-1.dep' 'Support/linux/Makefile_VBOX_HARDENED=$(VBOX_WITH_HARDENING)'
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncendif # real linux
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# VBoxDrv.kext - The Darwin Kernel Extension.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncifeq ($(KBUILD_TARGET),darwin)
2b114c590cf5a19f8047cd7bde9c7e5ae00aa22bvboxsync# Leopard (x86) and Snow Leopard (x86/amd64)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncSYSMODS += VBoxDrv
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv_TEMPLATE = VBOXR0DRV
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv_INST = $(INST_VBOXDRV)Contents/MacOS/
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv_DEFS := VBOX_WITH_HOST_VMX IN_RT_R0 IN_SUP_R0 SUPDRV_WITH_RELEASE_LOGGER VBOX_SVN_REV=$(VBOX_SVN_REV)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv_DEFS.debug = DEBUG_DARWIN_GIP
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv_INCS = . $(VBoxDrv_0_OUTDIR)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv_LIBS = $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#VBoxDrv_LDFLAGS = -v -Wl,-whyload -Wl,-v -Wl,-whatsloaded
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv_SOURCES = \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync SUPDrv.c \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync SUPDrvSem.c \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).cpp
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncifdef VBOX_WITH_DTRACE_R0DRV
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync VBoxDrv_DEFS += VBOX_WITH_DTRACE
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync VBoxDrv_INTERMEDIATES += $(VBoxDrv_0_OUTDIR)/SUPDrv-dtrace.h
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync VBoxDrv_CLEAN += $(VBoxDrv_0_OUTDIR)/SUPDrv-dtrace.h $(VBoxDrv_0_OUTDIR)/SUPDrv-dtrace.tmp
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $$(VBoxDrv_0_OUTDIR)/SUPDrv-dtrace.h: $(PATH_SUB_CURRENT)/SUPDrv-dtrace.d | $$(dir $$@)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync dtrace -C -h -o $@.tmp -s $<
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(SED) -e '/<unistd\.h>/d' $@.tmp --output $@
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(RM) -f $@.tmp
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncendif
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncINSTALLS += VBoxDrv.kext
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv.kext_INST = $(INST_VBOXDRV)Contents/
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv.kext_SOURCES = $(VBoxDrv.kext_0_OUTDIR)/Info.plist
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv.kext_CLEAN = $(VBoxDrv.kext_0_OUTDIR)/Info.plist
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync$$(VBoxDrv.kext_0_OUTDIR)/Info.plist: \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(PATH_SUB_CURRENT)/darwin/Info.plist \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(VBOX_VERSION_MK) | $$(dir $$@)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(call MSG_GENERATE,VBoxDrv,$@,$<)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(QUIET)$(RM) -f $@
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(QUIET)$(SED) \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync --output $@ \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $<
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# Common manual loader script.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncINSTALLS += Scripts
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncScripts_INST = $(INST_DIST)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncScripts_EXEC_SOURCES = \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync darwin/load.sh
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncendif # darwin
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncifeq ($(KBUILD_TARGET),os2)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# VBoxDrv.sys - The OS/2 driver.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv_TEMPLATE = VBOXR0DRV
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv_DEFS = IN_RT_R0 IN_SUP_R0
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv_INCS := $(PATH_SUB_CURRENT)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#VBoxDrv_LDFLAGS = -s -t -v
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv_SOURCES = \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync os2/SUPDrvA-os2.asm \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync os2/SUPDrv-os2.def
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrv_LIBS = \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(VBoxDrvLib_1_TARGET) \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(VBOX_GCC_LIBGCC) \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync end
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# temp hack to ensure that SUPDrvA-os2.asm is first in the link.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncLIBRARIES += VBoxDrvLib
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrvLib_TEMPLATE = VBOXR0DRV
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrvLib_INSTTYPE = none
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrvLib_DEFS = IN_RT_R0 IN_SUP_R0
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrvLib_INCS := \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync . \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(PATH_ROOT)/src/VBox/Runtime/include
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncVBoxDrvLib_SOURCES = \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync os2/SUPDrv-os2.cpp \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync SUPDrv.c \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync SUPDrvSem.c
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncendif # os2
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncifeq ($(KBUILD_TARGET),freebsd)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# vboxdrv.ko - The FreeBSD Kernel Module.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncvboxdrv_TEMPLATE = VBOXR0DRV
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncvboxdrv_DEFS = IN_RT_R0 IN_SUP_R0 SUPDRV_WITH_RELEASE_LOGGER VBOX_SVN_REV=$(VBOX_SVN_REV)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncvboxdrv_INCS := $(PATH_SUB_CURRENT)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncvboxdrv_LIBS = $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncvboxdrv_SOURCES := \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).c \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(PATH_SUB_CURRENT)/$(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).def \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync SUPDrv.c \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync SUPDrvSem.c
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync## @todo the SUPDrv-freebsd.def is most probably gonna break it and require build system hacking...
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# Targets for installing the freebsd sources.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncvboxdrv-mod_INST = bin/src/vboxdrv/
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncvboxdrv-mod_SOURCES = \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(subst $(DQUOTE),,$(FILES_VBOXDRV_NOBIN)) \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(vboxdrv-mod_0_OUTDIR)/Makefile
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncvboxdrv-mod_CLEAN = \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(vboxdrv-mod_0_OUTDIR)/Makefile
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync$$(vboxdrv-mod_0_OUTDIR)/Makefile: \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(PATH_SUB_CURRENT)/freebsd/Makefile \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $$(if $$(eq $$(Support/freebsd/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync | $$(dir $$@)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(call MSG_TOOL,Creating,,$@)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(QUIET)$(RM) -f -- $@
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync ifndef VBOX_WITH_HARDENING
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync else
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(QUIET)$(CP) -f $< $@
1f1f533d5b88c35cf740dca55c6f1937d1035a36vboxsync endif
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncendif # freebsd
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncifeq ($(KBUILD_TARGET),solaris)
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# vboxdrv.o - The Solaris Kernel Module.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncvboxdrv_TEMPLATE = VBOXR0DRV
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncvboxdrv_DEFS = IN_RT_R0 IN_SUP_R0 SUPDRV_WITH_RELEASE_LOGGER VBOX_SVN_REV=$(VBOX_SVN_REV)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncifdef VBOX_WITH_NETFLT
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync vboxdrv_DEFS += VBOX_WITH_NETFLT
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncendif
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncifdef VBOX_WITH_NATIVE_SOLARIS_LOADING
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync vboxdrv_DEFS += VBOX_WITH_NATIVE_SOLARIS_LOADING
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncendif
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncvboxdrv_DEPS += $(VBOX_SVN_REV_KMK)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncvboxdrv_INCS := $(PATH_SUB_CURRENT)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncvboxdrv_LIBS = $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncvboxdrv_SOURCES = \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).c \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync SUPDrv.c \
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync SUPDrvSem.c
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncvboxdrv_LDFLAGS += -N misc/ctf
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncendif # solaris
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync# SUPDrv.c needs the VBOX_SVN_REV.
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync#
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncSUPDrv.c_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncendif # !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_TESTSUITE
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsyncinclude $(KBUILD_PATH)/subfooter.kmk
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync