VirtualBox

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

Last change on this file since 21094 was 21082, checked in by vboxsync, 16 years ago

Missed one VBOX_WITH_LIBXML2_IN_VBOXRT.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 9.0 KB
Line 
1# $Id: Makefile.kmk 21082 2009-06-30 16:40:53Z vboxsync $
2## @file
3# Sub-Makefile for the IPRT testcases.
4#
5
6#
7# Copyright (C) 2006-2009 Sun Microsystems, Inc.
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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
27# Clara, CA 95054 USA or visit http://www.sun.com if you need
28# additional information or have any questions.
29#
30
31SUB_DEPTH = ../../../..
32include $(KBUILD_PATH)/subheader.kmk
33
34ifdef VBOX_WITH_TESTCASES
35
36#
37# Globals
38#
39# WARNING: Careful with this wrt to the other sub-makefiles this joins.
40#
41TEMPLATE = VBOXR3TSTEXE
42
43# Defined by the parent makefile as well (for errmsgdata.h).
44IPRT_OUT_DIR ?= $(PATH_TARGET)/Runtime
45
46
47#
48# Target lists
49#
50PROGRAMS += \
51 tstRTAvl \
52 tstRTBase64 \
53 tstRTBitOperations \
54 tstRTCidr \
55 tstRTCritSect \
56 tstDeadlock \
57 tstDir \
58 tstDir-2 \
59 tstDir-3 \
60 tstEnv \
61 tstErrUnique \
62 tstFile \
63 tstFileLock \
64 tstFork \
65 tstGetOpt \
66 tstHandleTable \
67 tstHeapSimple \
68 tstInlineAsm \
69 tstLdr \
70 tstLdr-2 \
71 tstLdr-3 \
72 tstLdr-4 \
73 tstLdrLoad \
74 tstLog \
75 tstMemAutoPtr \
76 tstRTMemPool \
77 tstMove \
78 tstMp-1 \
79 tstNoCrt-1 \
80 tstOnce \
81 tstPath \
82 tstPrfRT \
83 tstRand \
84 tstRTFsQueries \
85 tstR0ThreadPreemptionDriver \
86 tstRTS3 \
87 tstSems \
88 tstSemPingPong \
89 tstRTStrCache \
90 tstStrFormat \
91 tstStrSimplePattern \
92 tstStrToNum \
93 tstSystemQueryOsInfo \
94 tstRTTemp \
95 tstTermCallbacks \
96 tstThread-1 \
97 tstTime \
98 tstTime-2 \
99 tstTime-3 \
100 tstTime-4 \
101 tstTimer \
102 tstTimerLR \
103 tstTimeSpec \
104 tstTSC \
105 tstUtf8 \
106 tstUuid
107# tstSems
108PROGRAMS.win += \
109 tstRTProcWait \
110 tstRTCritSectW32 \
111 tstFileAppendWin-1 \
112 ntGetTimerResolution
113PROGRAMS.linux += \
114 tstRTProcWait \
115 tstRTProcIsRunningByName \
116 tstRTBitOperationsPIC3 \
117 tstInlineAsmPIC \
118 tstInlineAsmPIC3 \
119 tstSemMutex \
120 tstSemRW
121PROGRAMS.l4 += \
122 tstIoCtl
123PROGRAMS.darwin += \
124 tstDarwinSched
125SYSMODS += \
126 tstLdrObj \
127 tstLdrObjR0 \
128 tstR0ThreadPreemption
129if1of ($(VBOX_LDR_FMT)), lx pe)
130LIBRARIES += \
131 tstLdr-4Imp
132endif
133ifdef RT_ASYNC_IO_CODE
134PROGRAMS += \
135 tstFileAio
136endif
137
138
139#
140# Target configs in almost alphabetical order.
141#
142
143tstRTAvl_TEMPLATE = VBOXR3TSTEXE
144tstRTAvl_SOURCES = tstRTAvl.cpp
145
146tstRTBase64_TEMPLATE = VBOXR3TSTEXE
147tstRTBase64_SOURCES = tstRTBase64.cpp
148
149tstRTBitOperations_TEMPLATE = VBOXR3TSTEXE
150tstRTBitOperations_SOURCES = tstRTBitOperations.cpp
151
152tstRTBitOperationsPIC3_TEMPLATE = VBOXR3TSTEXE
153tstRTBitOperationsPIC3_SOURCES = tstRTBitOperations.cpp
154tstRTBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
155tstRTBitOperationsPIC3_DEFS = PIC
156
157tstRTCidr_TEMPLATE = VBOXR3TSTEXE
158tstRTCidr_SOURCES = tstRTCidr.cpp
159
160tstRTCritSect_TEMPLATE = VBOXR3TSTEXE
161tstRTCritSect_SOURCES = tstRTCritSect.cpp
162
163tstRTCritSectW32_TEMPLATE = VBOXR3TSTEXE
164tstRTCritSectW32_SOURCES = tstRTCritSect.cpp
165tstRTCritSectW32_DEFS = TRY_WIN32_CRIT
166
167tstDeadlock_SOURCES = tstDeadlock.cpp
168
169tstDir_SOURCES = tstDir.cpp
170
171tstDir-2_SOURCES = tstDir-2.cpp
172
173tstDir-3_SOURCES = tstDir-3.cpp
174
175tstEnv_SOURCES = tstEnv.cpp
176
177# Note: tstErrUnique.cpp depends on a header generated by the makefile above us.
178tstErrUnique_SOURCES = tstErrUnique.cpp
179tstErrUnique_INCS = $(IPRT_OUT_DIR)/
180tstErrUnique.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h
181
182tstFile_SOURCES = tstFile.cpp
183
184tstFileAppendWin-1_SOURCES = tstFileAppendWin-1.cpp
185
186tstFileAio_SOURCES = tstFileAio.cpp
187
188tstFileLock_SOURCES = tstFileLock.cpp
189
190tstFork_SOURCES = tstFork.cpp
191
192tstGetOpt_SOURCES = tstGetOpt.cpp
193
194tstHandleTable_SOURCES = tstHandleTable.cpp
195
196tstHeapSimple_SOURCES = tstHeapSimple.cpp
197
198tstIoCtl_SOURCES = tstIoCtl.cpp
199
200tstInlineAsm_SOURCES = tstInlineAsm.cpp
201
202tstInlineAsmPIC_SOURCES = tstInlineAsm.cpp
203tstInlineAsmPIC_CXXFLAGS = -fPIC
204tstInlineAsmPIC_DEFS = PIC
205
206tstInlineAsmPIC3_SOURCES = tstInlineAsm.cpp
207tstInlineAsmPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
208tstInlineAsmPIC3_DEFS = PIC
209
210tstLdr_SOURCES = tstLdr.cpp
211
212tstLdr-2_SOURCES = tstLdr-2.cpp
213tstLdr-2_DEFS = IN_DIS
214tstLdr-2_LIBS = \
215 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
216
217tstLdrObj_TEMPLATE = VBOXGC
218tstLdrObj_INST = $(INST_TESTCASE)
219tstLdrObj_SYSSUFF = .gc
220tstLdrObj_SOURCES = tstLdrObj.cpp
221tstLdrObj_DEFS = IN_DIS IN_RT_GC IN_RT_RC DIS_CORE_ONLY
222ifeq ($(VBOX_LDR_FMT32),elf)
223tstLdrObj_DEFS += VBOX_SOME_IMPORT_FUNCTION
224endif
225tstLdrObj_LIBS = \
226 $(PATH_LIB)/DisasmGC$(VBOX_SUFF_LIB) \
227 $(PATH_LIB)/RuntimeGC$(VBOX_SUFF_LIB)
228ifeq ($(VBOX_LDR_FMT32),pe)
229tstLdrObj_LDFLAGS = -Entry:Entrypoint
230tstLdrObj_LIBS += \
231 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB)
232endif # PE
233ifeq ($(VBOX_LDR_FMT32),elf)
234tstLdrObj_LDFLAGS = -e Entrypoint
235endif
236ifeq ($(VBOX_LDR_FMT32),lx)
237tstLdrObj_LIBS += \
238 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB)
239endif
240
241tstLdr-3_SOURCES = tstLdr-3.cpp
242tstLdr-3_DEFS = IN_DIS
243tstLdr-3_LIBS = \
244 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
245
246tstLdr-4Imp_TEMPLATE = VBOXR0
247ifeq ($(VBOX_LDR_FMT),lx)
248 tstLdr-4Imp_SOURCES = tstLdr-4Imp-os2.def
249else ifeq ($(VBOX_LDR_FMT),pe)
250 tstLdr-4Imp_SOURCES.win = tstLdr-4Imp-win.def
251endif
252
253tstLdrObjR0_TEMPLATE = VBOXR0
254tstLdrObjR0_INST = $(INST_TESTCASE)
255tstLdrObjR0_SYSSUFF = .r0
256tstLdrObjR0_SOURCES = tstLdrObjR0.cpp tstLdrDisasmTest.cpp
257tstLdrObjR0_DEFS = IN_DIS IN_RT_R0 DIS_CORE_ONLY
258ifeq ($(VBOX_LDR_FMT32),elf)
259 tstLdrObjR0_DEFS += VBOX_SOME_IMPORT_FUNCTION
260endif
261tstLdrObjR0_LIBS = \
262 $(PATH_LIB)/DisasmR0$(VBOX_SUFF_LIB) \
263 $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
264ifeq ($(VBOX_LDR_FMT),pe)
265 tstLdrObjR0_LDFLAGS = -Entry:Entrypoint
266 tstLdrObjR0_LIBS += \
267 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) \
268 $(TARGET_tstLdr-4Imp)
269endif
270ifeq ($(VBOX_LDR_FMT),elf)
271 tstLdrObjR0_LDFLAGS = -e Entrypoint
272endif
273ifeq ($(VBOX_LDR_FMT),lx)
274 tstLdrObjR0_LIBS += \
275 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) \
276 $(TARGET_tstLdr-4Imp)
277endif
278
279tstLdr-4_SOURCES = tstLdr-4.cpp tstLdrDisasmTest.cpp
280tstLdr-4_DEFS = IN_DIS
281tstLdr-4_LIBS = \
282 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
283
284tstLdrLoad_SOURCES = tstLdrLoad.cpp
285
286tstLog_SOURCES = tstLog.cpp
287
288tstMemAutoPtr_SOURCES = tstMemAutoPtr.cpp
289
290tstRTMemPool_TEMPLATE = VBOXR3TSTEXE
291tstRTMemPool_SOURCES = tstRTMemPool.cpp
292
293tstMove_SOURCES = tstMove.cpp
294
295tstMp-1_SOURCES = tstMp-1.cpp
296
297tstNoCrt-1_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES
298tstNoCrt-1_SOURCES = \
299 tstNoCrt-1.cpp \
300 ../common/string/memcpy.asm \
301 ../common/string/mempcpy.asm \
302 ../common/string/memmove.asm \
303 ../common/string/memset.asm \
304 ../common/string/memchr.asm \
305 ../common/string/memcmp.asm \
306 ../common/string/strchr.asm \
307 ../common/string/strcmp.asm \
308 ../common/string/strcpy.asm \
309 ../common/string/strlen.asm
310
311tstOnce_SOURCES = tstOnce.cpp
312
313tstPath_SOURCES = tstPath.cpp
314
315tstPrfRT_SOURCES = tstPrfRT.cpp
316
317tstRand_SOURCES = tstRand.cpp
318
319tstR0ThreadPreemption_TEMPLATE = VBOXR0
320tstR0ThreadPreemption_INST = $(INST_TESTCASE)
321tstR0ThreadPreemption_DEFS = IN_RT_R0
322tstR0ThreadPreemption_SYSSUFF = .r0
323tstR0ThreadPreemption_SOURCES = tstR0ThreadPreemption.cpp
324tstR0ThreadPreemption_LIBS = $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
325if1of ($(VBOX_LDR_FMT), pe lx)
326 tstR0ThreadPreemption_LIBS += $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB)
327endif
328
329tstR0ThreadPreemptionDriver_SOURCES = tstR0ThreadPreemptionDriver.cpp
330
331tstRTFsQueries_SOURCES = tstRTFsQueries.cpp
332
333tstRTProcWait_SOURCES = tstRTProcWait.cpp
334
335tstRTProcIsRunningByName_SOURCES = tstRTProcIsRunningByName.cpp
336
337tstRTS3_SOURCES = tstRTS3.cpp
338
339tstSemMutex_SOURCES = tstSemMutex.cpp
340
341tstSemRW_SOURCES = tstSemRW.cpp
342
343tstSemPingPong_SOURCES = tstSemPingPong.cpp
344
345tstSems_SOURCES = tstSems.cpp
346
347tstRTStrCache_TEMPLATE = VBOXR3TSTEXE
348tstRTStrCache_SOURCES = tstRTStrCache.cpp
349
350tstStrFormat_SOURCES = tstStrFormat.cpp
351
352tstStrSimplePattern_SOURCES = tstStrSimplePattern.cpp
353
354tstStrToNum_SOURCES = tstStrToNum.cpp
355
356tstSystemQueryOsInfo_SOURCES = tstSystemQueryOsInfo.cpp
357
358tstRTTemp_TEMPLATE = VBOXR3TSTEXE
359tstRTTemp_SOURCES = tstRTTemp.cpp
360
361tstTermCallbacks_SOURCES = tstTermCallbacks.cpp
362
363tstThread-1_SOURCES = tstThread-1.cpp
364
365tstTime_SOURCES = tstTime.cpp
366
367tstTime-2_SOURCES = tstTime-2.cpp
368
369tstTime-3_SOURCES = tstTime-3.cpp
370
371tstTime-4_SOURCES = tstTime-4.cpp
372
373tstTimer_SOURCES = tstTimer.cpp
374
375tstTimerLR_SOURCES = tstTimerLR.cpp
376
377tstTimeSpec_SOURCES = tstTimeSpec.cpp
378
379tstTSC_SOURCES = tstTSC.cpp
380tstTSC_CXXFLAGS.linux += -O3
381
382tstUuid_SOURCES = tstUuid.cpp
383
384tstUtf8_SOURCES = tstUtf8.cpp
385
386
387#
388# odds and ends
389#
390
391tstDarwinSched_SOURCES = tstDarwinSched.cpp
392
393ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
394ntGetTimerResolution_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
395
396endif # VBOX_WITH_TESTCASES
397
398include $(KBUILD_PATH)/subfooter.kmk
399
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