VirtualBox

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

Last change on this file since 82680 was 80305, checked in by vboxsync, 6 years ago

REM,VMM,tstInt,Devices: Use VMM_COMMON_DEFS when including vm.h so the layout is always right. bugref:9217

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.8 KB
Line 
1# $Id: Makefile.kmk 80305 2019-08-15 17:35:00Z vboxsync $
2## @file
3# Sub-Makefile for the SUPLib testcases.
4#
5
6#
7# Copyright (C) 2006-2019 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
111tstGIP-2Hardened_DEFS = PROGRAM_NAME_STR=\"tstGIP-2\"
112tstGIP-2Hardened_SOURCES = ../SUPR3HardenedMainTemplateTestcase.cpp
113tstGIP-2Hardened_NAME = tstGIP-2
114
115if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
116 tstGIP-2_TEMPLATE := VBoxR3HardenedTstDll
117else
118 tstGIP-2_TEMPLATE := VBOXR3TSTEXE
119endif
120tstGIP-2_SOURCES = tstGIP-2.cpp
121
122tstGetPagingMode_TEMPLATE = VBOXR3TSTEXE
123tstGetPagingMode_SOURCES = tstGetPagingMode.cpp
124
125tstSupLoadModule_TEMPLATE = VBOXR3TSTEXE
126tstSupLoadModule_SOURCES = tstSupLoadModule.cpp
127
128tstSupSem_TEMPLATE = VBOXR3TSTEXE
129tstSupSem_SOURCES = tstSupSem.cpp
130
131tstSupSem-Zombie_TEMPLATE = VBOXR3TSTEXE
132tstSupSem-Zombie_SOURCES = tstSupSem-Zombie.cpp
133
134tstSupTscDelta_TEMPLATE = VBOXR3TSTEXE
135tstSupTscDelta_SOURCES = tstSupTscDelta.cpp
136
137# For testing supR3HardenedVerifyFile on windows.
138tstSupVerify_TEMPLATE = VBOXR3TSTEXE
139tstSupVerify_SOURCES = tstSupVerify.cpp
140
141
142
143include $(FILE_KBUILD_SUB_FOOTER)
144
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