1 | # $Id: Makefile.kmk 11820 2008-08-29 14:09:39Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the common guest addition code library.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 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 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | # additional information or have any questions.
|
---|
20 | #
|
---|
21 |
|
---|
22 | ifdef VBOX_KBUILD_HACKING
|
---|
23 | SUB_DEPTH = ../../../../..
|
---|
24 | else
|
---|
25 | DEPTH ?= ../../../../..
|
---|
26 | SUB_DEPTH = ../..
|
---|
27 | endif
|
---|
28 | include $(KBUILD_PATH)/subheader.kmk
|
---|
29 |
|
---|
30 | #
|
---|
31 | # Target config.
|
---|
32 | #
|
---|
33 | LIBRARIES += \
|
---|
34 | VBoxGuestR0Lib \
|
---|
35 | VBoxGuestR0LibBase
|
---|
36 | LIBRARIES += \
|
---|
37 | VBoxGuestR3Lib \
|
---|
38 | VBoxGuestR3LibShared
|
---|
39 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd)
|
---|
40 | LIBRARIES += \
|
---|
41 | VBoxGuestR3LibXFree86
|
---|
42 | endif
|
---|
43 |
|
---|
44 | ifndef VBOX_WITH_ADDITION_DRIVERS
|
---|
45 | if1of ($(KBUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0.
|
---|
46 | LIBRARIES := $(filter-out VBoxGuestR0Lib VBoxGuestR0LibBase, $(LIBRARIES))
|
---|
47 | endif
|
---|
48 | endif
|
---|
49 |
|
---|
50 |
|
---|
51 | #
|
---|
52 | # VBoxGuestR0Lib
|
---|
53 | #
|
---|
54 | VBoxGuestR0Lib_TEMPLATE = VBOXGUESTR0LIB
|
---|
55 | VBoxGuestR0Lib_DEFS = VBOX_WITH_HGCM
|
---|
56 | VBoxGuestR0Lib_INCS = \
|
---|
57 | $(PATH_VBoxGuestR0Lib)
|
---|
58 | VBoxGuestR0Lib_SOURCES = \
|
---|
59 | GenericRequest.cpp \
|
---|
60 | SysHlp.cpp \
|
---|
61 | PhysHeap.cpp \
|
---|
62 | Init.cpp \
|
---|
63 | VMMDev.cpp \
|
---|
64 | HGCM.cpp \
|
---|
65 | VBoxCalls.c
|
---|
66 |
|
---|
67 | #
|
---|
68 | # VBoxGuestR0LibBase
|
---|
69 | #
|
---|
70 | VBoxGuestR0LibBase_TEMPLATE = VBOXGUESTR0LIB
|
---|
71 | VBoxGuestR0LibBase_DEFS = VBOX_WITH_HGCM VBGL_VBOXGUEST
|
---|
72 | VBoxGuestR0LibBase_INCS = $(VBoxGuestR0Lib_INCS)
|
---|
73 | VBoxGuestR0LibBase_INCS.win = $(VBoxGuestR0Lib_INCS.win)
|
---|
74 | VBoxGuestR0LibBase_SOURCES = \
|
---|
75 | GenericRequest.cpp \
|
---|
76 | SysHlp.cpp \
|
---|
77 | PhysHeap.cpp \
|
---|
78 | Init.cpp \
|
---|
79 | VMMDev.cpp \
|
---|
80 | HGCMInternal.cpp
|
---|
81 |
|
---|
82 | #
|
---|
83 | # VBoxGuestR3Lib
|
---|
84 | #
|
---|
85 | VBoxGuestR3Lib_TEMPLATE = VBOXGUESTR3LIB
|
---|
86 | VBoxGuestR3Lib_DEFS = \
|
---|
87 | VBOX_WITH_HGCM \
|
---|
88 | $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,)
|
---|
89 | VBoxGuestR3Lib_SOURCES = \
|
---|
90 | VBoxGuestR3Lib.cpp \
|
---|
91 | VBoxGuestR3LibClipboard.cpp \
|
---|
92 | VBoxGuestR3LibDaemonize.cpp \
|
---|
93 | VBoxGuestR3LibGR.cpp \
|
---|
94 | $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestR3LibGuestProp.cpp,) \
|
---|
95 | VBoxGuestR3LibMouse.cpp \
|
---|
96 | VBoxGuestR3LibMisc.cpp \
|
---|
97 | VBoxGuestR3LibSeamless.cpp \
|
---|
98 | VBoxGuestR3LibTime.cpp \
|
---|
99 | VBoxGuestR3LibVideo.cpp
|
---|
100 | ifeq ($(KBUILD_TARGET),win) ## @todo get rid of this hack (as soon as it's all implemented / #defined).
|
---|
101 | VBoxGuestR3Lib_SOURCES = \
|
---|
102 | VBoxGuestR3Lib.cpp \
|
---|
103 | VBoxGuestR3LibGR.cpp \
|
---|
104 | $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestR3LibGuestProp.cpp,) \
|
---|
105 | VBoxGuestR3LibMisc.cpp
|
---|
106 | endif
|
---|
107 |
|
---|
108 |
|
---|
109 | #
|
---|
110 | # VBoxGuestR3LibShared - a PIC variant of VBoxGuestR3Lib for linking into .so/.dll/.dylib.
|
---|
111 | #
|
---|
112 | VBoxGuestR3LibShared_TEMPLATE = VBOXGUESTR3DLL
|
---|
113 | VBoxGuestR3LibShared_DEFS := $(VBoxGuestR3Lib_DEFS)
|
---|
114 | VBoxGuestR3LibShared_SOURCES := $(VBoxGuestR3Lib_SOURCES)
|
---|
115 | VBoxGuestR3LibShared_INST := $(INST_ADDITIONS_LIB)
|
---|
116 |
|
---|
117 |
|
---|
118 | #
|
---|
119 | # VBoxGuestR3LibXFree86 - a reduced version of the guest library which uses
|
---|
120 | # the X server runtime instead of IPRT, for use with old servers where the
|
---|
121 | # C library is not available.
|
---|
122 | #
|
---|
123 | VBoxGuestR3LibXFree86_TEMPLATE = VBOXGUESTR3LIB
|
---|
124 | VBoxGuestR3LibXFree86_DEFS = \
|
---|
125 | VBOX_WITH_HGCM VBOX_VBGLR3_XFREE86 \
|
---|
126 | $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,)
|
---|
127 | VBoxGuestR3LibXFree86_SOURCES = \
|
---|
128 | VBoxGuestR3Lib.cpp \
|
---|
129 | VBoxGuestR3LibGR.cpp \
|
---|
130 | $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestR3LibGuestProp.cpp,) \
|
---|
131 | VBoxGuestR3LibMouse.cpp \
|
---|
132 | VBoxGuestR3LibMisc.cpp \
|
---|
133 | VBoxGuestR3LibVideo.cpp
|
---|
134 | VBoxGuestR3LibXFree86_INCS = \
|
---|
135 | $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/common/ \
|
---|
136 | $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/os-support \
|
---|
137 | $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/include \
|
---|
138 | $(VBOX_PATH_X11_XFREE_4_2)/exports/include/X11
|
---|
139 |
|
---|
140 |
|
---|
141 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
142 |
|
---|