Makefile.kmk revision a5a29cca5f660cf4df8026f01145d51d3ae43ef2
c79e39ad568d9af854765f64049534044ef6c034nd# Makefile for the Cross Platform Guest Additions Driver.
c79e39ad568d9af854765f64049534044ef6c034nd# Copyright (C) 2007 Oracle Corporation
c79e39ad568d9af854765f64049534044ef6c034nd# This file is part of VirtualBox Open Source Edition (OSE), as
c79e39ad568d9af854765f64049534044ef6c034nd# available from http://www.virtualbox.org. This file is free software;
0a05fab9aadd37834734ffe106fc8ad4488fb3e3rbowen# you can redistribute it and/or modify it under the terms of the GNU
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem# General Public License (GPL) as published by the Free Software
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem# Foundation, in version 2 as it comes in the "COPYING" file of the
c79e39ad568d9af854765f64049534044ef6c034nd# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
c79e39ad568d9af854765f64049534044ef6c034nd# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
include $(KBUILD_PATH)/subheader.kmk
VBoxGuest_NAME.freebsd = vboxguest
VBoxGuest_NAME.linux = vboxguest
VBoxGuest_NAME.solaris = vboxguest
VBoxGuest_NOINST.linux = true
VBoxGuest_DEFS.linux = KBUILD_MODNAME=KBUILD_STR\(vboxguest\) KBUILD_BASENAME=KBUILD_STR\(vboxguest\) DEBUG_HASH=2 DEBUG_HASH2=3 EXPORT_SYMTAB
VBoxGuest_DEFS.solaris = VBOX_SVN_REV=$(VBOX_SVN_REV)
VBoxGuest_DEPS.solaris += $(VBOX_SVN_REV_KMK)
VBoxGuest_DEPS.linux += $(VBOX_SVN_REV_HEADER)
VBoxGuest_DEPS.freebsd += $(VBOX_SVN_REV_HEADER)
VBoxGuest_INCS.freebsd = $(PATH_VBoxGuest) $(PATH_INS)/gen-sys-hdrs
VBoxHelper.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
$(PATH_INS)/gen-sys-hdrs/pci_if.h \
$(PATH_INS)/gen-sys-hdrs/bus_if.h \
$(PATH_INS)/gen-sys-hdrs/device_if.h
# A library is used to make sure that VBoxGuestA-os2.asm is first in the link. (temporary hack?)
$(PATH_ROOT)/src/VBox/Runtime/include # for the os2ddk
include $(PATH_SUB_CURRENT)/linux/files_vboxguest
vboxguest-src_INST = $(INST_ADDITIONS)src/vboxguest/
vboxguest-src_SOURCES += $(if $(VBOX_OSE),,$(vboxguest-sh_0_OUTDIR)/dkms.conf)
vboxguest-src_CLEAN = $(vboxguest-sh_0_OUTDIR)/dkms.conf
$$(vboxguest-sh_0_OUTDIR)/dkms.conf: \
$(PATH_SUB_CURRENT)/linux/dkms.conf \
vboxguest-sh_INST = $(INST_ADDITIONS)src/vboxguest/
vboxguest-sh_SOURCES += $(if $(VBOX_OSE),,$(PATH_ROOT)/src/VBox/HostDrivers/linux/do_Module.symvers)
$(PATH_ROOT)/src/VBox/HostDrivers/linux/build_in_tmp \
$(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxguest;g; s;_BUILDTYPE_;${KBUILD_TYPE};g" --output $@ $<
include $(PATH_SUB_CURRENT)/freebsd/files_vboxguest
vboxguest-src_INST = $(INST_ADDITIONS)src/vboxguest/
include $(KBUILD_PATH)/subfooter.kmk