26456d1900aba0e903e6e1beec552396618322e2vboxsync# $Id$
26456d1900aba0e903e6e1beec552396618322e2vboxsync## @file
26456d1900aba0e903e6e1beec552396618322e2vboxsync# Sub-Makefile for the vboxvideo DRM module (Solaris kernel OpenGL module).
26456d1900aba0e903e6e1beec552396618322e2vboxsync#
26456d1900aba0e903e6e1beec552396618322e2vboxsync
26456d1900aba0e903e6e1beec552396618322e2vboxsync#
772269936494ffaddd0750ba9e28e805ba81398cvboxsync# Copyright (C) 2009-2012 Oracle Corporation
26456d1900aba0e903e6e1beec552396618322e2vboxsync#
26456d1900aba0e903e6e1beec552396618322e2vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
26456d1900aba0e903e6e1beec552396618322e2vboxsync# available from http://www.virtualbox.org. This file is free software;
26456d1900aba0e903e6e1beec552396618322e2vboxsync# you can redistribute it and/or modify it under the terms of the GNU
26456d1900aba0e903e6e1beec552396618322e2vboxsync# General Public License (GPL) as published by the Free Software
26456d1900aba0e903e6e1beec552396618322e2vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
26456d1900aba0e903e6e1beec552396618322e2vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
26456d1900aba0e903e6e1beec552396618322e2vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
26456d1900aba0e903e6e1beec552396618322e2vboxsync#
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync# The contents of this file may alternatively be used under the terms
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync# of the Common Development and Distribution License Version 1.0
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync# VirtualBox OSE distribution, in which case the provisions of the
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync# CDDL are applicable instead of those of the GPL.
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync#
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync# You may elect to license modified versions of this file under the
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync# terms and conditions of either the GPL or the CDDL or both.
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync#
26456d1900aba0e903e6e1beec552396618322e2vboxsync
26456d1900aba0e903e6e1beec552396618322e2vboxsync
26456d1900aba0e903e6e1beec552396618322e2vboxsyncSUB_DEPTH = ../../../../..
772269936494ffaddd0750ba9e28e805ba81398cvboxsyncinclude $(KBUILD_PATH)/subheader.kmk
26456d1900aba0e903e6e1beec552396618322e2vboxsync
311f5949192edcff5c7f318c802722ed332d0912vboxsync#ifneq ($(KBUILD_HOST),solaris)
311f5949192edcff5c7f318c802722ed332d0912vboxsync#$(error "The Solaris guest additions can only be built on Solaris!")
311f5949192edcff5c7f318c802722ed332d0912vboxsync#endif
26456d1900aba0e903e6e1beec552396618322e2vboxsync
26456d1900aba0e903e6e1beec552396618322e2vboxsync#
26456d1900aba0e903e6e1beec552396618322e2vboxsync# vboxvideo - The Video DRM (Direct Rendering Module) kernel module
26456d1900aba0e903e6e1beec552396618322e2vboxsync#
26456d1900aba0e903e6e1beec552396618322e2vboxsyncSYSMODS.solaris += vboxvideo
26456d1900aba0e903e6e1beec552396618322e2vboxsyncvboxvideo_TEMPLATE = VBOXGUESTR0
26456d1900aba0e903e6e1beec552396618322e2vboxsyncvboxvideo_DEFS = VBOX_WITH_HGCM VBOX_SVN_REV=$(VBOX_SVN_REV)
26456d1900aba0e903e6e1beec552396618322e2vboxsyncvboxvideo_DEPS += $(VBOX_SVN_REV_KMK)
26456d1900aba0e903e6e1beec552396618322e2vboxsyncvboxvideo_INCS := \
26456d1900aba0e903e6e1beec552396618322e2vboxsync include/
26456d1900aba0e903e6e1beec552396618322e2vboxsyncvboxvideo_SOURCES = \
26456d1900aba0e903e6e1beec552396618322e2vboxsync vboxvideo_drm.c
26456d1900aba0e903e6e1beec552396618322e2vboxsyncvboxvideo_LIBS = \
26456d1900aba0e903e6e1beec552396618322e2vboxsync $(VBOX_LIB_VBGL_R0) \
26456d1900aba0e903e6e1beec552396618322e2vboxsync $(VBOX_LIB_IPRT_GUEST_R0)
ebfca097623117acf7fae0511dac2f0584947a0avboxsyncifeq ($(KBUILD_HOST),solaris)
128459882f097db9ac9b0db14be446a16f6cd0b1vboxsync vboxvideo_LDFLAGS += -N misc/drm
ebfca097623117acf7fae0511dac2f0584947a0avboxsyncelse
128459882f097db9ac9b0db14be446a16f6cd0b1vboxsync vboxvideo_SOURCES += deps.asm
128459882f097db9ac9b0db14be446a16f6cd0b1vboxsync vboxvideo_deps.asm_ASFLAGS = -f bin -g null
ebfca097623117acf7fae0511dac2f0584947a0avboxsyncendif
26456d1900aba0e903e6e1beec552396618322e2vboxsync
26456d1900aba0e903e6e1beec552396618322e2vboxsync
772269936494ffaddd0750ba9e28e805ba81398cvboxsyncinclude $(FILE_KBUILD_SUB_FOOTER)
26456d1900aba0e903e6e1beec552396618322e2vboxsync