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 |
|
---|
27 | SUB_DEPTH = ../../../../..
|
---|
28 | include $(KBUILD_PATH)/subheader.kmk
|
---|
29 |
|
---|
30 | # We need the VMM/Config.kmk one for the VMM_COMMON_DEFS variable.
|
---|
31 | ifndef VBOX_VMM_CONFIG_KMK_INCLUDED
|
---|
32 | include $(PATH_ROOT)/src/VBox/VMM/Config.kmk
|
---|
33 | endif
|
---|
34 |
|
---|
35 | PROGRAMS += \
|
---|
36 | SUPInstall \
|
---|
37 | SUPUninstall \
|
---|
38 | SUPLoggerCtl
|
---|
39 | ifdef VBOX_WITH_TESTCASES
|
---|
40 | if defined(VBOX_WITH_HARDENING)
|
---|
41 | PROGRAMS += \
|
---|
42 | tstSupVerify
|
---|
43 | endif
|
---|
44 | if !defined(VBOX_WITH_HARDENING) || "$(KBUILD_TARGET)" != "win"
|
---|
45 | PROGRAMS += \
|
---|
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
|
---|
58 | PROGRAMS.win += \
|
---|
59 | tstNtQueryStuff
|
---|
60 | endif # VBOX_WITH_TESTCASES
|
---|
61 |
|
---|
62 | SUPInstall_TEMPLATE = VBOXR3EXE
|
---|
63 | SUPInstall_SOURCES = SUPInstall.cpp
|
---|
64 | SUPInstall_LIBS = $(LIB_RUNTIME)
|
---|
65 |
|
---|
66 | SUPUninstall_TEMPLATE = VBOXR3EXE
|
---|
67 | SUPUninstall_SOURCES = SUPUninstall.cpp
|
---|
68 | SUPUninstall_LIBS = $(LIB_RUNTIME)
|
---|
69 |
|
---|
70 | SUPLoggerCtl_TEMPLATE = VBOXR3EXE
|
---|
71 | SUPLoggerCtl_SOURCES = SUPLoggerCtl.cpp
|
---|
72 | SUPLoggerCtl_LIBS = $(LIB_RUNTIME)
|
---|
73 |
|
---|
74 | tstInt_TEMPLATE = VBOXR3EXE
|
---|
75 | tstInt_DEFS = $(VMM_COMMON_DEFS)
|
---|
76 | tstInt_SOURCES = tstInt.cpp
|
---|
77 | tstInt_LIBS = $(LIB_RUNTIME)
|
---|
78 |
|
---|
79 | tstContiguous_TEMPLATE= VBOXR3TSTEXE
|
---|
80 | tstContiguous_SOURCES = tstContiguous.cpp
|
---|
81 |
|
---|
82 | tstInit_TEMPLATE = VBOXR3TSTEXE
|
---|
83 | tstInit_SOURCES = tstInit.cpp
|
---|
84 |
|
---|
85 | tstLow_TEMPLATE = VBOXR3TSTEXE
|
---|
86 | tstLow_SOURCES = tstLow.cpp
|
---|
87 |
|
---|
88 | tstNtQueryStuff_TEMPLATE = VBOXR3TSTEXE
|
---|
89 | tstNtQueryStuff_SDKS = VBOX_NTDLL
|
---|
90 | tstNtQueryStuff_SOURCES = tstNtQueryStuff.cpp
|
---|
91 |
|
---|
92 | tstPin_TEMPLATE = VBOXR3TSTEXE
|
---|
93 | tstPin_SOURCES = tstPin.cpp
|
---|
94 |
|
---|
95 | tstPage_TEMPLATE = VBOXR3TSTEXE
|
---|
96 | tstPage_SOURCES = tstPage.cpp
|
---|
97 |
|
---|
98 | #
|
---|
99 | # tstGIP-2
|
---|
100 | #
|
---|
101 | ifdef 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
|
---|
108 | endif
|
---|
109 |
|
---|
110 | tstGIP-2Hardened_TEMPLATE = VBoxR3HardenedTstExe
|
---|
111 | ifdef KMK_WITH_QUOTING
|
---|
112 | tstGIP-2Hardened_DEFS = PROGRAM_NAME_STR="tstGIP-2"
|
---|
113 | else
|
---|
114 | tstGIP-2Hardened_DEFS = PROGRAM_NAME_STR=\"tstGIP-2\"
|
---|
115 | endif
|
---|
116 | tstGIP-2Hardened_SOURCES = ../SUPR3HardenedMainTemplateTestcase.cpp
|
---|
117 | tstGIP-2Hardened_NAME = tstGIP-2
|
---|
118 |
|
---|
119 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
120 | tstGIP-2_TEMPLATE := VBoxR3HardenedTstDll
|
---|
121 | else
|
---|
122 | tstGIP-2_TEMPLATE := VBOXR3TSTEXE
|
---|
123 | endif
|
---|
124 | tstGIP-2_SOURCES = tstGIP-2.cpp
|
---|
125 |
|
---|
126 | tstGetPagingMode_TEMPLATE = VBOXR3TSTEXE
|
---|
127 | tstGetPagingMode_SOURCES = tstGetPagingMode.cpp
|
---|
128 |
|
---|
129 | tstSupLoadModule_TEMPLATE = VBOXR3TSTEXE
|
---|
130 | tstSupLoadModule_SOURCES = tstSupLoadModule.cpp
|
---|
131 |
|
---|
132 | tstSupSem_TEMPLATE = VBOXR3TSTEXE
|
---|
133 | tstSupSem_SOURCES = tstSupSem.cpp
|
---|
134 |
|
---|
135 | tstSupSem-Zombie_TEMPLATE = VBOXR3TSTEXE
|
---|
136 | tstSupSem-Zombie_SOURCES = tstSupSem-Zombie.cpp
|
---|
137 |
|
---|
138 | tstSupTscDelta_TEMPLATE = VBOXR3TSTEXE
|
---|
139 | tstSupTscDelta_SOURCES = tstSupTscDelta.cpp
|
---|
140 |
|
---|
141 | # For testing supR3HardenedVerifyFile on windows.
|
---|
142 | tstSupVerify_TEMPLATE = VBOXR3TSTEXE
|
---|
143 | tstSupVerify_SOURCES = tstSupVerify.cpp
|
---|
144 |
|
---|
145 |
|
---|
146 |
|
---|
147 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
148 |
|
---|