VirtualBox

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

Last change on this file since 20554 was 20443, checked in by vboxsync, 16 years ago

Runtime: testcase for RW semaphores

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