VirtualBox

source: vbox/trunk/src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk@ 10797

Last change on this file since 10797 was 10797, checked in by vboxsync, 16 years ago

Guest properties: initial commit of new interface

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 KB
Line 
1# $Id: Makefile.kmk 10797 2008-07-22 08:12:42Z 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
22ifdef VBOX_KBUILD_HACKING
23SUB_DEPTH = ../../../../..
24else
25DEPTH ?= ../../../../..
26SUB_DEPTH = ../..
27endif
28include $(KBUILD_PATH)/subheader.kmk
29
30#
31# Target config.
32#
33LIBRARIES += \
34 VBoxGuestR0Lib \
35 VBoxGuestR0LibBase
36LIBRARIES += \
37 VBoxGuestR3Lib \
38 VBoxGuestR3LibShared
39if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd)
40 LIBRARIES += \
41 VBoxGuestR3LibXFree86
42endif
43
44ifndef 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
48endif
49
50
51#
52# VBoxGuestR0Lib
53#
54VBoxGuestR0Lib_TEMPLATE = VBOXGUESTR0LIB
55VBoxGuestR0Lib_DEFS = VBOX_HGCM
56VBoxGuestR0Lib_INCS = \
57 $(PATH_VBoxGuestR0Lib)
58VBoxGuestR0Lib_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#
70VBoxGuestR0LibBase_TEMPLATE = VBOXGUESTR0LIB
71VBoxGuestR0LibBase_DEFS = VBOX_HGCM VBGL_VBOXGUEST
72VBoxGuestR0LibBase_INCS = $(VBoxGuestR0Lib_INCS)
73VBoxGuestR0LibBase_INCS.win = $(VBoxGuestR0Lib_INCS.win)
74VBoxGuestR0LibBase_SOURCES = \
75 GenericRequest.cpp \
76 SysHlp.cpp \
77 PhysHeap.cpp \
78 Init.cpp \
79 VMMDev.cpp \
80 HGCMInternal.cpp
81
82#
83# VBoxGuestR3Lib
84#
85VBoxGuestR3Lib_TEMPLATE = VBOXGUESTR3LIB
86VBoxGuestR3Lib_DEFS = \
87 VBOX_HGCM \
88 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,)
89VBoxGuestR3Lib_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
100ifeq ($(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
106endif
107
108
109#
110# VBoxGuestR3LibShared - a PIC variant of VBoxGuestR3Lib for linking into .so/.dll/.dylib.
111#
112VBoxGuestR3LibShared_TEMPLATE = VBOXGUESTR3DLL
113VBoxGuestR3LibShared_DEFS := $(VBoxGuestR3Lib_DEFS)
114VBoxGuestR3LibShared_SOURCES := $(VBoxGuestR3Lib_SOURCES)
115VBoxGuestR3LibShared_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#
123VBoxGuestR3LibXFree86_TEMPLATE = VBOXGUESTR3LIB
124VBoxGuestR3LibXFree86_DEFS = \
125 VBOX_HGCM VBOX_VBGLR3_XFREE86 \
126 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,)
127VBoxGuestR3LibXFree86_SOURCES = \
128 VBoxGuestR3Lib.cpp \
129 VBoxGuestR3LibGR.cpp \
130 $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestR3LibGuestProp.cpp,) \
131 VBoxGuestR3LibMouse.cpp \
132 VBoxGuestR3LibMisc.cpp \
133 VBoxGuestR3LibVideo.cpp
134VBoxGuestR3LibXFree86_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
141include $(KBUILD_PATH)/subfooter.kmk
142
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette