Makefile.kmk revision b61566e37afa686109e91cf0f400f03618688912
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync# Sub-Makefile for the vboxvideo DRM module (linux kernel OpenGL module).
c58f1213e628a545081c70e26c6b67a841cff880vboxsync# Copyright (C) 2006-2007 Sun Microsystems, Inc.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# available from http://www.virtualbox.org. This file is free software;
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# you can redistribute it and/or modify it under the terms of the GNU
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# General Public License (GPL) as published by the Free Software
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# Clara, CA 95054 USA or visit http://www.sun.com if you need
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# additional information or have any questions.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncSUB_DEPTH = ../../../../..
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncinclude $(KBUILD_PATH)/subheader.kmk
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncINSTALLS += vboxvideo_drm-mod vboxvideo_drm-sh
7db630a55be9d955c8ac125da609b304cbcc6010vboxsyncifdef VBOX_WITH_ADDITION_DRIVERS
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync# Only do a test build on kernels as of 2.6.27
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync SYSMODS += $(if $(strip $(foreach inc,$(VBOX_LINUX_INCS),\
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync $(wildcard $(inc)/drm/drmP.h))),vboxvideo_drm,)
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync# Populate FILES_VBOXVIDEO_DRM_NOBIN
7db630a55be9d955c8ac125da609b304cbcc6010vboxsyncinclude $(PATH_SUB_CURRENT)/files_vboxvideo_drm
bd53394d08b77c8294f14b32dd26aa4670f888eevboxsyncvboxvideo_drm-mod_INST = $(INST_ADDITIONS)src/vboxvideo_drm/
7db630a55be9d955c8ac125da609b304cbcc6010vboxsyncvboxvideo_drm-mod_MODE = a+r,u+w
bd53394d08b77c8294f14b32dd26aa4670f888eevboxsyncvboxvideo_drm-mod_SOURCES = $(subst ",,$(FILES_VBOXVIDEO_DRM_NOBIN))
7db630a55be9d955c8ac125da609b304cbcc6010vboxsyncvboxvideo_drm-mod_SOURCES += $(if $(VBOX_OSE),,\
7db630a55be9d955c8ac125da609b304cbcc6010vboxsync $(PATH_vboxvideo_drm-mod)/dkms.conf)
7db630a55be9d955c8ac125da609b304cbcc6010vboxsyncvboxvideo_drm-mod_CLEAN += $(PATH_vboxvideo_drm-mod)/dkms.conf
7db630a55be9d955c8ac125da609b304cbcc6010vboxsyncvboxvideo_drm-sh_INST = $(INST_ADDITIONS)src/vboxvideo_drm/
7db630a55be9d955c8ac125da609b304cbcc6010vboxsyncvboxvideo_drm-sh_MODE = a+rx,u+w
7db630a55be9d955c8ac125da609b304cbcc6010vboxsyncvboxvideo_drm-sh_SOURCES = $(subst ",,$(FILES_VBOXVIDEO_DRM_BIN))
$(PATH_ROOT)/src/VBox/HostDrivers/linux/do_Module.symvers)
vboxvideo_drm_SOURCES = vboxvideo_drm.c
$(if $(wildcard $(inc)/linux/utsrelease.h),\
$(if $(shell if grep -q '"2.6.18.*fc6.*"' $(inc)/linux/utsrelease.h;\
$(if $(wildcard $(inc)/linux/utsrelease.h),\
$(if $(shell if grep -q '"2.6.18.*el5.*"' $(inc)/linux/utsrelease.h;\
$(PATH_ROOT)/src/VBox/HostDrivers/linux/build_in_tmp \
$$(PATH_vboxvideo_drm-mod)/dkms.conf: \
$(PATH_SUB_CURRENT)/dkms.conf \
include $(KBUILD_PATH)/subfooter.kmk