1 | #
|
---|
2 | # Makefile for the IPRT testcases.
|
---|
3 | #
|
---|
4 |
|
---|
5 | #
|
---|
6 | # Copyright (C) 2006 InnoTek Systemberatung GmbH
|
---|
7 | #
|
---|
8 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | # available from http://www.virtualbox.org. This file is free software;
|
---|
10 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | # General Public License as published by the Free Software Foundation,
|
---|
12 | # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
13 | # distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
14 | # be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | #
|
---|
16 | # If you received this file as part of a commercial VirtualBox
|
---|
17 | # distribution, then only the terms of your commercial VirtualBox
|
---|
18 | # license agreement apply instead of the previous paragraph.
|
---|
19 | #
|
---|
20 |
|
---|
21 | DEPTH = ../../../..
|
---|
22 | include $(PATH_KBUILD)/header.kmk
|
---|
23 |
|
---|
24 | ifdef VBOX_WITH_TESTCASES
|
---|
25 | PROGRAMS = \
|
---|
26 | tstCritSect \
|
---|
27 | tstPrfRT \
|
---|
28 | tstLdr \
|
---|
29 | tstLdr-2 \
|
---|
30 | tstLdr-3 \
|
---|
31 | tstLdr-4 \
|
---|
32 | tstLdrLoad \
|
---|
33 | tstAvl \
|
---|
34 | tstTimer \
|
---|
35 | tstTime \
|
---|
36 | tstTime-2 \
|
---|
37 | tstTime-3 \
|
---|
38 | tstTimeSpec \
|
---|
39 | tstStrFormat \
|
---|
40 | tstPath \
|
---|
41 | tstLog \
|
---|
42 | tstFile \
|
---|
43 | tstFileLock \
|
---|
44 | tstBitOperations \
|
---|
45 | tstInlineAsm \
|
---|
46 | tstStrToNum \
|
---|
47 | tstDir \
|
---|
48 | tstDir-2 \
|
---|
49 | tstRTFsQueries \
|
---|
50 | tstMove \
|
---|
51 | tstUtf8 \
|
---|
52 | tstDeadlock \
|
---|
53 | tstUuid \
|
---|
54 | tstErrUnique \
|
---|
55 | tstHeapSimple
|
---|
56 | PROGRAMS.win = \
|
---|
57 | tstRTProcWait \
|
---|
58 | tstCritSectW32 \
|
---|
59 | ntGetTimerResolution
|
---|
60 | PROGRAMS.linux = \
|
---|
61 | tstRTProcWait \
|
---|
62 | tstBitOperationsPIC3 \
|
---|
63 | tstInlineAsmPIC \
|
---|
64 | tstInlineAsmPIC3
|
---|
65 | PROGRAMS.l4 = \
|
---|
66 | tstIoCtl
|
---|
67 | SYSMODS = \
|
---|
68 | tstLdrObj \
|
---|
69 | tstLdrObjR0
|
---|
70 | ifeq ($(filter-out lx pe,$(VBOX_LDR_FMT)), )
|
---|
71 | LIBRARIES += \
|
---|
72 | tstLdr-4Imp
|
---|
73 | endif
|
---|
74 |
|
---|
75 | # tstSems
|
---|
76 | endif # VBOX_WITH_TESTCASES
|
---|
77 |
|
---|
78 |
|
---|
79 | TEMPLATE = VBOXR3TSTEXE
|
---|
80 |
|
---|
81 |
|
---|
82 | tstTimer_SOURCES = tstTimer.cpp
|
---|
83 |
|
---|
84 | tstTime_SOURCES = tstTime.cpp
|
---|
85 |
|
---|
86 | tstTime-2_SOURCES = tstTime-2.cpp
|
---|
87 |
|
---|
88 | tstTime-3_SOURCES = tstTime-3.cpp
|
---|
89 |
|
---|
90 | tstTimeSpec_SOURCES = tstTimeSpec.cpp
|
---|
91 |
|
---|
92 | tstStrFormat_SOURCES = tstStrFormat.cpp
|
---|
93 |
|
---|
94 | tstLog_SOURCES = tstLog.cpp
|
---|
95 |
|
---|
96 | tstPath_SOURCES = tstPath.cpp
|
---|
97 |
|
---|
98 | tstSems_SOURCES = tstSems.cpp
|
---|
99 |
|
---|
100 | tstAvl_SOURCES = tstAvl.cpp
|
---|
101 |
|
---|
102 | tstFile_SOURCES = tstFile.cpp
|
---|
103 |
|
---|
104 | tstFileLock_SOURCES = tstFileLock.cpp
|
---|
105 |
|
---|
106 | tstBitOperations_SOURCES = tstBitOperations.cpp
|
---|
107 |
|
---|
108 | tstBitOperationsPIC3_SOURCES = tstBitOperations.cpp
|
---|
109 | tstBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
|
---|
110 | tstBitOperationsPIC3_DEFS = PIC
|
---|
111 |
|
---|
112 | tstInlineAsm_SOURCES = tstInlineAsm.cpp
|
---|
113 |
|
---|
114 | tstInlineAsmPIC_SOURCES = tstInlineAsm.cpp
|
---|
115 | tstInlineAsmPIC_CXXFLAGS = -fPIC
|
---|
116 | tstInlineAsmPIC_DEFS = PIC
|
---|
117 |
|
---|
118 | tstInlineAsmPIC3_SOURCES = tstInlineAsm.cpp
|
---|
119 | tstInlineAsmPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
|
---|
120 | tstInlineAsmPIC3_DEFS = PIC
|
---|
121 |
|
---|
122 | tstCritSect_SOURCES = tstCritSect.cpp
|
---|
123 |
|
---|
124 | tstCritSectW32_SOURCES = tstCritSect.cpp
|
---|
125 | tstCritSectW32_DEFS = TRY_WIN32_CRIT
|
---|
126 |
|
---|
127 | tstLdr_SOURCES = tstLdr.cpp
|
---|
128 |
|
---|
129 | tstLdr-2_SOURCES = tstLdr-2.cpp
|
---|
130 | tstLdr-2_DEFS = IN_DIS_R3
|
---|
131 | tstLdr-2_LIBS = \
|
---|
132 | $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
|
---|
133 |
|
---|
134 | tstLdrObj_TEMPLATE = VBOXGC
|
---|
135 | tstLdrObj_INST = $(INST_TESTCASE)
|
---|
136 | tstLdrObj_SYSSUFF = .gc
|
---|
137 | tstLdrObj_SOURCES = tstLdrObj.cpp
|
---|
138 | tstLdrObj_DEFS = IN_DIS_GC IN_RT_GC DIS_CORE_ONLY
|
---|
139 | ifeq ($(VBOX_LDR_FMT32),elf)
|
---|
140 | tstLdrObj_DEFS += VBOX_SOME_IMPORT_FUNCTION
|
---|
141 | endif
|
---|
142 | tstLdrObj_LIBS = \
|
---|
143 | $(PATH_LIB)/DisasmGC$(VBOX_SUFF_LIB) \
|
---|
144 | $(PATH_LIB)/RuntimeGC$(VBOX_SUFF_LIB)
|
---|
145 | ifeq ($(VBOX_LDR_FMT32),pe)
|
---|
146 | tstLdrObj_LDFLAGS = -Entry:Entrypoint
|
---|
147 | tstLdrObj_LIBS += \
|
---|
148 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB)
|
---|
149 | endif # PE
|
---|
150 | ifeq ($(VBOX_LDR_FMT32),elf)
|
---|
151 | tstLdrObj_LDFLAGS = -entry=Entrypoint
|
---|
152 | tstLdrObj_LIBS += \
|
---|
153 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB)
|
---|
154 | endif
|
---|
155 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
156 | tstLdrObj_LIBS += \
|
---|
157 | $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB)
|
---|
158 | endif
|
---|
159 |
|
---|
160 |
|
---|
161 | tstLdr-3_SOURCES = tstLdr-3.cpp
|
---|
162 | tstLdr-3_DEFS = IN_DIS_R3
|
---|
163 | tstLdr-3_LIBS = \
|
---|
164 | $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
|
---|
165 |
|
---|
166 | tstLdr-4Imp_TEMPLATE = VBOXR0
|
---|
167 | ifeq ($(VBOX_LDR_FMT),lx)
|
---|
168 | tstLdr-4Imp_SOURCES = tstLdr-4Imp-os2.def
|
---|
169 | else ifeq ($(VBOX_LDR_FMT),pe)
|
---|
170 | tstLdr-4Imp_SOURCES.win = tstLdr-4Imp-win.def
|
---|
171 | endif
|
---|
172 |
|
---|
173 | tstLdrObjR0_TEMPLATE = VBOXR0
|
---|
174 | tstLdrObjR0_INST = $(INST_TESTCASE)
|
---|
175 | tstLdrObjR0_SYSSUFF = .r0
|
---|
176 | tstLdrObjR0_SOURCES = tstLdrObjR0.cpp tstLdrDisasmTest.cpp
|
---|
177 | tstLdrObjR0_DEFS = IN_DIS_R0 IN_RT_R0 DIS_CORE_ONLY
|
---|
178 | ifeq ($(VBOX_LDR_FMT32),elf)
|
---|
179 | tstLdrObjR0_DEFS += VBOX_SOME_IMPORT_FUNCTION
|
---|
180 | endif
|
---|
181 | tstLdrObjR0_LIBS = \
|
---|
182 | $(PATH_LIB)/DisasmR0$(VBOX_SUFF_LIB) \
|
---|
183 | $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
|
---|
184 | ifeq ($(VBOX_LDR_FMT),pe)
|
---|
185 | tstLdrObjR0_LDFLAGS = -Entry:Entrypoint
|
---|
186 | tstLdrObjR0_LIBS += \
|
---|
187 | $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) \
|
---|
188 | $(TARGET_tstLdr-4Imp)
|
---|
189 | endif
|
---|
190 | ifeq ($(VBOX_LDR_FMT),elf)
|
---|
191 | tstLdrObjR0_LDFLAGS = -entry=Entrypoint
|
---|
192 | endif
|
---|
193 | ifeq ($(VBOX_LDR_FMT),lx)
|
---|
194 | tstLdrObjR0_LIBS += \
|
---|
195 | $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) \
|
---|
196 | $(TARGET_tstLdr-4Imp)
|
---|
197 | endif
|
---|
198 |
|
---|
199 | tstLdr-4_SOURCES = tstLdr-4.cpp tstLdrDisasmTest.cpp
|
---|
200 | tstLdr-4_DEFS = IN_DIS_R3
|
---|
201 | tstLdr-4_LIBS = \
|
---|
202 | $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
|
---|
203 |
|
---|
204 | tstLdrLoad_SOURCES = tstLdrLoad.cpp
|
---|
205 |
|
---|
206 | tstPrfRT_SOURCES = tstPrfRT.cpp
|
---|
207 |
|
---|
208 | tstRTProcWait_SOURCES = tstRTProcWait.cpp
|
---|
209 |
|
---|
210 | tstStrToNum_SOURCES = tstStrToNum.cpp
|
---|
211 |
|
---|
212 | tstUtf8_SOURCES = tstUtf8.cpp
|
---|
213 |
|
---|
214 | tstDir_SOURCES = tstDir.cpp
|
---|
215 |
|
---|
216 | tstDir-2_SOURCES = tstDir-2.cpp
|
---|
217 |
|
---|
218 | tstRTFsQueries_SOURCES = tstRTFsQueries.cpp
|
---|
219 |
|
---|
220 | tstMove_SOURCES = tstMove.cpp
|
---|
221 |
|
---|
222 | ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
|
---|
223 | ntGetTimerResolution_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
|
---|
224 |
|
---|
225 | tstIoCtl_SOURCES = tstIoCtl.cpp
|
---|
226 |
|
---|
227 | tstDeadlock_SOURCES = tstDeadlock.cpp
|
---|
228 |
|
---|
229 | tstUuid_SOURCES = tstUuid.cpp
|
---|
230 |
|
---|
231 | tstErrUnique_SOURCES = tstErrUnique.cpp
|
---|
232 | tstErrUnique_INCS = $(PATH_TARGET)/..
|
---|
233 | ## tstErrUnique.cpp depends on a generated header.
|
---|
234 | tstErrUnique.cpp_DEPS = $(PATH_TARGET)/../errmsgdata.h
|
---|
235 |
|
---|
236 | tstHeapSimple_SOURCES = tstHeapSimple.cpp
|
---|
237 |
|
---|
238 | include $(PATH_KBUILD)/footer.kmk
|
---|
239 |
|
---|