VirtualBox

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

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

InnoTek -> innotek: all the headers and comments.

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