VirtualBox

source: vbox/trunk/src/VBox/Runtime/testcase/Makefile@ 1692

Last change on this file since 1692 was 1692, checked in by vboxsync, 18 years ago

Testcase for reading the TSC on all CPUs in an SMP system.

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