VirtualBox

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

Last change on this file since 8921 was 8760, checked in by vboxsync, 17 years ago

PATH_KBUILD -> KBUILD_PATH.

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