VirtualBox

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

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

IPRT: Termination callback framework. (not hooked up to anything yet)

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