VirtualBox

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

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

IPRT: Added a couple of function for simple string pattern matching (from STAM).

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