1 | # $Id: Makefile.kmk 3252 2007-06-24 02:33:14Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the common guest addition code library.
|
---|
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 as published by the Free Software Foundation,
|
---|
13 | # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
14 | # distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
15 | # be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 | # If you received this file as part of a commercial VirtualBox
|
---|
18 | # distribution, then only the terms of your commercial VirtualBox
|
---|
19 | # license agreement apply instead of the previous paragraph.
|
---|
20 | #
|
---|
21 |
|
---|
22 | DEPTH ?= ../../../../..
|
---|
23 | SUB_DEPTH = ../..
|
---|
24 | include $(PATH_KBUILD)/subheader.kmk
|
---|
25 |
|
---|
26 | # As we build Windows Additions on Linux as well, we need a
|
---|
27 | # separate Linux target for each library so that both platforms
|
---|
28 | # are built.
|
---|
29 | ifdef VBOX_WITH_WIN32_ADDITIONS
|
---|
30 | ifndef VBOX_ADDITIONS_LINUX_ONLY
|
---|
31 | LIBRARIES += \
|
---|
32 | VBoxGuestLib \
|
---|
33 | VBoxGuestLibBase
|
---|
34 | endif
|
---|
35 | endif
|
---|
36 | ifdef VBOX_WITH_LINUX_ADDITIONS
|
---|
37 | ifdef VBOX_WITH_LINUX_ADDITIONS_32BIT_R0
|
---|
38 | LIBRARIES += \
|
---|
39 | VBoxGuestLibLinux \
|
---|
40 | VBoxGuestLibBaseLinux
|
---|
41 | endif
|
---|
42 | endif
|
---|
43 | ifdef VBOX_WITH_OS2_ADDITIONS
|
---|
44 | LIBRARIES += \
|
---|
45 | VBoxGuestR0LibOS2 \
|
---|
46 | VBoxGuestR0LibBaseOS2 \
|
---|
47 | VBoxGuestR3LibOS2
|
---|
48 | endif
|
---|
49 |
|
---|
50 | SOURCES_GUESTLIBBASE = \
|
---|
51 | GenericRequest.cpp \
|
---|
52 | SysHlp.cpp \
|
---|
53 | PhysHeap.cpp \
|
---|
54 | Init.cpp \
|
---|
55 | VMMDev.cpp \
|
---|
56 | HGCMInternal.cpp
|
---|
57 |
|
---|
58 | SOURCES_GUESTLIB = \
|
---|
59 | GenericRequest.cpp \
|
---|
60 | SysHlp.cpp \
|
---|
61 | PhysHeap.cpp \
|
---|
62 | Init.cpp \
|
---|
63 | VMMDev.cpp \
|
---|
64 | HGCM.cpp \
|
---|
65 | VBoxCalls.c
|
---|
66 |
|
---|
67 | #
|
---|
68 | # VBoxGuestLib
|
---|
69 | #
|
---|
70 | VBoxGuestLib_TEMPLATE = VBOXW32GUESTR0LIB
|
---|
71 | VBoxGuestLib_SDKS.win = W2K3DDKX86 WIN32SDK
|
---|
72 | VBoxGuestLib_SOURCES = \
|
---|
73 | $(SOURCES_GUESTLIB)
|
---|
74 | VBoxGuestLib_INCS = \
|
---|
75 | $(PATH_VBoxGuestLib)
|
---|
76 | VBoxGuestLib_INCS.win = \
|
---|
77 | $(PATH_SUB_ROOT)/WINNT/SharedFolders/include
|
---|
78 | VBoxGuestLib_DEFS = IN_RING0 IN_RT_R0 VBOX_HGCM LOG_TO_BACKDOOR
|
---|
79 | #VBoxGuestLib_DEFS += LOG_ENABLED
|
---|
80 |
|
---|
81 |
|
---|
82 | #
|
---|
83 | # VBoxGuestLibBase
|
---|
84 | #
|
---|
85 | VBoxGuestLibBase_TEMPLATE = VBOXW32GUESTR0LIB
|
---|
86 | VBoxGuestLibBase_SDKS.win = $(VBoxGuestLib_SDKS.win)
|
---|
87 | VBoxGuestLibBase_SOURCES = $(SOURCES_GUESTLIBBASE)
|
---|
88 | VBoxGuestLibBase_INCS = $(VBoxGuestLib_INCS)
|
---|
89 | VBoxGuestLibBase_INCS.win = $(VBoxGuestLib_INCS.win)
|
---|
90 | VBoxGuestLibBase_DEFS = $(VBoxGuestLib_DEFS) VBGL_VBOXGUEST
|
---|
91 | VBoxGuestLibBase_DEFS.win = $(VBoxGuestLib_DEFS.win)
|
---|
92 | #VBoxGuestLibBase_DEFS += LOG_ENABLED
|
---|
93 |
|
---|
94 |
|
---|
95 | #
|
---|
96 | # VBoxGuestLibLinux
|
---|
97 | #
|
---|
98 | VBoxGuestLibLinux_TEMPLATE = VBOXLNX32GUESTR0
|
---|
99 | VBoxGuestLibLinux_SOURCES = $(SOURCES_GUESTLIB)
|
---|
100 | VBoxGuestLibLinux_INCS = $(VBoxGuestLib_INCS)
|
---|
101 | VBoxGuestLibLinux_DEFS = VBOX_HGCM LOG_TO_BACKDOOR
|
---|
102 |
|
---|
103 |
|
---|
104 | #
|
---|
105 | # VBoxGuestLibBaseLinux
|
---|
106 | #
|
---|
107 | VBoxGuestLibBaseLinux_TEMPLATE = VBOXLNX32GUESTR0
|
---|
108 | VBoxGuestLibBaseLinux_SOURCES = $(SOURCES_GUESTLIBBASE)
|
---|
109 | VBoxGuestLibBaseLinux_INCS = $(VBoxGuestLib_INCS)
|
---|
110 | VBoxGuestLibBaseLinux_DEFS = VBOX_HGCM VBGL_VBOXGUEST LOG_TO_BACKDOOR
|
---|
111 |
|
---|
112 |
|
---|
113 | #
|
---|
114 | # VBoxGuestR0LibOS2
|
---|
115 | #
|
---|
116 | VBoxGuestR0LibOS2_TEMPLATE = VBOXOS2GUESTR0LIB
|
---|
117 | VBoxGuestR0LibOS2_SOURCES = $(SOURCES_GUESTLIB)
|
---|
118 | VBoxGuestR0LibOS2_INCS = $(VBoxGuestLib_INCS)
|
---|
119 | VBoxGuestR0LibOS2_DEFS = VBOX_HGCM
|
---|
120 |
|
---|
121 | #
|
---|
122 | # VBoxGuestR0LibBaseOS2
|
---|
123 | #
|
---|
124 | VBoxGuestR0LibBaseOS2_TEMPLATE = VBOXOS2GUESTR0LIB
|
---|
125 | VBoxGuestR0LibBaseOS2_SOURCES = $(SOURCES_GUESTLIBBASE)
|
---|
126 | VBoxGuestR0LibBaseOS2_INCS = $(VBoxGuestLib_INCS)
|
---|
127 | VBoxGuestR0LibBaseOS2_DEFS = VBOX_HGCM VBGL_VBOXGUEST
|
---|
128 |
|
---|
129 | #
|
---|
130 | # VBoxGuestR3LibBaseOS2
|
---|
131 | #
|
---|
132 | VBoxGuestR3LibOS2_TEMPLATE = VBOXOS2GUESTR3LIB
|
---|
133 | VBoxGuestR3LibOS2_SOURCES = VBoxGuestR3Lib.cpp
|
---|
134 | #VBoxGuestR3LibOS2_DEFS = VBOX_HGCM
|
---|
135 |
|
---|
136 |
|
---|
137 | include $(PATH_KBUILD)/subfooter.kmk
|
---|
138 |
|
---|