VirtualBox

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

Last change on this file since 8245 was 8155, checked in by vboxsync, 17 years ago

The Big Sun Rebranding Header Change

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