VirtualBox

source: vbox/trunk/src/VBox/Runtime/testcase/Makefile.kmk@ 39627

Last change on this file since 39627 was 39448, checked in by vboxsync, 13 years ago

Runtime: forgot the Makefiles

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 14.8 KB
Line 
1# $Id: Makefile.kmk 39448 2011-11-29 10:16:56Z vboxsync $
2## @file
3# Sub-Makefile for the IPRT testcases.
4#
5
6#
7# Copyright (C) 2006-2010 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
30ifdef VBOX_WITH_TESTCASES
31
32#
33# Globals
34#
35# WARNING: Careful with this wrt to the other sub-makefiles this joins.
36#
37TEMPLATE = VBOXR3TSTEXE
38
39# Defined by the parent makefile as well (for errmsgdata.h).
40IPRT_OUT_DIR ?= $(PATH_TARGET)/Runtime
41
42
43#
44# Target lists
45#
46PROGRAMS += \
47 tstRTAssertCompile \
48 tstRTAvl \
49 tstRTBase64 \
50 tstRTBitOperations \
51 tstRTCidr \
52 tstRTCritSect \
53 tstRTCType \
54 tstRTDigest \
55 tstDir \
56 tstDir-2 \
57 tstDir-3 \
58 tstRTDvm \
59 tstEnv \
60 tstErrUnique \
61 tstFile \
62 tstRTFileAio \
63 tstRTFileAppend-1 \
64 tstRTFileGetSize-1 \
65 tstFileLock \
66 tstFork \
67 tstRTGetOpt \
68 tstRTGetOptArgv \
69 tstHandleTable \
70 tstRTHeapOffset \
71 tstRTHeapSimple \
72 tstRTInlineAsm \
73 tstIprtList \
74 tstIprtMiniString \
75 tstLdr \
76 tstLdrLoad \
77 tstRTList \
78 tstRTLockValidator \
79 tstLog \
80 tstMemAutoPtr \
81 tstRTMemEf \
82 tstRTMemCache \
83 tstRTMemPool \
84 tstMove \
85 tstMp-1 \
86 tstOnce \
87 tstRTPath \
88 tstRTPipe \
89 tstRTPoll \
90 tstRTPrfIO \
91 tstRTProcCreateEx \
92 tstPrfRT \
93 tstRand \
94 tstRTFsQueries \
95 tstRTSemEventMulti \
96 tstSemMutex \
97 tstSemPingPong \
98 tstRTSemRW \
99 tstRTSemXRoads \
100 tstRTSort \
101 tstRTStrAlloc \
102 tstRTStrCache \
103 tstRTStrCatCopy \
104 tstRTStrFormat \
105 tstStrSimplePattern \
106 tstStrToNum \
107 tstRTStrVersion \
108 tstRTSymlink \
109 tstRTSystemQueryDmi \
110 tstRTSystemQueryOsInfo \
111 tstRTTcp-1 \
112 tstRTTemp \
113 tstRTDirCreateUniqueNumbered \
114 tstTermCallbacks \
115 tstThread-1 \
116 tstRTThreadPoke \
117 tstRTThreadExecutionTime \
118 tstTime \
119 tstTime-2 \
120 tstTime-3 \
121 tstTime-4 \
122 tstTimer \
123 tstTimerLR \
124 tstRTTimeSpec \
125 tstUtf8 \
126 tstRTUuid \
127 tstRTCircBuf \
128 tstRTManifest \
129 tstRTUri \
130 tstVector
131
132PROGRAMS.win += \
133 tstRTProcWait \
134 tstRTCritSectW32 \
135 tstFileAppendWin-1 \
136 ntGetTimerResolution
137PROGRAMS.linux += \
138 tstRTProcWait \
139 tstRTProcIsRunningByName \
140 tstRTBitOperationsPIC3 \
141 tstRTInlineAsmPIC \
142 tstRTInlineAsmPIC3
143PROGRAMS.solaris += \
144 tstRTCoreDump
145PROGRAMS.l4 += \
146 tstIoCtl
147PROGRAMS.darwin += \
148 tstDarwinSched \
149 tstRTDarwinMachKernel
150ifdef VBOX_WITH_LIBCURL
151 PROGRAMS += \
152 tstRTS3
153endif
154if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
155 PROGRAMS += \
156 tstLdr-2 \
157 tstLdr-3 \
158 tstLdr-4 \
159 tstNoCrt-1 \
160 tstRTR0MemUserKernelDriver \
161 tstRTR0SemMutexDriver \
162 tstRTR0TimerDriver \
163 tstR0ThreadPreemptionDriver \
164 tstTSC
165 SYSMODS += \
166 tstLdrObjR0 \
167 tstRTR0MemUserKernel \
168 tstRTR0SemMutex \
169 tstRTR0Timer \
170 tstR0ThreadPreemption
171 ifdef VBOX_WITH_RAW_MODE
172 SYSMODS += tstLdrObj
173 endif
174endif
175if1of ($(VBOX_LDR_FMT)), lx pe)
176 LIBRARIES += \
177 tstLdr-4Imp
178endif
179
180
181#
182# Target configs in almost alphabetical order.
183#
184
185tstRTAssertCompile_TEMPLATE = VBOXR3TSTEXE
186tstRTAssertCompile_INSTTYPE = none
187tstRTAssertCompile_SOURCES = tstRTAssertCompile.cpp
188
189tstRTAvl_TEMPLATE = VBOXR3TSTEXE
190tstRTAvl_SOURCES = tstRTAvl.cpp
191
192tstRTBase64_TEMPLATE = VBOXR3TSTEXE
193tstRTBase64_SOURCES = tstRTBase64.cpp
194
195tstRTBitOperations_TEMPLATE = VBOXR3TSTEXE
196tstRTBitOperations_SOURCES = tstRTBitOperations.cpp
197
198tstRTBitOperationsPIC3_TEMPLATE = VBOXR3TSTEXE
199tstRTBitOperationsPIC3_SOURCES = tstRTBitOperations.cpp
200tstRTBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
201tstRTBitOperationsPIC3_DEFS = PIC
202
203tstRTCidr_TEMPLATE = VBOXR3TSTEXE
204tstRTCidr_SOURCES = tstRTCidr.cpp
205
206tstRTCritSect_TEMPLATE = VBOXR3TSTEXE
207tstRTCritSect_SOURCES = tstRTCritSect.cpp
208
209tstRTCritSectW32_TEMPLATE = VBOXR3TSTEXE
210tstRTCritSectW32_SOURCES = tstRTCritSect.cpp
211tstRTCritSectW32_DEFS = TRY_WIN32_CRIT
212
213tstRTCType_TEMPLATE = VBOXR3TSTEXE
214tstRTCType_SOURCES = tstRTCType.cpp
215
216tstRTDigest_SOURCES = tstRTDigest.cpp
217
218tstDir_SOURCES = tstDir.cpp
219
220tstDir-2_SOURCES = tstDir-2.cpp
221
222tstDir-3_SOURCES = tstDir-3.cpp
223
224tstRTDvm_SOURCES = tstRTDvm.cpp
225
226tstEnv_SOURCES = tstEnv.cpp
227
228# Note: tstErrUnique.cpp depends on a header generated by the makefile above us.
229tstErrUnique_SOURCES = tstErrUnique.cpp
230tstErrUnique_INCS = $(IPRT_OUT_DIR)/
231tstErrUnique.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h
232
233tstFile_SOURCES = tstFile.cpp
234
235tstRTFileAio_SOURCES = VBOXR3TSTEXE
236tstRTFileAio_SOURCES = tstRTFileAio.cpp
237
238tstRTFileAppend-1_TEMPLATE = VBOXR3TSTEXE
239tstRTFileAppend-1_SOURCES = tstRTFileAppend-1.cpp
240
241tstRTFileGetSize-1_TEMPLATE = VBOXR3TSTEXE
242tstRTFileGetSize-1_SOURCES = tstRTFileGetSize-1.cpp
243
244tstFileAppendWin-1_SOURCES = tstFileAppendWin-1.cpp
245
246tstFileLock_SOURCES = tstFileLock.cpp
247
248tstFork_SOURCES = tstFork.cpp
249
250tstRTGetOpt_TEMPLATE = VBOXR3TSTEXE
251tstRTGetOpt_SOURCES = tstRTGetOpt.cpp
252
253tstRTGetOptArgv_TEMPLATE = VBOXR3TSTEXE
254tstRTGetOptArgv_SOURCES = tstRTGetOptArgv.cpp
255
256tstHandleTable_SOURCES = tstHandleTable.cpp
257
258tstRTHeapOffset_TEMPLATE = VBOXR3TSTEXE
259tstRTHeapOffset_SOURCES = tstRTHeapOffset.cpp
260
261tstRTHeapSimple_TEMPLATE = VBOXR3TSTEXE
262tstRTHeapSimple_SOURCES = tstRTHeapSimple.cpp
263
264tstIoCtl_SOURCES = tstIoCtl.cpp
265
266tstRTInlineAsm_TEMPLATE = VBOXR3TSTEXE
267tstRTInlineAsm_SOURCES = tstRTInlineAsm.cpp
268
269tstRTInlineAsmPIC_TEMPLATE = VBOXR3TSTEXE
270tstRTInlineAsmPIC_SOURCES = tstRTInlineAsm.cpp
271tstRTInlineAsmPIC_CXXFLAGS = -fPIC
272tstRTInlineAsmPIC_DEFS = PIC
273
274tstRTInlineAsmPIC3_TEMPLATE = VBOXR3TSTEXE
275tstRTInlineAsmPIC3_SOURCES = tstRTInlineAsm.cpp
276tstRTInlineAsmPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
277tstRTInlineAsmPIC3_DEFS = PIC
278
279tstIprtList_TEMPLATE = VBOXR3TSTEXE
280tstIprtList_SOURCES = tstIprtList.cpp
281
282tstIprtMiniString_TEMPLATE = VBOXR3TSTEXE
283tstIprtMiniString_SOURCES = tstIprtMiniString.cpp
284
285tstLdr_SOURCES = tstLdr.cpp
286
287tstLdr-2_SOURCES = tstLdr-2.cpp
288tstLdr-2_DEFS = IN_DIS
289tstLdr-2_LIBS = \
290 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
291
292ifdef VBOX_WITH_RAW_MODE
293 tstLdrObj_TEMPLATE = VBoxRc
294 tstLdrObj_INST = $(INST_TESTCASE)
295 tstLdrObj_SYSSUFF = .gc
296 tstLdrObj_SOURCES = tstLdrObj.cpp
297 tstLdrObj_DEFS = IN_DIS IN_RT_RC DIS_CORE_ONLY
298 ifeq ($(VBOX_LDR_FMT32),elf)
299 tstLdrObj_DEFS += VBOX_SOME_IMPORT_FUNCTION
300 endif
301 tstLdrObj_LIBS = \
302 $(PATH_STAGE_LIB)/DisasmRC$(VBOX_SUFF_LIB) \
303 $(PATH_STAGE_LIB)/RuntimeRC$(VBOX_SUFF_LIB)
304 ifeq ($(VBOX_LDR_FMT32),pe)
305 tstLdrObj_LIBS += \
306 $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB)
307 endif # PE
308 ifeq ($(VBOX_LDR_FMT32),elf)
309 tstLdrObj_LDFLAGS = -e Entrypoint
310 endif
311 ifeq ($(VBOX_LDR_FMT32),lx)
312 tstLdrObj_LIBS += \
313 $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB)
314 endif
315endif # VBOX_WITH_RAW_MODE
316
317tstLdr-3_SOURCES = tstLdr-3.cpp
318tstLdr-3_DEFS = IN_DIS
319tstLdr-3_LIBS = \
320 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
321
322tstLdr-4Imp_TEMPLATE = VBoxR0
323ifeq ($(VBOX_LDR_FMT),lx)
324 tstLdr-4Imp_SOURCES = tstLdr-4Imp-os2.def
325else ifeq ($(VBOX_LDR_FMT),pe)
326 tstLdr-4Imp_SOURCES.win = tstLdr-4Imp-win.def
327endif
328
329tstLdrObjR0_TEMPLATE = VBoxR0
330tstLdrObjR0_INST = $(INST_TESTCASE)
331tstLdrObjR0_SYSSUFF = .r0
332tstLdrObjR0_SOURCES = tstLdrObjR0.cpp tstLdrDisasmTest.cpp
333tstLdrObjR0_DEFS = IN_DIS IN_RT_R0 DIS_CORE_ONLY
334ifeq ($(VBOX_LDR_FMT32),elf)
335 tstLdrObjR0_DEFS += VBOX_SOME_IMPORT_FUNCTION
336endif
337ifn1of ($(KBUILD_TARGET), win)
338 tstLdrObjR0_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
339endif
340tstLdrObjR0_LIBS = \
341 $(PATH_STAGE_LIB)/DisasmR0$(VBOX_SUFF_LIB) \
342 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
343ifeq ($(VBOX_LDR_FMT),pe)
344 tstLdrObjR0_LIBS += \
345 $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB) \
346 $(TARGET_tstLdr-4Imp)
347endif
348ifeq ($(VBOX_LDR_FMT),elf)
349 tstLdrObjR0_LDFLAGS = -e Entrypoint
350endif
351ifeq ($(VBOX_LDR_FMT),lx)
352 tstLdrObjR0_LIBS += \
353 $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB) \
354 $(TARGET_tstLdr-4Imp)
355endif
356
357tstLdr-4_SOURCES = tstLdr-4.cpp tstLdrDisasmTest.cpp
358tstLdr-4_DEFS = IN_DIS
359tstLdr-4_LIBS = \
360 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
361
362tstLdrLoad_SOURCES = tstLdrLoad.cpp
363
364tstRTList_TEMPLATE = VBOXR3TSTEXE
365tstRTList_SOURCES = tstRTList.cpp
366
367tstRTLockValidator_TEMPLATE = VBOXR3TSTEXE
368tstRTLockValidator_SOURCES = tstRTLockValidator.cpp
369
370tstLog_SOURCES = tstLog.cpp
371
372tstMemAutoPtr_SOURCES = tstMemAutoPtr.cpp
373
374tstRTMemEf_TEMPLATE = VBOXR3TSTEXE
375tstRTMemEf_SOURCES = tstRTMemEf.cpp
376
377tstRTMemCache_TEMPLATE = VBOXR3TSTEXE
378tstRTMemCache_SOURCES = tstRTMemCache.cpp
379
380tstRTMemPool_TEMPLATE = VBOXR3TSTEXE
381tstRTMemPool_SOURCES = tstRTMemPool.cpp
382
383tstMove_SOURCES = tstMove.cpp
384
385tstMp-1_SOURCES = tstMp-1.cpp
386
387tstNoCrt-1_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES
388tstNoCrt-1_SOURCES = \
389 tstNoCrt-1.cpp \
390 ../common/string/memcpy.asm \
391 ../common/string/mempcpy.asm \
392 ../common/string/memmove.asm \
393 ../common/string/memset.asm \
394 ../common/string/memchr.asm \
395 ../common/string/memcmp.asm \
396 ../common/string/strchr.asm \
397 ../common/string/strcmp.asm \
398 ../common/string/strcpy.asm \
399 ../common/string/strlen.asm
400
401tstOnce_SOURCES = tstOnce.cpp
402
403tstRTPath_TEMPLATE = VBOXR3TSTEXE
404tstRTPath_SOURCES = tstRTPath.cpp
405
406tstRTPipe_TEMPLATE = VBOXR3TSTEXE
407tstRTPipe_SOURCES = tstRTPipe.cpp
408
409tstRTPoll_TEMPLATE = VBOXR3TSTEXE
410tstRTPoll_SOURCES = tstRTPoll.cpp
411
412tstPrfRT_SOURCES = tstPrfRT.cpp
413
414tstRand_SOURCES = tstRand.cpp
415
416tstRTFsQueries_SOURCES = tstRTFsQueries.cpp
417
418tstRTPrfIO_TEMPLATE = VBOXR3TSTEXE
419tstRTPrfIO_SOURCES = tstRTPrfIO.cpp
420
421tstRTProcCreateEx_TEMPLATE = VBOXR3TSTEXE
422tstRTProcCreateEx_SOURCES = tstRTProcCreateEx.cpp
423
424tstRTProcWait_SOURCES = tstRTProcWait.cpp
425
426tstRTProcIsRunningByName_SOURCES = tstRTProcIsRunningByName.cpp
427
428tstRTS3_SOURCES = tstRTS3.cpp
429
430tstSemMutex_SOURCES = tstSemMutex.cpp
431
432tstRTSemEventMulti_TEMPLATE = VBOXR3TSTEXE
433tstRTSemEventMulti_SOURCES = tstRTSemEventMulti.cpp
434
435tstRTSemRW_TEMPLATE = VBOXR3TSTEXE
436tstRTSemRW_SOURCES = tstRTSemRW.cpp
437
438tstSemPingPong_SOURCES = tstSemPingPong.cpp
439
440tstRTSemXRoads_TEMPLATE = VBOXR3TSTEXE
441tstRTSemXRoads_SOURCES = tstRTSemXRoads.cpp
442
443tstRTSort_TEMPLATE = VBOXR3TSTEXE
444tstRTSort_SOURCES = tstRTSort.cpp
445
446tstRTStrAlloc_TEMPLATE = VBOXR3TSTEXE
447tstRTStrAlloc_SOURCES = tstRTStrAlloc.cpp
448
449tstRTStrCache_TEMPLATE = VBOXR3TSTEXE
450tstRTStrCache_SOURCES = tstRTStrCache.cpp
451
452tstRTStrCatCopy_TEMPLATE = VBOXR3TSTEXE
453tstRTStrCatCopy_SOURCES = tstRTStrCatCopy.cpp
454
455tstRTStrFormat_TEMPLATE = VBOXR3TSTEXE
456tstRTStrFormat_SOURCES = tstRTStrFormat.cpp
457
458tstStrSimplePattern_SOURCES = tstStrSimplePattern.cpp
459
460tstStrToNum_SOURCES = tstStrToNum.cpp
461
462tstRTStrVersion_TEMPLATE = VBOXR3TSTEXE
463tstRTStrVersion_SOURCES = tstRTStrVersion.cpp
464
465tstRTSymlink_TEMPLATE = VBOXR3TSTEXE
466tstRTSymlink_SOURCES = tstRTSymlink.cpp
467
468tstRTSystemQueryDmi_TEMPLATE = VBOXR3TSTEXE
469tstRTSystemQueryDmi_SOURCES = tstRTSystemQueryDmi.cpp
470
471tstRTSystemQueryOsInfo_TEMPLATE = VBOXR3TSTEXE
472tstRTSystemQueryOsInfo_SOURCES = tstRTSystemQueryOsInfo.cpp
473
474tstRTTcp-1_TEMPLATE = VBOXR3TSTEXE
475tstRTTcp-1_SOURCES = tstRTTcp-1.cpp
476
477tstRTTemp_TEMPLATE = VBOXR3TSTEXE
478tstRTTemp_SOURCES = tstRTTemp.cpp
479
480tstRTDirCreateUniqueNumbered_TEMPLATE = VBOXR3TSTEXE
481tstRTDirCreateUniqueNumbered_SOURCES = tstRTDirCreateUniqueNumbered.cpp
482
483tstTermCallbacks_SOURCES = tstTermCallbacks.cpp
484
485tstThread-1_SOURCES = tstThread-1.cpp
486
487tstRTThreadPoke_TEMPLATE = VBOXR3TSTEXE
488tstRTThreadPoke_SOURCES = tstRTThreadPoke.cpp
489
490tstRTThreadExecutionTime_TEMPLATE = VBOXR3TSTEXE
491tstRTThreadExecutionTime_SOURCES = tstRTThreadExecutionTime.cpp
492
493tstTime_SOURCES = tstTime.cpp
494
495tstTime-2_SOURCES = tstTime-2.cpp
496
497tstTime-3_SOURCES = tstTime-3.cpp
498
499tstTime-4_SOURCES = tstTime-4.cpp
500
501tstTimer_SOURCES = tstTimer.cpp
502
503tstTimerLR_SOURCES = tstTimerLR.cpp
504
505tstRTTimeSpec_TEMPLATE = VBOXR3TSTEXE
506tstRTTimeSpec_SOURCES = tstRTTimeSpec.cpp
507
508tstTSC_SOURCES = tstTSC.cpp
509tstTSC_CXXFLAGS.linux += -O3
510
511tstRTUuid_TEMPLATE = VBOXR3TSTEXE
512tstRTUuid_SOURCES = tstRTUuid.cpp
513
514tstUtf8_SOURCES = tstUtf8.cpp
515
516tstRTCircBuf_TEMPLATE = VBOXR3TSTEXE
517tstRTCircBuf_SOURCES = tstRTCircBuf.cpp
518
519tstRTManifest_TEMPLATE = VBOXR3TSTEXE
520tstRTManifest_SOURCES = tstRTManifest.cpp
521
522tstRTUri_TEMPLATE = VBOXR3TSTEXE
523tstRTUri_SOURCES = tstRTUri.cpp
524
525tstRTCoreDump_TEMPLACE = VBOXR3TSTEXE
526tstRTCoreDump_SOURCES = tstRTCoreDump.cpp
527
528tstVector_TEMPLATE = VBOXR3TSTEXE
529tstVector_SOURCES = tstVector.cpp
530
531
532#
533# Ring-0 testcases.
534#
535
536## @todo create a template for compiling the ring-0 part.
537tstRTR0MemUserKernel_TEMPLATE = VBoxR0
538tstRTR0MemUserKernel_INST = $(INST_TESTCASE)
539tstRTR0MemUserKernel_DEFS = IN_RT_R0
540tstRTR0MemUserKernel_SYSSUFF = .r0
541tstRTR0MemUserKernel_SOURCES = tstRTR0MemUserKernel.cpp
542tstRTR0MemUserKernel_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
543if1of ($(VBOX_LDR_FMT), pe lx)
544 tstRTR0MemUserKernel_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
545endif
546tstRTR0MemUserKernelDriver_TEMPLATE = VBOXR3TSTEXE
547tstRTR0MemUserKernelDriver_SOURCES = tstRTR0MemUserKernelDriver.cpp
548
549
550tstRTR0SemMutex_TEMPLATE = VBoxR0
551tstRTR0SemMutex_INST = $(INST_TESTCASE)
552tstRTR0SemMutex_DEFS = IN_RT_R0
553tstRTR0SemMutex_SYSSUFF = .r0
554tstRTR0SemMutex_SOURCES = tstRTR0SemMutex.cpp
555tstRTR0SemMutex_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
556if1of ($(VBOX_LDR_FMT), pe lx)
557 tstRTR0SemMutex_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
558endif
559tstRTR0SemMutexDriver_TEMPLATE = VBOXR3TSTEXE
560tstRTR0SemMutexDriver_SOURCES = tstRTR0SemMutexDriver.cpp
561
562
563tstRTR0Timer_TEMPLATE = VBoxR0
564tstRTR0Timer_INST = $(INST_TESTCASE)
565tstRTR0Timer_DEFS = IN_RT_R0
566tstRTR0Timer_SYSSUFF = .r0
567tstRTR0Timer_SOURCES = tstRTR0Timer.cpp
568tstRTR0Timer_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
569if1of ($(VBOX_LDR_FMT), pe lx)
570 tstRTR0Timer_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
571endif
572tstRTR0TimerDriver_TEMPLATE = VBOXR3TSTEXE
573tstRTR0TimerDriver_SOURCES = tstRTR0TimerDriver.cpp
574
575
576tstR0ThreadPreemption_TEMPLATE = VBoxR0
577tstR0ThreadPreemption_INST = $(INST_TESTCASE)
578tstR0ThreadPreemption_DEFS = IN_RT_R0
579tstR0ThreadPreemption_SYSSUFF = .r0
580tstR0ThreadPreemption_SOURCES = tstR0ThreadPreemption.cpp
581tstR0ThreadPreemption_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
582if1of ($(VBOX_LDR_FMT), pe lx)
583 tstR0ThreadPreemption_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
584endif
585tstR0ThreadPreemptionDriver_TEMPLATE = VBOXR3TSTEXE
586tstR0ThreadPreemptionDriver_SOURCES = tstR0ThreadPreemptionDriver.cpp
587
588
589#
590# Odds and ends.
591#
592
593tstDarwinSched_SOURCES = tstDarwinSched.cpp
594
595tstRTDarwinMachKernel_TEMPLATE = VBOXR3TSTEXE
596tstRTDarwinMachKernel_INCS = ../include
597tstRTDarwinMachKernel_SOURCES = \
598 tstRTDarwinMachKernel.cpp \
599 ../r0drv/darwin/mach_kernel-r0drv-darwin.cpp
600
601ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
602ntGetTimerResolution_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
603
604endif # VBOX_WITH_TESTCASES
605
606include $(KBUILD_PATH)/subfooter.kmk
607
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