Makefile.kmk revision 545db23ede9fa0e3ee08a424afd232d4e0420660
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# $Id$
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync## @file
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# Sub-Makefile for the Solaris Shared folder kernel module.
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync#
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync#
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# Copyright (C) 2008-2012 Oracle Corporation
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync#
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# available from http://www.virtualbox.org. This file is free software;
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# you can redistribute it and/or modify it under the terms of the GNU
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# General Public License (GPL) as published by the Free Software
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync#
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# The contents of this file may alternatively be used under the terms
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# of the Common Development and Distribution License Version 1.0
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# VirtualBox OSE distribution, in which case the provisions of the
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# CDDL are applicable instead of those of the GPL.
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync#
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# You may elect to license modified versions of this file under the
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# terms and conditions of either the GPL or the CDDL or both.
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync#
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncSUB_DEPTH = ../../../../..
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncinclude $(KBUILD_PATH)/subheader.kmk
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync#ifneq ($(KBUILD_HOST),solaris)
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync#$(error "The Solaris guest additions can only be built on Solaris!")
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync#endif
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync#
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# vboxfs - The Shared Folder Driver
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync#
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncSYSMODS.solaris += vboxfs
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncvboxfs_TEMPLATE = VBOXGUESTR0
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncvboxfs_DEFS = VBOX_WITH_HGCM VBOX_SVN_REV=$(VBOX_SVN_REV)
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncvboxfs_DEPS += $(VBOX_SVN_REV_KMK)
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncvboxfs_INCS := \
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync .
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncvboxfs_SOURCES = \
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync vboxfs_vfs.c \
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync vboxfs_vnode.c \
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync vboxfs_prov.c
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncvboxfs_LIBS = \
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync $(VBOX_LIB_VBGL_R0)
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncifeq ($(KBUILD_HOST),solaris)
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync vboxfs_LDFLAGS.solaris += -N drv/vboxguest -N misc/ctf
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncelse
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync vboxfs_SOURCES += deps.asm
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync vboxfs_deps.asm_ASFLAGS = -f bin -g null
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncendif
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncif $(VBOX_SOLARIS_11_VERSION) >= 175
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync && $(VBOX_SOLARIS_11_UPDATE_VERSION) >= 1
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync && $(VBOX_SOLARIS_11_BUILD_VERSION) >= 10
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncvboxfs_DEFS += VBOX_VFS_EXTENDED_POLICY
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncendif
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncifndef VBOX_OSE
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync#
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync# vboxfs_s10 - The Shared Folder Driver for Solaris 10
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync#
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncSYSMODS.solaris += vboxfs_s10
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncvboxfs_s10_TEMPLATE = VBOXGUESTR0
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncvboxfs_s10_DEFS = VBOX_WITH_HGCM VBOX_VFS_SOLARIS_10U6 VBOX_SVN_REV=$(VBOX_SVN_REV)
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncvboxfs_s10_DEPS += $(VBOX_SVN_REV_KMK)
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncvboxfs_s10_INCS := solaris10/
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncvboxfs_s10_SOURCES = \
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync vboxfs_vfs.c \
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync vboxfs_vnode.c \
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync vboxfs_prov.c
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncvboxfs_s10_LIBS = \
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync $(VBOX_LIB_VBGL_R0) \
2ff004294d896cf7fb4f3a5636423da9052b1d58vboxsync $(VBOX_LIB_IPRT_GUEST_R0)
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncifeq ($(KBUILD_HOST),solaris)
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync vboxfs_s10_LDFLAGS += -N drv/vboxguest -N misc/ctf
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncelse
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync vboxfs_s10_SOURCES += deps.asm
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsync vboxfs_s10_deps.asm_ASFLAGS = -f bin -g null
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncendif
46192b2e5dd6b322ba3d1aae79e97074d50cdf89vboxsyncendif # VBOX_OSE
#
# mount - Userland mount wrapper for vboxfs
#
PROGRAMS += vboxfsmount
vboxfsmount_TEMPLATE = NewVBoxGuestR3Exe
vboxfsmount_SOURCES = vboxfs_mount.c
include $(FILE_KBUILD_SUB_FOOTER)