38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync# $Id$
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync## @file
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync# Sub-Makefile for Solaris Virtio drivers.
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync#
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync#
772269936494ffaddd0750ba9e28e805ba81398cvboxsync# Copyright (C) 2010-2012 Oracle Corporation
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync#
1a9a76385f412e8c5762baadaa30afe308b1cd12vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
1a9a76385f412e8c5762baadaa30afe308b1cd12vboxsync# available from http://www.virtualbox.org. This file is free software;
1a9a76385f412e8c5762baadaa30afe308b1cd12vboxsync# you can redistribute it and/or modify it under the terms of the GNU
1a9a76385f412e8c5762baadaa30afe308b1cd12vboxsync# General Public License (GPL) as published by the Free Software
1a9a76385f412e8c5762baadaa30afe308b1cd12vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
1a9a76385f412e8c5762baadaa30afe308b1cd12vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
1a9a76385f412e8c5762baadaa30afe308b1cd12vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
1a9a76385f412e8c5762baadaa30afe308b1cd12vboxsync#
1a9a76385f412e8c5762baadaa30afe308b1cd12vboxsync# The contents of this file may alternatively be used under the terms
1a9a76385f412e8c5762baadaa30afe308b1cd12vboxsync# of the Common Development and Distribution License Version 1.0
1a9a76385f412e8c5762baadaa30afe308b1cd12vboxsync# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
1a9a76385f412e8c5762baadaa30afe308b1cd12vboxsync# VirtualBox OSE distribution, in which case the provisions of the
1a9a76385f412e8c5762baadaa30afe308b1cd12vboxsync# CDDL are applicable instead of those of the GPL.
1a9a76385f412e8c5762baadaa30afe308b1cd12vboxsync#
1a9a76385f412e8c5762baadaa30afe308b1cd12vboxsync# You may elect to license modified versions of this file under the
1a9a76385f412e8c5762baadaa30afe308b1cd12vboxsync# terms and conditions of either the GPL or the CDDL or both.
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync#
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsyncSUB_DEPTH = ../../../../..
772269936494ffaddd0750ba9e28e805ba81398cvboxsyncinclude $(KBUILD_PATH)/subheader.kmk
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync
311f5949192edcff5c7f318c802722ed332d0912vboxsync#ifneq ($(KBUILD_HOST),solaris)
311f5949192edcff5c7f318c802722ed332d0912vboxsync#$(error "The Solaris guest additions can only be built on Solaris!")
311f5949192edcff5c7f318c802722ed332d0912vboxsync#endif
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync#
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync# virtionet ("virtnet" on Solaris) - The Virtio Network Drivers
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync#
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsyncSYSMODS.solaris += virtionet
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsyncvirtionet_NAME.solaris = virtnet
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsyncvirtionet_TEMPLATE = VBOXGUESTR0
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsyncvirtionet_DEFS = VBOX_WITH_HGCM VBOX_SVN_REV=$(VBOX_SVN_REV) VBOX_VERSION_STRING=\"$(VBOX_VERSION_STRING)\"
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsyncvirtionet_DEPS += $(VBOX_SVN_REV_KMK)
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsyncvirtionet_INCS := .
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsyncvirtionet_SOURCES = \
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync Virtio-solaris.c \
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync VirtioPci-solaris.c \
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync VirtioRing-solaris.c \
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync VirtioNet-solaris.c
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync# virtionet should resolve all IPRT bits from vboxguest.
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync#virtionet_LIBS = \
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync# $(VBOX_LIB_IPRT_GUEST_R0)
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsyncvirtionet_LDFLAGS += -N drv/vboxguest -N misc/mac
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync
772269936494ffaddd0750ba9e28e805ba81398cvboxsyncinclude $(FILE_KBUILD_SUB_FOOTER)
38b0f04a36431d57eed1de01653dd0a015eae4c3vboxsync