VirtualBox

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

Last change on this file since 40363 was 38154, checked in by vboxsync, 13 years ago

*.kmk: PATH_INS -> PATH_STAGE.

  • 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 38154 2011-07-25 12:30:55Z vboxsync $
2## @file
3# Sub-Makefile for the Guest Additions loader.
4#
5
6#
7# Copyright (C) 2008 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
21# This has to be 32-bit, so don't include it in the 64-bit build.
22if "$(KBUILD_TARGET_ARCH)" == "x86"
23 PROGRAMS.x86 += VBoxWindowsAdditions
24 VBoxWindowsAdditions_TEMPLATE= VBOXGUESTR3EXE
25 VBoxWindowsAdditions_DEFS = _WIN32_WINNT=0x0400 _UNICODE UNICODE
26 VBoxWindowsAdditions_SOURCES = \
27 VBoxWindowsAdditions.cpp \
28 VBoxWindowsAdditions.rc
29
30 VBoxWindowsAdditions_LDFLAGS = \
31 /DISALLOWLIB:msvcrt.lib \
32 /DISALLOWLIB:msvcprt.lib \
33 /DISALLOWLIB:libcmt.lib
34
35 VBoxWindowsAdditions_LIBS = \
36 $(PATH_TOOL_$(TEMPLATE_VBOXR3EXE_TOOL.win.$(KBUILD_TARGET_ARCH))_LIB)/oldnames.lib \
37 $(PATH_TOOL_$(TEMPLATE_VBOXR3EXE_TOOL.win.$(KBUILD_TARGET_ARCH))_LIB)/libcmt.lib \
38 $(PATH_TOOL_$(TEMPLATE_VBOXR3EXE_TOOL.win.$(KBUILD_TARGET_ARCH))_LIB)/libcpmt.lib
39
40 # Version stuff.
41 VBoxWindowsAdditions.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
42 VBoxWindowsAdditions.cpp_DEPS = $(VBOX_SVN_REV_KMK)
43
44 # The icon location is configurable.
45 VBoxWindowsAdditions.rc_INCS += $(VBoxWindowsAdditions_0_OUTDIR)
46 VBoxWindowsAdditions.rc_DEPS += $(VBoxWindowsAdditions_0_OUTDIR)/VBoxWindowsAdditions-icon.rc
47 VBoxWindowsAdditions.rc_CLEAN = $(VBoxWindowsAdditions_0_OUTDIR)/VBoxWindowsAdditions-icon.rc
48
49
50 # Icon include file.
51$$(VBoxWindowsAdditions_0_OUTDIR)/VBoxWindowsAdditions-icon.rc: $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) Makefile.kmk | $$(dir $$@)
52 $(RM) -f $@
53 $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
54
55endif # x86 only
56
57include $(KBUILD_PATH)/subfooter.kmk
58
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