VirtualBox

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

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

kLdr integration. tstLdrObj.gc now works on darwin.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.3 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 tstLdrLoad \
32 tstAvl \
33 tstTimer \
34 tstTime \
35 tstTime-2 \
36 tstTime-3 \
37 tstTimeSpec \
38 tstStrFormat \
39 tstPath \
40 tstLog \
41 tstFile \
42 tstFileLock \
43 tstBitOperations \
44 tstInlineAsm \
45 tstStrToNum \
46 tstDir \
47 tstDir-2 \
48 tstRTFsQueries \
49 tstMove \
50 tstUtf8 \
51 tstDeadlock \
52 tstUuid \
53 tstErrUnique \
54 tstHeapSimple
55PROGRAMS.win = \
56 tstRTProcWait \
57 tstCritSectW32 \
58 ntGetTimerResolution
59PROGRAMS.linux = \
60 tstRTProcWait \
61 tstBitOperationsPIC3 \
62 tstInlineAsmPIC \
63 tstInlineAsmPIC3
64PROGRAMS.l4 = \
65 tstIoCtl
66SYSMODS = tstLdrObj
67# tstSems
68endif # VBOX_WITH_TESTCASES
69
70
71TEMPLATE = VBOXR3TSTEXE
72
73
74tstTimer_SOURCES = tstTimer.cpp
75
76tstTime_SOURCES = tstTime.cpp
77
78tstTime-2_SOURCES = tstTime-2.cpp
79
80tstTime-3_SOURCES = tstTime-3.cpp
81
82tstTimeSpec_SOURCES = tstTimeSpec.cpp
83
84tstStrFormat_SOURCES = tstStrFormat.cpp
85
86tstLog_SOURCES = tstLog.cpp
87
88tstPath_SOURCES = tstPath.cpp
89
90tstSems_SOURCES = tstSems.cpp
91
92tstAvl_SOURCES = tstAvl.cpp
93
94tstFile_SOURCES = tstFile.cpp
95
96tstFileLock_SOURCES = tstFileLock.cpp
97
98tstBitOperations_SOURCES = tstBitOperations.cpp
99
100tstBitOperationsPIC3_SOURCES = tstBitOperations.cpp
101tstBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
102tstBitOperationsPIC3_DEFS = PIC
103
104tstInlineAsm_SOURCES = tstInlineAsm.cpp
105
106tstInlineAsmPIC_SOURCES = tstInlineAsm.cpp
107tstInlineAsmPIC_CXXFLAGS = -fPIC
108tstInlineAsmPIC_DEFS = PIC
109
110tstInlineAsmPIC3_SOURCES = tstInlineAsm.cpp
111tstInlineAsmPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
112tstInlineAsmPIC3_DEFS = PIC
113
114tstCritSect_SOURCES = tstCritSect.cpp
115
116tstCritSectW32_SOURCES = tstCritSect.cpp
117tstCritSectW32_DEFS = TRY_WIN32_CRIT
118
119tstLdr_SOURCES = tstLdr.cpp
120
121tstLdr-2_SOURCES = tstLdr-2.cpp
122tstLdr-2_DEFS = IN_DIS_R3
123tstLdr-2_LIBS = \
124 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
125
126tstLdrObj_TEMPLATE = VBOXGC
127tstLdrObj_INST = $(INST_TESTCASE)
128tstLdrObj_SYSSUFF = .gc
129tstLdrObj_SOURCES = tstLdrObj.cpp
130tstLdrObj_DEFS = IN_DIS_GC IN_RT_GC
131ifeq ($(VBOX_LDR_FMT32),elf)
132tstLdrObj_DEFS += VBOX_SOME_IMPORT_FUNCTION
133endif
134tstLdrObj_LIBS = \
135 $(PATH_LIB)/DisasmGC$(VBOX_SUFF_LIB) \
136 $(PATH_LIB)/RuntimeGC$(VBOX_SUFF_LIB)
137ifeq ($(VBOX_LDR_FMT32),pe)
138tstLdrObj_LDFLAGS = -Entry:Entrypoint
139tstLdrObj_LIBS += \
140 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB)
141endif # PE
142ifeq ($(VBOX_LDR_FMT32),elf)
143tstLdrObj_LDFLAGS = -entry=Entrypoint
144tstLdrObj_LIBS += \
145 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB)
146endif
147ifeq ($(VBOX_LDR_FMT32),lx)
148tstLdrObj_LIBS += \
149 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB)
150endif
151
152tstLdr-3_SOURCES = tstLdr-3.cpp
153tstLdr-3_DEFS = IN_DIS_R3
154tstLdr-3_LIBS = \
155 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
156
157tstLdrLoad_SOURCES = tstLdrLoad.cpp
158
159tstPrfRT_SOURCES = tstPrfRT.cpp
160
161tstRTProcWait_SOURCES = tstRTProcWait.cpp
162
163tstStrToNum_SOURCES = tstStrToNum.cpp
164
165tstUtf8_SOURCES = tstUtf8.cpp
166
167tstDir_SOURCES = tstDir.cpp
168
169tstDir-2_SOURCES = tstDir-2.cpp
170
171tstRTFsQueries_SOURCES = tstRTFsQueries.cpp
172
173tstMove_SOURCES = tstMove.cpp
174
175ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
176ntGetTimerResolution_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
177
178tstIoCtl_SOURCES = tstIoCtl.cpp
179
180tstDeadlock_SOURCES = tstDeadlock.cpp
181
182tstUuid_SOURCES = tstUuid.cpp
183
184tstErrUnique_SOURCES = tstErrUnique.cpp
185tstErrUnique_INCS = $(PATH_TARGET)/..
186## tstErrUnique.cpp depends on a generated header.
187tstErrUnique.cpp_DEPS = $(PATH_TARGET)/../errmsgdata.h
188
189tstHeapSimple_SOURCES = tstHeapSimple.cpp
190
191include $(PATH_KBUILD)/footer.kmk
192
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