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 |
|
---|
22 | DEPTH ?= ../../../../..
|
---|
23 | SUB_DEPTH = ../..
|
---|
24 | include $(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.
|
---|
29 | ifdef VBOX_WITH_WIN32_ADDITIONS
|
---|
30 | ifndef VBOX_ADDITIONS_LINUX_ONLY
|
---|
31 | LIBRARIES += \
|
---|
32 | VBoxGuestLib \
|
---|
33 | VBoxGuestLibBase
|
---|
34 | endif
|
---|
35 | endif
|
---|
36 | ifdef VBOX_WITH_LINUX_ADDITIONS_32BIT_R0
|
---|
37 | LIBRARIES += \
|
---|
38 | VBoxGuestLibLinux \
|
---|
39 | VBoxGuestLibBaseLinux
|
---|
40 | endif
|
---|
41 |
|
---|
42 | SOURCES_GUESTLIBBASE = \
|
---|
43 | GenericRequest.cpp \
|
---|
44 | PhysHeap.cpp \
|
---|
45 | Init.cpp \
|
---|
46 | VMMDev.cpp \
|
---|
47 | HGCMInternal.cpp
|
---|
48 |
|
---|
49 | SOURCES_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 | #
|
---|
61 | VBoxGuestLib_TEMPLATE = VBOXW32GUESTR0LIB
|
---|
62 | VBoxGuestLib_SDKS.win = W2K3DDKX86 WIN32SDK
|
---|
63 | VBoxGuestLib_SOURCES = \
|
---|
64 | $(SOURCES_GUESTLIB)
|
---|
65 | VBoxGuestLib_INCS = \
|
---|
66 | $(PATH_VBoxGuestLib)
|
---|
67 | VBoxGuestLib_INCS.win = \
|
---|
68 | $(PATH_SUB_ROOT)/WINNT/SharedFolders/include
|
---|
69 | VBoxGuestLib_DEFS = IN_RING0 IN_RT_R0 VBOX_HGCM LOG_TO_BACKDOOR
|
---|
70 | #VBoxGuestLib_DEFS += LOG_ENABLED
|
---|
71 |
|
---|
72 |
|
---|
73 | #
|
---|
74 | # VBoxGuestLibBase
|
---|
75 | #
|
---|
76 | VBoxGuestLibBase_TEMPLATE = VBOXW32GUESTR0LIB
|
---|
77 | VBoxGuestLibBase_SDKS.win = $(VBoxGuestLib_SDKS.win)
|
---|
78 | VBoxGuestLibBase_SOURCES = $(SOURCES_GUESTLIBBASE)
|
---|
79 | VBoxGuestLibBase_INCS = $(VBoxGuestLib_INCS)
|
---|
80 | VBoxGuestLibBase_INCS.win = $(VBoxGuestLib_INCS.win)
|
---|
81 | VBoxGuestLibBase_DEFS = $(VBoxGuestLib_DEFS) VBGL_VBOXGUEST
|
---|
82 | VBoxGuestLibBase_DEFS.win = $(VBoxGuestLib_DEFS.win)
|
---|
83 | #VBoxGuestLibBase_DEFS += LOG_ENABLED
|
---|
84 |
|
---|
85 |
|
---|
86 | #
|
---|
87 | # VBoxGuestLibLinux
|
---|
88 | #
|
---|
89 | VBoxGuestLibLinux_TEMPLATE = VBOXLNX32GUESTR0
|
---|
90 | VBoxGuestLibLinux_SOURCES = $(SOURCES_GUESTLIB)
|
---|
91 | VBoxGuestLibLinux_INCS = $(VBoxGuestLib_INCS)
|
---|
92 | VBoxGuestLibLinux_DEFS = VBOX_HGCM LOG_TO_BACKDOOR
|
---|
93 |
|
---|
94 |
|
---|
95 | #
|
---|
96 | # VBoxGuestLibBaseLinux
|
---|
97 | #
|
---|
98 | VBoxGuestLibBaseLinux_TEMPLATE = VBOXLNX32GUESTR0
|
---|
99 | VBoxGuestLibBaseLinux_SOURCES = $(SOURCES_GUESTLIBBASE)
|
---|
100 | VBoxGuestLibBaseLinux_INCS = $(VBoxGuestLib_INCS)
|
---|
101 | VBoxGuestLibBaseLinux_DEFS = VBOX_HGCM VBGL_VBOXGUEST LOG_TO_BACKDOOR
|
---|
102 |
|
---|
103 |
|
---|
104 | include $(PATH_KBUILD)/subfooter.kmk
|
---|
105 |
|
---|