VirtualBox

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

Last change on this file since 5912 was 5882, checked in by vboxsync, 17 years ago

optimize tstTSC.

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