VirtualBox

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

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

Use -e sym instead of -entry=sym since this works for both solaris and gnu linkers. (Solaris)

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