VirtualBox

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

Last change on this file since 8387 was 8295, checked in by vboxsync, 17 years ago

Renamed ip.cpp, tstIp.cpp and ip.h to cidr so they correspond to the prefix.

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