43c04700c331df89380608490a9c65582845dea8vboxsync# $Id$
43c04700c331df89380608490a9c65582845dea8vboxsync## @file
43c04700c331df89380608490a9c65582845dea8vboxsync# Sub-Makefile for the Solaris Mouse Integration kernel module.
43c04700c331df89380608490a9c65582845dea8vboxsync#
43c04700c331df89380608490a9c65582845dea8vboxsync
43c04700c331df89380608490a9c65582845dea8vboxsync#
43c04700c331df89380608490a9c65582845dea8vboxsync# Copyright (C) 2012 Oracle Corporation
43c04700c331df89380608490a9c65582845dea8vboxsync#
43c04700c331df89380608490a9c65582845dea8vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
43c04700c331df89380608490a9c65582845dea8vboxsync# available from http://www.virtualbox.org. This file is free software;
43c04700c331df89380608490a9c65582845dea8vboxsync# you can redistribute it and/or modify it under the terms of the GNU
43c04700c331df89380608490a9c65582845dea8vboxsync# General Public License (GPL) as published by the Free Software
43c04700c331df89380608490a9c65582845dea8vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
43c04700c331df89380608490a9c65582845dea8vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
43c04700c331df89380608490a9c65582845dea8vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
43c04700c331df89380608490a9c65582845dea8vboxsync#
43c04700c331df89380608490a9c65582845dea8vboxsync# The contents of this file may alternatively be used under the terms
43c04700c331df89380608490a9c65582845dea8vboxsync# of the Common Development and Distribution License Version 1.0
43c04700c331df89380608490a9c65582845dea8vboxsync# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
43c04700c331df89380608490a9c65582845dea8vboxsync# VirtualBox OSE distribution, in which case the provisions of the
43c04700c331df89380608490a9c65582845dea8vboxsync# CDDL are applicable instead of those of the GPL.
43c04700c331df89380608490a9c65582845dea8vboxsync#
43c04700c331df89380608490a9c65582845dea8vboxsync# You may elect to license modified versions of this file under the
43c04700c331df89380608490a9c65582845dea8vboxsync# terms and conditions of either the GPL or the CDDL or both.
43c04700c331df89380608490a9c65582845dea8vboxsync#
43c04700c331df89380608490a9c65582845dea8vboxsync
43c04700c331df89380608490a9c65582845dea8vboxsyncSUB_DEPTH = ../../../../..
43c04700c331df89380608490a9c65582845dea8vboxsyncinclude $(KBUILD_PATH)/subheader.kmk
43c04700c331df89380608490a9c65582845dea8vboxsync
43c04700c331df89380608490a9c65582845dea8vboxsync#ifneq ($(KBUILD_HOST),solaris)
43c04700c331df89380608490a9c65582845dea8vboxsync#$(error "The Solaris guest additions can only be built on Solaris!")
43c04700c331df89380608490a9c65582845dea8vboxsync#endif
43c04700c331df89380608490a9c65582845dea8vboxsync
43c04700c331df89380608490a9c65582845dea8vboxsync#
1b9094e9e0e2b6dc15ba937a7d4b14736aea339evboxsync# vboxms - The Mouse Integration Driver
43c04700c331df89380608490a9c65582845dea8vboxsync#
1b9094e9e0e2b6dc15ba937a7d4b14736aea339evboxsyncSYSMODS.solaris += vboxms
1b9094e9e0e2b6dc15ba937a7d4b14736aea339evboxsyncvboxms_TEMPLATE = VBOXGUESTR0
1b9094e9e0e2b6dc15ba937a7d4b14736aea339evboxsyncvboxms_DEFS = VBOX_WITH_HGCM VBOX_SVN_REV=$(VBOX_SVN_REV)
1b9094e9e0e2b6dc15ba937a7d4b14736aea339evboxsyncvboxms_DEPS += $(VBOX_SVN_REV_KMK)
1b9094e9e0e2b6dc15ba937a7d4b14736aea339evboxsyncvboxms_SOURCES = \
cec86a0653c8db4f926c25635b6ccc19ced63db1vboxsync vboxms.c
1b9094e9e0e2b6dc15ba937a7d4b14736aea339evboxsyncvboxms_LIBS = \
43c04700c331df89380608490a9c65582845dea8vboxsync $(VBOX_LIB_VBGL_R0)
43c04700c331df89380608490a9c65582845dea8vboxsyncifeq ($(KBUILD_HOST),solaris)
1b9094e9e0e2b6dc15ba937a7d4b14736aea339evboxsync vboxms_LDFLAGS += -N drv/vboxguest -N misc/ctf
43c04700c331df89380608490a9c65582845dea8vboxsyncelse
1b9094e9e0e2b6dc15ba937a7d4b14736aea339evboxsync vboxms_SOURCES += deps.asm
1b9094e9e0e2b6dc15ba937a7d4b14736aea339evboxsync vboxms_deps.asm_ASFLAGS = -f bin -g null
43c04700c331df89380608490a9c65582845dea8vboxsyncendif
43c04700c331df89380608490a9c65582845dea8vboxsync
43c04700c331df89380608490a9c65582845dea8vboxsync
1e8e6dafea44639287a9eef809e6ad287de59642vboxsyncPROGRAMS += vboxmslnk
1e8e6dafea44639287a9eef809e6ad287de59642vboxsyncvboxmslnk_TEMPLATE = NewVBoxGuestR3Exe
1e8e6dafea44639287a9eef809e6ad287de59642vboxsyncvboxmslnk_SOURCES = vboxmslnk.c
1e8e6dafea44639287a9eef809e6ad287de59642vboxsync
1e8e6dafea44639287a9eef809e6ad287de59642vboxsync
84c0c253d9cf30c4e3973de891c5c1a95b5e9485vboxsyncif 0 # Broken - unresolved externals: vbglDriver*, RTR0AssertPanicSystem.
43c04700c331df89380608490a9c65582845dea8vboxsyncif defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
43c04700c331df89380608490a9c65582845dea8vboxsync PROGRAMS += tstVBoxMouse-solaris
43c04700c331df89380608490a9c65582845dea8vboxsync tstVBoxMouse-solaris_TEMPLATE = VBOXR3TSTEXE
43c04700c331df89380608490a9c65582845dea8vboxsync tstVBoxMouse-solaris_SOURCES = \
cec86a0653c8db4f926c25635b6ccc19ced63db1vboxsync vboxms.c \
43c04700c331df89380608490a9c65582845dea8vboxsync testcase/tstVBoxMouse-solaris.c
43c04700c331df89380608490a9c65582845dea8vboxsync tstVBoxMouse-solaris_DEFS = TESTCASE
43c04700c331df89380608490a9c65582845dea8vboxsync tstVBoxMouse-solaris_LIBS = $(LIB_RUNTIME)
43c04700c331df89380608490a9c65582845dea8vboxsyncendif
84c0c253d9cf30c4e3973de891c5c1a95b5e9485vboxsyncendif
43c04700c331df89380608490a9c65582845dea8vboxsync
43c04700c331df89380608490a9c65582845dea8vboxsyncinclude $(KBUILD_PATH)/subfooter.kmk
43c04700c331df89380608490a9c65582845dea8vboxsync