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