1 | # $Id: Makefile.kmk 5999 2007-12-07 15:05:06Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VirtualBox Linux Guest Additions Kernel Module.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 innotek GmbH
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 |
|
---|
18 | DEPTH = ../../../../..
|
---|
19 | include $(PATH_KBUILD)/header.kmk
|
---|
20 |
|
---|
21 | INSTALLS = vboxmod-bin vboxmod-sh
|
---|
22 | ifdef VBOX_WITH_LINUX_ADDITIONS_32BIT_R0
|
---|
23 | SYSMODS = vboxadd
|
---|
24 | endif
|
---|
25 |
|
---|
26 | #
|
---|
27 | # Populate FILES_VBOXADD_NOBIN and FILES_VBOXADD_BIN
|
---|
28 | #
|
---|
29 | include files_vboxadd
|
---|
30 |
|
---|
31 | vboxmod-bin_INST = $(INST_ADDITIONS)/src/vboxadd/
|
---|
32 | vboxmod-bin_MODE = a+r,u+w
|
---|
33 | vboxmod-bin_SOURCES = $(subst ",,$(FILES_VBOXADD_NOBIN))
|
---|
34 |
|
---|
35 | vboxmod-sh_INST = $(INST_ADDITIONS)/src/vboxadd/
|
---|
36 | vboxmod-sh_MODE = a+rx,u+w
|
---|
37 | vboxmod-sh_SOURCES = $(subst ",,$(FILES_VBOXADD_BIN))
|
---|
38 |
|
---|
39 | #
|
---|
40 | # The module (for syntax checking).
|
---|
41 | #
|
---|
42 | vboxadd_TEMPLATE = VBOXLNX32GUESTR0
|
---|
43 | 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
|
---|
44 | vboxadd_LIBS = $(PATH_LIB)/VBoxGuestLibBaseLinux.a $(PATH_LIB)/RuntimeLnx32GuestR0.a
|
---|
45 | vboxadd_SOURCES = vboxmod.c cmc.c hgcmcall.c
|
---|
46 | vboxadd_INCS = $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux
|
---|
47 | vboxadd_NOINST = 1
|
---|
48 |
|
---|
49 | include $(PATH_KBUILD)/footer.kmk
|
---|
50 |
|
---|