Makefile.kmk revision 091b500809718ecdb84e7375f0bbe6cbdb2b958e
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# $Id$
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync## @file
462e60a19d02a99b2b1a5c08dff74bb0808d707cvboxsync# Sub-Makefile for the support library and the drivers/modules/kexts it uses.
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync#
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync#
462e60a19d02a99b2b1a5c08dff74bb0808d707cvboxsync# Copyright (C) 2006-2010 Oracle Corporation
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync#
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# available from http://www.virtualbox.org. This file is free software;
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# you can redistribute it and/or modify it under the terms of the GNU
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# General Public License (GPL) as published by the Free Software
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync#
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# The contents of this file may alternatively be used under the terms
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# of the Common Development and Distribution License Version 1.0
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# VirtualBox OSE distribution, in which case the provisions of the
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# CDDL are applicable instead of those of the GPL.
d4a9d525e6f2111d462d2d96462dced6b9ec00efvboxsync#
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# You may elect to license modified versions of this file under the
7b9f0c34e9ea328981c99e97054bdf8684d9d620vboxsync# terms and conditions of either the GPL or the CDDL or both.
9e7e0b61d29309a0ed7af9472c8d6d865f9e8a2dvboxsync#
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncSUB_DEPTH = ../../../..
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncinclude $(KBUILD_PATH)/subheader.kmk
0fd108a555ae02f2fb557d5f2c40281999b60d15vboxsync
c55bf74b54ecdfb5ebc4e5d90b620d0fee31737evboxsync#
462e60a19d02a99b2b1a5c08dff74bb0808d707cvboxsync# Targets
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync#
b1cc3e87518139898395f96974ecff9e6bf228fbvboxsyncLIBRARIES += SUPR3 SUPR3Static SUPR3HardenedStatic
b1cc3e87518139898395f96974ecff9e6bf228fbvboxsyncifndef VBOX_ONLY_DOCS
c55bf74b54ecdfb5ebc4e5d90b620d0fee31737evboxsync if1of ($(VBOX_LDR_FMT), pe lx)
7862f4bd000f1eb6c86289f5ac2849e9cf943ca9vboxsync LIBRARIES += SUPR0
388b6b190a5407548753b7fde12fa58134ec3563vboxsync endif
7862f4bd000f1eb6c86289f5ac2849e9cf943ca9vboxsyncendif
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncif !defined(VBOX_ONLY_DOCS) \
c55bf74b54ecdfb5ebc4e5d90b620d0fee31737evboxsync && !defined(VBOX_ONLY_EXTPACKS) \
f9ce005e61f0fbb51a2cabc53d58c3485151faa9vboxsync && !defined(VBOX_ONLY_TESTSUITE)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync ifdef VBOX_WITH_SUPSVC
c10a6f0c7041e4d1ee50ad38425aab9d43c55522vboxsync PROGRAMS += VBoxSupSvc
c10a6f0c7041e4d1ee50ad38425aab9d43c55522vboxsync endif
c10a6f0c7041e4d1ee50ad38425aab9d43c55522vboxsync ifdef VBOX_WITH_VBOXDRV
c10a6f0c7041e4d1ee50ad38425aab9d43c55522vboxsync LIBRARIES += SUPR0IdcClient
c10a6f0c7041e4d1ee50ad38425aab9d43c55522vboxsync SYSMODS.freebsd += vboxdrv
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync SYSMODS.linux += vboxdrv
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync SYSMODS.win += VBoxDrv
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync SYSMODS.os2 += VBoxDrv
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync SYSMODS.solaris += vboxdrv
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync endif
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync INSTALLS.linux += vboxdrv-mod vboxdrv-sh vboxdrv-dkms
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync INSTALLS.freebsd += vboxdrv-mod vboxdrv-sh
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync #
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync # Include sub-makefile(s).
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync #
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync #
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync # Populate FILES_VBOXDRV_NOBIN and FILES_VBOXDRV_BIN
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync #
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync ifeq ($(KBUILD_TARGET),linux)
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync include $(PATH_SUB_CURRENT)/linux/files_vboxdrv
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync endif
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync ifeq ($(KBUILD_TARGET),freebsd)
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync include $(PATH_SUB_CURRENT)/freebsd/files_vboxdrv
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync endif
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncendif # !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_TESTSUITE
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync#
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync# The Ring-3 Support Library (this is linked into the IPRT dll, VBoxRT).
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync#
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncifneq ($(filter l4%,$(KBUILD_TARGET) $(BUILD_TARGET_SUB)),)
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync # L4 has trouble with -pedantic. It also make trouble when inlining is not enabled.
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync SUPR3_TEMPLATE = VBOXR3NP
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncelse
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync SUPR3_TEMPLATE = VBOXR3
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncendif
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncSUPR3_DEFS = \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync IN_SUP_R3 IN_RT_R3 \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync $(if $(VBOX_WITH_SUPSVC),VBOX_WITH_SUPSVC) \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(if $(VBOX_WITH_MAIN),VBOX_WITH_MAIN,)
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncSUPR3_INCS := $(PATH_SUB_CURRENT)
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncSUPR3_INCS.l4 = $(L4_INCDIR)
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncSUPR3_SOURCES = \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync SUPLib.cpp \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync SUPLibSem.cpp \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync SUPR3HardenedIPRT.cpp \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync SUPR3HardenedVerify.cpp \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(KBUILD_TARGET)/SUPLib-$(KBUILD_TARGET).cpp
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync#
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync# Static version of SUPR3.
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync#
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncSUPR3Static_TEMPLATE = VBOXR3STATIC
e38a1f5933935fe8db152ea06dac5aa1be27d870vboxsyncSUPR3Static_EXTENDS = SUPR3
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync#
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync# The static part of the hardened support library (ring-3).
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync#
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncSUPR3HardenedStatic_TEMPLATE = VBOXR3HARDENEDLIB
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncSUPR3HardenedStatic_DEFS = IN_SUP_HARDENED_R3
e38a1f5933935fe8db152ea06dac5aa1be27d870vboxsyncSUPR3HardenedStatic_DEFS += \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(if $(VBOX_WITH_SUPSVC),VBOX_WITH_SUPSVC,) \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(if $(VBOX_WITH_MAIN),VBOX_WITH_MAIN,)
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncSUPR3HardenedStatic_INCS = .
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncSUPR3HardenedStatic_SOURCES = \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync SUPR3HardenedMain.cpp \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync SUPR3HardenedVerify.cpp \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(KBUILD_TARGET)/SUPLib-$(KBUILD_TARGET).cpp
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync
e38a1f5933935fe8db152ea06dac5aa1be27d870vboxsync#
4171ffb38eb8720b2ae9a8d13e95103ab26cfd12vboxsync# VBoxSupSvc - The system wide service/daemon.
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync#
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsyncVBoxSupSvc_TEMPLATE = VBOXR3EXE
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncVBoxSupSvc_SOURCES = \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync SUPSvc.cpp \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync SUPSvcGlobal.cpp \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(KBUILD_TARGET)/SUPSvc-$(KBUILD_TARGET).cpp
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncif1of ($(KBUILD_TARGET), win)
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync VBoxSupSvc_SOURCES += \
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsync SUPSvcGrant.cpp
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncendif
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncifn1of ($(KBUILD_TARGET), win)
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync VBoxSupSvc_SOURCES += \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync SUPSvcMain-posix.cpp
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncendif
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncVBoxSupSvc_LIBS = \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(LIB_RUNTIME)
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync
e38a1f5933935fe8db152ea06dac5aa1be27d870vboxsync
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync#
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync# SUPR0 - The Ring-0 Import / Thunk library.
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync#
581f0625e43a928987623d7cf59e1b1ab61ca6c8vboxsyncSUPR0_TEMPLATE = VBoxR0
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncifeq ($(VBOX_LDR_FMT),pe)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync SUPR0_SOURCES += SUPR0.def
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncendif
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncifeq ($(VBOX_LDR_FMT),lx)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncSUPR0_SOURCES += $$(SUPR0_0_OUTDIR)/SUPR0.def
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync$$(SUPR0_0_OUTDIR)/SUPR0.def: $(PATH_SUB_CURRENT)/SUPR0.def | $$(dir $$@)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(SED) \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync -e 's/^[ \t][ \t]*\([gA-Z]\)/ _\1/' \
3f5dd727ecbcf3e99217c70f04bc2340beb9072cvboxsync -e 's/[ \t]DATA[ \t]*/ /' \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync -e 's/g_pSUPGlobalInfoPage/g_SUPGlobalInfoPage/' \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync --output $@.tmp\
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $<
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(MV) -f $@.tmp $@
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncendif
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync#
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# SUPR0IdcClient - The Ring-0 IDC client driver library.
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync#
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncSUPR0IdcClient_TEMPLATE = VBOXR0DRV
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncSUPR0IdcClient_DEFS = IN_RT_R0 IN_SUP_R0 IN_SUP_STATIC
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncSUPR0IdcClient_SDKS.win = W2K3DDK WINPSDKINCS
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncSUPR0IdcClient_SOURCES.$(KBUILD_TARGET) = \
462e60a19d02a99b2b1a5c08dff74bb0808d707cvboxsync $(KBUILD_TARGET)/SUPR0IdcClient-$(KBUILD_TARGET).c
462e60a19d02a99b2b1a5c08dff74bb0808d707cvboxsyncSUPR0IdcClient_SOURCES = \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync SUPR0IdcClient.c \
462e60a19d02a99b2b1a5c08dff74bb0808d707cvboxsync SUPR0IdcClientComponent.c \
462e60a19d02a99b2b1a5c08dff74bb0808d707cvboxsync SUPR0IdcClientStubs.c
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync
462e60a19d02a99b2b1a5c08dff74bb0808d707cvboxsync
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncif !defined(VBOX_ONLY_DOCS) \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync && !defined(VBOX_ONLY_EXTPACKS) \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync && !defined(VBOX_ONLY_TESTSUITE)
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync#
702a8ee2dc1de96f2f77e97135015d3e243186fdvboxsync# VBoxDrv.sys - The Windows driver.
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync#
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync## @todo consolidate all the targets into a single mess.
d4a9d525e6f2111d462d2d96462dced6b9ec00efvboxsyncifeq ($(KBUILD_TARGET),win)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncVBoxDrv_TEMPLATE = VBOXR0DRV
fb41ad77bcfbdb3aaa1fc9503a37ee6a70dc6461vboxsyncifdef VBOX_SIGNING_MODE
fb41ad77bcfbdb3aaa1fc9503a37ee6a70dc6461vboxsync VBoxDrv_NOINST = true
fb41ad77bcfbdb3aaa1fc9503a37ee6a70dc6461vboxsyncendif
fb41ad77bcfbdb3aaa1fc9503a37ee6a70dc6461vboxsyncVBoxDrv_DEFS = IN_RT_R0 IN_SUP_R0 SUPDRV_WITH_RELEASE_LOGGER
fb41ad77bcfbdb3aaa1fc9503a37ee6a70dc6461vboxsyncifdef VBOX_WITHOUT_NATIVE_R0_LOADER
fb41ad77bcfbdb3aaa1fc9503a37ee6a70dc6461vboxsync VBoxDrv_DEFS += VBOX_WITHOUT_NATIVE_R0_LOADER
c55bf74b54ecdfb5ebc4e5d90b620d0fee31737evboxsyncendif
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncifdef VBOX_WITH_VMMR0_DISABLE_PREEMPTION
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncVBoxDrv_DEFS += VBOX_WITH_VMMR0_DISABLE_PREEMPTION
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncendif
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncVBoxDrv_SDKS = W2K3DDK WINPSDKINCS
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncVBoxDrv_INCS := $(PATH_SUB_CURRENT)
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncVBoxDrv_SOURCES = \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync win/SUPDrv-win.cpp \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync win/SUPDrvA-win.asm \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync SUPDrv.c \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync SUPDrvSem.c \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync win/VBoxDrv.rc
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncVBoxDrv_LDFLAGS.x86 = -Entry:DriverEntry@8
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncVBoxDrv_LDFLAGS.amd64 = -Entry:DriverEntry
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncVBoxDrv_LIBS = \
fb41ad77bcfbdb3aaa1fc9503a37ee6a70dc6461vboxsync $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync $(PATH_SDK_W2K3DDK_LIB)/hal.lib \
c10a6f0c7041e4d1ee50ad38425aab9d43c55522vboxsync $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncINSTALLS += VBoxDrv-inf
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncVBoxDrv-inf_INST = $(INST_BIN)
c55bf74b54ecdfb5ebc4e5d90b620d0fee31737evboxsyncVBoxDrv-inf_MODE = a+r,u+w
c55bf74b54ecdfb5ebc4e5d90b620d0fee31737evboxsyncVBoxDrv-inf_SOURCES = \
cd5df721f068659172f3bf95de8fedeb465f057dvboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.inf
c55bf74b54ecdfb5ebc4e5d90b620d0fee31737evboxsyncVBoxDrv-inf_CLEAN = $(VBoxDrv-inf_SOURCES)
cd5df721f068659172f3bf95de8fedeb465f057dvboxsyncVBoxDrv-inf_BLDDIRS = $(PATH_TARGET)/VBoxDrvCat.dir
cd5df721f068659172f3bf95de8fedeb465f057dvboxsync
cd5df721f068659172f3bf95de8fedeb465f057dvboxsync$(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.inf: $(PATH_SUB_CURRENT)/win/VBoxDrv.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
c2590a722c15520a45551ed7dc02d4831fb1a48evboxsync $(call MSG_GENERATE,VBoxDrv-inf,$@,$<)
cd5df721f068659172f3bf95de8fedeb465f057dvboxsync $(call VBOX_EDIT_INF_FN,$<,$@)
cd5df721f068659172f3bf95de8fedeb465f057dvboxsync
cd5df721f068659172f3bf95de8fedeb465f057dvboxsync ifdef VBOX_SIGNING_MODE
c55bf74b54ecdfb5ebc4e5d90b620d0fee31737evboxsyncVBoxDrv-inf_SOURCES += \
c55bf74b54ecdfb5ebc4e5d90b620d0fee31737evboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.sys \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.cat
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync$(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.sys: $$(TARGET_VBoxDrv) | $$(dir $$@)
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(INSTALL) -m 644 $< $(@D)
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync$(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.cat: \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.inf \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.sys
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(call MSG_TOOL,Inf2Cat,VBoxDrv-inf,$@,$<)
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(call VBOX_MAKE_CAT_FN, $(@D),$@)
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync endif # signing
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncendif # win
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync
cd5df721f068659172f3bf95de8fedeb465f057dvboxsync#
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync# vboxdrv.ko - The Linux Kernel Module (syntax check only).
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync#
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncifeq ($(KBUILD_TARGET),linux)
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncvboxdrv_TEMPLATE = VBOXR0DRV
cd5df721f068659172f3bf95de8fedeb465f057dvboxsyncvboxdrv_NOINST = true
cd5df721f068659172f3bf95de8fedeb465f057dvboxsyncvboxdrv_DEFS = KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) MODULE IN_RT_R0 IN_SUP_R0 CONFIG_VBOXDRV_AS_MISC
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncifdef VBOX_LINUX_VERSION_2_4
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncvboxdrv_DEFS += EXPORT_SYMTAB
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncendif
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncvboxdrv_INCS := \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(PATH_SUB_CURRENT) \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncvboxdrv_LIBS = $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncvboxdrv_LIBS.debug = $(vboxdrv_LIBS) $(VBOX_GCC_LIBGCC)
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncvboxdrv_SOURCES = \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).c \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync SUPDrv.c \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync SUPDrvSem.c
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncifndef VBOX_LINUX_VERSION_2_4
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsyncvboxdrv_SOURCES += \
ecf100db90e8e3af96312908282d3c20e754fbe8vboxsync $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).mod.c
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncendif
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync#
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync# Targets for installing the linux sources.
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync#
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncvboxdrv-mod_INST = bin/src/vboxdrv/
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncvboxdrv-mod_MODE = a+r,u+w
cd5df721f068659172f3bf95de8fedeb465f057dvboxsyncvboxdrv-mod_SOURCES = $(subst ",,$(FILES_VBOXDRV_NOBIN)) #"
cd5df721f068659172f3bf95de8fedeb465f057dvboxsyncvboxdrv-mod_SOURCES += \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync $(vboxdrv-mod_0_OUTDIR)/Makefile
fb41ad77bcfbdb3aaa1fc9503a37ee6a70dc6461vboxsyncvboxdrv-mod_CLEAN = \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(vboxdrv-mod_0_OUTDIR)/Makefile
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncvboxdrv-sh_INST = bin/src/vboxdrv
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncvboxdrv-sh_MODE = a+rx,u+w
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncvboxdrv-sh_SOURCES = $(subst ",,$(FILES_VBOXDRV_BIN)) #"
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncvboxdrv-sh_SOURCES += \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(vboxdrv-sh_0_OUTDIR)/build_in_tmp \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(PATH_ROOT)/src/VBox/HostDrivers/linux/do_Module.symvers
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncvboxdrv-sh_CLEAN = \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(PATH_TARGET)/vboxdrv-sh-1.dep \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(vboxdrv-sh_0_OUTDIR)/build_in_tmp
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
9523921c89c66f4bececdbd5ac95aed0039eda1bvboxsync# Scripts needed for building the kernel modules
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsync
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsync$$(vboxdrv-sh_0_OUTDIR)/build_in_tmp: \
c10a6f0c7041e4d1ee50ad38425aab9d43c55522vboxsync $(PATH_ROOT)/src/VBox/HostDrivers/linux/build_in_tmp \
c10a6f0c7041e4d1ee50ad38425aab9d43c55522vboxsync $(VBOX_VERSION_STAMP) \
c55bf74b54ecdfb5ebc4e5d90b620d0fee31737evboxsync | $$(dir $$@)
4517f3d60a86111c8b70238b29d59f26c15291a7vboxsync $(call MSG_TOOL,Creating,,$@)
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsync $(QUIET)$(SED) \
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsync -e "s;_VERSION_;${VBOX_VERSION_STRING};g" \
c10a6f0c7041e4d1ee50ad38425aab9d43c55522vboxsync -e "s;_MODULE_;vboxdrv;g" \
d4a9d525e6f2111d462d2d96462dced6b9ec00efvboxsync -e "s;_BUILDTYPE_;${KBUILD_TYPE};g" --output $@ $<
d4a9d525e6f2111d462d2d96462dced6b9ec00efvboxsync $(QUIET)chmod 0755 $@
9523921c89c66f4bececdbd5ac95aed0039eda1bvboxsync
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsyncincludedep $(PATH_TARGET)/vboxdrv-sh-1.dep
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsync$$(vboxdrv-mod_0_OUTDIR)/Makefile: \
f044158ee9eb7045a43f2c4ef2fbc07cb11329aevboxsync $(PATH_SUB_CURRENT)/linux/Makefile \
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsync $$(if $$(eq $$(Support/linux/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \
9523921c89c66f4bececdbd5ac95aed0039eda1bvboxsync | $$(dir $$@)
d4a9d525e6f2111d462d2d96462dced6b9ec00efvboxsync $(call MSG_TOOL,Creating,,$@)
9523921c89c66f4bececdbd5ac95aed0039eda1bvboxsync ifndef VBOX_WITH_HARDENING
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsync $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
c10a6f0c7041e4d1ee50ad38425aab9d43c55522vboxsync else
d4a9d525e6f2111d462d2d96462dced6b9ec00efvboxsync $(QUIET)$(CP) -f $< $@
d4a9d525e6f2111d462d2d96462dced6b9ec00efvboxsync endif
9523921c89c66f4bececdbd5ac95aed0039eda1bvboxsync %$(QUIET2)$(RM) -f -- $(PATH_TARGET)/vboxdrv-sh-1.dep
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsync %$(QUIET2)$(APPEND) '$(PATH_TARGET)/vboxdrv-sh-1.dep' 'Support/linux/Makefile_VBOX_HARDENED=$(VBOX_WITH_HARDENING)'
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsync
f044158ee9eb7045a43f2c4ef2fbc07cb11329aevboxsyncendif # real linux
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsync
9523921c89c66f4bececdbd5ac95aed0039eda1bvboxsync
d4a9d525e6f2111d462d2d96462dced6b9ec00efvboxsync
9523921c89c66f4bececdbd5ac95aed0039eda1bvboxsync#
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsync# VBoxDrv.kext - The Darwin Kernel Extension.
c10a6f0c7041e4d1ee50ad38425aab9d43c55522vboxsync#
ed9d3db07648c7e3a979105c15ad752ee9ea18devboxsyncifeq ($(KBUILD_TARGET),darwin)
ed9d3db07648c7e3a979105c15ad752ee9ea18devboxsync# Leopard (x86) and Snow Leopard (x86/amd64)
ed9d3db07648c7e3a979105c15ad752ee9ea18devboxsyncSYSMODS += VBoxDrv
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsyncVBoxDrv_TEMPLATE = VBOXR0DRV
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsyncVBoxDrv_INST = $(INST_VBOXDRV)Contents/MacOS/
f044158ee9eb7045a43f2c4ef2fbc07cb11329aevboxsyncVBoxDrv_DEFS := VBOX_WITH_HOST_VMX IN_RT_R0 IN_SUP_R0 SUPDRV_WITH_RELEASE_LOGGER VBOX_SVN_REV=$(VBOX_SVN_REV)
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsyncVBoxDrv_DEFS.debug = DEBUG_DARWIN_GIP
9523921c89c66f4bececdbd5ac95aed0039eda1bvboxsyncVBoxDrv_INCS = . $(VBoxDrv_0_OUTDIR)
d4a9d525e6f2111d462d2d96462dced6b9ec00efvboxsyncVBoxDrv_LIBS = $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
d4a9d525e6f2111d462d2d96462dced6b9ec00efvboxsync#VBoxDrv_LDFLAGS = -v -Wl,-whyload -Wl,-v -Wl,-whatsloaded
4517f3d60a86111c8b70238b29d59f26c15291a7vboxsyncVBoxDrv_SOURCES = \
e86baafe99d1f1eb37adcca5fdecfd06e7f13bc5vboxsync SUPDrv.c \
c55bf74b54ecdfb5ebc4e5d90b620d0fee31737evboxsync SUPDrvSem.c \
cd5df721f068659172f3bf95de8fedeb465f057dvboxsync $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).cpp
c55bf74b54ecdfb5ebc4e5d90b620d0fee31737evboxsync
c10a6f0c7041e4d1ee50ad38425aab9d43c55522vboxsyncifdef VBOX_WITH_DTRACE_R0DRV
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync VBoxDrv_DEFS += VBOX_WITH_DTRACE
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync VBoxDrv_INTERMEDIATES += $(VBoxDrv_0_OUTDIR)/SUPDrv-dtrace.h
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync VBoxDrv_CLEAN += $(VBoxDrv_0_OUTDIR)/SUPDrv-dtrace.h $(VBoxDrv_0_OUTDIR)/SUPDrv-dtrace.tmp
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $$(VBoxDrv_0_OUTDIR)/SUPDrv-dtrace.h: $(PATH_SUB_CURRENT)/SUPDrv-dtrace.d | $$(dir $$@)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync dtrace -C -h -o $@.tmp -s $<
06ea6bcf23874b662d499b3f130024c98b2dd7a6vboxsync $(SED) -e '/<unistd\.h>/d' $@.tmp --output $@
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(RM) -f $@.tmp
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncendif
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncINSTALLS += VBoxDrv.kext
702a8ee2dc1de96f2f77e97135015d3e243186fdvboxsyncVBoxDrv.kext_INST = $(INST_VBOXDRV)Contents/
702a8ee2dc1de96f2f77e97135015d3e243186fdvboxsyncVBoxDrv.kext_SOURCES = $(VBoxDrv.kext_0_OUTDIR)/Info.plist
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncVBoxDrv.kext_CLEAN = $(VBoxDrv.kext_0_OUTDIR)/Info.plist
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync$$(VBoxDrv.kext_0_OUTDIR)/Info.plist: \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(PATH_SUB_CURRENT)/darwin/Info.plist \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(VBOX_VERSION_MK) | $$(dir $$@)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(call MSG_GENERATE,VBoxDrv,$@,$<)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(QUIET)$(RM) -f $@
5f2b03bf7695dabd71222dba123532a3f76828c1vboxsync $(QUIET)$(SED) \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
510567648d46488f4166e5f69ffffe3eeeeec4d9vboxsync -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
06ea6bcf23874b662d499b3f130024c98b2dd7a6vboxsync -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync --output $@ \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $<
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# Common manual loader script.
702a8ee2dc1de96f2f77e97135015d3e243186fdvboxsyncINSTALLS += Scripts
702a8ee2dc1de96f2f77e97135015d3e243186fdvboxsyncScripts_INST = $(INST_DIST)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncScripts_SOURCES = \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync darwin/load.sh
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncendif # darwin
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncifeq ($(KBUILD_TARGET),os2)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync#
5f2b03bf7695dabd71222dba123532a3f76828c1vboxsync# VBoxDrv.sys - The OS/2 driver.
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync#
510567648d46488f4166e5f69ffffe3eeeeec4d9vboxsyncVBoxDrv_TEMPLATE = VBOXR0DRV
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncVBoxDrv_DEFS = IN_RT_R0 IN_SUP_R0
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncVBoxDrv_INCS := $(PATH_SUB_CURRENT)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync#VBoxDrv_LDFLAGS = -s -t -v
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncVBoxDrv_SOURCES = \
06ea6bcf23874b662d499b3f130024c98b2dd7a6vboxsync os2/SUPDrvA-os2.asm \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync os2/SUPDrv-os2.def
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncVBoxDrv_LIBS = \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(TARGET_VBoxDrvLib) \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) \
702a8ee2dc1de96f2f77e97135015d3e243186fdvboxsync $(VBOX_GCC_LIBGCC) \
702a8ee2dc1de96f2f77e97135015d3e243186fdvboxsync end
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# temp hack to ensure that SUPDrvA-os2.asm is first in the link.
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncLIBRARIES += VBoxDrvLib
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncVBoxDrvLib_TEMPLATE = VBOXR0DRV
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncVBoxDrvLib_NOINST = 1
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncVBoxDrvLib_DEFS = IN_RT_R0 IN_SUP_R0
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncVBoxDrvLib_INCS := \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync . \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(PATH_ROOT)/src/VBox/Runtime/include
510567648d46488f4166e5f69ffffe3eeeeec4d9vboxsyncVBoxDrvLib_SOURCES = \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync os2/SUPDrv-os2.cpp \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync SUPDrv.c \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync SUPDrvSem.c
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncendif # os2
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncifeq ($(KBUILD_TARGET),freebsd)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync#
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# vboxdrv.ko - The FreeBSD Kernel Module.
702a8ee2dc1de96f2f77e97135015d3e243186fdvboxsync#
702a8ee2dc1de96f2f77e97135015d3e243186fdvboxsyncvboxdrv_TEMPLATE = VBOXR0DRV
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncvboxdrv_DEFS = IN_RT_R0 IN_SUP_R0 SUPDRV_WITH_RELEASE_LOGGER VBOX_SVN_REV=$(VBOX_SVN_REV)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncvboxdrv_INCS := $(PATH_SUB_CURRENT)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncvboxdrv_LIBS = $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncvboxdrv_SOURCES := \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).c \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(PATH_SUB_CURRENT)/$(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).def \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync SUPDrv.c \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync SUPDrvSem.c
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync## @todo the SUPDrv-freebsd.def is most probably gonna break it and require build system hacking...
510567648d46488f4166e5f69ffffe3eeeeec4d9vboxsync
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync#
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync# Targets for installing the freebsd sources.
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync#
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncvboxdrv-mod_INST = bin/src/vboxdrv/
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncvboxdrv-mod_MODE = a+r,u+w
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncvboxdrv-mod_SOURCES = $(subst ",,$(FILES_VBOXDRV_NOBIN)) #"
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncvboxdrv-mod_SOURCES += \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync $(vboxdrv-mod_0_OUTDIR)/Makefile
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsyncvboxdrv-mod_CLEAN = \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync $(vboxdrv-mod_0_OUTDIR)/Makefile
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync$$(vboxdrv-mod_0_OUTDIR)/Makefile: \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync $(PATH_SUB_CURRENT)/freebsd/Makefile \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync $$(if $$(eq $$(Support/freebsd/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync | $$(dir $$@)
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync $(call MSG_TOOL,Creating,,$@)
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync ifndef VBOX_WITH_HARDENING
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
3fb3de312d1ff675e0f7cc62a7d46cbb1d5d9353vboxsync else
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(QUIET)$(CP) -f $< $@
510567648d46488f4166e5f69ffffe3eeeeec4d9vboxsync endif
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncendif # freebsd
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncifeq ($(KBUILD_TARGET),solaris)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync#
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# vboxdrv.o - The Solaris Kernel Module.
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync#
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncvboxdrv_TEMPLATE = VBOXR0DRV
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncvboxdrv_DEFS = IN_RT_R0 IN_SUP_R0 SUPDRV_WITH_RELEASE_LOGGER VBOX_SVN_REV=$(VBOX_SVN_REV)
702a8ee2dc1de96f2f77e97135015d3e243186fdvboxsyncifdef VBOX_WITH_NETFLT
702a8ee2dc1de96f2f77e97135015d3e243186fdvboxsync vboxdrv_DEFS += VBOX_WITH_NETFLT
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncendif
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncvboxdrv_DEPS += $(VBOX_SVN_REV_KMK)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncvboxdrv_INCS := $(PATH_SUB_CURRENT)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncvboxdrv_LIBS = $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
2f3883b126a405f92b19e829472f614c7352b4f9vboxsyncvboxdrv_SOURCES = \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).c \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync SUPDrv.c \
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync SUPDrvSem.c
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
510567648d46488f4166e5f69ffffe3eeeeec4d9vboxsyncendif # solaris
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync#
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync# SUPDrv.c needs the VBOX_SVN_REV.
2f3883b126a405f92b19e829472f614c7352b4f9vboxsync#
7e8ef90d3160234df0f254131b87af4243d79476vboxsyncSUPDrv.c_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
7e8ef90d3160234df0f254131b87af4243d79476vboxsync
7e8ef90d3160234df0f254131b87af4243d79476vboxsync
7e8ef90d3160234df0f254131b87af4243d79476vboxsyncendif # !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_TESTSUITE
7e8ef90d3160234df0f254131b87af4243d79476vboxsyncinclude $(KBUILD_PATH)/subfooter.kmk
7e8ef90d3160234df0f254131b87af4243d79476vboxsync
7e8ef90d3160234df0f254131b87af4243d79476vboxsync