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