1 | # $Id: Makefile.kmk 82968 2020-02-04 10:35:17Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the Windows NT5+ Guest Additions Mouse Filter Driver
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2011-2020 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 |
|
---|
18 | SUB_DEPTH = ../../../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # VBoxMouse - Windows NT5+ Guest Additions Mouse Filter Driver
|
---|
23 | #
|
---|
24 | SYSMODS += VBoxMouse
|
---|
25 | VBoxMouse_TEMPLATE = VBOXGUESTR0
|
---|
26 | VBoxMouse_DEFS = LOG_TO_BACKDOOR
|
---|
27 | VBoxMouse_SDKS.x86 = ReorderCompilerIncs $(VBOX_WINDDK_GST_W2K)
|
---|
28 | #VBoxMouse_DEFS += LOG_ENABLED
|
---|
29 | VBoxMouse_CXXFLAGS = -Od
|
---|
30 | VBoxMouse_CFLAGS = -Od
|
---|
31 | VBoxMouse_LDFLAGS.x86 = -Entry:DriverEntry@8
|
---|
32 | VBoxMouse_LDFLAGS.amd64 = -Entry:DriverEntry
|
---|
33 | VBoxMouse_SOURCES = \
|
---|
34 | VBoxMFDriver.cpp \
|
---|
35 | VBoxMFInternal.cpp \
|
---|
36 | VBoxMF.rc
|
---|
37 | VBoxMouse_LIBS.x86 = \
|
---|
38 | $(PATH_SDK_$(VBOX_WINDDK_GST_W2K)_LIB)/ntoskrnl.lib \
|
---|
39 | $(PATH_SDK_$(VBOX_WINDDK_GST_W2K)_LIB)/hal.lib
|
---|
40 | VBoxMouse_LIBS.amd64 = \
|
---|
41 | $(PATH_SDK_$(VBOX_WINDDK_GST)_LIB)/ntoskrnl.lib \
|
---|
42 | $(PATH_SDK_$(VBOX_WINDDK_GST)_LIB)/hal.lib
|
---|
43 | VBoxMouse_LIBS = \
|
---|
44 | $(VBOX_LIB_IPRT_GUEST_R0) \
|
---|
45 | $(VBOX_LIB_VBGL_R0)
|
---|
46 |
|
---|
47 | #
|
---|
48 | # Install the inf & cat.
|
---|
49 | #
|
---|
50 | INSTALLS += VBoxMouse-inf
|
---|
51 | VBoxMouse-inf_INST = $(INST_ADDITIONS)
|
---|
52 | VBoxMouse-inf_MODE = a+r,u+w
|
---|
53 | ifndef VBOX_SIGNING_MODE
|
---|
54 | VBoxMouse-inf_SOURCES = VBoxMouse.inf
|
---|
55 | else
|
---|
56 | VBoxMouse-inf_SOURCES = \
|
---|
57 | $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.inf \
|
---|
58 | $(if-expr defined(VBOX_SIGN_ADDITIONS),$(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.cat,)
|
---|
59 | VBoxMouse-inf_CLEAN += \
|
---|
60 | $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.cat \
|
---|
61 | $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.sys \
|
---|
62 | $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.inf
|
---|
63 | VBoxMouse-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 |
|
---|
69 | $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.cat: $(PATH_TARGET)/VBoxMouseCat.dir/VBoxMouse.inf $$(VBoxMouse_1_TARGET)
|
---|
70 | $(call MSG_TOOL,Inf2Cat,VBoxMouse-inf,$@,$<)
|
---|
71 | $(INSTALL) -m 644 $(VBoxMouse_1_TARGET) $(@D)
|
---|
72 | $(call VBOX_MAKE_CAT_FN, $(@D),$@)
|
---|
73 | endif # signing
|
---|
74 |
|
---|
75 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|