VirtualBox

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

Last change on this file since 11523 was 11350, checked in by vboxsync, 17 years ago

iprt: Added RTSystemQueryOSInfo.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 7.2 KB
Line 
1# $Id: Makefile.kmk 11350 2008-08-12 11:25:18Z 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 tstMemAutoPtr \
75 tstMove \
76 tstMp-1 \
77 tstNoCrt-1 \
78 tstOnce \
79 tstPath \
80 tstPrfRT \
81 tstRand \
82 tstRTFsQueries \
83 tstStrFormat \
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 = $(PATH_TARGET)/
152tstErrUnique.cpp_DEPS = $(PATH_TARGET)/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_R3
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_GC IN_RT_GC 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_R3
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_R0 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_R3
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
289tstSems_SOURCES = tstSems.cpp
290
291tstStrFormat_SOURCES = tstStrFormat.cpp
292
293tstStrToNum_SOURCES = tstStrToNum.cpp
294
295tstSystemQueryOsInfo_SOURCES = tstSystemQueryOsInfo.cpp
296
297tstThread-1_SOURCES = tstThread-1.cpp
298
299tstTime_SOURCES = tstTime.cpp
300
301tstTime-2_SOURCES = tstTime-2.cpp
302
303tstTime-3_SOURCES = tstTime-3.cpp
304
305tstTime-4_SOURCES = tstTime-4.cpp
306
307tstTimer_SOURCES = tstTimer.cpp
308
309tstTimerLR_SOURCES = tstTimerLR.cpp
310
311tstTimeSpec_SOURCES = tstTimeSpec.cpp
312
313tstTSC_SOURCES = tstTSC.cpp
314tstTSC_CXXFLAGS.linux += -O3
315
316tstUuid_SOURCES = tstUuid.cpp
317
318tstUtf8_SOURCES = tstUtf8.cpp
319
320ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
321ntGetTimerResolution_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
322
323endif # VBOX_WITH_TESTCASES
324
325include $(KBUILD_PATH)/subfooter.kmk
326
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette