VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/VBoxService/Makefile.kmk@ 12396

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

Makefiles: VBOX_KBUILD_HACKING -> VBOX_SINGLE_MAKEFILE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1# $Id: Makefile.kmk 12170 2008-09-06 03:58:49Z vboxsync $
2## @file
3# Sub-Makefile for the Windows Guest Additions Service.
4#
5
6#
7# Copyright (C) 2008 Sun Microsystems, Inc.
8#
9# Sun Microsystems, Inc. confidential
10# All rights reserved
11#
12
13ifdef VBOX_SINGLE_MAKEFILE
14SUB_DEPTH = ../../../../..
15else
16DEPTH ?= ../../../../..
17SUB_DEPTH = ../..
18endif
19include $(KBUILD_PATH)/subheader.kmk
20
21PROGRAMS += VBoxService
22VBoxService_TEMPLATE = VBOXGUESTR3EXE
23VBoxService_DEFS = LOG_TO_BACKDOOR _WIN32_WINNT=0x0501 _UNICODE UNICODE
24ifdef VBOX_WITH_GUEST_PROPS
25 VBoxService_DEFS += VBOX_WITH_HGCM VBOX_WITH_GUEST_PROPS
26endif
27VBoxService_INCS = ../include
28VBoxService_SOURCES = \
29 VBoxService.cpp \
30 VBoxUtils.cpp \
31 VBoxService.rc
32
33ifdef VBOX_WITH_GUEST_PROPS
34 VBoxService_SOURCES += \
35 VBoxVMInfo.cpp \
36 VBoxVMInfoAdditions.cpp \
37 VBoxVMInfoUser.cpp \
38 VBoxVMInfoNet.cpp \
39 VBoxVMInfoOS.cpp
40endif
41
42VBoxService_LIBS = \
43 $(VBOX_LIB_IPRT_GUEST_R3) \
44 $(VBOX_LIB_VBGL_R3) \
45 $(VBOX_LIB_IPRT_GUEST_R3)
46
47ifdef VBOX_WITH_GUEST_PROPS
48 VBoxService_LIBS += \
49 Secur32.lib \
50 WtsApi32.lib \
51 Psapi.lib
52endif
53
54# VBoxService.cpp uses VBOX_SVN_REV.
55VBoxService.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
56VBoxService.cpp_DEPS = $(VBOX_SVN_REV_KMK)
57VBoxService.rc_INCS = $(PATH_VBoxService)
58VBoxService.rc_DEPS = $(PATH_VBoxService)/VBoxService-icon.rc
59VBoxService.rc_CLEAN = $(PATH_VBoxService)/VBoxService-icon.rc
60
61include $(KBUILD_PATH)/subfooter.kmk
62
63# Icon include file.
64$(PATH_VBoxService)/VBoxService-icon.rc: $(VBOX_WINDOWS_ICON_FILE) $(VBoxService_PATH)/Makefile.kmk | $$(call DIRDEP,$$(@D))
65 $(RM) -f $@
66 $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette