VirtualBox

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

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

IPRT: Implemented the context variant of the handle table.

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