VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Mouse/NT5/Makefile.kmk@ 96407

Last change on this file since 96407 was 96407, checked in by vboxsync, 2 years ago

scm copyright and license note update

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
Line 
1# $Id: Makefile.kmk 96407 2022-08-22 17:43:14Z vboxsync $
2## @file
3# Makefile for the Windows NT5+ Guest Additions Mouse Filter Driver
4#
5
6#
7# Copyright (C) 2011-2022 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#
32# VBoxMouse - Windows NT5+ Guest Additions Mouse Filter Driver
33#
34SYSMODS += VBoxMouse
35VBoxMouse_TEMPLATE = VBOXGUESTR0
36VBoxMouse_DEFS = LOG_TO_BACKDOOR
37VBoxMouse_SDKS.x86 = ReorderCompilerIncs $(VBOX_WINDDK_GST_W2K)
38#VBoxMouse_DEFS += LOG_ENABLED
39VBoxMouse_CXXFLAGS = -Od
40VBoxMouse_CFLAGS = -Od
41VBoxMouse_LDFLAGS.x86 = -Entry:DriverEntry@8
42VBoxMouse_LDFLAGS.amd64 = -Entry:DriverEntry
43VBoxMouse_SOURCES = \
44 VBoxMFDriver.cpp \
45 VBoxMFInternal.cpp \
46 VBoxMF.rc
47VBoxMouse_LIBS.x86 = \
48 $(PATH_SDK_$(VBOX_WINDDK_GST)_LIB)/ntoskrnl.lib \
49 $(PATH_SDK_$(VBOX_WINDDK_GST)_LIB)/hal.lib
50ifneq ($(VBOX_VCC_CC_GUARD_CF),)
51 VBoxMouse_LIBS.x86 += \
52 $(PATH_SDK_$(VBOX_WINDDK_GST)_LIB)/BufferOverflowK.lib
53endif
54VBoxMouse_LIBS.amd64 = \
55 $(PATH_SDK_$(VBOX_WINDDK_GST)_LIB)/ntoskrnl.lib \
56 $(PATH_SDK_$(VBOX_WINDDK_GST)_LIB)/hal.lib
57VBoxMouse_LIBS = \
58 $(VBOX_LIB_IPRT_GUEST_R0) \
59 $(VBOX_LIB_VBGL_R0)
60VBoxMouse_USES.win += vboximportchecker
61VBoxMouse_VBOX_IMPORT_CHECKER.win.x86 = w2k/r0
62VBoxMouse_VBOX_IMPORT_CHECKER.win.amd64 = xp64/r0
63
64#
65# Install the inf & cat.
66#
67INSTALLS += VBoxMouse-inf
68VBoxMouse-inf_INST = $(INST_ADDITIONS)
69VBoxMouse-inf_MODE = a+r,u+w
70VBoxMouse-inf_SOURCES = \
71 $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.inf
72VBoxMouse-inf_CLEAN = $(VBoxMouse-inf_SOURCES)
73VBoxMouse-inf_BLDDIRS = $(PATH_TARGET)/VBoxMouseCat.dir
74
75$(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.inf: $(PATH_SUB_CURRENT)/VBoxMouse.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
76 $(call MSG_GENERATE,VBoxMouse-inf,$@,$<)
77 $(call VBOX_EDIT_INF_FN,$<,$@)
78
79if defined(VBOX_SIGNING_MODE) && defined(VBOX_SIGN_ADDITIONS)
80 VBoxMouse-inf_SOURCES += \
81 $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.sys \
82 $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.cat \
83 $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.cat=>VBoxMouse-PreW10.cat
84
85 $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.sys: $$(VBoxMouse_1_TARGET) | $$(dir $$@)
86 $(INSTALL) -m 644 -- "$<" "$(@D)"
87
88 $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.cat: \
89 $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.inf \
90 $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.sys
91 $(call MSG_TOOL,Inf2Cat,VBoxMouse-inf,$@,$<)
92 $(call VBOX_MAKE_CAT_FN, $(@D),$@)
93endif # signing
94
95include $(FILE_KBUILD_SUB_FOOTER)
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