VirtualBox

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

Last change on this file was 98416, checked in by vboxsync, 15 months ago

Additions/*.kmk: Automatic scm cleanups. bugref:10348

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1# $Id: Makefile.kmk 98416 2023-02-01 16:25:17Z vboxsync $
2## @file
3# Sub-Makefile for the Guest Additions loader.
4#
5
6#
7# Copyright (C) 2008-2023 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
11#
12# This program is free software; you can redistribute it and/or
13# modify it under the terms of the GNU General Public License
14# as published by the Free Software Foundation, in version 3 of the
15# License.
16#
17# This program is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, see <https://www.gnu.org/licenses>.
24#
25# SPDX-License-Identifier: GPL-3.0-only
26#
27
28SUB_DEPTH = ../../../../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31# This has to be 32-bit.
32PROGRAMS += VBoxWindowsAdditions
33VBoxWindowsAdditions_TEMPLATE = VBoxGuestR3Exe
34VBoxWindowsAdditions_BLD_TRG_ARCH = x86
35VBoxWindowsAdditions_DEFS = _WIN32_WINNT=0x0400
36VBoxWindowsAdditions_INCS = ../../include
37VBoxWindowsAdditions_SOURCES = \
38 VBoxWindowsAdditions.cpp \
39 VBoxWindowsAdditions.rc
40ifdef VBOX_WITH_NOCRT_STATIC
41 VBoxWindowsAdditions_LDFLAGS = /SubSystem:Windows
42else
43 VBoxWindowsAdditions_LDFLAGS = \
44 /DISALLOWLIB:msvcrt.lib \
45 /DISALLOWLIB:msvcprt.lib \
46 /DISALLOWLIB:libcmt.lib
47 VBoxWindowsAdditions_LIBS = \
48 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.$(KBUILD_TARGET_ARCH))_LIB)/oldnames.lib \
49 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.$(KBUILD_TARGET_ARCH))_LIB)/libcmt.lib \
50 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.$(KBUILD_TARGET_ARCH))_LIB)/libcpmt.lib
51endif
52VBoxWindowsAdditions_VBOX_IMPORT_CHECKER.win.x86 := nt4
53
54# Version stuff.
55VBoxWindowsAdditions.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
56VBoxWindowsAdditions.cpp_DEPS = $(VBOX_SVN_REV_KMK)
57
58# The icon location is configurable.
59VBoxWindowsAdditions.rc_INCS += $(VBoxWindowsAdditions_0_OUTDIR)
60VBoxWindowsAdditions.rc_DEPS += $(VBoxWindowsAdditions_0_OUTDIR)/VBoxWindowsAdditions-icon.rc
61VBoxWindowsAdditions.rc_CLEAN = $(VBoxWindowsAdditions_0_OUTDIR)/VBoxWindowsAdditions-icon.rc
62
63
64# Icon include file.
65$$(VBoxWindowsAdditions_0_OUTDIR)/VBoxWindowsAdditions-icon.rc: \
66 $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) $(MAKEFILE_CURRENT) | $$(dir $$@)
67 $(RM) -f $@
68 $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
69
70
71include $(FILE_KBUILD_SUB_FOOTER)
72
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use