# $Id: Makefile.kmk 5999 2007-12-07 15:05:06Z vboxsync $ ## @file # Makefile for the VirtualBox Linux Guest Additions Kernel Module. # # # Copyright (C) 2006-2007 innotek 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 (GPL) 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. # 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 = $(INST_ADDITIONS)/src/vboxadd/ vboxmod-bin_MODE = a+r,u+w vboxmod-bin_SOURCES = $(subst ",,$(FILES_VBOXADD_NOBIN)) vboxmod-sh_INST = $(INST_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