VirtualBox

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

Last change on this file since 10638 was 10516, checked in by vboxsync, 17 years ago

More IOCTL stuff for R3 guest lib (Windows).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.9 KB
Line 
1# $Id: Makefile.kmk 10516 2008-07-11 11:17:48Z 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_INFO_SVC),VBOX_WITH_INFO_SVC,)
89VBoxGuestR3Lib_SOURCES = \
90 VBoxGuestR3Lib.cpp \
91 VBoxGuestR3LibClipboard.cpp \
92 VBoxGuestR3LibDaemonize.cpp \
93 VBoxGuestR3LibGR.cpp \
94 $(if $(VBOX_WITH_INFO_SVC),VBoxGuestR3LibInfoSvc.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 VBoxGuestR3LibMisc.cpp
105endif
106
107
108#
109# VBoxGuestR3LibShared - a PIC variant of VBoxGuestR3Lib for linking into .so/.dll/.dylib.
110#
111VBoxGuestR3LibShared_TEMPLATE = VBOXGUESTR3DLL
112VBoxGuestR3LibShared_DEFS := $(VBoxGuestR3Lib_DEFS)
113VBoxGuestR3LibShared_SOURCES := $(VBoxGuestR3Lib_SOURCES)
114VBoxGuestR3LibShared_INST := $(INST_ADDITIONS_LIB)
115
116
117#
118# VBoxGuestR3LibXFree86 - a reduced version of the guest library which uses
119# the X server runtime instead of IPRT, for use with old servers where the
120# C library is not available.
121#
122VBoxGuestR3LibXFree86_TEMPLATE = VBOXGUESTR3LIB
123VBoxGuestR3LibXFree86_DEFS = \
124 VBOX_HGCM VBOX_VBGLR3_XFREE86 \
125 $(if $(VBOX_WITH_INFO_SVC),VBOX_WITH_INFO_SVC,)
126VBoxGuestR3LibXFree86_SOURCES = \
127 VBoxGuestR3Lib.cpp \
128 VBoxGuestR3LibGR.cpp \
129 $(if $(VBOX_WITH_INFO_SVC),VBoxGuestR3LibInfoSvc.cpp,) \
130 VBoxGuestR3LibMouse.cpp \
131 VBoxGuestR3LibMisc.cpp \
132 VBoxGuestR3LibVideo.cpp
133VBoxGuestR3LibXFree86_INCS = \
134 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/common/ \
135 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/os-support \
136 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/include \
137 $(VBOX_PATH_X11_XFREE_4_2)/exports/include/X11
138
139
140include $(KBUILD_PATH)/subfooter.kmk
141
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