VirtualBox

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

Last change on this file since 84533 was 84533, checked in by vboxsync, 5 years ago

s/VBOX_WITH_AUTOMATIC_DEFS_QUOTING/KMK_WITH_QUOTING/g - bugref:8489

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