VirtualBox

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

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

hrm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
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
22DEPTH ?= ../../../../..
23SUB_DEPTH = ../..
24include $(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.
29ifdef VBOX_WITH_WIN32_ADDITIONS
30 ifndef VBOX_ADDITIONS_LINUX_ONLY
31 LIBRARIES += \
32 VBoxGuestLib \
33 VBoxGuestLibBase
34 endif
35endif
36ifdef VBOX_WITH_LINUX_ADDITIONS
37 ifdef VBOX_WITH_LINUX_ADDITIONS_32BIT_R0
38 LIBRARIES += \
39 VBoxGuestLibLinux \
40 VBoxGuestLibBaseLinux
41 endif
42endif
43ifdef VBOX_WITH_OS2_ADDITIONS
44 LIBRARIES += \
45 VBoxGuestR0LibOS2 \
46 VBoxGuestR0LibBaseOS2 \
47 VBoxGuestR3LibOS2
48endif
49
50SOURCES_GUESTLIBBASE = \
51 GenericRequest.cpp \
52 SysHlp.cpp \
53 PhysHeap.cpp \
54 Init.cpp \
55 VMMDev.cpp \
56 HGCMInternal.cpp
57
58SOURCES_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#
70VBoxGuestLib_TEMPLATE = VBOXW32GUESTR0LIB
71VBoxGuestLib_SDKS.win = W2K3DDKX86 WIN32SDK
72VBoxGuestLib_SOURCES = \
73 $(SOURCES_GUESTLIB)
74VBoxGuestLib_INCS = \
75 $(PATH_VBoxGuestLib)
76VBoxGuestLib_INCS.win = \
77 $(PATH_SUB_ROOT)/WINNT/SharedFolders/include
78VBoxGuestLib_DEFS = IN_RING0 IN_RT_R0 VBOX_HGCM LOG_TO_BACKDOOR
79#VBoxGuestLib_DEFS += LOG_ENABLED
80
81
82#
83# VBoxGuestLibBase
84#
85VBoxGuestLibBase_TEMPLATE = VBOXW32GUESTR0LIB
86VBoxGuestLibBase_SDKS.win = $(VBoxGuestLib_SDKS.win)
87VBoxGuestLibBase_SOURCES = $(SOURCES_GUESTLIBBASE)
88VBoxGuestLibBase_INCS = $(VBoxGuestLib_INCS)
89VBoxGuestLibBase_INCS.win = $(VBoxGuestLib_INCS.win)
90VBoxGuestLibBase_DEFS = $(VBoxGuestLib_DEFS) VBGL_VBOXGUEST
91VBoxGuestLibBase_DEFS.win = $(VBoxGuestLib_DEFS.win)
92#VBoxGuestLibBase_DEFS += LOG_ENABLED
93
94
95#
96# VBoxGuestLibLinux
97#
98VBoxGuestLibLinux_TEMPLATE = VBOXLNX32GUESTR0
99VBoxGuestLibLinux_SOURCES = $(SOURCES_GUESTLIB)
100VBoxGuestLibLinux_INCS = $(VBoxGuestLib_INCS)
101VBoxGuestLibLinux_DEFS = VBOX_HGCM LOG_TO_BACKDOOR
102
103
104#
105# VBoxGuestLibBaseLinux
106#
107VBoxGuestLibBaseLinux_TEMPLATE = VBOXLNX32GUESTR0
108VBoxGuestLibBaseLinux_SOURCES = $(SOURCES_GUESTLIBBASE)
109VBoxGuestLibBaseLinux_INCS = $(VBoxGuestLib_INCS)
110VBoxGuestLibBaseLinux_DEFS = VBOX_HGCM VBGL_VBOXGUEST LOG_TO_BACKDOOR
111
112
113#
114# VBoxGuestR0LibOS2
115#
116VBoxGuestR0LibOS2_TEMPLATE = VBOXOS2GUESTR0LIB
117VBoxGuestR0LibOS2_SOURCES = $(SOURCES_GUESTLIB)
118VBoxGuestR0LibOS2_INCS = $(VBoxGuestLib_INCS)
119VBoxGuestR0LibOS2_DEFS = VBOX_HGCM
120
121#
122# VBoxGuestR0LibBaseOS2
123#
124VBoxGuestR0LibBaseOS2_TEMPLATE = VBOXOS2GUESTR0LIB
125VBoxGuestR0LibBaseOS2_SOURCES = $(SOURCES_GUESTLIBBASE)
126VBoxGuestR0LibBaseOS2_INCS = $(VBoxGuestLib_INCS)
127VBoxGuestR0LibBaseOS2_DEFS = VBOX_HGCM VBGL_VBOXGUEST
128
129#
130# VBoxGuestR3LibBaseOS2
131#
132VBoxGuestR3LibOS2_TEMPLATE = VBOXOS2GUESTR3LIB
133VBoxGuestR3LibOS2_SOURCES = VBoxGuestR3Lib.cpp
134#VBoxGuestR3LibOS2_DEFS = VBOX_HGCM
135
136
137include $(PATH_KBUILD)/subfooter.kmk
138
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