VirtualBox

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

Last change on this file was 98416, checked in by vboxsync, 16 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
RevLine 
[31634]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#
[98103]7# Copyright (C) 2008-2023 Oracle and/or its affiliates.
[31634]8#
[96407]9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
[31634]11#
[96407]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#
[31634]27
28SUB_DEPTH = ../../../../../..
[41477]29include $(KBUILD_PATH)/subheader.kmk
[31634]30
[96449]31# This has to be 32-bit.
32PROGRAMS += VBoxWindowsAdditions
[98416]33VBoxWindowsAdditions_TEMPLATE = VBoxGuestR3Exe
[96449]34VBoxWindowsAdditions_BLD_TRG_ARCH = x86
35VBoxWindowsAdditions_DEFS = _WIN32_WINNT=0x0400
36VBoxWindowsAdditions_INCS = ../../include
[42154]37VBoxWindowsAdditions_SOURCES = \
38 VBoxWindowsAdditions.cpp \
39 VBoxWindowsAdditions.rc
[96449]40ifdef VBOX_WITH_NOCRT_STATIC
[98416]41 VBoxWindowsAdditions_LDFLAGS = /SubSystem:Windows
[96449]42else
[98416]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
[96449]51endif
[96684]52VBoxWindowsAdditions_VBOX_IMPORT_CHECKER.win.x86 := nt4
[31634]53
[42154]54# Version stuff.
55VBoxWindowsAdditions.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
56VBoxWindowsAdditions.cpp_DEPS = $(VBOX_SVN_REV_KMK)
[31634]57
[42154]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
[31634]62
63
[42154]64# Icon include file.
[68820]65$$(VBoxWindowsAdditions_0_OUTDIR)/VBoxWindowsAdditions-icon.rc: \
66 $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) $(MAKEFILE_CURRENT) | $$(dir $$@)
[31634]67 $(RM) -f $@
68 $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
69
70
[41477]71include $(FILE_KBUILD_SUB_FOOTER)
[31634]72
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use