1 | # $Id: Makefile.kmk 26326 2010-02-08 13:22:24Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Cross Platform Guest Addition Services.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2007-2010 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 |
|
---|
22 | SUB_DEPTH = ../../../../..
|
---|
23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
24 |
|
---|
25 | #
|
---|
26 | # Target lists.
|
---|
27 | #
|
---|
28 | PROGRAMS += VBoxService
|
---|
29 | PROGRAMS.win.x86 += VBoxServiceNT
|
---|
30 |
|
---|
31 | #
|
---|
32 | # VBoxService
|
---|
33 | #
|
---|
34 | VBoxService_TEMPLATE = VBOXGUESTR3EXE
|
---|
35 | VBoxService_DEFS = VBOXSERVICE_TIMESYNC
|
---|
36 | VBoxService_DEFS.win += _WIN32_WINNT=0x0501 VBOXSERVICE_MANAGEMENT
|
---|
37 | VBoxService_DEFS.os2 = VBOX_WITH_HGCM VBOXSERVICE_CLIPBOARD
|
---|
38 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
39 | VBoxService_DEFS += VBOX_WITH_GUEST_PROPS VBOXSERVICE_VMINFO
|
---|
40 | if1of ($(KBUILD_TARGET), win)
|
---|
41 | VBoxService_DEFS += VBOX_WITH_HGCM VBOXSERVICE_EXEC
|
---|
42 | endif
|
---|
43 | endif
|
---|
44 | if1of ($(KBUILD_TARGET), linux)
|
---|
45 | VBoxService_DEFS += VBOXSERVICE_CPUHOTPLUG
|
---|
46 | endif
|
---|
47 |
|
---|
48 | VBoxService_SOURCES = \
|
---|
49 | VBoxService.cpp \
|
---|
50 | VBoxServiceTimeSync.cpp \
|
---|
51 | VBoxServiceUtils.cpp
|
---|
52 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
53 | VBoxService_SOURCES.win = \
|
---|
54 | VBoxServiceVMInfo-win.cpp
|
---|
55 | VBoxService_SOURCES += \
|
---|
56 | VBoxServiceVMInfo.cpp
|
---|
57 | if1of ($(KBUILD_TARGET), win)
|
---|
58 | VBoxService_SOURCES += \
|
---|
59 | VBoxServiceExec.cpp
|
---|
60 | endif
|
---|
61 | endif
|
---|
62 | if1of ($(KBUILD_TARGET), linux)
|
---|
63 | VBoxService_SOURCES += \
|
---|
64 | VBoxServiceCpuHotPlug.cpp
|
---|
65 | endif
|
---|
66 | VBoxService_SOURCES.win += \
|
---|
67 | VBoxService-win.rc \
|
---|
68 | VBoxService-win.cpp \
|
---|
69 | VBoxServiceBalloon.cpp \
|
---|
70 | VBoxServiceStats.cpp
|
---|
71 |
|
---|
72 | VBoxService_SOURCES.os2 = \
|
---|
73 | VBoxService-os2.def \
|
---|
74 | VBoxServiceClipboard-os2.cpp
|
---|
75 |
|
---|
76 | VBoxService_LIBS = \
|
---|
77 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
78 | $(VBOX_LIB_VBGL_R3) \
|
---|
79 | $(VBOX_LIB_IPRT_GUEST_R3)
|
---|
80 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
81 | VBoxService_LIBS.win += \
|
---|
82 | Secur32.lib \
|
---|
83 | WtsApi32.lib \
|
---|
84 | Psapi.lib
|
---|
85 | VBoxService_LIBS.solaris += \
|
---|
86 | nsl
|
---|
87 | endif
|
---|
88 |
|
---|
89 | #
|
---|
90 | # VBoxServiceNT - NT4 version of VBoxService.
|
---|
91 | #
|
---|
92 | VBoxServiceNT_TEMPLATE = VBOXGUESTR3EXE
|
---|
93 | VBoxServiceNT_EXTENDS = VBoxService
|
---|
94 | VBoxServiceNT_DEFS.win = _WIN32_WINNT=0x0400 TARGET_NT4
|
---|
95 |
|
---|
96 | VBoxServiceVMInfo.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
97 | VBoxServiceVMInfo.cpp_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
98 |
|
---|
99 | #
|
---|
100 | # The icon is configurable.
|
---|
101 | #
|
---|
102 | VBoxService-win.rc_INCS = $(PATH_VBoxService)
|
---|
103 | VBoxService-win.rc_DEPS = $(PATH_VBoxService)/VBoxService-win-icon.rc
|
---|
104 | VBoxService-win.rc_CLEAN = $(PATH_VBoxService)/VBoxService-win-icon.rc
|
---|
105 |
|
---|
106 | # Icon include file.
|
---|
107 | $$(PATH_VBoxService)/VBoxService-win-icon.rc: $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) $$(VBoxService_PATH)/Makefile.kmk | $$(dir $$@)
|
---|
108 | $(RM) -f $@
|
---|
109 | $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
|
---|
110 |
|
---|
111 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
112 |
|
---|