VirtualBox

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

Last change on this file since 7337 was 7210, checked in by vboxsync, 17 years ago

Testcases for memcpy, mempcpy, memset, memchr, strchr, memcmp and strcmp. Plus some additions to the memmove test.

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