VirtualBox

source: vbox/trunk/src/VBox/Additions/common/VBoxService/Makefile.kmk@ 21250

Last change on this file since 21250 was 21250, checked in by vboxsync, 15 years ago

VBoxService: extend the standard target to make the NT4 one.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1# $Id: Makefile.kmk 21250 2009-07-06 13:19:32Z vboxsync $
2## @file
3# Sub-Makefile for the Cross Platform Guest Addition Services.
4#
5
6#
7# Copyright (C) 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
22SUB_DEPTH = ../../../../..
23include $(KBUILD_PATH)/subheader.kmk
24if "$(KBUILD_HOST)" != "os2" || defined(VBOX_WITH_OS2_ADDITIONS)
25
26#
27# Target lists.
28#
29PROGRAMS += VBoxService
30PROGRAMS.win.x86 += VBoxServiceNT
31
32#
33# VBoxService
34#
35VBoxService_TEMPLATE = VBOXGUESTR3EXE
36VBoxService_DEFS = VBOXSERVICE_TIMESYNC
37VBoxService_DEFS.win += _WIN32_WINNT=0x0501 _UNICODE UNICODE
38VBoxService_DEFS.os2 = VBOX_WITH_HGCM VBOXSERVICE_CLIPBOARD
39ifdef VBOX_WITH_GUEST_PROPS
40 VBoxService_DEFS += VBOX_WITH_GUEST_PROPS VBOXSERVICE_VMINFO
41endif
42VBoxService_SOURCES = \
43 VBoxService.cpp \
44 VBoxServiceTimeSync.cpp \
45 VBoxServiceUtils.cpp
46ifdef VBOX_WITH_GUEST_PROPS
47 VBoxService_SOURCES.win = \
48 VBoxServiceVMInfo-win.cpp
49 VBoxService_SOURCES += \
50 VBoxServiceVMInfo.cpp
51endif
52VBoxService_SOURCES.win += \
53 VBoxService-win.rc \
54 VBoxService-win.cpp
55VBoxService_SOURCES.os2 = \
56 VBoxService-os2.def \
57 VBoxServiceClipboard-os2.cpp
58VBoxService_LIBS = \
59 $(VBOX_LIB_IPRT_GUEST_R3) \
60 $(VBOX_LIB_VBGL_R3) \
61 $(VBOX_LIB_IPRT_GUEST_R3)
62ifdef VBOX_WITH_GUEST_PROPS
63 VBoxService_LIBS.win += \
64 Secur32.lib \
65 WtsApi32.lib \
66 Psapi.lib
67 VBoxService_LIBS.solaris += \
68 nsl
69endif
70
71#
72# VBoxServiceNT - NT4 version of VBoxService.
73#
74VBoxServiceNT_TEMPLATE = VBOXGUESTR3EXE
75VBoxServiceNT_EXTENDS = VBoxService
76VBoxServiceNT_DEFS.win = _WIN32_WINNT=0x0400 _UNICODE UNICODE TARGET_NT4
77
78#
79# The icon is configurable.
80#
81VBoxService-win.rc_INCS = $(PATH_VBoxService)
82VBoxService-win.rc_DEPS = $(PATH_VBoxService)/VBoxService-win-icon.rc
83VBoxService-win.rc_CLEAN = $(PATH_VBoxService)/VBoxService-win-icon.rc
84
85# Icon include file.
86$$(PATH_VBoxService)/VBoxService-win-icon.rc: $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) $$(VBoxService_PATH)/Makefile.kmk | $$(dir $$@)
87 $(RM) -f $@
88 $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
89
90endif # os2 || with os2 additions
91include $(KBUILD_PATH)/subfooter.kmk
92
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