VirtualBox

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

Last change on this file since 95410 was 94160, checked in by vboxsync, 3 years ago

Additions: Windows: Use the same approach as with the host driver for .cat files, i.e. create 2 copies, one for Windows versions before 10, and one for 10 and later (which in UEFI Secure Boot mode modified the trusted root list, requiring Attestation Signing). The NSIS installer will deliver the appropriate file.

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

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette