1 | #
|
---|
2 | # Makefile for the common guest addition code library.
|
---|
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 | # As we build Windows Additions on Linux as well, we need a
|
---|
25 | # separate Linux target for each library so that both platforms
|
---|
26 | # are built.
|
---|
27 | ifdef VBOX_WITH_WIN32_ADDITIONS
|
---|
28 | ifndef VBOX_ADDITIONS_LINUX_ONLY
|
---|
29 | LIBRARIES += \
|
---|
30 | VBoxGuestLib \
|
---|
31 | VBoxGuestLibBase
|
---|
32 | endif
|
---|
33 | endif
|
---|
34 | ifdef VBOX_WITH_LINUX_ADDITIONS_32BIT_R0
|
---|
35 | LIBRARIES += \
|
---|
36 | VBoxGuestLibLinux \
|
---|
37 | VBoxGuestLibBaseLinux
|
---|
38 | endif
|
---|
39 |
|
---|
40 | SOURCES_GUESTLIB = \
|
---|
41 | GenericRequest.cpp \
|
---|
42 | SysHlp.cpp \
|
---|
43 | PhysHeap.cpp \
|
---|
44 | Init.cpp \
|
---|
45 | VMMDev.cpp \
|
---|
46 | HGCM.cpp \
|
---|
47 | HGCMInternal.cpp \
|
---|
48 | VBoxCalls.c
|
---|
49 | SOURCES_GUESTLIBBASE = \
|
---|
50 | $(SOURCES_GUESTLIB)
|
---|
51 |
|
---|
52 | #
|
---|
53 | # VBoxGuestLib
|
---|
54 | #
|
---|
55 | VBoxGuestLib_TEMPLATE = VBOXW32GUESTR0LIB
|
---|
56 | VBoxGuestLib_SDKS.win = W2K3DDKX86 WIN32SDK
|
---|
57 | VBoxGuestLib_SOURCES = \
|
---|
58 | $(SOURCES_GUESTLIB)
|
---|
59 | VBoxGuestLib_INCS = \
|
---|
60 | $(PATH_VBoxGuestLib)
|
---|
61 | VBoxGuestLib_INCS.win = \
|
---|
62 | ../../WINNT/SharedFolders/include
|
---|
63 | VBoxGuestLib_DEFS = IN_RING0 IN_RT_R0 VBOX_HGCM LOG_TO_BACKDOOR
|
---|
64 | #VBoxGuestLib_DEFS += LOG_ENABLED
|
---|
65 |
|
---|
66 |
|
---|
67 | #
|
---|
68 | # VBoxGuestLibBase
|
---|
69 | #
|
---|
70 | VBoxGuestLibBase_TEMPLATE = VBOXW32GUESTR0LIB
|
---|
71 | VBoxGuestLibBase_SDKS.win = $(VBoxGuestLib_SDKS.win)
|
---|
72 | VBoxGuestLibBase_SOURCES = $(SOURCES_GUESTLIBBASE)
|
---|
73 | VBoxGuestLibBase_INCS = $(VBoxGuestLib_INCS)
|
---|
74 | VBoxGuestLibBase_INCS.win = $(VBoxGuestLib_INCS.win)
|
---|
75 | VBoxGuestLibBase_DEFS = $(VBoxGuestLib_DEFS) VBGL_VBOXGUEST
|
---|
76 | VBoxGuestLibBase_DEFS.win = $(VBoxGuestLib_DEFS.win)
|
---|
77 | #VBoxGuestLibBase_DEFS += LOG_ENABLED
|
---|
78 |
|
---|
79 |
|
---|
80 | #
|
---|
81 | # VBoxGuestLibLinux
|
---|
82 | #
|
---|
83 | VBoxGuestLibLinux_TEMPLATE = VBOXLNX32GUESTR0
|
---|
84 | VBoxGuestLibLinux_SOURCES = $(SOURCES_GUESTLIB)
|
---|
85 | VBoxGuestLibLinux_INCS = $(VBoxGuestLib_INCS)
|
---|
86 | VBoxGuestLibLinux_DEFS = VBOX_HGCM LOG_TO_BACKDOOR
|
---|
87 |
|
---|
88 |
|
---|
89 | #
|
---|
90 | # VBoxGuestLibBaseLinux
|
---|
91 | #
|
---|
92 | VBoxGuestLibBaseLinux_TEMPLATE = VBOXLNX32GUESTR0
|
---|
93 | VBoxGuestLibBaseLinux_SOURCES = $(SOURCES_GUESTLIBBASE)
|
---|
94 | VBoxGuestLibBaseLinux_INCS = $(VBoxGuestLib_INCS)
|
---|
95 | VBoxGuestLibBaseLinux_DEFS = VBOX_HGCM VBGL_VBOXGUEST LOG_TO_BACKDOOR
|
---|
96 |
|
---|
97 |
|
---|
98 | include $(PATH_KBUILD)/footer.kmk
|
---|
99 |
|
---|