VirtualBox

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

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

tstAvl -> tstRTAvl; use RTTest.

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