Makefile.kmk revision 8161020821499b941febdacc7d42e994b84630dd
# $Id$
## @file
# Makefile for the VirtualBox Linux Guest Additions Kernel Module.
#
#
# Copyright (C) 2006 InnoTek Systemberatung GmbH
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License as published by the Free Software Foundation,
# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
# distribution. VirtualBox OSE is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY of any kind.
#
# If you received this file as part of a commercial VirtualBox
# distribution, then only the terms of your commercial VirtualBox
# license agreement apply instead of the previous paragraph.
#
DEPTH = ../../../../..
include $(PATH_KBUILD)/header.kmk
INSTALLS = vboxmod-bin vboxmod-sh
ifdef VBOX_WITH_LINUX_ADDITIONS_32BIT_R0
SYSMODS = vboxadd
endif
#
# Populate FILES_VBOXADD_NOBIN and FILES_VBOXADD_BIN
#
include files_vboxadd
vboxmod-bin_INST = bin/additions/src/vboxadd/
vboxmod-bin_MODE = a+r,u+w
vboxmod-bin_SOURCES = $(subst ",,$(FILES_VBOXADD_NOBIN))
vboxmod-sh_INST = bin/additions/src/vboxadd/
vboxmod-sh_MODE = a+rx,u+w
vboxmod-sh_SOURCES = $(subst ",,$(FILES_VBOXADD_BIN))
#
# The module (for syntax checking).
#
vboxadd_TEMPLATE = VBOXLNX32GUESTR0
vboxadd_DEFS = KBUILD_MODNAME=KBUILD_STR\(vboxadd\) KBUILD_BASENAME=KBUILD_STR\(vboxadd\) MODULE IN_RING0 IN_RT_R0 VBGL_VBOXGUEST EXPORT_SYMTAB VBGL_HGCM VBOX_HGCM
vboxadd_LIBS = $(PATH_LIB)/VBoxGuestLibBaseLinux.a $(PATH_LIB)/RuntimeLnx32GuestR0.a
vboxadd_SOURCES = vboxmod.c cmc.c hgcmcall.c
vboxadd_INCS = $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux
vboxadd_NOINST = 1
include $(PATH_KBUILD)/footer.kmk