VirtualBox

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

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

Use the VBOX_NTDLL SDK for including ntdll.lib or we'll pickup CRT symbols from it breaking w2k and other things.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.1 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 tstErrUnique
53PROGRAMS.win = \
54 tstRTProcWait \
55 tstCritSectW32 \
56 ntGetTimerResolution
57PROGRAMS.linux = \
58 tstRTProcWait \
59 tstBitOperationsPIC3 \
60 tstInlineAsmPIC \
61 tstInlineAsmPIC3
62PROGRAMS.l4 = \
63 tstIoCtl
64ifneq ($(BUILD_TARGET),darwin) #until we've figured out how to link R0/GC modules on Mac OS X.
65SYSMODS = tstLdrObj
66endif
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) \
137 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB)
138ifeq ($(VBOX_LDR_FMT32),pe)
139tstLdrObj_LDFLAGS = -Entry:Entrypoint
140endif # PE
141ifeq ($(VBOX_LDR_FMT32),elf)
142tstLdrObj_LDFLAGS = -entry=Entrypoint
143endif
144
145tstLdr-3_SOURCES = tstLdr-3.cpp
146tstLdr-3_DEFS = IN_DIS_R3
147tstLdr-3_LIBS = \
148 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
149
150tstLdrLoad_SOURCES = tstLdrLoad.cpp
151
152tstPrfRT_SOURCES = tstPrfRT.cpp
153
154tstRTProcWait_SOURCES = tstRTProcWait.cpp
155
156tstStrToNum_SOURCES = tstStrToNum.cpp
157
158tstUtf8_SOURCES = tstUtf8.cpp
159
160tstDir_SOURCES = tstDir.cpp
161
162tstDir-2_SOURCES = tstDir-2.cpp
163
164tstRTFsQueries_SOURCES = tstRTFsQueries.cpp
165
166tstMove_SOURCES = tstMove.cpp
167
168ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
169ntGetTimerResolution_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
170
171tstIoCtl_SOURCES = tstIoCtl.cpp
172
173tstDeadlock_SOURCES = tstDeadlock.cpp
174
175tstErrUnique_SOURCES = tstErrUnique.cpp
176tstErrUnique_INCS = $(PATH_TARGET)/..
177## tstErrUnique.cpp depends on a generated header.
178tstErrUnique.cpp_DEPS = $(PATH_TARGET)/../errmsgdata.h
179
180
181include $(PATH_KBUILD)/footer.kmk
182
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