VirtualBox

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

Last change on this file since 6032 was 5999, checked in by vboxsync, 17 years ago

The Giant CDDL Dual-License Header Change.

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