VirtualBox

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

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

Only use SUPR0 on pe and lx targets. ditto for VMMGCBuiltin.

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