VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Installer/Loader/Makefile.kmk@ 49469

Last change on this file since 49469 was 42239, checked in by vboxsync, 12 years ago

More Visual C++ 2010 adjustments and hacks.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1# $Id: Makefile.kmk 42239 2012-07-19 20:40:31Z vboxsync $
2## @file
3# Sub-Makefile for the Guest Additions loader.
4#
5
6#
7# Copyright (C) 2008-2012 Oracle Corporation
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
18SUB_DEPTH = ../../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21ifeq ($(KBUILD_TARGET_ARCH),x86)
22
23# This has to be 32-bit, so don't include it in the 64-bit build.
24PROGRAMS.x86 += VBoxWindowsAdditions
25VBoxWindowsAdditions_TEMPLATE= NewVBoxGuestR3Exe
26VBoxWindowsAdditions_DEFS = _WIN32_WINNT=0x0400 _UNICODE UNICODE
27VBoxWindowsAdditions_SOURCES = \
28 VBoxWindowsAdditions.cpp \
29 VBoxWindowsAdditions.rc
30
31VBoxWindowsAdditions_LDFLAGS = \
32 /DISALLOWLIB:msvcrt.lib \
33 /DISALLOWLIB:msvcprt.lib \
34 /DISALLOWLIB:libcmt.lib
35
36VBoxWindowsAdditions_LIBS = \
37 $(PATH_TOOL_$(TEMPLATE_VBOXR3EXE_TOOL.win.$(KBUILD_TARGET_ARCH))_LIB)/oldnames.lib \
38 $(PATH_TOOL_$(TEMPLATE_VBOXR3EXE_TOOL.win.$(KBUILD_TARGET_ARCH))_LIB)/libcmt.lib \
39 $(PATH_TOOL_$(TEMPLATE_VBOXR3EXE_TOOL.win.$(KBUILD_TARGET_ARCH))_LIB)/libcpmt.lib
40
41# Version stuff.
42VBoxWindowsAdditions.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
43VBoxWindowsAdditions.cpp_DEPS = $(VBOX_SVN_REV_KMK)
44
45# The icon location is configurable.
46VBoxWindowsAdditions.rc_INCS += $(VBoxWindowsAdditions_0_OUTDIR)
47VBoxWindowsAdditions.rc_DEPS += $(VBoxWindowsAdditions_0_OUTDIR)/VBoxWindowsAdditions-icon.rc
48VBoxWindowsAdditions.rc_CLEAN = $(VBoxWindowsAdditions_0_OUTDIR)/VBoxWindowsAdditions-icon.rc
49
50
51# Icon include file.
52$$(VBoxWindowsAdditions_0_OUTDIR)/VBoxWindowsAdditions-icon.rc: $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) Makefile.kmk | $$(dir $$@)
53 $(RM) -f $@
54 $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
55
56endif # (x86 only because of the above rule)
57
58
59include $(FILE_KBUILD_SUB_FOOTER)
60
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