VirtualBox

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

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

drop the two sysmods on solaris as the templates aren't up to speed yet.

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