VirtualBox

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

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

RTBase64Decode testcase and bugfixes.

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