VirtualBox

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

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

IPRT: Added a simple thread testcase for the latest insertion race.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.9 KB
Line 
1# $Id: Makefile.kmk 10793 2008-07-21 22:33:15Z 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
31ifdef VBOX_KBUILD_HACKING
32SUB_DEPTH = ../../../..
33else
34SUB_DEPTH = ..
35DEPTH ?= ../../../..
36endif
37include $(KBUILD_PATH)/subheader.kmk
38
39ifdef VBOX_WITH_TESTCASES
40
41#
42# Globals
43#
44# WARNING: Careful with this wrt to the other sub-makefiles this joins.
45#
46TEMPLATE = VBOXR3TSTEXE
47
48
49#
50# Target lists
51#
52PROGRAMS += \
53 tstAvl \
54 tstBitOperations \
55 tstCidr \
56 tstCritSect \
57 tstDeadlock \
58 tstDir \
59 tstDir-2 \
60 tstEnv \
61 tstErrUnique \
62 tstFile \
63 tstFileLock \
64 tstGetOpt \
65 tstHandleTable \
66 tstHeapSimple \
67 tstInlineAsm \
68 tstLdr \
69 tstLdr-2 \
70 tstLdr-3 \
71 tstLdr-4 \
72 tstLdrLoad \
73 tstLog \
74 tstMove \
75 tstMp-1 \
76 tstNoCrt-1 \
77 tstPath \
78 tstPrfRT \
79 tstRTFsQueries \
80 tstStrFormat \
81 tstStrToNum \
82 tstThread-1 \
83 tstTime \
84 tstTime-2 \
85 tstTime-3 \
86 tstTime-4 \
87 tstTimer \
88 tstTimeSpec \
89 tstTSC \
90 tstUtf8 \
91 tstUuid
92# tstSems
93PROGRAMS.win += \
94 tstRTProcWait \
95 tstCritSectW32 \
96 tstFileAppendWin-1 \
97 ntGetTimerResolution
98PROGRAMS.linux += \
99 tstRTProcWait \
100 tstBitOperationsPIC3 \
101 tstInlineAsmPIC \
102 tstInlineAsmPIC3 \
103 tstSemMutex
104PROGRAMS.l4 += \
105 tstIoCtl
106SYSMODS += \
107 tstLdrObj \
108 tstLdrObjR0
109if1of ($(VBOX_LDR_FMT)), lx pe)
110LIBRARIES += \
111 tstLdr-4Imp
112endif
113
114
115
116#
117# Target configs in almost alphabetical order.
118#
119
120tstAvl_SOURCES = tstAvl.cpp
121
122tstBitOperations_TEMPLATE = VBOXR3TSTEXE
123tstBitOperations_SOURCES = tstBitOperations.cpp
124
125tstBitOperationsPIC3_SOURCES = tstBitOperations.cpp
126tstBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
127tstBitOperationsPIC3_DEFS = PIC
128
129tstCidr_SOURCES = tstCidr.cpp
130
131tstCritSect_SOURCES = tstCritSect.cpp
132
133tstCritSectW32_SOURCES = tstCritSect.cpp
134tstCritSectW32_DEFS = TRY_WIN32_CRIT
135
136tstDeadlock_SOURCES = tstDeadlock.cpp
137
138tstDir_SOURCES = tstDir.cpp
139
140tstDir-2_SOURCES = tstDir-2.cpp
141
142tstEnv_SOURCES = tstEnv.cpp
143
144# Note: tstErrUnique.cpp depends on a header generated by the makefile above us.
145tstErrUnique_SOURCES = tstErrUnique.cpp
146tstErrUnique_INCS = $(PATH_TARGET)/
147tstErrUnique.cpp_DEPS = $(PATH_TARGET)/errmsgdata.h
148
149tstFile_SOURCES = tstFile.cpp
150
151tstFileAppendWin-1_SOURCES = tstFileAppendWin-1.cpp
152
153tstFileLock_SOURCES = tstFileLock.cpp
154
155tstGetOpt_SOURCES = tstGetOpt.cpp
156
157tstHandleTable_SOURCES = tstHandleTable.cpp
158
159tstHeapSimple_SOURCES = tstHeapSimple.cpp
160
161tstIoCtl_SOURCES = tstIoCtl.cpp
162
163tstInlineAsm_SOURCES = tstInlineAsm.cpp
164
165tstInlineAsmPIC_SOURCES = tstInlineAsm.cpp
166tstInlineAsmPIC_CXXFLAGS = -fPIC
167tstInlineAsmPIC_DEFS = PIC
168
169tstInlineAsmPIC3_SOURCES = tstInlineAsm.cpp
170tstInlineAsmPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
171tstInlineAsmPIC3_DEFS = PIC
172
173tstLdr_SOURCES = tstLdr.cpp
174
175tstLdr-2_SOURCES = tstLdr-2.cpp
176tstLdr-2_DEFS = IN_DIS_R3
177tstLdr-2_LIBS = \
178 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
179
180tstLdrObj_TEMPLATE = VBOXGC
181tstLdrObj_INST = $(INST_TESTCASE)
182tstLdrObj_SYSSUFF = .gc
183tstLdrObj_SOURCES = tstLdrObj.cpp
184tstLdrObj_DEFS = IN_DIS_GC IN_RT_GC DIS_CORE_ONLY
185ifeq ($(VBOX_LDR_FMT32),elf)
186tstLdrObj_DEFS += VBOX_SOME_IMPORT_FUNCTION
187endif
188tstLdrObj_LIBS = \
189 $(PATH_LIB)/DisasmGC$(VBOX_SUFF_LIB) \
190 $(PATH_LIB)/RuntimeGC$(VBOX_SUFF_LIB)
191ifeq ($(VBOX_LDR_FMT32),pe)
192tstLdrObj_LDFLAGS = -Entry:Entrypoint
193tstLdrObj_LIBS += \
194 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB)
195endif # PE
196ifeq ($(VBOX_LDR_FMT32),elf)
197tstLdrObj_LDFLAGS = -e Entrypoint
198endif
199ifeq ($(VBOX_LDR_FMT32),lx)
200tstLdrObj_LIBS += \
201 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB)
202endif
203
204tstLdr-3_SOURCES = tstLdr-3.cpp
205tstLdr-3_DEFS = IN_DIS_R3
206tstLdr-3_LIBS = \
207 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
208
209tstLdr-4Imp_TEMPLATE = VBOXR0
210ifeq ($(VBOX_LDR_FMT),lx)
211 tstLdr-4Imp_SOURCES = tstLdr-4Imp-os2.def
212else ifeq ($(VBOX_LDR_FMT),pe)
213 tstLdr-4Imp_SOURCES.win = tstLdr-4Imp-win.def
214endif
215
216tstLdrObjR0_TEMPLATE = VBOXR0
217tstLdrObjR0_INST = $(INST_TESTCASE)
218tstLdrObjR0_SYSSUFF = .r0
219tstLdrObjR0_SOURCES = tstLdrObjR0.cpp tstLdrDisasmTest.cpp
220tstLdrObjR0_DEFS = IN_DIS_R0 IN_RT_R0 DIS_CORE_ONLY
221ifeq ($(VBOX_LDR_FMT32),elf)
222 tstLdrObjR0_DEFS += VBOX_SOME_IMPORT_FUNCTION
223endif
224tstLdrObjR0_LIBS = \
225 $(PATH_LIB)/DisasmR0$(VBOX_SUFF_LIB) \
226 $(PATH_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
227ifeq ($(VBOX_LDR_FMT),pe)
228 tstLdrObjR0_LDFLAGS = -Entry:Entrypoint
229 tstLdrObjR0_LIBS += \
230 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) \
231 $(TARGET_tstLdr-4Imp)
232endif
233ifeq ($(VBOX_LDR_FMT),elf)
234 tstLdrObjR0_LDFLAGS = -e Entrypoint
235endif
236ifeq ($(VBOX_LDR_FMT),lx)
237 tstLdrObjR0_LIBS += \
238 $(PATH_LIB)/SUPR0$(VBOX_SUFF_LIB) \
239 $(TARGET_tstLdr-4Imp)
240endif
241
242tstLdr-4_SOURCES = tstLdr-4.cpp tstLdrDisasmTest.cpp
243tstLdr-4_DEFS = IN_DIS_R3
244tstLdr-4_LIBS = \
245 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
246
247tstLdrLoad_SOURCES = tstLdrLoad.cpp
248
249tstLog_SOURCES = tstLog.cpp
250
251tstMove_SOURCES = tstMove.cpp
252
253tstMp-1_SOURCES = tstMp-1.cpp
254
255tstNoCrt-1_DEFS = RT_WITHOUT_NOCRT_WRAPPER_ALIASES
256tstNoCrt-1_SOURCES = \
257 tstNoCrt-1.cpp \
258 ../common/string/memcpy.asm \
259 ../common/string/mempcpy.asm \
260 ../common/string/memmove.asm \
261 ../common/string/memset.asm \
262 ../common/string/memchr.asm \
263 ../common/string/memcmp.asm \
264 ../common/string/strchr.asm \
265 ../common/string/strcmp.asm \
266 ../common/string/strlen.asm
267
268tstPath_SOURCES = tstPath.cpp
269
270tstPrfRT_SOURCES = tstPrfRT.cpp
271
272tstRTFsQueries_SOURCES = tstRTFsQueries.cpp
273
274tstRTProcWait_SOURCES = tstRTProcWait.cpp
275
276tstSemMutex_SOURCES = tstSemMutex.cpp
277
278tstSems_SOURCES = tstSems.cpp
279
280tstStrFormat_SOURCES = tstStrFormat.cpp
281
282tstStrToNum_SOURCES = tstStrToNum.cpp
283
284tstThread-1_SOURCES = tstThread-1.cpp
285
286tstTime_SOURCES = tstTime.cpp
287
288tstTime-2_SOURCES = tstTime-2.cpp
289
290tstTime-3_SOURCES = tstTime-3.cpp
291
292tstTime-4_SOURCES = tstTime-4.cpp
293
294tstTimer_SOURCES = tstTimer.cpp
295
296tstTimeSpec_SOURCES = tstTimeSpec.cpp
297
298tstTSC_SOURCES = tstTSC.cpp
299tstTSC_CXXFLAGS.linux += -O3
300
301tstUuid_SOURCES = tstUuid.cpp
302
303tstUtf8_SOURCES = tstUtf8.cpp
304
305ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
306ntGetTimerResolution_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
307
308endif # VBOX_WITH_TESTCASES
309
310include $(KBUILD_PATH)/subfooter.kmk
311
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