VirtualBox

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

Last change on this file since 2487 was 2487, checked in by vboxsync, 18 years ago

Converted common and winnt to use sub-makefiles.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Makefile.kmk 2487 2007-05-04 03:19:31Z vboxsync $
2## @file
3# Sub-Makefile for the common guest addition code library.
4#
5
6#
7# Copyright (C) 2006 InnoTek Systemberatung 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_32BIT_R0
37 LIBRARIES += \
38 VBoxGuestLibLinux \
39 VBoxGuestLibBaseLinux
40endif
41
42SOURCES_GUESTLIBBASE = \
43 GenericRequest.cpp \
44 PhysHeap.cpp \
45 Init.cpp \
46 VMMDev.cpp \
47 HGCMInternal.cpp
48
49SOURCES_GUESTLIB = \
50 GenericRequest.cpp \
51 SysHlp.cpp \
52 PhysHeap.cpp \
53 Init.cpp \
54 VMMDev.cpp \
55 HGCM.cpp \
56 VBoxCalls.c
57
58#
59# VBoxGuestLib
60#
61VBoxGuestLib_TEMPLATE = VBOXW32GUESTR0LIB
62VBoxGuestLib_SDKS.win = W2K3DDKX86 WIN32SDK
63VBoxGuestLib_SOURCES = \
64 $(SOURCES_GUESTLIB)
65VBoxGuestLib_INCS = \
66 $(PATH_VBoxGuestLib)
67VBoxGuestLib_INCS.win = \
68 $(PATH_SUB_ROOT)/WINNT/SharedFolders/include
69VBoxGuestLib_DEFS = IN_RING0 IN_RT_R0 VBOX_HGCM LOG_TO_BACKDOOR
70#VBoxGuestLib_DEFS += LOG_ENABLED
71
72
73#
74# VBoxGuestLibBase
75#
76VBoxGuestLibBase_TEMPLATE = VBOXW32GUESTR0LIB
77VBoxGuestLibBase_SDKS.win = $(VBoxGuestLib_SDKS.win)
78VBoxGuestLibBase_SOURCES = $(SOURCES_GUESTLIBBASE)
79VBoxGuestLibBase_INCS = $(VBoxGuestLib_INCS)
80VBoxGuestLibBase_INCS.win = $(VBoxGuestLib_INCS.win)
81VBoxGuestLibBase_DEFS = $(VBoxGuestLib_DEFS) VBGL_VBOXGUEST
82VBoxGuestLibBase_DEFS.win = $(VBoxGuestLib_DEFS.win)
83#VBoxGuestLibBase_DEFS += LOG_ENABLED
84
85
86#
87# VBoxGuestLibLinux
88#
89VBoxGuestLibLinux_TEMPLATE = VBOXLNX32GUESTR0
90VBoxGuestLibLinux_SOURCES = $(SOURCES_GUESTLIB)
91VBoxGuestLibLinux_INCS = $(VBoxGuestLib_INCS)
92VBoxGuestLibLinux_DEFS = VBOX_HGCM LOG_TO_BACKDOOR
93
94
95#
96# VBoxGuestLibBaseLinux
97#
98VBoxGuestLibBaseLinux_TEMPLATE = VBOXLNX32GUESTR0
99VBoxGuestLibBaseLinux_SOURCES = $(SOURCES_GUESTLIBBASE)
100VBoxGuestLibBaseLinux_INCS = $(VBoxGuestLib_INCS)
101VBoxGuestLibBaseLinux_DEFS = VBOX_HGCM VBGL_VBOXGUEST LOG_TO_BACKDOOR
102
103
104include $(PATH_KBUILD)/subfooter.kmk
105
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