VirtualBox

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

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

Generic Uuid. Corrected Gen.u16TimeMin to Gen.u16TimeMid.

  • 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 tstUuid \
53 tstErrUnique
54PROGRAMS.win = \
55 tstRTProcWait \
56 tstCritSectW32 \
57 ntGetTimerResolution
58PROGRAMS.linux = \
59 tstRTProcWait \
60 tstBitOperationsPIC3 \
61 tstInlineAsmPIC \
62 tstInlineAsmPIC3
63PROGRAMS.l4 = \
64 tstIoCtl
65ifneq ($(BUILD_TARGET),darwin) #until we've figured out how to link R0/GC modules on Mac OS X.
66SYSMODS = tstLdrObj
67endif
68# tstSems
69endif # VBOX_WITH_TESTCASES
70
71
72TEMPLATE = VBOXR3TSTEXE
73
74
75tstTimer_SOURCES = tstTimer.cpp
76
77tstTime_SOURCES = tstTime.cpp
78
79tstTime-2_SOURCES = tstTime-2.cpp
80
81tstTime-3_SOURCES = tstTime-3.cpp
82
83tstTimeSpec_SOURCES = tstTimeSpec.cpp
84
85tstStrFormat_SOURCES = tstStrFormat.cpp
86
87tstLog_SOURCES = tstLog.cpp
88
89tstPath_SOURCES = tstPath.cpp
90
91tstSems_SOURCES = tstSems.cpp
92
93tstAvl_SOURCES = tstAvl.cpp
94
95tstFile_SOURCES = tstFile.cpp
96
97tstFileLock_SOURCES = tstFileLock.cpp
98
99tstBitOperations_SOURCES = tstBitOperations.cpp
100
101tstBitOperationsPIC3_SOURCES = tstBitOperations.cpp
102tstBitOperationsPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
103tstBitOperationsPIC3_DEFS = PIC
104
105tstInlineAsm_SOURCES = tstInlineAsm.cpp
106
107tstInlineAsmPIC_SOURCES = tstInlineAsm.cpp
108tstInlineAsmPIC_CXXFLAGS = -fPIC
109tstInlineAsmPIC_DEFS = PIC
110
111tstInlineAsmPIC3_SOURCES = tstInlineAsm.cpp
112tstInlineAsmPIC3_CXXFLAGS = -fPIC -fomit-frame-pointer -O3
113tstInlineAsmPIC3_DEFS = PIC
114
115tstCritSect_SOURCES = tstCritSect.cpp
116
117tstCritSectW32_SOURCES = tstCritSect.cpp
118tstCritSectW32_DEFS = TRY_WIN32_CRIT
119
120tstLdr_SOURCES = tstLdr.cpp
121
122tstLdr-2_SOURCES = tstLdr-2.cpp
123tstLdr-2_DEFS = IN_DIS_R3
124tstLdr-2_LIBS = \
125 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
126
127tstLdrObj_TEMPLATE = VBOXGC
128tstLdrObj_INST = $(INST_TESTCASE)
129tstLdrObj_SYSSUFF = .gc
130tstLdrObj_SOURCES = tstLdrObj.cpp
131tstLdrObj_DEFS = IN_DIS_GC IN_RT_GC
132ifeq ($(VBOX_LDR_FMT32),elf)
133tstLdrObj_DEFS += VBOX_SOME_IMPORT_FUNCTION
134endif
135tstLdrObj_LIBS = \
136 $(PATH_LIB)/DisasmGC$(VBOX_SUFF_LIB) \
137 $(PATH_LIB)/RuntimeGC$(VBOX_SUFF_LIB) \
138 $(PATH_LIB)/VMMGCBuiltin$(VBOX_SUFF_LIB)
139ifeq ($(VBOX_LDR_FMT32),pe)
140tstLdrObj_LDFLAGS = -Entry:Entrypoint
141endif # PE
142ifeq ($(VBOX_LDR_FMT32),elf)
143tstLdrObj_LDFLAGS = -entry=Entrypoint
144endif
145
146tstLdr-3_SOURCES = tstLdr-3.cpp
147tstLdr-3_DEFS = IN_DIS_R3
148tstLdr-3_LIBS = \
149 $(PATH_LIB)/DisasmR3$(VBOX_SUFF_LIB)
150
151tstLdrLoad_SOURCES = tstLdrLoad.cpp
152
153tstPrfRT_SOURCES = tstPrfRT.cpp
154
155tstRTProcWait_SOURCES = tstRTProcWait.cpp
156
157tstStrToNum_SOURCES = tstStrToNum.cpp
158
159tstUtf8_SOURCES = tstUtf8.cpp
160
161tstDir_SOURCES = tstDir.cpp
162
163tstDir-2_SOURCES = tstDir-2.cpp
164
165tstRTFsQueries_SOURCES = tstRTFsQueries.cpp
166
167tstMove_SOURCES = tstMove.cpp
168
169ntGetTimerResolution_SOURCES = ntGetTimerResolution.cpp
170ntGetTimerResolution_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
171
172tstIoCtl_SOURCES = tstIoCtl.cpp
173
174tstDeadlock_SOURCES = tstDeadlock.cpp
175
176tstUuid_SOURCES = tstUuid.cpp
177
178tstErrUnique_SOURCES = tstErrUnique.cpp
179tstErrUnique_INCS = $(PATH_TARGET)/..
180## tstErrUnique.cpp depends on a generated header.
181tstErrUnique.cpp_DEPS = $(PATH_TARGET)/../errmsgdata.h
182
183
184include $(PATH_KBUILD)/footer.kmk
185
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