1 | #
|
---|
2 | # Makefile for the VirtualBox Linux Guest Additions Kernel Module.
|
---|
3 | #
|
---|
4 |
|
---|
5 | #
|
---|
6 | # Copyright (C) 2006 InnoTek Systemberatung GmbH
|
---|
7 | #
|
---|
8 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | # available from http://www.virtualbox.org. This file is free software;
|
---|
10 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | # General Public License as published by the Free Software Foundation,
|
---|
12 | # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
13 | # distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
14 | # be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | #
|
---|
16 | # If you received this file as part of a commercial VirtualBox
|
---|
17 | # distribution, then only the terms of your commercial VirtualBox
|
---|
18 | # license agreement apply instead of the previous paragraph.
|
---|
19 | #
|
---|
20 |
|
---|
21 | DEPTH = ../../../../..
|
---|
22 | include $(PATH_KBUILD)/header.kmk
|
---|
23 |
|
---|
24 | INSTALLS = vboxmod-bin vboxmod-sh
|
---|
25 | ifdef VBOX_WITH_LINUX_ADDITIONS_32BIT_R0
|
---|
26 | SYSMODS = vboxadd
|
---|
27 | endif
|
---|
28 |
|
---|
29 | vboxmod-bin_INST = bin/additions/src/vboxadd/
|
---|
30 | vboxmod-bin_MODE = a+r,u+w
|
---|
31 | vboxmod-bin_SOURCES = \
|
---|
32 | $(PATH_ROOT)/include/iprt/alloc.h=>include/iprt/alloc.h \
|
---|
33 | $(PATH_ROOT)/include/iprt/asm.h=>include/iprt/asm.h \
|
---|
34 | $(PATH_ROOT)/include/iprt/assert.h=>include/iprt/assert.h \
|
---|
35 | $(PATH_ROOT)/include/iprt/cdefs.h=>include/iprt/cdefs.h \
|
---|
36 | $(PATH_ROOT)/include/iprt/err.h=>include/iprt/err.h \
|
---|
37 | $(PATH_ROOT)/include/iprt/log.h=>include/iprt/log.h \
|
---|
38 | $(PATH_ROOT)/include/iprt/mem.h=>include/iprt/mem.h \
|
---|
39 | $(PATH_ROOT)/include/iprt/param.h=>include/iprt/param.h \
|
---|
40 | $(PATH_ROOT)/include/iprt/semaphore.h=>include/iprt/semaphore.h \
|
---|
41 | $(PATH_ROOT)/include/iprt/stdarg.h=>include/iprt/stdarg.h \
|
---|
42 | $(PATH_ROOT)/include/iprt/stdint.h=>include/iprt/stdint.h \
|
---|
43 | $(PATH_ROOT)/include/iprt/string.h=>include/iprt/string.h \
|
---|
44 | $(PATH_ROOT)/include/iprt/types.h=>include/iprt/types.h \
|
---|
45 | $(PATH_ROOT)/include/VBox/cdefs.h=>include/VBox/cdefs.h \
|
---|
46 | $(PATH_ROOT)/include/VBox/err.h=>include/VBox/err.h \
|
---|
47 | $(PATH_ROOT)/include/VBox/log.h=>include/VBox/log.h \
|
---|
48 | $(PATH_ROOT)/include/VBox/types.h=>include/VBox/types.h \
|
---|
49 | $(PATH_ROOT)/include/VBox/ostypes.h=>include/VBox/ostypes.h \
|
---|
50 | $(PATH_ROOT)/include/VBox/VBoxGuest.h=>include/VBox/VBoxGuest.h \
|
---|
51 | $(PATH_ROOT)/include/VBox/VBoxGuestLib.h=>include/VBox/VBoxGuestLib.h \
|
---|
52 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/GenericRequest.cpp=>GenericRequest.c \
|
---|
53 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/HGCMInternal.cpp=>HGCMInternal.c \
|
---|
54 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/Init.cpp=>Init.c \
|
---|
55 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/PhysHeap.cpp=>PhysHeap.c \
|
---|
56 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/SysHlp.h=>SysHlp.h \
|
---|
57 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/VBGLInternal.h=>VBGLInternal.h \
|
---|
58 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestLog.h=>VBoxGuestLog.h \
|
---|
59 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/VMMDev.cpp=>VMMDev.c \
|
---|
60 | $(PATH_ROOT)/src/VBox/Runtime/include/internal/magics.h=>include/internal/magics.h \
|
---|
61 | $(PATH_ROOT)/src/VBox/Runtime/r0drv/alloc-r0drv.cpp=>r0drv/alloc-r0drv.c \
|
---|
62 | $(PATH_ROOT)/src/VBox/Runtime/r0drv/alloc-r0drv.h=>r0drv/alloc-r0drv.h \
|
---|
63 | $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c=>r0drv/linux/alloc-r0drv-linux.c \
|
---|
64 | $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/semaphore-r0drv-linux.c=>r0drv/linux/semaphore-r0drv-linux.c \
|
---|
65 | $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/string.h=>r0drv/linux/string.h \
|
---|
66 | $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h=>r0drv/linux/the-linux-kernel.h \
|
---|
67 | $(PATH_OUT)/version-generated.h=>version-generated.h \
|
---|
68 | vboxmod.c=>vboxmod.c \
|
---|
69 | cmc.c=>cmc.c \
|
---|
70 | hgcmcall.c=>hgcmcall.c \
|
---|
71 | vboxmod.h=>vboxmod.h \
|
---|
72 | waitcompat.h=>waitcompat.h \
|
---|
73 | Makefile.module=>Makefile
|
---|
74 |
|
---|
75 | vboxmod-sh_INST = bin/additions/src/vboxadd/
|
---|
76 | vboxmod-sh_MODE = a+rx,u+w
|
---|
77 | vboxmod-sh_SOURCES = \
|
---|
78 | $(PATH_ROOT)/src/VBox/HostDrivers/Support/linux/build_in_tmp=>build_in_tmp
|
---|
79 |
|
---|
80 | #
|
---|
81 | # The module.
|
---|
82 | #
|
---|
83 | vboxadd_TEMPLATE = VBOXLNX32GUESTR0
|
---|
84 | 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
|
---|
85 | vboxadd_LIBS = $(PATH_LIB)/VBoxGuestLibBaseLinux.a $(PATH_LIB)/RuntimeLnx32GuestR0.a
|
---|
86 | vboxadd_SOURCES = vboxmod.c cmc.c hgcmcall.c
|
---|
87 | vboxadd_INCS = $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux
|
---|
88 | vboxadd_NOINST = 1
|
---|
89 |
|
---|
90 | include $(PATH_KBUILD)/footer.kmk
|
---|
91 |
|
---|