VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/Support/testcase/Makefile.kmk@ 98110

Last change on this file since 98110 was 98103, checked in by vboxsync, 23 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.2 KB
Line 
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
37SUB_DEPTH = ../../../../..
38include $(KBUILD_PATH)/subheader.kmk
39
40# We need the VMM/Config.kmk one for the VMM_COMMON_DEFS variable.
41ifndef VBOX_VMM_CONFIG_KMK_INCLUDED
42 include $(PATH_ROOT)/src/VBox/VMM/Config.kmk
43endif
44
45PROGRAMS += \
46 SUPInstall \
47 SUPUninstall \
48 SUPLoggerCtl
49ifdef VBOX_WITH_TESTCASES
50 if defined(VBOX_WITH_HARDENING)
51PROGRAMS += \
52 tstSupVerify
53 endif
54 if !defined(VBOX_WITH_HARDENING) || "$(KBUILD_TARGET)" != "win"
55PROGRAMS += \
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
68PROGRAMS.win += \
69 tstNtQueryStuff
70endif # VBOX_WITH_TESTCASES
71
72SUPInstall_TEMPLATE = VBOXR3EXE
73SUPInstall_SOURCES = SUPInstall.cpp
74SUPInstall_LIBS = $(LIB_RUNTIME)
75
76SUPUninstall_TEMPLATE = VBOXR3EXE
77SUPUninstall_SOURCES = SUPUninstall.cpp
78SUPUninstall_LIBS = $(LIB_RUNTIME)
79
80SUPLoggerCtl_TEMPLATE = VBOXR3EXE
81SUPLoggerCtl_SOURCES = SUPLoggerCtl.cpp
82SUPLoggerCtl_LIBS = $(LIB_RUNTIME)
83
84tstInt_TEMPLATE = VBOXR3EXE
85tstInt_DEFS = $(VMM_COMMON_DEFS)
86tstInt_SOURCES = tstInt.cpp
87tstInt_LIBS = $(LIB_RUNTIME)
88
89tstContiguous_TEMPLATE= VBOXR3TSTEXE
90tstContiguous_SOURCES = tstContiguous.cpp
91
92tstInit_TEMPLATE = VBOXR3TSTEXE
93tstInit_SOURCES = tstInit.cpp
94
95tstLow_TEMPLATE = VBOXR3TSTEXE
96tstLow_SOURCES = tstLow.cpp
97
98tstNtQueryStuff_TEMPLATE = VBOXR3TSTEXE
99tstNtQueryStuff_SDKS = VBOX_NTDLL
100tstNtQueryStuff_SOURCES = tstNtQueryStuff.cpp
101
102tstPin_TEMPLATE = VBOXR3TSTEXE
103tstPin_SOURCES = tstPin.cpp
104
105tstPage_TEMPLATE = VBOXR3TSTEXE
106tstPage_SOURCES = tstPage.cpp
107
108#
109# tstGIP-2
110#
111ifdef 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
118endif
119
120tstGIP-2Hardened_TEMPLATE = VBoxR3HardenedTstExe
121ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
122 tstGIP-2Hardened_DEFS = PROGRAM_NAME_STR="tstGIP-2"
123else
124 tstGIP-2Hardened_DEFS = PROGRAM_NAME_STR=\"tstGIP-2\"
125endif
126tstGIP-2Hardened_SOURCES = ../SUPR3HardenedMainTemplateTestcase.cpp
127tstGIP-2Hardened_NAME = tstGIP-2
128
129if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
130 tstGIP-2_TEMPLATE := VBoxR3HardenedTstDll
131else
132 tstGIP-2_TEMPLATE := VBOXR3TSTEXE
133endif
134tstGIP-2_SOURCES = tstGIP-2.cpp
135
136tstGetPagingMode_TEMPLATE = VBOXR3TSTEXE
137tstGetPagingMode_SOURCES = tstGetPagingMode.cpp
138
139tstSupLoadModule_TEMPLATE = VBOXR3TSTEXE
140tstSupLoadModule_SOURCES = tstSupLoadModule.cpp
141
142tstSupSem_TEMPLATE = VBOXR3TSTEXE
143tstSupSem_SOURCES = tstSupSem.cpp
144
145tstSupSem-Zombie_TEMPLATE = VBOXR3TSTEXE
146tstSupSem-Zombie_SOURCES = tstSupSem-Zombie.cpp
147
148tstSupTscDelta_TEMPLATE = VBOXR3TSTEXE
149tstSupTscDelta_SOURCES = tstSupTscDelta.cpp
150
151# For testing supR3HardenedVerifyFile on windows.
152tstSupVerify_TEMPLATE = VBOXR3TSTEXE
153tstSupVerify_SOURCES = tstSupVerify.cpp
154
155
156
157include $(FILE_KBUILD_SUB_FOOTER)
158
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