1 | # $Id: Makefile.kmk 27703 2010-03-25 13:17:01Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the common guest addition code library.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2010 Sun Microsystems, Inc.
|
---|
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 | # The contents of this file may alternatively be used under the terms
|
---|
18 | # of the Common Development and Distribution License Version 1.0
|
---|
19 | # (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | # VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | # CDDL are applicable instead of those of the GPL.
|
---|
22 | #
|
---|
23 | # You may elect to license modified versions of this file under the
|
---|
24 | # terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | #
|
---|
26 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
27 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
28 | # additional information or have any questions.
|
---|
29 | #
|
---|
30 |
|
---|
31 | SUB_DEPTH = ../../../../..
|
---|
32 | include $(KBUILD_PATH)/subheader.kmk
|
---|
33 |
|
---|
34 | #
|
---|
35 | # Target config.
|
---|
36 | #
|
---|
37 | if defined(VBOX_WITH_ADDITION_DRIVERS) && !defined(VBOX_ONLY_TESTSUITE)
|
---|
38 | LIBRARIES += \
|
---|
39 | VBoxGuestR0Lib \
|
---|
40 | VBoxGuestR0LibBase
|
---|
41 | endif
|
---|
42 | LIBRARIES += \
|
---|
43 | VBoxGuestR3Lib \
|
---|
44 | VBoxGuestR3LibShared
|
---|
45 | ifndef VBOX_ONLY_TESTSUITE
|
---|
46 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd)
|
---|
47 | LIBRARIES += \
|
---|
48 | VBoxGuestR3LibXFree86
|
---|
49 | endif
|
---|
50 | endif
|
---|
51 |
|
---|
52 |
|
---|
53 | #
|
---|
54 | # VBoxGuestR0Lib
|
---|
55 | #
|
---|
56 | VBoxGuestR0Lib_TEMPLATE = VBOXGUESTR0LIB
|
---|
57 | VBoxGuestR0Lib_DEFS = VBOX_WITH_HGCM
|
---|
58 | VBoxGuestR0Lib_INCS = \
|
---|
59 | $(PATH_VBoxGuestR0Lib)
|
---|
60 | VBoxGuestR0Lib_SOURCES = \
|
---|
61 | GenericRequest.cpp \
|
---|
62 | SysHlp.cpp \
|
---|
63 | PhysHeap.cpp \
|
---|
64 | Init.cpp \
|
---|
65 | VMMDev.cpp \
|
---|
66 | HGCM.cpp \
|
---|
67 | VBoxCalls.c \
|
---|
68 | VbglR0CanUsePhysPageList.cpp
|
---|
69 |
|
---|
70 |
|
---|
71 | #
|
---|
72 | # VBoxGuestR0LibBase
|
---|
73 | #
|
---|
74 | VBoxGuestR0LibBase_TEMPLATE = VBOXGUESTR0LIB
|
---|
75 | VBoxGuestR0LibBase_DEFS = VBOX_WITH_HGCM VBGL_VBOXGUEST
|
---|
76 | VBoxGuestR0LibBase_INCS = $(VBoxGuestR0Lib_INCS)
|
---|
77 | VBoxGuestR0LibBase_INCS.win = $(VBoxGuestR0Lib_INCS.win)
|
---|
78 | VBoxGuestR0LibBase_SOURCES = \
|
---|
79 | GenericRequest.cpp \
|
---|
80 | SysHlp.cpp \
|
---|
81 | PhysHeap.cpp \
|
---|
82 | Init.cpp \
|
---|
83 | VMMDev.cpp \
|
---|
84 | HGCMInternal.cpp \
|
---|
85 | VbglR0CanUsePhysPageList.cpp
|
---|
86 |
|
---|
87 | #
|
---|
88 | # VBoxGuestR3Lib
|
---|
89 | #
|
---|
90 | VBoxGuestR3Lib_TEMPLATE = VBOXGUESTR3LIB
|
---|
91 | VBoxGuestR3Lib_DEFS = \
|
---|
92 | VBOX_WITH_HGCM \
|
---|
93 | $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
|
---|
94 | $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL,)
|
---|
95 | VBoxGuestR3Lib_SOURCES = \
|
---|
96 | VBoxGuestR3Lib.cpp \
|
---|
97 | VBoxGuestR3LibAdditions.cpp \
|
---|
98 | VBoxGuestR3LibBalloon.cpp \
|
---|
99 | VBoxGuestR3LibClipboard.cpp \
|
---|
100 | VBoxGuestR3LibCpuHotPlug.cpp \
|
---|
101 | VBoxGuestR3LibCredentials.cpp \
|
---|
102 | VBoxGuestR3LibEvent.cpp \
|
---|
103 | VBoxGuestR3LibGR.cpp \
|
---|
104 | VBoxGuestR3LibLog.cpp \
|
---|
105 | VBoxGuestR3LibMisc.cpp \
|
---|
106 | VBoxGuestR3LibStat.cpp \
|
---|
107 | VBoxGuestR3LibTime.cpp
|
---|
108 | ifneq ($(KBUILD_TARGET),win) ## @todo get rid of this hack (as soon as it's all implemented / #defined).
|
---|
109 | VBoxGuestR3Lib_SOURCES += \
|
---|
110 | VBoxGuestR3LibDaemonize.cpp \
|
---|
111 | VBoxGuestR3LibMouse.cpp \
|
---|
112 | VBoxGuestR3LibSeamless.cpp \
|
---|
113 | VBoxGuestR3LibVideo.cpp
|
---|
114 | endif
|
---|
115 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
116 | VBoxGuestR3Lib_SOURCES += \
|
---|
117 | VBoxGuestR3LibGuestProp.cpp \
|
---|
118 | VBoxGuestR3LibHostVersion.cpp
|
---|
119 | endif
|
---|
120 | ifdef VBOX_WITH_GUEST_CONTROL
|
---|
121 | VBoxGuestR3Lib_SOURCES += \
|
---|
122 | VBoxGuestR3LibGuestCtrl.cpp
|
---|
123 | endif
|
---|
124 |
|
---|
125 | VBoxGuestR3LibAdditions.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
126 |
|
---|
127 | #
|
---|
128 | # VBoxGuestR3LibShared - a PIC variant of VBoxGuestR3Lib for linking into .so/.dll/.dylib.
|
---|
129 | #
|
---|
130 | VBoxGuestR3LibShared_TEMPLATE = VBOXGUESTR3DLL
|
---|
131 | VBoxGuestR3LibShared_DEFS := $(VBoxGuestR3Lib_DEFS)
|
---|
132 | VBoxGuestR3LibShared_SOURCES := $(VBoxGuestR3Lib_SOURCES)
|
---|
133 | VBoxGuestR3LibShared_INST := $(INST_ADDITIONS_LIB)
|
---|
134 |
|
---|
135 |
|
---|
136 | #
|
---|
137 | # VBoxGuestR3LibXFree86 - a reduced version of the guest library which uses
|
---|
138 | # the X server runtime instead of IPRT, for use with old servers where the
|
---|
139 | # C library is not available.
|
---|
140 | #
|
---|
141 | VBoxGuestR3LibXFree86_TEMPLATE = VBOXGUESTR3LIB
|
---|
142 | VBoxGuestR3LibXFree86_DEFS = \
|
---|
143 | VBOX_WITH_HGCM VBOX_VBGLR3_XFREE86 \
|
---|
144 | $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,)
|
---|
145 | VBoxGuestR3LibXFree86_SOURCES = \
|
---|
146 | VBoxGuestR3Lib.cpp \
|
---|
147 | VBoxGuestR3LibGR.cpp \
|
---|
148 | $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestR3LibGuestProp.cpp,) \
|
---|
149 | VBoxGuestR3LibMouse.cpp \
|
---|
150 | VBoxGuestR3LibMisc.cpp \
|
---|
151 | VBoxGuestR3LibSeamless.cpp \
|
---|
152 | VBoxGuestR3LibVideo.cpp \
|
---|
153 | VBoxGuestR3LibRuntimeXF86.cpp
|
---|
154 | VBoxGuestR3LibRuntimeXF86.cpp_CXXFLAGS = -Wno-shadow
|
---|
155 | VBoxGuestR3LibXFree86_INCS = \
|
---|
156 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/common/ \
|
---|
157 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support \
|
---|
158 | $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/include \
|
---|
159 | $(VBOX_PATH_X11_XFREE_4_3)/include \
|
---|
160 | $(VBOX_PATH_X11_XFREE_4_3)/exports/include/X11
|
---|
161 |
|
---|
162 |
|
---|
163 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
164 |
|
---|