VirtualBox

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

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

simple RTSemMutex testcase

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