1 | # $Id: Makefile.kmk 76553 2019-01-01 01:45:53Z 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 |
|
---|
27 | SUB_DEPTH = ../../../../..
|
---|
28 | include $(KBUILD_PATH)/subheader.kmk
|
---|
29 |
|
---|
30 | PROGRAMS += \
|
---|
31 | SUPInstall \
|
---|
32 | SUPUninstall \
|
---|
33 | SUPLoggerCtl
|
---|
34 | ifdef VBOX_WITH_TESTCASES
|
---|
35 | if defined(VBOX_WITH_HARDENING)
|
---|
36 | PROGRAMS += \
|
---|
37 | tstSupVerify
|
---|
38 | endif
|
---|
39 | if !defined(VBOX_WITH_HARDENING) || "$(KBUILD_TARGET)" != "win"
|
---|
40 | PROGRAMS += \
|
---|
41 | tstPage \
|
---|
42 | tstContiguous \
|
---|
43 | tstInit \
|
---|
44 | tstInt \
|
---|
45 | tstLow \
|
---|
46 | tstPin \
|
---|
47 | tstGetPagingMode \
|
---|
48 | tstSupLoadModule \
|
---|
49 | tstSupSem \
|
---|
50 | tstSupSem-Zombie \
|
---|
51 | tstSupTscDelta
|
---|
52 | endif
|
---|
53 | PROGRAMS.win += \
|
---|
54 | tstNtQueryStuff
|
---|
55 | endif # VBOX_WITH_TESTCASES
|
---|
56 |
|
---|
57 | SUPInstall_TEMPLATE = VBOXR3EXE
|
---|
58 | SUPInstall_SOURCES = SUPInstall.cpp
|
---|
59 | SUPInstall_LIBS = $(LIB_RUNTIME)
|
---|
60 |
|
---|
61 | SUPUninstall_TEMPLATE = VBOXR3EXE
|
---|
62 | SUPUninstall_SOURCES = SUPUninstall.cpp
|
---|
63 | SUPUninstall_LIBS = $(LIB_RUNTIME)
|
---|
64 |
|
---|
65 | SUPLoggerCtl_TEMPLATE = VBOXR3EXE
|
---|
66 | SUPLoggerCtl_SOURCES = SUPLoggerCtl.cpp
|
---|
67 | SUPLoggerCtl_LIBS = $(LIB_RUNTIME)
|
---|
68 |
|
---|
69 | tstInt_TEMPLATE = VBOXR3EXE
|
---|
70 | tstInt_SOURCES = tstInt.cpp
|
---|
71 | tstInt_LIBS = $(LIB_RUNTIME)
|
---|
72 |
|
---|
73 | tstContiguous_TEMPLATE= VBOXR3TSTEXE
|
---|
74 | tstContiguous_SOURCES = tstContiguous.cpp
|
---|
75 |
|
---|
76 | tstInit_TEMPLATE = VBOXR3TSTEXE
|
---|
77 | tstInit_SOURCES = tstInit.cpp
|
---|
78 |
|
---|
79 | tstLow_TEMPLATE = VBOXR3TSTEXE
|
---|
80 | tstLow_SOURCES = tstLow.cpp
|
---|
81 |
|
---|
82 | tstNtQueryStuff_TEMPLATE = VBOXR3TSTEXE
|
---|
83 | tstNtQueryStuff_SDKS = VBOX_NTDLL
|
---|
84 | tstNtQueryStuff_SOURCES = tstNtQueryStuff.cpp
|
---|
85 |
|
---|
86 | tstPin_TEMPLATE = VBOXR3TSTEXE
|
---|
87 | tstPin_SOURCES = tstPin.cpp
|
---|
88 |
|
---|
89 | tstPage_TEMPLATE = VBOXR3TSTEXE
|
---|
90 | tstPage_SOURCES = tstPage.cpp
|
---|
91 |
|
---|
92 | #
|
---|
93 | # tstGIP-2
|
---|
94 | #
|
---|
95 | ifdef VBOX_WITH_TESTCASES
|
---|
96 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
97 | PROGRAMS += tstGIP-2Hardened
|
---|
98 | DLLS += tstGIP-2
|
---|
99 | else
|
---|
100 | PROGRAMS += tstGIP-2
|
---|
101 | endif
|
---|
102 | endif
|
---|
103 |
|
---|
104 | tstGIP-2Hardened_TEMPLATE = VBoxR3HardenedTstExe
|
---|
105 | tstGIP-2Hardened_DEFS = PROGRAM_NAME_STR=\"tstGIP-2\"
|
---|
106 | tstGIP-2Hardened_SOURCES = ../SUPR3HardenedMainTemplateTestcase.cpp
|
---|
107 | tstGIP-2Hardened_NAME = tstGIP-2
|
---|
108 |
|
---|
109 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
110 | tstGIP-2_TEMPLATE := VBoxR3HardenedTstDll
|
---|
111 | else
|
---|
112 | tstGIP-2_TEMPLATE := VBOXR3TSTEXE
|
---|
113 | endif
|
---|
114 | tstGIP-2_SOURCES = tstGIP-2.cpp
|
---|
115 |
|
---|
116 | tstGetPagingMode_TEMPLATE = VBOXR3TSTEXE
|
---|
117 | tstGetPagingMode_SOURCES = tstGetPagingMode.cpp
|
---|
118 |
|
---|
119 | tstSupLoadModule_TEMPLATE = VBOXR3TSTEXE
|
---|
120 | tstSupLoadModule_SOURCES = tstSupLoadModule.cpp
|
---|
121 |
|
---|
122 | tstSupSem_TEMPLATE = VBOXR3TSTEXE
|
---|
123 | tstSupSem_SOURCES = tstSupSem.cpp
|
---|
124 |
|
---|
125 | tstSupSem-Zombie_TEMPLATE = VBOXR3TSTEXE
|
---|
126 | tstSupSem-Zombie_SOURCES = tstSupSem-Zombie.cpp
|
---|
127 |
|
---|
128 | tstSupTscDelta_TEMPLATE = VBOXR3TSTEXE
|
---|
129 | tstSupTscDelta_SOURCES = tstSupTscDelta.cpp
|
---|
130 |
|
---|
131 | # For testing supR3HardenedVerifyFile on windows.
|
---|
132 | tstSupVerify_TEMPLATE = VBOXR3TSTEXE
|
---|
133 | tstSupVerify_SOURCES = tstSupVerify.cpp
|
---|
134 |
|
---|
135 |
|
---|
136 |
|
---|
137 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
138 |
|
---|