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