Makefile.kmk revision c9bfdb1b8225e3e051e9ec4e2ed64e0aa57297c9
1ef682c649d3f26392a8b7a091337adb78ddd87dvboxsync# $Id$
b2640405e06105d868b5fc8f7b676bb680884380vboxsync## @file
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# Sub-Makefile for the support library and the drivers/modules/kexts it uses.
1ef682c649d3f26392a8b7a091337adb78ddd87dvboxsync#
1ef682c649d3f26392a8b7a091337adb78ddd87dvboxsync
1ef682c649d3f26392a8b7a091337adb78ddd87dvboxsync#
1ef682c649d3f26392a8b7a091337adb78ddd87dvboxsync# Copyright (C) 2006-2007 innotek GmbH
b2640405e06105d868b5fc8f7b676bb680884380vboxsync#
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# available from http://www.virtualbox.org. This file is free software;
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# you can redistribute it and/or modify it under the terms of the GNU
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# General Public License as published by the Free Software Foundation,
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# distribution. VirtualBox OSE is distributed in the hope that it will
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# be useful, but WITHOUT ANY WARRANTY of any kind.
b2640405e06105d868b5fc8f7b676bb680884380vboxsync#
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# If you received this file as part of a commercial VirtualBox
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# distribution, then only the terms of your commercial VirtualBox
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# license agreement apply instead of the previous paragraph.
b2640405e06105d868b5fc8f7b676bb680884380vboxsync#
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncDEPTH ?= ../../../..
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncSUB_DEPTH = ..
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncinclude $(PATH_KBUILD)/subheader.kmk
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync#
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# Targets
b2640405e06105d868b5fc8f7b676bb680884380vboxsync#
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncLIBRARIES += SUPR3
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncifneq ($(filter-out darwin,$(BUILD_TARGET)),)
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncLIBRARIES += SUPR0
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncendif
8ad79874169cc981a694a15e8a806b9a39133673vboxsyncifdef VBOX_WITH_VBOXDRV
8ad79874169cc981a694a15e8a806b9a39133673vboxsyncSYSMODS.darwin += VBoxDrv
8ad79874169cc981a694a15e8a806b9a39133673vboxsyncSYSMODS.freebsd += vboxdrv
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncSYSMODS.linux += vboxdrv
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncSYSMODS.win += VBoxDrv
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncSYSMODS.os2 += VBoxDrv
543d2dd34b3036927165be4f72c0cccd85daaa33vboxsyncendif
543d2dd34b3036927165be4f72c0cccd85daaa33vboxsync
543d2dd34b3036927165be4f72c0cccd85daaa33vboxsyncINSTALLS.linux = vboxmod-bin vboxmod-sh
543d2dd34b3036927165be4f72c0cccd85daaa33vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync#
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# Include sub-makefile(s).
b2640405e06105d868b5fc8f7b676bb680884380vboxsync#
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncinclude $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync#
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# Populate FILES_VBOXDRV_NOBIN and FILES_VBOXDRV_BIN
b2640405e06105d868b5fc8f7b676bb680884380vboxsync#
bda3dd52e256c637c703aecf163ecc5b682a43a4vboxsyncinclude $(PATH_SUB_CURRENT)/linux/files_vboxdrv
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncvboxmod-bin_INST = bin/src/
8ad79874169cc981a694a15e8a806b9a39133673vboxsyncvboxmod-bin_MODE = a+r,u+w
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncvboxmod-bin_SOURCES = $(subst ",,$(FILES_VBOXDRV_NOBIN)) #"
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncvboxmod-sh_INST = bin/src/
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncvboxmod-sh_MODE = a+rx,u+w
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncvboxmod-sh_SOURCES = $(subst ",,$(FILES_VBOXDRV_BIN)) #"
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync#
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# The Ring-3 Support Library (this is linked into the IPRT dll, VBoxRT).
b2640405e06105d868b5fc8f7b676bb680884380vboxsync#
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncifneq ($(filter l4%,$(BUILD_TARGET) $(BUILD_TARGET_SUB)),)
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# L4 has trouble with -pedantic. It also make trouble when inlining is not enabled.
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncSUPR3_TEMPLATE = VBOXR3NP
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncelse
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncSUPR3_TEMPLATE = VBOXR3
8ad79874169cc981a694a15e8a806b9a39133673vboxsyncendif
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncSUPR3_DEFS = IN_SUP_R3 IN_RT_R3
a57b3586d0f1a87e0024e318f3c8dad382113611vboxsyncSUPR3_INCS := $(PATH_SUB_CURRENT)
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncSUPR3_INCS.l4 = $(L4_INCDIR)
a57b3586d0f1a87e0024e318f3c8dad382113611vboxsyncSUPR3_SOURCES = \
b2640405e06105d868b5fc8f7b676bb680884380vboxsync SUPLib.cpp \
b2640405e06105d868b5fc8f7b676bb680884380vboxsync $(BUILD_TARGET)/SUPLib-$(BUILD_TARGET).cpp
8ad79874169cc981a694a15e8a806b9a39133673vboxsync
a57b3586d0f1a87e0024e318f3c8dad382113611vboxsync#
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# SUPR0 - The Ring-0 Import / Thunk library.
b2640405e06105d868b5fc8f7b676bb680884380vboxsync#
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncSUPR0_TEMPLATE = VBOXR0
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncifeq ($(VBOX_LDR_FMT),pe)
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncSUPR0_SOURCES += SUPR0.def
a57b3586d0f1a87e0024e318f3c8dad382113611vboxsyncendif
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncifeq ($(VBOX_LDR_FMT),lx)
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncSUPR0_SOURCES += $(PATH_TARGET)/SUPR0.def
b2640405e06105d868b5fc8f7b676bb680884380vboxsync$(PATH_TARGET)/SUPR0.def: $(PATH_SUB_CURRENT)/SUPR0.def | $(call DIRDEP,$(PATH_TARGET))
b2640405e06105d868b5fc8f7b676bb680884380vboxsync $(SED) -e 's/^[ \t][ \t]*\([gA-Z]\)/ _\1/' -e 's/[ \t]DATA[ \t]*/ /' $< > $@.tmp
b2640405e06105d868b5fc8f7b676bb680884380vboxsync $(MV) -f $@.tmp $@
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncendif
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync#
8ad79874169cc981a694a15e8a806b9a39133673vboxsync# VBoxDrv.sys - The Windows driver.
b2640405e06105d868b5fc8f7b676bb680884380vboxsync#
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncifeq ($(BUILD_TARGET),win)
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv_TEMPLATE = VBOXR0DRV
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncifdef VBOX_SIGNING_MODE
b2640405e06105d868b5fc8f7b676bb680884380vboxsync VBoxDrv_NOINST = true
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncendif
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv_DEFS = IN_RT_R0 IN_SUP_R0
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv_SDKS = W2K3DDK WINPSDKINCS
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv_INCS := $(PATH_SUB_CURRENT)
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv_SOURCES = \
8ad79874169cc981a694a15e8a806b9a39133673vboxsync win/SUPDrv-win.cpp \
b2640405e06105d868b5fc8f7b676bb680884380vboxsync win/SUPDrvA-win.asm \
b2640405e06105d868b5fc8f7b676bb680884380vboxsync SUPDRVShared.c
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv_LDFLAGS.x86 = -Entry:DriverEntry@8
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv_LDFLAGS.amd64 = -Entry:DriverEntry
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv_LIBS = \
a57b3586d0f1a87e0024e318f3c8dad382113611vboxsync $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
b2640405e06105d868b5fc8f7b676bb680884380vboxsync $(PATH_SDK_W2K3DDK_LIB)/hal.lib \
b2640405e06105d868b5fc8f7b676bb680884380vboxsync $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncINSTALLS += VBoxDrv-inf
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv-inf_INST = $(INST_BIN)
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv-inf_MODE = a+r,u+w
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv-inf_SOURCES = \
b2640405e06105d868b5fc8f7b676bb680884380vboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.inf
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv-inf_CLEAN = $(VBoxDrv-inf_SOURCES)
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv-inf_BLDDIRS = $(PATH_TARGET)/VBoxDrvCat.dir
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync$(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.inf: $(PATH_SUB_CURRENT)/win/VBoxDrv.inf $(MAKEFILE_CURRENT) | $$(call DIRDEP,$$(@D))
b2640405e06105d868b5fc8f7b676bb680884380vboxsync $(call MSG_GENERATE,VBoxDrv-inf,$@,$<)
b2640405e06105d868b5fc8f7b676bb680884380vboxsync $(call VBOX_EDIT_INF_FN,$<,$@)
a57b3586d0f1a87e0024e318f3c8dad382113611vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync ifdef VBOX_SIGNING_MODE
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv-inf_SOURCES += \
b2640405e06105d868b5fc8f7b676bb680884380vboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.sys \
b2640405e06105d868b5fc8f7b676bb680884380vboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.cat
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync$(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.sys: $$(TARGET_VBoxDrv) | $$(call DIRDEP,$$(@D))
b2640405e06105d868b5fc8f7b676bb680884380vboxsync $(INSTALL) -m 644 $< $(@D)
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync$(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.cat: \
b2640405e06105d868b5fc8f7b676bb680884380vboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.inf \
8ad79874169cc981a694a15e8a806b9a39133673vboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.cat
a57b3586d0f1a87e0024e318f3c8dad382113611vboxsync $(call MSG_TOOL,Inf2Cat,VBoxDrv-inf,$@,$<)
b2640405e06105d868b5fc8f7b676bb680884380vboxsync $(call VBOX_MAKE_CAT_FN, $(@D),$@)
b2640405e06105d868b5fc8f7b676bb680884380vboxsync endif # signing
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncendif # win
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync#
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# vboxdrv.ko - The Linux Kernel Module (syntax only).
8ad79874169cc981a694a15e8a806b9a39133673vboxsync#
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsyncifeq ($(BUILD_TARGET),linux)
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsyncvboxdrv_TEMPLATE = VBOXR0DRV
8ad79874169cc981a694a15e8a806b9a39133673vboxsyncvboxdrv_DEFS = KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) MODULE IN_RT_R0 IN_SUP_R0 CONFIG_VBOXDRV_AS_MISC
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncvboxdrv_INCS := $(PATH_SUB_CURRENT)
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncvboxdrv_LIBS = $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncvboxdrv_LIBS.debug = $(vboxdrv_LIBS) $(VBOX_GCC_LIBGCC)
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncvboxdrv_SOURCES = \
8ad79874169cc981a694a15e8a806b9a39133673vboxsync $(BUILD_TARGET)/SUPDrv-$(BUILD_TARGET).c \
b2640405e06105d868b5fc8f7b676bb680884380vboxsync SUPDRVShared.c
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncifndef VBOX_LINUX_VERSION_2_4
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncvboxdrv_SOURCES += \
b2640405e06105d868b5fc8f7b676bb680884380vboxsync $(BUILD_TARGET)/SUPDrv-$(BUILD_TARGET).mod.c
8ad79874169cc981a694a15e8a806b9a39133673vboxsyncendif
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncendif # real linux
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync#
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# VBoxDrv.kext - The Darwin Kernel Extension.
8ad79874169cc981a694a15e8a806b9a39133673vboxsync#
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncifeq ($(BUILD_TARGET),darwin)
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv_TEMPLATE = VBOXR0DRV
2347f07aa55c4c0035118a2a1634e5187a3ffdf4vboxsyncVBoxDrv_DEFS = IN_RT_R0 IN_SUP_R0 USE_NEW_OS_INTERFACE
eb4f1fa4c357485330370c0eaba27e5a2af7d9c4vboxsyncVBoxDrv_DEFS += DEBUG_DARWIN_GIP
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv_INCS := $(PATH_SUB_CURRENT)
8ad79874169cc981a694a15e8a806b9a39133673vboxsyncVBoxDrv_LIBS = $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv_LDFLAGS = -v -Wl,-whyload -Wl,-v -Wl,-whatsloaded
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrv_INST = $(INST_VBOXDRV)Contents/MacOS/
8ad79874169cc981a694a15e8a806b9a39133673vboxsyncVBoxDrv_SOURCES = \
b2640405e06105d868b5fc8f7b676bb680884380vboxsync SUPDRVShared.c \
083344b49cc7370da15d3cb7e3a9c9cb2d8dfbb0vboxsync $(BUILD_TARGET)/SUPDrv-$(BUILD_TARGET).cpp
083344b49cc7370da15d3cb7e3a9c9cb2d8dfbb0vboxsync
083344b49cc7370da15d3cb7e3a9c9cb2d8dfbb0vboxsyncINSTALLS += VBoxDrv.kext
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsyncVBoxDrv.kext_INST = $(INST_VBOXDRV)Contents/
083344b49cc7370da15d3cb7e3a9c9cb2d8dfbb0vboxsyncVBoxDrv.kext_SOURCES = \
8ad79874169cc981a694a15e8a806b9a39133673vboxsync $(PATH_TARGET)/Info.plist
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync$(PATH_TARGET)/Info.plist: $(PATH_SUB_CURRENT)/darwin/Info.plist $(VBOX_VERSION_MK) | $(call DIRDEP,$(PATH_TARGET))
8ad79874169cc981a694a15e8a806b9a39133673vboxsync $(call MSG_GENERATE,VBoxDrv,$@,$<)
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync $(xQUIET)$(RM) -f $@
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync $(xQUIET)$(SED) \
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync $< > $@
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync
083344b49cc7370da15d3cb7e3a9c9cb2d8dfbb0vboxsyncINSTALLS += Scripts
083344b49cc7370da15d3cb7e3a9c9cb2d8dfbb0vboxsyncScripts_INST = $(INST_DIST)
083344b49cc7370da15d3cb7e3a9c9cb2d8dfbb0vboxsyncScripts_SOURCES = \
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync darwin/load.sh
083344b49cc7370da15d3cb7e3a9c9cb2d8dfbb0vboxsync
8ad79874169cc981a694a15e8a806b9a39133673vboxsyncendif # darwin
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync#
b0a3d0ec5780199a2f379da63c59ccf48f1a73b9vboxsync# VBoxDrv.sys - The OS/2 driver.
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync#
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsyncifeq ($(BUILD_TARGET),os2)
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsyncVBoxDrv_TEMPLATE = VBOXR0DRV
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsyncVBoxDrv_DEFS = IN_RT_R0 IN_SUP_R0 USE_NEW_OS_INTERFACE
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsyncVBoxDrv_INCS := $(PATH_SUB_CURRENT)
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync#VBoxDrv_LDFLAGS = -s -t -v
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsyncVBoxDrv_SOURCES = \
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync os2/SUPDrvA-os2.asm \
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync os2/SUPDrv-os2.def
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsyncVBoxDrv_LIBS = \
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync $(TARGET_VBoxDrvLib) \
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) \
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync $(VBOX_GCC_LIBGCC) \
b2640405e06105d868b5fc8f7b676bb680884380vboxsync end
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync# temp hack to ensure that SUPDrvA-os2.asm is first in the link.
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncLIBRARIES += VBoxDrvLib
8ad79874169cc981a694a15e8a806b9a39133673vboxsyncVBoxDrvLib_TEMPLATE = VBOXR0DRV
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrvLib_NOINST = 1
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncVBoxDrvLib_DEFS = IN_RT_R0 IN_SUP_R0 USE_NEW_OS_INTERFACE
8ad79874169cc981a694a15e8a806b9a39133673vboxsyncVBoxDrvLib_INCS := \
b2640405e06105d868b5fc8f7b676bb680884380vboxsync $(PATH_SUB_CURRENT) \
a57b3586d0f1a87e0024e318f3c8dad382113611vboxsync $(PATH_TARGET) \
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync $(PATH_ROOT)/src/VBox/Runtime/include
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsyncVBoxDrvLib_SOURCES = \
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync os2/SUPDrv-os2.cpp \
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync SUPDRVShared.c
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsyncendif
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync#
3383321ffc6907012f92f16b26b026908de7fe7fvboxsync# vboxdrv.ko - The FreeBSD Kernel Module.
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync#
3383321ffc6907012f92f16b26b026908de7fe7fvboxsyncifeq ($(BUILD_TARGET),freebsd)
8ad79874169cc981a694a15e8a806b9a39133673vboxsyncvboxdrv_TEMPLATE = VBOXR0DRV
3383321ffc6907012f92f16b26b026908de7fe7fvboxsyncvboxdrv_DEFS = IN_RT_R0 IN_SUP_R0 USE_NEW_OS_INTERFACE
69dc1a8b612032236f9f04033e7c53ce7a478f17vboxsyncvboxdrv_INCS := $(PATH_SUB_CURRENT)
485e602154df33e5466e0dcca16d8f97914ce41dvboxsyncvboxdrv_LIBS = $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
485e602154df33e5466e0dcca16d8f97914ce41dvboxsyncvboxdrv_SOURCES = \
3383321ffc6907012f92f16b26b026908de7fe7fvboxsync $(BUILD_TARGET)/SUPDrv-$(BUILD_TARGET).c
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync# SUPDRVShared.c
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsyncendif # freebsd
0c802efc285bf77b849eaf660a9c18a0e7f62445vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsyncinclude $(PATH_KBUILD)/subfooter.kmk
b2640405e06105d868b5fc8f7b676bb680884380vboxsync
b2640405e06105d868b5fc8f7b676bb680884380vboxsync