VirtualBox

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

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

IPRT: tstFork().

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