1 | # $Id: Makefile.kmk 98103 2023-01-17 14:15:46Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the SUPLib testcases.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-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 | # The contents of this file may alternatively be used under the terms
|
---|
26 | # of the Common Development and Distribution License Version 1.0
|
---|
27 | # (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
|
---|
28 | # in the VirtualBox distribution, in which case the provisions of the
|
---|
29 | # CDDL are applicable instead of those of the GPL.
|
---|
30 | #
|
---|
31 | # You may elect to license modified versions of this file under the
|
---|
32 | # terms and conditions of either the GPL or the CDDL or both.
|
---|
33 | #
|
---|
34 | # SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
|
---|
35 | #
|
---|
36 |
|
---|
37 | SUB_DEPTH = ../../../../..
|
---|
38 | include $(KBUILD_PATH)/subheader.kmk
|
---|
39 |
|
---|
40 | # We need the VMM/Config.kmk one for the VMM_COMMON_DEFS variable.
|
---|
41 | ifndef VBOX_VMM_CONFIG_KMK_INCLUDED
|
---|
42 | include $(PATH_ROOT)/src/VBox/VMM/Config.kmk
|
---|
43 | endif
|
---|
44 |
|
---|
45 | PROGRAMS += \
|
---|
46 | SUPInstall \
|
---|
47 | SUPUninstall \
|
---|
48 | SUPLoggerCtl
|
---|
49 | ifdef VBOX_WITH_TESTCASES
|
---|
50 | if defined(VBOX_WITH_HARDENING)
|
---|
51 | PROGRAMS += \
|
---|
52 | tstSupVerify
|
---|
53 | endif
|
---|
54 | if !defined(VBOX_WITH_HARDENING) || "$(KBUILD_TARGET)" != "win"
|
---|
55 | PROGRAMS += \
|
---|
56 | tstPage \
|
---|
57 | tstContiguous \
|
---|
58 | tstInit \
|
---|
59 | tstInt \
|
---|
60 | tstLow \
|
---|
61 | tstPin \
|
---|
62 | tstGetPagingMode \
|
---|
63 | tstSupLoadModule \
|
---|
64 | tstSupSem \
|
---|
65 | tstSupSem-Zombie \
|
---|
66 | tstSupTscDelta
|
---|
67 | endif
|
---|
68 | PROGRAMS.win += \
|
---|
69 | tstNtQueryStuff
|
---|
70 | endif # VBOX_WITH_TESTCASES
|
---|
71 |
|
---|
72 | SUPInstall_TEMPLATE = VBOXR3EXE
|
---|
73 | SUPInstall_SOURCES = SUPInstall.cpp
|
---|
74 | SUPInstall_LIBS = $(LIB_RUNTIME)
|
---|
75 |
|
---|
76 | SUPUninstall_TEMPLATE = VBOXR3EXE
|
---|
77 | SUPUninstall_SOURCES = SUPUninstall.cpp
|
---|
78 | SUPUninstall_LIBS = $(LIB_RUNTIME)
|
---|
79 |
|
---|
80 | SUPLoggerCtl_TEMPLATE = VBOXR3EXE
|
---|
81 | SUPLoggerCtl_SOURCES = SUPLoggerCtl.cpp
|
---|
82 | SUPLoggerCtl_LIBS = $(LIB_RUNTIME)
|
---|
83 |
|
---|
84 | tstInt_TEMPLATE = VBOXR3EXE
|
---|
85 | tstInt_DEFS = $(VMM_COMMON_DEFS)
|
---|
86 | tstInt_SOURCES = tstInt.cpp
|
---|
87 | tstInt_LIBS = $(LIB_RUNTIME)
|
---|
88 |
|
---|
89 | tstContiguous_TEMPLATE= VBOXR3TSTEXE
|
---|
90 | tstContiguous_SOURCES = tstContiguous.cpp
|
---|
91 |
|
---|
92 | tstInit_TEMPLATE = VBOXR3TSTEXE
|
---|
93 | tstInit_SOURCES = tstInit.cpp
|
---|
94 |
|
---|
95 | tstLow_TEMPLATE = VBOXR3TSTEXE
|
---|
96 | tstLow_SOURCES = tstLow.cpp
|
---|
97 |
|
---|
98 | tstNtQueryStuff_TEMPLATE = VBOXR3TSTEXE
|
---|
99 | tstNtQueryStuff_SDKS = VBOX_NTDLL
|
---|
100 | tstNtQueryStuff_SOURCES = tstNtQueryStuff.cpp
|
---|
101 |
|
---|
102 | tstPin_TEMPLATE = VBOXR3TSTEXE
|
---|
103 | tstPin_SOURCES = tstPin.cpp
|
---|
104 |
|
---|
105 | tstPage_TEMPLATE = VBOXR3TSTEXE
|
---|
106 | tstPage_SOURCES = tstPage.cpp
|
---|
107 |
|
---|
108 | #
|
---|
109 | # tstGIP-2
|
---|
110 | #
|
---|
111 | ifdef VBOX_WITH_TESTCASES
|
---|
112 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
113 | PROGRAMS += tstGIP-2Hardened
|
---|
114 | DLLS += tstGIP-2
|
---|
115 | else
|
---|
116 | PROGRAMS += tstGIP-2
|
---|
117 | endif
|
---|
118 | endif
|
---|
119 |
|
---|
120 | tstGIP-2Hardened_TEMPLATE = VBoxR3HardenedTstExe
|
---|
121 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
122 | tstGIP-2Hardened_DEFS = PROGRAM_NAME_STR="tstGIP-2"
|
---|
123 | else
|
---|
124 | tstGIP-2Hardened_DEFS = PROGRAM_NAME_STR=\"tstGIP-2\"
|
---|
125 | endif
|
---|
126 | tstGIP-2Hardened_SOURCES = ../SUPR3HardenedMainTemplateTestcase.cpp
|
---|
127 | tstGIP-2Hardened_NAME = tstGIP-2
|
---|
128 |
|
---|
129 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
130 | tstGIP-2_TEMPLATE := VBoxR3HardenedTstDll
|
---|
131 | else
|
---|
132 | tstGIP-2_TEMPLATE := VBOXR3TSTEXE
|
---|
133 | endif
|
---|
134 | tstGIP-2_SOURCES = tstGIP-2.cpp
|
---|
135 |
|
---|
136 | tstGetPagingMode_TEMPLATE = VBOXR3TSTEXE
|
---|
137 | tstGetPagingMode_SOURCES = tstGetPagingMode.cpp
|
---|
138 |
|
---|
139 | tstSupLoadModule_TEMPLATE = VBOXR3TSTEXE
|
---|
140 | tstSupLoadModule_SOURCES = tstSupLoadModule.cpp
|
---|
141 |
|
---|
142 | tstSupSem_TEMPLATE = VBOXR3TSTEXE
|
---|
143 | tstSupSem_SOURCES = tstSupSem.cpp
|
---|
144 |
|
---|
145 | tstSupSem-Zombie_TEMPLATE = VBOXR3TSTEXE
|
---|
146 | tstSupSem-Zombie_SOURCES = tstSupSem-Zombie.cpp
|
---|
147 |
|
---|
148 | tstSupTscDelta_TEMPLATE = VBOXR3TSTEXE
|
---|
149 | tstSupTscDelta_SOURCES = tstSupTscDelta.cpp
|
---|
150 |
|
---|
151 | # For testing supR3HardenedVerifyFile on windows.
|
---|
152 | tstSupVerify_TEMPLATE = VBOXR3TSTEXE
|
---|
153 | tstSupVerify_SOURCES = tstSupVerify.cpp
|
---|
154 |
|
---|
155 |
|
---|
156 |
|
---|
157 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
158 |
|
---|