1 | # $Id: Makefile.kmk 59754 2016-02-20 02:41:57Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the IPRT.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2016 Oracle Corporation
|
---|
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 (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 | # The contents of this file may alternatively be used under the terms
|
---|
18 | # of the Common Development and Distribution License Version 1.0
|
---|
19 | # (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | # VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | # CDDL are applicable instead of those of the GPL.
|
---|
22 | #
|
---|
23 | # You may elect to license modified versions of this file under the
|
---|
24 | # terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | #
|
---|
26 |
|
---|
27 | SUB_DEPTH = ../../..
|
---|
28 | include $(KBUILD_PATH)/subheader.kmk
|
---|
29 |
|
---|
30 | ifdef VBOX_ONLY_ADDITIONS
|
---|
31 | #
|
---|
32 | # Only build the additions, sort out the legacy names first.
|
---|
33 | #
|
---|
34 | LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared
|
---|
35 | LIBRARIES.win.amd64 += RuntimeGuestR3-x86 RuntimeGuestR3Shared-x86
|
---|
36 | ifdef VBOX_WITH_ADDITION_DRIVERS
|
---|
37 | LIBRARIES += RuntimeGuestR0
|
---|
38 | #LIBRARIES.os2 += RuntimeGuestR0OS2Warp3
|
---|
39 | LIBRARIES.win.x86 += RuntimeGuestR0NT4
|
---|
40 | endif
|
---|
41 |
|
---|
42 | else ifdef VBOX_ONLY_VALIDATIONKIT
|
---|
43 | #
|
---|
44 | # Only build the Validation Kit.
|
---|
45 | #
|
---|
46 | LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeR3 RuntimeR0 RuntimeBldProg
|
---|
47 | LIBRARIES.solaris += RuntimeR0Stub
|
---|
48 | LIBRARIES.win += RuntimeR0Stub
|
---|
49 | LIBRARIES.win.x86 += RuntimeR3VccTricks
|
---|
50 | include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
|
---|
51 |
|
---|
52 | else ifdef VBOX_ONLY_DOCS
|
---|
53 | #
|
---|
54 | # Build docs only - need just regular R3 runtime.
|
---|
55 | #
|
---|
56 | LIBRARIES += RuntimeR3 RuntimeBldProg
|
---|
57 |
|
---|
58 | else ifdef VBOX_ONLY_EXTPACKS_USE_IMPLIBS
|
---|
59 | #
|
---|
60 | # Build extension packs using import libraries as much as possible (VBoxDTrace
|
---|
61 | # needs Ring-0 IPRT, though).
|
---|
62 | #
|
---|
63 | LIBRARIES += RuntimeBldProg RuntimeR0
|
---|
64 | LIBRARIES.solaris += RuntimeR0Stub
|
---|
65 | LIBRARIES.win += RuntimeR0Stub RuntimeRCStub
|
---|
66 | include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
|
---|
67 |
|
---|
68 | else # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_VALIDATIONKIT && !VBOX_ONLY_DOCS
|
---|
69 |
|
---|
70 | #
|
---|
71 | # Normal build.
|
---|
72 | #
|
---|
73 | ifndef VBOX_ONLY_EXTPACKS
|
---|
74 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
75 | endif
|
---|
76 | include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
|
---|
77 |
|
---|
78 | BLDPROGS += uniread
|
---|
79 | LIBRARIES += RuntimeR3 RuntimeBldProg RuntimeR0 RuntimeEFCPP RuntimeR3NoCRTGCC
|
---|
80 | LIBRARIES.solaris += RuntimeR0Stub
|
---|
81 | LIBRARIES.win += RuntimeR0Stub
|
---|
82 | ifdef VBOX_WITH_RAW_MODE
|
---|
83 | LIBRARIES += RuntimeRC
|
---|
84 | LIBRARIES.win += RuntimeRCStub
|
---|
85 | endif
|
---|
86 | ifdef VBOX_WITH_VBOXDRV
|
---|
87 | LIBRARIES += RuntimeR0Drv
|
---|
88 | endif
|
---|
89 | ifdef VBOX_WITH_ADDITIONS
|
---|
90 | LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared
|
---|
91 | LIBRARIES.win.amd64 += RuntimeGuestR3-x86 RuntimeGuestR3Shared-x86
|
---|
92 | ifdef VBOX_WITH_ADDITION_DRIVERS
|
---|
93 | LIBRARIES += RuntimeGuestR0
|
---|
94 | endif
|
---|
95 | #LIBRARIES.os2 += RuntimeGuestR0OS2Warp3
|
---|
96 | LIBRARIES.win.x86 += RuntimeGuestR0NT4
|
---|
97 | endif # VBOX_WITH_ADDITIONS
|
---|
98 | LIBRARIES.win.x86 += RuntimeR3VccTricks
|
---|
99 | DLLS += VBoxRT
|
---|
100 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
101 | DLLS += VBoxRT-x86
|
---|
102 | endif
|
---|
103 | endif
|
---|
104 |
|
---|
105 |
|
---|
106 | # Always build the ntdll import libraries on windows.
|
---|
107 | LIBRARIES.win += RuntimeR3NtDll-x86
|
---|
108 | if1of (amd64, $(KBUILD_TARGET_ARCH) $(KBUILD_HOST_ARCH))
|
---|
109 | LIBRARIES.win += RuntimeR3NtDll-amd64
|
---|
110 | endif
|
---|
111 |
|
---|
112 |
|
---|
113 | # Always build the import library.
|
---|
114 | IMPORT_LIBS += VBoxRTImp
|
---|
115 |
|
---|
116 |
|
---|
117 | # Where the generated stuff goes.
|
---|
118 | IPRT_OUT_DIR := $(PATH_TARGET)/Runtime
|
---|
119 | BLDDIRS += $(IPRT_OUT_DIR)
|
---|
120 | OTHER_CLEAN += \
|
---|
121 | $(IPRT_OUT_DIR)/errmsgdata.h \
|
---|
122 | $(IPRT_OUT_DIR)/errmsgcomdata.h \
|
---|
123 | $(IPRT_OUT_DIR)/errmsgvboxcomdata.h \
|
---|
124 | $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts \
|
---|
125 | $(IPRT_OUT_DIR)/odi2name.h \
|
---|
126 | $(IPRT_OUT_DIR)/odi2name.h.ts \
|
---|
127 | $(IPRT_OUT_DIR)/Doxyfile.iprt \
|
---|
128 | $(IPRT_OUT_DIR)/Doxyfile.iprt.dep \
|
---|
129 | $(IPRT_OUT_DIR)/docs.iprt
|
---|
130 |
|
---|
131 |
|
---|
132 | #
|
---|
133 | # Globals
|
---|
134 | #
|
---|
135 | VBOX_PATH_RUNTIME_SRC := $(PATH_SUB_CURRENT)
|
---|
136 |
|
---|
137 |
|
---|
138 | #
|
---|
139 | # Set the defines that buildconfig.cpp needs. Its used by several targets.
|
---|
140 | #
|
---|
141 | common/misc/buildconfig.cpp_DEFS = \
|
---|
142 | IPRT_BLDCFG_SCM_REV=$(VBOX_SVN_REV) \
|
---|
143 | IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
|
---|
144 | IPRT_BLDCFG_VERSION_MAJOR=$(VBOX_VERSION_MAJOR) \
|
---|
145 | IPRT_BLDCFG_VERSION_MINOR=$(VBOX_VERSION_MINOR) \
|
---|
146 | IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD) \
|
---|
147 | IPRT_BLDCFG_TARGET=\"$(KBUILD_TARGET)\" \
|
---|
148 | IPRT_BLDCFG_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\" \
|
---|
149 | IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\"
|
---|
150 |
|
---|
151 | #
|
---|
152 | # OID to C table conversion program.
|
---|
153 | #
|
---|
154 | BLDPROGS += oiddb2c
|
---|
155 | oiddb2c_TEMPLATE = VBoxBldProg
|
---|
156 | oiddb2c_SOURCES = common/asn1/oiddb2c.cpp
|
---|
157 | common/asn1/asn1-dump.cpp_DEPS = $(IPRT_OUT_DIR)/oiddb.h
|
---|
158 | common/asn1/asn1-dump.cpp_INCS = $(IPRT_OUT_DIR)
|
---|
159 |
|
---|
160 | $(IPRT_OUT_DIR)/oiddb.h.ts +| $(IPRT_OUT_DIR)/oiddb.h: \
|
---|
161 | $(VBOX_PATH_RUNTIME_SRC)/common/asn1/oiddb.cfg \
|
---|
162 | $(VBOX_EXTRA_OID_CFG_FILES) \
|
---|
163 | $$(oiddb2c_1_TARGET) \
|
---|
164 | | $$(dir $$@)
|
---|
165 | $(call MSG_GENERATE,,$@,$(filter %.xidl,$^))
|
---|
166 | $(QUIET)$(oiddb2c_1_TARGET) "$@" $(filter %.cfg,$^)
|
---|
167 | $(QUIET)$(CP) --changed -fv "$@" "$(IPRT_OUT_DIR)/oiddb.h"
|
---|
168 |
|
---|
169 |
|
---|
170 | #
|
---|
171 | # Unicode Specification reader used to regenerate unidata-*.cpp.
|
---|
172 | #
|
---|
173 | uniread_TEMPLATE = VBoxBldProg
|
---|
174 | uniread_SOURCES = common/string/uniread.cpp
|
---|
175 | uniread_INCS = include
|
---|
176 |
|
---|
177 | #
|
---|
178 | # Win64 assembly sources.
|
---|
179 | #
|
---|
180 | RuntimeWin64ASM_SOURCES = \
|
---|
181 | win/amd64/ASMAtomicBitClear.asm \
|
---|
182 | win/amd64/ASMAtomicBitTestAndToggle.asm \
|
---|
183 | win/amd64/ASMAtomicBitToggle.asm \
|
---|
184 | win/amd64/ASMAtomicReadU64.asm \
|
---|
185 | win/amd64/ASMAtomicXchgU8.asm \
|
---|
186 | win/amd64/ASMGetCS.asm \
|
---|
187 | win/amd64/ASMGetDS.asm \
|
---|
188 | win/amd64/ASMGetES.asm \
|
---|
189 | win/amd64/ASMGetFlags.asm \
|
---|
190 | win/amd64/ASMGetFS.asm \
|
---|
191 | win/amd64/ASMGetGS.asm \
|
---|
192 | win/amd64/ASMGetSS.asm \
|
---|
193 | win/amd64/ASMProbeReadByte.asm \
|
---|
194 | win/amd64/ASMSetFlags.asm \
|
---|
195 | win/amd64/ASMGetDR0.asm \
|
---|
196 | win/amd64/ASMGetDR1.asm \
|
---|
197 | win/amd64/ASMGetDR2.asm \
|
---|
198 | win/amd64/ASMGetDR3.asm \
|
---|
199 | win/amd64/ASMGetDR6.asm \
|
---|
200 | win/amd64/ASMGetDR7.asm \
|
---|
201 | common/asm/ASMAtomicCmpXchgU8.asm \
|
---|
202 | common/asm/ASMAtomicCmpXchgU16.asm \
|
---|
203 | common/asm/ASMAtomicXchgU16.asm \
|
---|
204 | common/asm/ASMBitFirstClear.asm \
|
---|
205 | common/asm/ASMBitFirstSet.asm \
|
---|
206 | common/asm/ASMBitNextClear.asm \
|
---|
207 | common/asm/ASMBitNextSet.asm \
|
---|
208 | common/asm/ASMMultU32ByU32DivByU32.asm \
|
---|
209 | common/asm/ASMMultU64ByU32DivByU32.asm \
|
---|
210 | common/asm/ASMCpuId_Idx_ECX.asm \
|
---|
211 | common/asm/ASMNopPause.asm \
|
---|
212 | common/asm/ASMGetIDTR.asm \
|
---|
213 | common/asm/ASMGetIdtrLimit.asm \
|
---|
214 | common/asm/ASMSetIDTR.asm \
|
---|
215 | common/asm/ASMGetGDTR.asm \
|
---|
216 | common/asm/ASMSetGDTR.asm \
|
---|
217 | common/asm/ASMGetLDTR.asm \
|
---|
218 | common/asm/ASMGetSegAttr.asm \
|
---|
219 | common/asm/ASMGetTR.asm
|
---|
220 |
|
---|
221 | #
|
---|
222 | # Win32 assembly sources.
|
---|
223 | #
|
---|
224 | RuntimeWin32ASM_SOURCES = \
|
---|
225 | common/asm/ASMAtomicCmpXchgU8.asm \
|
---|
226 | common/asm/ASMAtomicCmpXchgU16.asm \
|
---|
227 | common/asm/ASMAtomicXchgU16.asm \
|
---|
228 | common/asm/ASMMultU32ByU32DivByU32.asm \
|
---|
229 | common/asm/ASMMultU64ByU32DivByU32.asm \
|
---|
230 | common/asm/ASMCpuId_Idx_ECX.asm \
|
---|
231 | common/asm/ASMGetSegAttr.asm
|
---|
232 |
|
---|
233 | #
|
---|
234 | # NoCRT sources (minus math stuff).
|
---|
235 | #
|
---|
236 | if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
237 | RuntimeNoCrt_SOURCES = \
|
---|
238 | common/misc/setjmp.asm \
|
---|
239 | common/string/memchr.asm \
|
---|
240 | common/string/memcmp.asm \
|
---|
241 | common/string/memcpy.asm \
|
---|
242 | common/string/mempcpy.asm \
|
---|
243 | common/string/memmove.asm \
|
---|
244 | common/string/memset.asm \
|
---|
245 | common/string/strchr.asm \
|
---|
246 | common/string/strcpy.asm \
|
---|
247 | common/string/strncpy.asm \
|
---|
248 | common/string/strcmp.asm \
|
---|
249 | common/string/strlen.asm
|
---|
250 | endif
|
---|
251 |
|
---|
252 |
|
---|
253 | #
|
---|
254 | # RuntimeR3 - Static Runtime for Ring-3 executables.
|
---|
255 | #
|
---|
256 | RuntimeR3_TEMPLATE = VBoxR3Static
|
---|
257 | RuntimeR3_SDKS = VBOX_OPENSSL VBOX_LIBXML2
|
---|
258 | RuntimeR3_SDKS.win = $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
259 | RuntimeR3_DEFS = \
|
---|
260 | IN_RT_R3 \
|
---|
261 | IN_SUP_R3 \
|
---|
262 | LDR_WITH_NATIVE \
|
---|
263 | LDR_WITH_ELF32 \
|
---|
264 | LDR_WITH_PE \
|
---|
265 | RT_WITH_VBOX \
|
---|
266 | RT_NO_GIP \
|
---|
267 | RT_WITHOUT_NOCRT_WRAPPERS \
|
---|
268 | IPRT_WITH_OPENSSL
|
---|
269 | #RuntimeR3_DEFS += RTMEM_WRAP_TO_EF_APIS
|
---|
270 | ifdef IPRT_WITH_KSTUFF
|
---|
271 | RuntimeR3_DEFS += LDR_WITH_KLDR
|
---|
272 | endif
|
---|
273 | ifdef IPRT_WITH_LZJB
|
---|
274 | RuntimeR3_DEFS += RTZIP_USE_LZJB
|
---|
275 | endif
|
---|
276 | ifdef IPRT_WITH_LZO
|
---|
277 | RuntimeR3_DEFS += RTZIP_USE_LZO
|
---|
278 | endif
|
---|
279 | ifn1of ($(KBUILD_TARGET), win)
|
---|
280 | RuntimeR3_DEFS += RT_WITH_ICONV_CACHE
|
---|
281 | endif
|
---|
282 | ifdef IPRT_WITH_FUTEX_BASED_SEMS
|
---|
283 | RuntimeR3_DEFS.linux += IPRT_WITH_FUTEX_BASED_SEMS
|
---|
284 | endif
|
---|
285 | RuntimeR3_INCS = \
|
---|
286 | include \
|
---|
287 | $(SDK_VBOX_ZLIB_INCS)
|
---|
288 | RuntimeR3_INCS += \
|
---|
289 | $(PATH_ROOT)/src/libs/liblzf-3.4
|
---|
290 | ifdef IPRT_WITH_KSTUFF
|
---|
291 | RuntimeR3_INCS += \
|
---|
292 | $(PATH_ROOT)/src/libs/kStuff/kStuff/include
|
---|
293 | endif
|
---|
294 |
|
---|
295 | # RuntimeR3_INCS.solaris = \
|
---|
296 | # /usr/include
|
---|
297 |
|
---|
298 | RuntimeR3_SOURCES = \
|
---|
299 | common/alloc/alloc.cpp \
|
---|
300 | common/alloc/heapsimple.cpp \
|
---|
301 | common/alloc/heapoffset.cpp \
|
---|
302 | common/alloc/memcache.cpp \
|
---|
303 | common/alloc/memtracker.cpp \
|
---|
304 | common/asn1/asn1-basics.cpp \
|
---|
305 | common/asn1/asn1-cursor.cpp \
|
---|
306 | common/asn1/asn1-default-allocator.cpp \
|
---|
307 | common/asn1/asn1-efence-allocator.cpp \
|
---|
308 | common/asn1/asn1-dump.cpp \
|
---|
309 | common/asn1/asn1-encode.cpp \
|
---|
310 | common/asn1/asn1-ut-bitstring.cpp \
|
---|
311 | common/asn1/asn1-ut-bitstring-decode.cpp \
|
---|
312 | common/asn1/asn1-ut-boolean.cpp \
|
---|
313 | common/asn1/asn1-ut-boolean-decode.cpp \
|
---|
314 | common/asn1/asn1-ut-core.cpp \
|
---|
315 | common/asn1/asn1-ut-core-decode.cpp \
|
---|
316 | common/asn1/asn1-ut-dyntype.cpp \
|
---|
317 | common/asn1/asn1-ut-dyntype-decode.cpp \
|
---|
318 | common/asn1/asn1-ut-integer.cpp \
|
---|
319 | common/asn1/asn1-ut-integer-decode.cpp \
|
---|
320 | common/asn1/asn1-ut-null.cpp \
|
---|
321 | common/asn1/asn1-ut-null-decode.cpp \
|
---|
322 | common/asn1/asn1-ut-objid.cpp \
|
---|
323 | common/asn1/asn1-ut-objid-decode.cpp \
|
---|
324 | common/asn1/asn1-ut-octetstring.cpp \
|
---|
325 | common/asn1/asn1-ut-octetstring-decode.cpp \
|
---|
326 | common/asn1/asn1-ut-string.cpp \
|
---|
327 | common/asn1/asn1-ut-string-decode.cpp \
|
---|
328 | common/asn1/asn1-ut-time.cpp \
|
---|
329 | common/asn1/asn1-ut-time-decode.cpp \
|
---|
330 | common/checksum/adler32.cpp \
|
---|
331 | common/checksum/crc32.cpp \
|
---|
332 | common/checksum/crc32c.cpp \
|
---|
333 | common/checksum/crc64.cpp \
|
---|
334 | common/checksum/alt-md2.cpp \
|
---|
335 | common/checksum/alt-md5.cpp \
|
---|
336 | common/checksum/alt-sha1.cpp \
|
---|
337 | common/checksum/alt-sha256.cpp \
|
---|
338 | common/checksum/alt-sha512.cpp \
|
---|
339 | common/checksum/md2str.cpp \
|
---|
340 | common/checksum/md5str.cpp \
|
---|
341 | common/checksum/ipv4.cpp \
|
---|
342 | common/checksum/ipv6.cpp \
|
---|
343 | common/checksum/manifest.cpp \
|
---|
344 | common/checksum/manifest2.cpp \
|
---|
345 | common/checksum/manifest3.cpp \
|
---|
346 | common/checksum/manifest-file.cpp \
|
---|
347 | common/checksum/RTSha1Digest.cpp \
|
---|
348 | common/checksum/RTSha256Digest.cpp \
|
---|
349 | common/checksum/sha1str.cpp \
|
---|
350 | common/checksum/sha224str.cpp \
|
---|
351 | common/checksum/sha256str.cpp \
|
---|
352 | common/checksum/sha384str.cpp \
|
---|
353 | common/checksum/sha512str.cpp \
|
---|
354 | common/checksum/sha512t224str.cpp \
|
---|
355 | common/checksum/sha512t256str.cpp \
|
---|
356 | common/crypto/digest-core.cpp \
|
---|
357 | common/crypto/digest-builtin.cpp \
|
---|
358 | common/crypto/digest-vfs.cpp \
|
---|
359 | common/crypto/iprt-openssl.cpp \
|
---|
360 | common/crypto/rsa-asn1-decoder.cpp \
|
---|
361 | common/crypto/rsa-core.cpp \
|
---|
362 | common/crypto/rsa-init.cpp \
|
---|
363 | common/crypto/rsa-sanity.cpp \
|
---|
364 | common/crypto/pemfile.cpp \
|
---|
365 | common/crypto/pkcs7-asn1-decoder.cpp \
|
---|
366 | common/crypto/pkcs7-core.cpp \
|
---|
367 | common/crypto/pkcs7-init.cpp \
|
---|
368 | common/crypto/pkcs7-sanity.cpp \
|
---|
369 | common/crypto/pkcs7-verify.cpp \
|
---|
370 | common/crypto/pkix-signature-builtin.cpp \
|
---|
371 | common/crypto/pkix-signature-core.cpp \
|
---|
372 | common/crypto/pkix-signature-rsa.cpp \
|
---|
373 | common/crypto/pkix-util.cpp \
|
---|
374 | common/crypto/pkix-verify.cpp \
|
---|
375 | common/crypto/spc-asn1-decoder.cpp \
|
---|
376 | common/crypto/spc-core.cpp \
|
---|
377 | common/crypto/spc-init.cpp \
|
---|
378 | common/crypto/spc-sanity.cpp \
|
---|
379 | common/crypto/x509-asn1-decoder.cpp \
|
---|
380 | common/crypto/x509-certpaths.cpp \
|
---|
381 | common/crypto/x509-core.cpp \
|
---|
382 | common/crypto/x509-file.cpp \
|
---|
383 | common/crypto/x509-init.cpp \
|
---|
384 | common/crypto/x509-sanity.cpp \
|
---|
385 | common/crypto/x509-verify.cpp \
|
---|
386 | common/crypto/taf-asn1-decoder.cpp \
|
---|
387 | common/crypto/taf-core.cpp \
|
---|
388 | common/crypto/taf-init.cpp \
|
---|
389 | common/crypto/taf-sanity.cpp \
|
---|
390 | common/crypto/tsp-asn1-decoder.cpp \
|
---|
391 | common/crypto/tsp-core.cpp \
|
---|
392 | common/crypto/tsp-init.cpp \
|
---|
393 | common/crypto/tsp-sanity.cpp \
|
---|
394 | common/crypto/store.cpp \
|
---|
395 | common/crypto/store-inmem.cpp \
|
---|
396 | common/crypto/store-cert-add-basic.cpp \
|
---|
397 | common/crypto/RTCrStoreCertAddFromJavaKeyStore.cpp \
|
---|
398 | common/crypto/RTCrStoreCertAddWantedFromFishingExpedition.cpp \
|
---|
399 | common/crypto/RTCrStoreCertExportAsPem.cpp \
|
---|
400 | common/crypto/RTCrStoreCreateSnapshotOfUserAndSystemTrustedCAsAndCerts.cpp \
|
---|
401 | common/dbg/dbg.cpp \
|
---|
402 | common/dbg/dbgas.cpp \
|
---|
403 | common/dbg/dbgcfg.cpp \
|
---|
404 | common/dbg/dbgmod.cpp \
|
---|
405 | common/dbg/dbgmodldr.cpp \
|
---|
406 | common/dbg/dbgmodcontainer.cpp \
|
---|
407 | common/dbg/dbgmoddeferred.cpp \
|
---|
408 | common/dbg/dbgmodexports.cpp \
|
---|
409 | common/dbg/dbgmodcodeview.cpp \
|
---|
410 | common/dbg/dbgmoddwarf.cpp \
|
---|
411 | common/dbg/dbgmodnm.cpp \
|
---|
412 | common/dvm/dvm.cpp \
|
---|
413 | common/dvm/dvmbsdlabel.cpp \
|
---|
414 | common/dvm/dvmgpt.cpp \
|
---|
415 | common/dvm/dvmmbr.cpp \
|
---|
416 | common/dvm/dvmvfs.cpp \
|
---|
417 | common/err/errinfo.cpp \
|
---|
418 | common/err/errinfo-alloc.cpp \
|
---|
419 | common/err/errmsg.cpp \
|
---|
420 | common/err/RTErrConvertFromErrno.cpp \
|
---|
421 | common/err/RTErrConvertToErrno.cpp \
|
---|
422 | common/filesystem/filesystem.cpp \
|
---|
423 | common/filesystem/filesystemext.cpp \
|
---|
424 | common/ldr/ldr.cpp \
|
---|
425 | common/ldr/ldrELF.cpp \
|
---|
426 | common/ldr/ldrEx.cpp \
|
---|
427 | common/ldr/ldrFile.cpp \
|
---|
428 | common/ldr/ldrMemory.cpp \
|
---|
429 | common/ldr/ldrNative.cpp \
|
---|
430 | common/ldr/ldrPE.cpp \
|
---|
431 | common/log/log.cpp \
|
---|
432 | common/log/logellipsis.cpp \
|
---|
433 | common/log/logrel.cpp \
|
---|
434 | common/log/logrelellipsis.cpp \
|
---|
435 | common/log/logcom.cpp \
|
---|
436 | common/log/logformat.cpp \
|
---|
437 | common/log/tracebuf.cpp \
|
---|
438 | common/log/tracedefault.cpp \
|
---|
439 | common/math/bignum.cpp \
|
---|
440 | common/misc/RTAssertMsg1Weak.cpp \
|
---|
441 | common/misc/RTAssertMsg2.cpp \
|
---|
442 | common/misc/RTAssertMsg2Add.cpp \
|
---|
443 | common/misc/RTAssertMsg2AddWeak.cpp \
|
---|
444 | common/misc/RTAssertMsg2AddWeakV.cpp \
|
---|
445 | common/misc/RTAssertMsg2Weak.cpp \
|
---|
446 | common/misc/RTAssertMsg2WeakV.cpp \
|
---|
447 | common/misc/RTFileModeToFlags.cpp \
|
---|
448 | common/misc/RTFileOpenF.cpp \
|
---|
449 | common/misc/RTFileOpenV.cpp \
|
---|
450 | common/misc/RTMemWipeThoroughly.cpp \
|
---|
451 | common/misc/assert.cpp \
|
---|
452 | common/misc/buildconfig.cpp \
|
---|
453 | common/misc/cidr.cpp \
|
---|
454 | common/misc/getopt.cpp \
|
---|
455 | common/misc/getoptargv.cpp \
|
---|
456 | common/misc/handle.cpp \
|
---|
457 | common/misc/handletable.cpp \
|
---|
458 | common/misc/handletablectx.cpp \
|
---|
459 | common/misc/handletablesimple.cpp \
|
---|
460 | common/misc/lockvalidator.cpp \
|
---|
461 | common/misc/message.cpp \
|
---|
462 | common/misc/once.cpp \
|
---|
463 | common/misc/req.cpp \
|
---|
464 | common/misc/reqpool.cpp \
|
---|
465 | common/misc/reqqueue.cpp \
|
---|
466 | common/misc/sanity-c.c \
|
---|
467 | common/misc/sanity-cpp.cpp \
|
---|
468 | common/misc/semspingpong.cpp \
|
---|
469 | common/misc/sg.cpp \
|
---|
470 | common/misc/circbuf.cpp \
|
---|
471 | common/misc/thread.cpp \
|
---|
472 | common/misc/term.cpp \
|
---|
473 | common/misc/uri.cpp \
|
---|
474 | common/misc/zero.asm \
|
---|
475 | common/net/netaddrstr2.cpp \
|
---|
476 | common/net/macstr.cpp \
|
---|
477 | common/path/rtPathRootSpecLen.cpp \
|
---|
478 | common/path/rtPathVolumeSpecLen.cpp \
|
---|
479 | common/path/RTPathAbsDup.cpp \
|
---|
480 | common/path/RTPathAbsEx.cpp \
|
---|
481 | common/path/RTPathAbsExDup.cpp \
|
---|
482 | common/path/RTPathAppend.cpp \
|
---|
483 | common/path/RTPathAppendEx.cpp \
|
---|
484 | common/path/RTPathCalcRelative.cpp \
|
---|
485 | common/path/RTPathChangeToDosSlashes.cpp \
|
---|
486 | common/path/RTPathChangeToUnixSlashes.cpp \
|
---|
487 | common/path/RTPathCopyComponents.cpp \
|
---|
488 | common/path/RTPathCountComponents.cpp \
|
---|
489 | common/path/RTPathEnsureTrailingSeparator.cpp \
|
---|
490 | common/path/RTPathExt.cpp \
|
---|
491 | common/path/RTPathFilename.cpp \
|
---|
492 | common/path/RTPathGlob.cpp \
|
---|
493 | common/path/RTPathHasExt.cpp \
|
---|
494 | common/path/RTPathHasPath.cpp \
|
---|
495 | common/path/RTPathJoin.cpp \
|
---|
496 | common/path/RTPathJoinA.cpp \
|
---|
497 | common/path/RTPathJoinEx.cpp \
|
---|
498 | common/path/RTPathParse.cpp \
|
---|
499 | common/path/RTPathParsedReassemble.cpp \
|
---|
500 | common/path/RTPathParseSimple.cpp \
|
---|
501 | common/path/RTPathRealDup.cpp \
|
---|
502 | common/path/RTPathRmCmd.cpp \
|
---|
503 | common/path/RTPathSplit.cpp \
|
---|
504 | common/path/RTPathSplitA.cpp \
|
---|
505 | common/path/RTPathSplitReassemble.cpp \
|
---|
506 | common/path/RTPathStartsWithRoot.cpp \
|
---|
507 | common/path/RTPathStripExt.cpp \
|
---|
508 | common/path/RTPathStripFilename.cpp \
|
---|
509 | common/path/RTPathStripTrailingSlash.cpp \
|
---|
510 | common/path/RTPathTraverseList.cpp \
|
---|
511 | common/path/comparepaths.cpp \
|
---|
512 | common/rand/rand.cpp \
|
---|
513 | common/rand/randadv.cpp \
|
---|
514 | common/rand/randparkmiller.cpp \
|
---|
515 | common/sort/RTSortIsSorted.cpp \
|
---|
516 | common/sort/RTSortApvIsSorted.cpp \
|
---|
517 | common/sort/shellsort.cpp \
|
---|
518 | common/string/RTStrCat.cpp \
|
---|
519 | common/string/RTStrCatEx.cpp \
|
---|
520 | common/string/RTStrCatP.cpp \
|
---|
521 | common/string/RTStrCatPEx.cpp \
|
---|
522 | common/string/RTStrCmp.cpp \
|
---|
523 | common/string/RTStrCopy.cpp \
|
---|
524 | common/string/RTStrCopyEx.cpp \
|
---|
525 | common/string/RTStrCopyP.cpp \
|
---|
526 | common/string/RTStrCopyPEx.cpp \
|
---|
527 | common/string/RTStrNCmp.cpp \
|
---|
528 | common/string/RTStrNLen.cpp \
|
---|
529 | common/string/RTStrNLenEx.cpp \
|
---|
530 | common/string/RTStrPrintHexBytes.cpp \
|
---|
531 | common/string/RTStrStartsWith.cpp \
|
---|
532 | common/string/RTStrIStartsWith.cpp \
|
---|
533 | common/string/RTStrStr.cpp \
|
---|
534 | common/string/RTUtf16Copy.cpp \
|
---|
535 | common/string/RTUtf16CopyAscii.cpp \
|
---|
536 | common/string/RTUtf16Cat.cpp \
|
---|
537 | common/string/RTUtf16CatAscii.cpp \
|
---|
538 | common/string/RTUtf16CmpAscii.cpp \
|
---|
539 | common/string/RTUtf16ICmpAscii.cpp \
|
---|
540 | common/string/RTUtf16End.cpp \
|
---|
541 | common/string/RTUtf16NLen.cpp \
|
---|
542 | common/string/RTUtf16NLenEx.cpp \
|
---|
543 | common/string/RTUtf16PrintHexBytes.cpp \
|
---|
544 | common/string/base64.cpp \
|
---|
545 | common/string/simplepattern.cpp \
|
---|
546 | common/string/straprintf.cpp \
|
---|
547 | common/string/strformat.cpp \
|
---|
548 | common/string/strformatnum.cpp \
|
---|
549 | common/string/strformatrt.cpp \
|
---|
550 | common/string/strformattype.cpp \
|
---|
551 | common/string/strhash1.cpp \
|
---|
552 | common/string/stringalloc.cpp \
|
---|
553 | common/string/strprintf.cpp \
|
---|
554 | common/string/strcache.cpp \
|
---|
555 | common/string/strspace.cpp \
|
---|
556 | common/string/strstrip.cpp \
|
---|
557 | common/string/strtonum.cpp \
|
---|
558 | common/string/strversion.cpp \
|
---|
559 | common/string/uni.cpp \
|
---|
560 | common/string/unidata-flags.cpp \
|
---|
561 | common/string/unidata-lower.cpp \
|
---|
562 | common/string/unidata-upper.cpp \
|
---|
563 | common/string/utf-16.cpp \
|
---|
564 | common/string/utf-16-case.cpp \
|
---|
565 | common/string/utf-16-latin-1.cpp \
|
---|
566 | common/string/utf-8.cpp \
|
---|
567 | common/string/utf-8-case.cpp \
|
---|
568 | common/string/utf-8-case2.cpp \
|
---|
569 | common/string/ministring.cpp \
|
---|
570 | common/table/avlgcptr.cpp \
|
---|
571 | common/table/avlhcphys.cpp \
|
---|
572 | common/table/avlgcphys.cpp \
|
---|
573 | common/table/avllu32.cpp \
|
---|
574 | common/table/avlou32.cpp \
|
---|
575 | common/table/avlogcphys.cpp \
|
---|
576 | common/table/avlogcptr.cpp \
|
---|
577 | common/table/avlohcphys.cpp \
|
---|
578 | common/table/avloioport.cpp \
|
---|
579 | common/table/avlpv.cpp \
|
---|
580 | common/table/avlrgcptr.cpp \
|
---|
581 | common/table/avlrogcphys.cpp \
|
---|
582 | common/table/avlrogcptr.cpp \
|
---|
583 | common/table/avlroioport.cpp \
|
---|
584 | common/table/avlroogcptr.cpp \
|
---|
585 | common/table/avlrpv.cpp \
|
---|
586 | common/table/avlruintptr.cpp \
|
---|
587 | common/table/avlrfoff.cpp \
|
---|
588 | common/table/avlru64.cpp \
|
---|
589 | common/table/avlu32.cpp \
|
---|
590 | common/table/avluintptr.cpp \
|
---|
591 | common/table/avlul.cpp \
|
---|
592 | common/table/table.cpp \
|
---|
593 | common/time/time.cpp \
|
---|
594 | common/time/timeprog.cpp \
|
---|
595 | common/time/timesup.cpp \
|
---|
596 | common/vfs/vfsbase.cpp \
|
---|
597 | common/vfs/vfschain.cpp \
|
---|
598 | common/vfs/vfsiosmisc.cpp \
|
---|
599 | common/vfs/vfsmemory.cpp \
|
---|
600 | common/vfs/vfsmisc.cpp \
|
---|
601 | common/vfs/vfsreadahead.cpp \
|
---|
602 | common/vfs/vfsstdfile.cpp \
|
---|
603 | common/vfs/vfsstdpipe.cpp \
|
---|
604 | common/zip/tar.cpp \
|
---|
605 | common/zip/tarcmd.cpp \
|
---|
606 | common/zip/unzipcmd.cpp \
|
---|
607 | common/zip/tarvfs.cpp \
|
---|
608 | common/zip/gzipvfs.cpp \
|
---|
609 | common/zip/pkzip.cpp \
|
---|
610 | common/zip/pkzipvfs.cpp \
|
---|
611 | common/zip/zip.cpp \
|
---|
612 | generic/createtemp-generic.cpp \
|
---|
613 | generic/critsect-generic.cpp \
|
---|
614 | generic/critsectrw-generic.cpp \
|
---|
615 | generic/env-generic.cpp \
|
---|
616 | generic/RTDirCreateUniqueNumbered-generic.cpp \
|
---|
617 | generic/RTEnvDupEx-generic.cpp \
|
---|
618 | generic/RTFileCopy-generic.cpp \
|
---|
619 | generic/RTFileQuerySize-generic.cpp \
|
---|
620 | generic/RTFileReadAll-generic.cpp \
|
---|
621 | generic/RTFileReadAllEx-generic.cpp \
|
---|
622 | generic/RTFileReadAllByHandle-generic.cpp \
|
---|
623 | generic/RTFileReadAllByHandleEx-generic.cpp \
|
---|
624 | generic/RTFileReadAllFree-generic.cpp \
|
---|
625 | generic/RTLogWriteStdErr-generic.cpp \
|
---|
626 | generic/RTLogWriteStdOut-generic.cpp \
|
---|
627 | generic/RTLogWriteUser-generic.cpp \
|
---|
628 | generic/RTPathGetCurrentDrive-generic.cpp \
|
---|
629 | generic/RTPathIsSame-generic.cpp \
|
---|
630 | generic/RTTimerLRCreate-generic.cpp \
|
---|
631 | generic/mempool-generic.cpp \
|
---|
632 | generic/semfastmutex-generic.cpp \
|
---|
633 | generic/semxroads-generic.cpp \
|
---|
634 | generic/spinlock-generic.cpp \
|
---|
635 | generic/timerlr-generic.cpp \
|
---|
636 | r3/alloc-ef.cpp \
|
---|
637 | r3/alloc.cpp \
|
---|
638 | r3/allocex.cpp \
|
---|
639 | r3/dir.cpp \
|
---|
640 | r3/dir2.cpp \
|
---|
641 | r3/fileio.cpp \
|
---|
642 | r3/fs.cpp \
|
---|
643 | r3/init.cpp \
|
---|
644 | r3/isofs.cpp \
|
---|
645 | r3/memsafer-r3.cpp \
|
---|
646 | r3/path.cpp \
|
---|
647 | r3/poll.cpp \
|
---|
648 | r3/process.cpp \
|
---|
649 | r3/socket.cpp \
|
---|
650 | r3/stream.cpp \
|
---|
651 | r3/test.cpp \
|
---|
652 | r3/testi.cpp \
|
---|
653 | r3/tcp.cpp \
|
---|
654 | r3/udp.cpp \
|
---|
655 | r3/generic/semspinmutex-r3-generic.cpp \
|
---|
656 | r3/xml.cpp \
|
---|
657 | common/zip/xarvfs.cpp
|
---|
658 |
|
---|
659 |
|
---|
660 | #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
|
---|
661 | # RuntimeR3_SOURCES += common/time/timesupA.asm
|
---|
662 | #else
|
---|
663 | RuntimeR3_SOURCES += common/time/timesupref.cpp
|
---|
664 | #endif
|
---|
665 |
|
---|
666 | RuntimeR3_SOURCES.x86 += \
|
---|
667 | generic/RTMpGetDescription-generic.cpp \
|
---|
668 | common/misc/RTSystemIsInsideVM-amd64-x86.cpp
|
---|
669 | RuntimeR3_SOURCES.amd64 += \
|
---|
670 | generic/RTMpGetDescription-generic.cpp \
|
---|
671 | common/misc/RTSystemIsInsideVM-amd64-x86.cpp
|
---|
672 | RuntimeR3_SOURCES.sparc32 += \
|
---|
673 | generic/RTMpGetDescription-generic-stub.cpp \
|
---|
674 | generic/RTSystemIsInsideVM-generic.cpp \
|
---|
675 | common/asm/asm-fake.cpp
|
---|
676 | RuntimeR3_SOURCES.sparc64 += \
|
---|
677 | generic/RTMpGetDescription-generic-stub.cpp \
|
---|
678 | generic/RTSystemIsInsideVM-generic.cpp \
|
---|
679 | common/asm/asm-fake.cpp
|
---|
680 |
|
---|
681 | ifdef IPRT_WITH_LZJB
|
---|
682 | RuntimeR3_SOURCES += common/misc/lzjb.c
|
---|
683 | endif
|
---|
684 |
|
---|
685 | # AMD64 / x86 assembly code.
|
---|
686 | RuntimeR3_SOURCES.x86 += \
|
---|
687 | common/asm/ASMCpuIdExSlow.asm \
|
---|
688 | common/asm/ASMAtomicUoAndU64.asm \
|
---|
689 | common/asm/ASMAtomicUoAndU32.asm \
|
---|
690 | common/asm/ASMAtomicUoDecU32.asm \
|
---|
691 | common/asm/ASMAtomicUoIncU32.asm \
|
---|
692 | common/asm/ASMAtomicUoOrU64.asm \
|
---|
693 | common/asm/ASMAtomicUoOrU32.asm \
|
---|
694 | common/asm/ASMMemFirstMismatchingU8.asm \
|
---|
695 | common/asm/ASMRdMsrEx.asm \
|
---|
696 | common/asm/ASMWrMsrEx.asm \
|
---|
697 | common/asm/ASMGetXcr0.asm \
|
---|
698 | common/asm/ASMSetXcr0.asm \
|
---|
699 | common/asm/ASMXSave.asm \
|
---|
700 | common/asm/ASMXRstor.asm \
|
---|
701 | common/asm/ASMSerializeInstruction-cpuid.asm \
|
---|
702 | common/asm/ASMSerializeInstruction-iret.asm \
|
---|
703 | common/asm/ASMSerializeInstruction-rdtscp.asm \
|
---|
704 | common/math/bignum-amd64-x86.asm
|
---|
705 | RuntimeR3_SOURCES.amd64 += \
|
---|
706 | common/asm/ASMCpuIdExSlow.asm \
|
---|
707 | common/asm/ASMAtomicUoAndU64.asm \
|
---|
708 | common/asm/ASMAtomicUoAndU32.asm \
|
---|
709 | common/asm/ASMAtomicUoDecU32.asm \
|
---|
710 | common/asm/ASMAtomicUoIncU32.asm \
|
---|
711 | common/asm/ASMAtomicUoOrU64.asm \
|
---|
712 | common/asm/ASMAtomicUoOrU32.asm \
|
---|
713 | common/asm/ASMMemFirstMismatchingU8.asm \
|
---|
714 | common/asm/ASMRdMsrEx.asm \
|
---|
715 | common/asm/ASMWrMsrEx.asm \
|
---|
716 | common/asm/ASMGetXcr0.asm \
|
---|
717 | common/asm/ASMSetXcr0.asm \
|
---|
718 | common/asm/ASMXSave.asm \
|
---|
719 | common/asm/ASMXRstor.asm \
|
---|
720 | common/asm/ASMSerializeInstruction-cpuid.asm \
|
---|
721 | common/asm/ASMSerializeInstruction-iret.asm \
|
---|
722 | common/asm/ASMSerializeInstruction-rdtscp.asm \
|
---|
723 | common/math/bignum-amd64-x86.asm \
|
---|
724 | common/math/RTUInt128MulByU64.asm
|
---|
725 |
|
---|
726 | # Some versions of GCC might require this.
|
---|
727 | RuntimeR3_SOURCES.x86 += \
|
---|
728 | common/asm/ASMAtomicXchgU64.asm \
|
---|
729 | common/asm/ASMAtomicCmpXchgU64.asm \
|
---|
730 | common/asm/ASMAtomicCmpXchgExU64.asm \
|
---|
731 | common/asm/ASMAtomicReadU64.asm \
|
---|
732 | common/asm/ASMAtomicUoReadU64.asm
|
---|
733 |
|
---|
734 |
|
---|
735 | ifdef IPRT_WITH_KSTUFF
|
---|
736 | RuntimeR3_SOURCES += \
|
---|
737 | common/ldr/ldrkStuff.cpp
|
---|
738 | endif
|
---|
739 |
|
---|
740 | # VBox specific stuff.
|
---|
741 | RuntimeR3_SOURCES += \
|
---|
742 | VBox/RTAssertShouldPanic-vbox.cpp \
|
---|
743 | VBox/log-vbox.cpp
|
---|
744 | ifneq ($(KBUILD_TARGET),win)
|
---|
745 | RuntimeR3_SOURCES += \
|
---|
746 | common/err/errmsgxpcom.cpp
|
---|
747 | endif
|
---|
748 | if1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd solaris)
|
---|
749 | RuntimeR3_SOURCES += \
|
---|
750 | $(if $(VBOX_WITH_DBUS),VBox/dbus.cpp,)
|
---|
751 | endif
|
---|
752 |
|
---|
753 | if1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)
|
---|
754 | RuntimeR3_SOURCES := \
|
---|
755 | $(filter-out common/misc/zero.asm, $(RuntimeR3_SOURCES)) \
|
---|
756 | common/misc/zero.cpp
|
---|
757 | endif
|
---|
758 |
|
---|
759 | VBOX_WITH_NT_DIRENUM = 1
|
---|
760 | RuntimeR3_SOURCES.win = \
|
---|
761 | common/dbg/dbgmoddbghelp.cpp \
|
---|
762 | generic/cdrom-generic.cpp \
|
---|
763 | generic/RTDirExists-generic.cpp \
|
---|
764 | generic/RTDirQueryInfo-generic.cpp \
|
---|
765 | generic/RTDirSetTimes-generic.cpp \
|
---|
766 | generic/RTFileExists-generic.cpp \
|
---|
767 | generic/RTFileSetAllocationSize-generic.cpp \
|
---|
768 | generic/RTMpGetCurFrequency-generic.cpp \
|
---|
769 | generic/RTMpGetMaxFrequency-generic.cpp \
|
---|
770 | generic/RTPathAbs-generic.cpp \
|
---|
771 | generic/RTRandAdvCreateSystemFaster-generic.cpp \
|
---|
772 | generic/RTRandAdvCreateSystemTruer-generic.cpp \
|
---|
773 | generic/RTSemEventWait-generic.cpp \
|
---|
774 | generic/RTSemEventMultiWait-2-ex-generic.cpp \
|
---|
775 | generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
|
---|
776 | generic/RTSemMutexRequest-generic.cpp \
|
---|
777 | generic/RTSemMutexRequestDebug-generic.cpp \
|
---|
778 | generic/RTThreadSetAffinityToCpu-generic.cpp \
|
---|
779 | generic/mppresent-generic.cpp \
|
---|
780 | generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
|
---|
781 | generic/uuid-generic.cpp \
|
---|
782 | generic/RTProcDaemonize-generic.cpp \
|
---|
783 | generic/RTProcIsRunningByName-generic.cpp \
|
---|
784 | generic/RTThreadGetNativeState-generic.cpp \
|
---|
785 | nt/RTErrConvertFromNtStatus.cpp \
|
---|
786 | r3/nt/fs-nt.cpp \
|
---|
787 | r3/nt/pathint-nt.cpp \
|
---|
788 | r3/nt/RTProcQueryParent-r3-nt.cpp \
|
---|
789 | r3/win/env-win.cpp \
|
---|
790 | r3/win/RTCrStoreCreateSnapshotById-win.cpp \
|
---|
791 | r3/win/RTHandleGetStandard-win.cpp \
|
---|
792 | r3/win/RTSystemQueryOSInfo-win.cpp \
|
---|
793 | r3/win/RTSystemShutdown-win.cpp \
|
---|
794 | r3/win/RTSystemQueryDmiString-win.cpp \
|
---|
795 | r3/win/RTSystemQueryTotalRam-win.cpp \
|
---|
796 | r3/win/alloc-win.cpp \
|
---|
797 | r3/win/allocex-win.cpp \
|
---|
798 | r3/win/dir-win.cpp \
|
---|
799 | $(if-expr defined(VBOX_WITH_NT_DIRENUM),r3/nt/direnum-r3-nt.cpp,r3/win/direnum-win.cpp) \
|
---|
800 | r3/win/errvars-win.cpp \
|
---|
801 | r3/win/fileio-win.cpp \
|
---|
802 | r3/win/init-win.cpp \
|
---|
803 | r3/win/ldrNative-win.cpp \
|
---|
804 | r3/win/localipc-win.cpp \
|
---|
805 | r3/win/mp-win.cpp \
|
---|
806 | r3/win/path-win.cpp \
|
---|
807 | r3/win/pipe-win.cpp \
|
---|
808 | r3/win/process-win.cpp \
|
---|
809 | r3/win/RTLogWriteDebugger-win.cpp \
|
---|
810 | r3/win/rtProcInitExePath-win.cpp \
|
---|
811 | r3/win/sched-win.cpp \
|
---|
812 | r3/win/semevent-win.cpp \
|
---|
813 | r3/win/semeventmulti-win.cpp \
|
---|
814 | r3/win/semmutex-win.cpp \
|
---|
815 | r3/win/symlink-win.cpp \
|
---|
816 | r3/win/rtFileNativeSetAttributes-win.cpp \
|
---|
817 | r3/win/thread-win.cpp \
|
---|
818 | r3/win/thread2-win.cpp \
|
---|
819 | $(if-expr 1,r3/win/time-win.cpp,r3/nt/time-nt.cpp) \
|
---|
820 | r3/win/time2-win.cpp \
|
---|
821 | r3/win/timer-win.cpp \
|
---|
822 | r3/win/tls-win.cpp \
|
---|
823 | r3/win/utf16locale-win.cpp \
|
---|
824 | r3/win/utf8-win.cpp \
|
---|
825 | r3/win/RTUuidCreate-win.cpp \
|
---|
826 | win/errmsgwin.cpp \
|
---|
827 | win/RTErrConvertFromWin32.cpp \
|
---|
828 | common/string/mempcpy.asm
|
---|
829 |
|
---|
830 | RuntimeR3_SOURCES.win.amd64 := \
|
---|
831 | $(RuntimeWin64ASM_SOURCES) \
|
---|
832 | common/string/memrchr.asm
|
---|
833 | RuntimeR3_SOURCES.win.x86 := \
|
---|
834 | $(RuntimeWin32ASM_SOURCES) \
|
---|
835 | common/string/memrchr.asm
|
---|
836 |
|
---|
837 | RuntimeR3_SOURCES.linux = \
|
---|
838 | generic/cdrom-generic.cpp \
|
---|
839 | generic/RTCrStoreCreateSnapshotById-generic.cpp \
|
---|
840 | generic/RTDirQueryInfo-generic.cpp \
|
---|
841 | generic/RTDirSetTimes-generic.cpp \
|
---|
842 | generic/RTFileMove-generic.cpp \
|
---|
843 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
844 | generic/RTPathAbs-generic.cpp \
|
---|
845 | generic/RTPathGetCurrentOnDrive-generic.cpp \
|
---|
846 | generic/RTProcDaemonize-generic.cpp \
|
---|
847 | generic/RTSemEventMultiWait-2-ex-generic.cpp \
|
---|
848 | generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
|
---|
849 | generic/RTTimeLocalNow-generic.cpp \
|
---|
850 | generic/RTTimerCreate-generic.cpp \
|
---|
851 | generic/RTThreadSetAffinityToCpu-generic.cpp \
|
---|
852 | generic/RTUuidCreate-generic.cpp \
|
---|
853 | generic/mppresent-generic.cpp \
|
---|
854 | generic/utf16locale-generic.cpp \
|
---|
855 | generic/uuid-generic.cpp \
|
---|
856 | r3/posix/allocex-r3-posix.cpp \
|
---|
857 | r3/linux/RTThreadGetNativeState-linux.cpp \
|
---|
858 | r3/linux/mp-linux.cpp \
|
---|
859 | r3/linux/rtProcInitExePath-linux.cpp \
|
---|
860 | r3/linux/sched-linux.cpp \
|
---|
861 | r3/linux/sysfs.cpp \
|
---|
862 | r3/linux/time-linux.cpp \
|
---|
863 | r3/linux/thread-affinity-linux.cpp \
|
---|
864 | r3/linux/RTFileSetAllocationSize-linux.cpp \
|
---|
865 | r3/linux/RTProcIsRunningByName-linux.cpp \
|
---|
866 | r3/linux/RTSystemQueryDmiString-linux.cpp \
|
---|
867 | r3/linux/RTSystemShutdown-linux.cpp \
|
---|
868 | r3/posix/RTFileQueryFsSizes-posix.cpp \
|
---|
869 | r3/posix/RTHandleGetStandard-posix.cpp \
|
---|
870 | r3/posix/RTMemProtect-posix.cpp \
|
---|
871 | r3/posix/RTPathUserHome-posix.cpp \
|
---|
872 | r3/posix/RTSystemQueryOSInfo-posix.cpp \
|
---|
873 | r3/linux/systemmem-linux.cpp \
|
---|
874 | r3/posix/RTTimeNow-posix.cpp \
|
---|
875 | r3/posix/RTTimeSet-posix.cpp \
|
---|
876 | r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
|
---|
877 | r3/posix/dir-posix.cpp \
|
---|
878 | r3/posix/env-posix.cpp \
|
---|
879 | r3/posix/errvars-posix.cpp \
|
---|
880 | r3/posix/fileio-posix.cpp \
|
---|
881 | r3/posix/fileio2-posix.cpp \
|
---|
882 | r3/posix/filelock-posix.cpp \
|
---|
883 | r3/posix/fs-posix.cpp \
|
---|
884 | r3/posix/fs2-posix.cpp \
|
---|
885 | r3/posix/fs3-posix.cpp \
|
---|
886 | r3/posix/ldrNative-posix.cpp \
|
---|
887 | r3/posix/localipc-posix.cpp \
|
---|
888 | r3/posix/path-posix.cpp \
|
---|
889 | r3/posix/path2-posix.cpp \
|
---|
890 | r3/posix/pathhost-posix.cpp \
|
---|
891 | r3/posix/RTPathUserDocuments-posix.cpp \
|
---|
892 | r3/posix/pipe-posix.cpp \
|
---|
893 | r3/posix/process-posix.cpp \
|
---|
894 | r3/posix/process-creation-posix.cpp \
|
---|
895 | r3/posix/rand-posix.cpp \
|
---|
896 | r3/posix/semrw-posix.cpp \
|
---|
897 | r3/posix/symlink-posix.cpp \
|
---|
898 | r3/posix/thread-posix.cpp \
|
---|
899 | r3/posix/thread2-posix.cpp \
|
---|
900 | r3/posix/timelocal-posix.cpp \
|
---|
901 | r3/posix/timer-posix.cpp \
|
---|
902 | r3/posix/tls-posix.cpp \
|
---|
903 | r3/posix/utf8-posix.cpp
|
---|
904 | ifdef IPRT_WITH_FUTEX_BASED_SEMS
|
---|
905 | RuntimeR3_SOURCES.linux += \
|
---|
906 | r3/linux/semevent-linux.cpp \
|
---|
907 | r3/linux/semeventmulti-linux.cpp \
|
---|
908 | r3/linux/semmutex-linux.cpp
|
---|
909 | else
|
---|
910 | RuntimeR3_SOURCES.linux.x86 += \
|
---|
911 | r3/posix/semevent-posix.cpp \
|
---|
912 | r3/posix/semeventmulti-posix.cpp \
|
---|
913 | r3/posix/semmutex-posix.cpp
|
---|
914 | RuntimeR3_SOURCES.linux.amd64 += \
|
---|
915 | r3/linux/semevent-linux.cpp \
|
---|
916 | r3/linux/semeventmulti-linux.cpp
|
---|
917 | ifdef RT_NEW_LINUX_MUTEX_CODE
|
---|
918 | RuntimeR3_SOURCES.linux.amd64 += \
|
---|
919 | r3/linux/semmutex-linux.cpp
|
---|
920 | else
|
---|
921 | RuntimeR3_SOURCES.linux.amd64 += \
|
---|
922 | r3/posix/semmutex-posix.cpp
|
---|
923 | endif
|
---|
924 | endif
|
---|
925 |
|
---|
926 | RuntimeR3_SOURCES.os2 = \
|
---|
927 | common/string/memrchr.asm \
|
---|
928 | generic/cdrom-generic.cpp \
|
---|
929 | generic/RTCrStoreCreateSnapshotById-generic.cpp \
|
---|
930 | generic/RTDirQueryInfo-generic.cpp \
|
---|
931 | generic/RTDirSetTimes-generic.cpp \
|
---|
932 | generic/RTFileMove-generic.cpp \
|
---|
933 | generic/RTFileSetAllocationSize-generic.cpp \
|
---|
934 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
935 | generic/RTPathAbs-generic.cpp \
|
---|
936 | generic/RTPathGetCurrentOnDrive-generic.cpp \
|
---|
937 | generic/RTProcDaemonize-generic.cpp \
|
---|
938 | generic/RTRandAdvCreateSystemFaster-generic.cpp \
|
---|
939 | generic/RTRandAdvCreateSystemTruer-generic.cpp \
|
---|
940 | generic/RTSystemQueryDmiString-generic.cpp \
|
---|
941 | generic/RTSystemShutdown-generic.cpp \
|
---|
942 | generic/RTTimeLocalNow-generic.cpp \
|
---|
943 | generic/RTTimerCreate-generic.cpp \
|
---|
944 | generic/RTThreadSetAffinityToCpu-generic.cpp \
|
---|
945 | generic/RTUuidCreate-generic.cpp \
|
---|
946 | generic/mppresent-generic.cpp \
|
---|
947 | generic/RTSemEventWait-generic.cpp \
|
---|
948 | generic/RTSemEventMultiWait-generic.cpp \
|
---|
949 | generic/RTSemMutexRequest-generic.cpp \
|
---|
950 | generic/RTSemMutexRequestDebug-generic.cpp \
|
---|
951 | generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
|
---|
952 | generic/timer-generic.cpp \
|
---|
953 | generic/utf16locale-generic.cpp \
|
---|
954 | generic/uuid-generic.cpp \
|
---|
955 | generic/RTMpGetCoreCount-generic.cpp \
|
---|
956 | generic/RTMpGetOnlineCoreCount-generic.cpp \
|
---|
957 | generic/RTMpGetCurFrequency-generic.cpp \
|
---|
958 | generic/RTMpGetMaxFrequency-generic.cpp \
|
---|
959 | generic/RTProcIsRunningByName-generic.cpp \
|
---|
960 | generic/RTThreadGetNativeState-generic.cpp \
|
---|
961 | os2/RTErrConvertFromOS2.cpp \
|
---|
962 | r3/generic/allocex-r3-generic.cpp \
|
---|
963 | r3/os2/filelock-os2.cpp \
|
---|
964 | r3/os2/mp-os2.cpp \
|
---|
965 | r3/os2/pipe-os2.cpp \
|
---|
966 | r3/os2/rtProcInitExePath-os2.cpp \
|
---|
967 | r3/os2/sched-os2.cpp \
|
---|
968 | r3/os2/sems-os2.cpp \
|
---|
969 | r3/os2/systemmem-os2.cpp \
|
---|
970 | r3/os2/thread-os2.cpp \
|
---|
971 | r3/os2/time-os2.cpp \
|
---|
972 | r3/posix/RTFileQueryFsSizes-posix.cpp \
|
---|
973 | r3/posix/RTHandleGetStandard-posix.cpp \
|
---|
974 | r3/posix/RTMemProtect-posix.cpp \
|
---|
975 | r3/posix/RTPathUserHome-posix.cpp \
|
---|
976 | r3/posix/RTSystemQueryOSInfo-posix.cpp \
|
---|
977 | r3/posix/RTTimeNow-posix.cpp \
|
---|
978 | r3/posix/RTTimeSet-posix.cpp \
|
---|
979 | r3/posix/dir-posix.cpp \
|
---|
980 | r3/posix/env-posix.cpp \
|
---|
981 | r3/posix/errvars-posix.cpp \
|
---|
982 | r3/posix/fileio-posix.cpp \
|
---|
983 | r3/posix/fileio2-posix.cpp \
|
---|
984 | r3/posix/fs-posix.cpp \
|
---|
985 | r3/posix/fs2-posix.cpp \
|
---|
986 | r3/posix/fs3-posix.cpp \
|
---|
987 | r3/posix/ldrNative-posix.cpp \
|
---|
988 | r3/posix/localipc-posix.cpp \
|
---|
989 | r3/posix/path-posix.cpp \
|
---|
990 | r3/posix/path2-posix.cpp \
|
---|
991 | r3/posix/pathhost-posix.cpp \
|
---|
992 | r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
|
---|
993 | r3/posix/RTPathUserDocuments-posix.cpp \
|
---|
994 | r3/posix/process-posix.cpp \
|
---|
995 | r3/posix/process-creation-posix.cpp \
|
---|
996 | r3/posix/symlink-posix.cpp \
|
---|
997 | r3/posix/timelocal-posix.cpp \
|
---|
998 | r3/posix/utf8-posix.cpp
|
---|
999 |
|
---|
1000 | RuntimeR3_SOURCES.darwin = \
|
---|
1001 | darwin/RTErrConvertFromDarwin.cpp \
|
---|
1002 | darwin/RTErrConvertFromDarwinCOM.cpp \
|
---|
1003 | darwin/RTErrConvertFromDarwinIO.cpp \
|
---|
1004 | darwin/RTErrConvertFromDarwinKern.cpp \
|
---|
1005 | generic/cdrom-generic.cpp \
|
---|
1006 | generic/RTDirQueryInfo-generic.cpp \
|
---|
1007 | generic/RTDirSetTimes-generic.cpp \
|
---|
1008 | generic/RTFileMove-generic.cpp \
|
---|
1009 | generic/RTFileSetAllocationSize-generic.cpp \
|
---|
1010 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
1011 | generic/RTPathAbs-generic.cpp \
|
---|
1012 | generic/RTPathGetCurrentOnDrive-generic.cpp \
|
---|
1013 | generic/RTProcDaemonize-generic.cpp \
|
---|
1014 | generic/RTThreadGetAffinity-stub-generic.cpp \
|
---|
1015 | generic/RTThreadSetAffinity-stub-generic.cpp \
|
---|
1016 | generic/RTThreadSetAffinityToCpu-generic.cpp \
|
---|
1017 | generic/RTTimeLocalNow-generic.cpp \
|
---|
1018 | generic/RTTimerCreate-generic.cpp \
|
---|
1019 | generic/RTUuidCreate-generic.cpp \
|
---|
1020 | generic/mppresent-generic.cpp \
|
---|
1021 | generic/RTSemEventMultiWait-2-ex-generic.cpp \
|
---|
1022 | generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
|
---|
1023 | generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
|
---|
1024 | generic/RTSystemShutdown-generic.cpp \
|
---|
1025 | generic/timer-generic.cpp \
|
---|
1026 | generic/utf16locale-generic.cpp \
|
---|
1027 | generic/uuid-generic.cpp\
|
---|
1028 | generic/RTProcIsRunningByName-generic.cpp \
|
---|
1029 | generic/RTThreadGetNativeState-generic.cpp \
|
---|
1030 | r3/darwin/RTCrStoreCreateSnapshotById-darwin.cpp \
|
---|
1031 | r3/darwin/filelock-darwin.cpp \
|
---|
1032 | r3/darwin/mp-darwin.cpp \
|
---|
1033 | r3/darwin/pathhost-darwin.cpp \
|
---|
1034 | r3/darwin/rtProcInitExePath-darwin.cpp \
|
---|
1035 | r3/darwin/RTSystemQueryDmiString-darwin.cpp \
|
---|
1036 | r3/darwin/sched-darwin.cpp \
|
---|
1037 | r3/darwin/systemmem-darwin.cpp \
|
---|
1038 | r3/darwin/time-darwin.cpp \
|
---|
1039 | r3/darwin/RTPathUserDocuments-darwin.cpp \
|
---|
1040 | r3/generic/allocex-r3-generic.cpp \
|
---|
1041 | r3/posix/RTFileQueryFsSizes-posix.cpp \
|
---|
1042 | r3/posix/RTHandleGetStandard-posix.cpp \
|
---|
1043 | r3/posix/RTMemProtect-posix.cpp \
|
---|
1044 | r3/posix/RTPathUserHome-posix.cpp \
|
---|
1045 | r3/posix/RTSystemQueryOSInfo-posix.cpp \
|
---|
1046 | r3/posix/RTTimeSet-posix.cpp \
|
---|
1047 | r3/posix/dir-posix.cpp \
|
---|
1048 | r3/posix/env-posix.cpp \
|
---|
1049 | r3/posix/errvars-posix.cpp \
|
---|
1050 | r3/posix/fileio-posix.cpp \
|
---|
1051 | r3/posix/fileio2-posix.cpp \
|
---|
1052 | r3/posix/fs-posix.cpp \
|
---|
1053 | r3/posix/fs2-posix.cpp \
|
---|
1054 | r3/posix/fs3-posix.cpp \
|
---|
1055 | r3/posix/ldrNative-posix.cpp \
|
---|
1056 | r3/posix/localipc-posix.cpp \
|
---|
1057 | r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
|
---|
1058 | r3/posix/path-posix.cpp \
|
---|
1059 | r3/posix/path2-posix.cpp \
|
---|
1060 | r3/posix/pipe-posix.cpp \
|
---|
1061 | r3/posix/process-posix.cpp \
|
---|
1062 | r3/posix/process-creation-posix.cpp \
|
---|
1063 | r3/posix/rand-posix.cpp \
|
---|
1064 | r3/posix/semevent-posix.cpp \
|
---|
1065 | r3/posix/semeventmulti-posix.cpp \
|
---|
1066 | r3/posix/semmutex-posix.cpp \
|
---|
1067 | r3/posix/symlink-posix.cpp \
|
---|
1068 | r3/posix/thread-posix.cpp \
|
---|
1069 | r3/posix/thread2-posix.cpp \
|
---|
1070 | r3/posix/timelocal-posix.cpp \
|
---|
1071 | r3/posix/tls-posix.cpp \
|
---|
1072 | r3/posix/utf8-posix.cpp
|
---|
1073 | RuntimeR3_SOURCES.darwin.x86 += common/string/memrchr.asm
|
---|
1074 | RuntimeR3_SOURCES.darwin.amd64 += common/string/memrchr.asm
|
---|
1075 |
|
---|
1076 | ## @todo Make BSD sched, implement RTMP*.
|
---|
1077 | RuntimeR3_SOURCES.freebsd = \
|
---|
1078 | generic/cdrom-generic.cpp \
|
---|
1079 | generic/RTCrStoreCreateSnapshotById-generic.cpp \
|
---|
1080 | generic/RTDirQueryInfo-generic.cpp \
|
---|
1081 | generic/RTDirSetTimes-generic.cpp \
|
---|
1082 | generic/RTFileMove-generic.cpp \
|
---|
1083 | generic/RTFileSetAllocationSize-generic.cpp \
|
---|
1084 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
1085 | generic/RTPathAbs-generic.cpp \
|
---|
1086 | generic/RTPathGetCurrentOnDrive-generic.cpp \
|
---|
1087 | generic/RTSemEventMultiWait-2-ex-generic.cpp \
|
---|
1088 | generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
|
---|
1089 | generic/RTSystemQueryDmiString-generic.cpp \
|
---|
1090 | generic/RTSystemShutdown-generic.cpp \
|
---|
1091 | generic/RTThreadGetAffinity-stub-generic.cpp \
|
---|
1092 | generic/RTThreadSetAffinity-stub-generic.cpp \
|
---|
1093 | generic/RTThreadSetAffinityToCpu-generic.cpp \
|
---|
1094 | generic/RTTimeLocalNow-generic.cpp \
|
---|
1095 | generic/RTTimerCreate-generic.cpp \
|
---|
1096 | generic/RTUuidCreate-generic.cpp \
|
---|
1097 | generic/mppresent-generic.cpp \
|
---|
1098 | generic/sched-generic.cpp \
|
---|
1099 | generic/utf16locale-generic.cpp \
|
---|
1100 | generic/uuid-generic.cpp \
|
---|
1101 | generic/RTMpCpuId-generic.cpp \
|
---|
1102 | generic/RTMpGetCoreCount-generic.cpp \
|
---|
1103 | generic/RTMpGetOnlineCoreCount-generic.cpp \
|
---|
1104 | generic/RTProcDaemonize-generic.cpp \
|
---|
1105 | generic/RTProcIsRunningByName-generic.cpp \
|
---|
1106 | generic/RTThreadGetNativeState-generic.cpp \
|
---|
1107 | r3/freebsd/mp-freebsd.cpp \
|
---|
1108 | r3/freebsd/systemmem-freebsd.cpp \
|
---|
1109 | r3/freebsd/rtProcInitExePath-freebsd.cpp \
|
---|
1110 | r3/generic/allocex-r3-generic.cpp \
|
---|
1111 | r3/posix/RTFileQueryFsSizes-posix.cpp \
|
---|
1112 | r3/posix/RTHandleGetStandard-posix.cpp \
|
---|
1113 | r3/posix/RTMemProtect-posix.cpp \
|
---|
1114 | r3/posix/RTPathUserHome-posix.cpp \
|
---|
1115 | r3/posix/RTSystemQueryOSInfo-posix.cpp \
|
---|
1116 | r3/posix/RTTimeNow-posix.cpp \
|
---|
1117 | r3/posix/RTTimeSet-posix.cpp \
|
---|
1118 | r3/posix/dir-posix.cpp \
|
---|
1119 | r3/posix/env-posix.cpp \
|
---|
1120 | r3/posix/errvars-posix.cpp \
|
---|
1121 | r3/posix/fileio-posix.cpp \
|
---|
1122 | r3/posix/fileio2-posix.cpp \
|
---|
1123 | r3/posix/filelock-posix.cpp \
|
---|
1124 | r3/posix/fs-posix.cpp \
|
---|
1125 | r3/posix/fs2-posix.cpp \
|
---|
1126 | r3/posix/fs3-posix.cpp \
|
---|
1127 | r3/posix/ldrNative-posix.cpp \
|
---|
1128 | r3/posix/localipc-posix.cpp \
|
---|
1129 | r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
|
---|
1130 | r3/posix/path-posix.cpp \
|
---|
1131 | r3/posix/path2-posix.cpp \
|
---|
1132 | r3/posix/pathhost-posix.cpp \
|
---|
1133 | r3/posix/RTPathUserDocuments-posix.cpp \
|
---|
1134 | r3/posix/pipe-posix.cpp \
|
---|
1135 | r3/posix/process-posix.cpp \
|
---|
1136 | r3/posix/process-creation-posix.cpp \
|
---|
1137 | r3/posix/rand-posix.cpp \
|
---|
1138 | r3/posix/semevent-posix.cpp \
|
---|
1139 | r3/posix/semeventmulti-posix.cpp \
|
---|
1140 | r3/posix/semmutex-posix.cpp \
|
---|
1141 | r3/posix/semrw-posix.cpp \
|
---|
1142 | r3/posix/symlink-posix.cpp \
|
---|
1143 | r3/posix/thread-posix.cpp \
|
---|
1144 | r3/posix/thread2-posix.cpp \
|
---|
1145 | r3/posix/time-posix.cpp \
|
---|
1146 | r3/posix/timelocal-posix.cpp \
|
---|
1147 | r3/posix/timer-posix.cpp \
|
---|
1148 | r3/posix/tls-posix.cpp \
|
---|
1149 | r3/posix/utf8-posix.cpp
|
---|
1150 | RuntimeR3_SOURCES.freebsd.x86 += common/string/memrchr.asm
|
---|
1151 | RuntimeR3_SOURCES.freebsd.amd64 += common/string/memrchr.asm
|
---|
1152 |
|
---|
1153 | RuntimeR3_SOURCES.solaris = \
|
---|
1154 | generic/cdrom-generic.cpp \
|
---|
1155 | generic/RTCrStoreCreateSnapshotById-generic.cpp \
|
---|
1156 | generic/RTDirQueryInfo-generic.cpp \
|
---|
1157 | generic/RTDirSetTimes-generic.cpp \
|
---|
1158 | generic/RTFileMove-generic.cpp \
|
---|
1159 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
1160 | generic/RTPathAbs-generic.cpp \
|
---|
1161 | generic/RTPathGetCurrentOnDrive-generic.cpp \
|
---|
1162 | generic/RTProcDaemonize-generic.cpp \
|
---|
1163 | generic/RTProcIsRunningByName-generic.cpp \
|
---|
1164 | generic/RTSemEventMultiWait-2-ex-generic.cpp \
|
---|
1165 | generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
|
---|
1166 | generic/RTThreadSetAffinityToCpu-generic.cpp \
|
---|
1167 | generic/RTTimeLocalNow-generic.cpp \
|
---|
1168 | generic/RTTimerCreate-generic.cpp \
|
---|
1169 | generic/RTUuidCreate-generic.cpp \
|
---|
1170 | generic/sched-generic.cpp \
|
---|
1171 | generic/utf16locale-generic.cpp \
|
---|
1172 | generic/uuid-generic.cpp \
|
---|
1173 | generic/RTThreadGetNativeState-generic.cpp \
|
---|
1174 | r3/generic/allocex-r3-generic.cpp \
|
---|
1175 | r3/posix/RTFileQueryFsSizes-posix.cpp \
|
---|
1176 | r3/posix/RTFileSetAllocationSize-posix.cpp \
|
---|
1177 | r3/posix/RTHandleGetStandard-posix.cpp \
|
---|
1178 | r3/posix/RTMemProtect-posix.cpp \
|
---|
1179 | r3/posix/RTPathUserHome-posix.cpp \
|
---|
1180 | r3/posix/RTSystemQueryOSInfo-posix.cpp \
|
---|
1181 | r3/posix/RTTimeNow-posix.cpp \
|
---|
1182 | r3/posix/RTTimeSet-posix.cpp \
|
---|
1183 | r3/posix/dir-posix.cpp \
|
---|
1184 | r3/posix/env-posix.cpp \
|
---|
1185 | r3/posix/errvars-posix.cpp \
|
---|
1186 | r3/posix/fileio-posix.cpp \
|
---|
1187 | r3/posix/fileio2-posix.cpp \
|
---|
1188 | r3/posix/filelock-posix.cpp \
|
---|
1189 | r3/posix/fs-posix.cpp \
|
---|
1190 | r3/posix/fs2-posix.cpp \
|
---|
1191 | r3/posix/fs3-posix.cpp \
|
---|
1192 | r3/posix/ldrNative-posix.cpp \
|
---|
1193 | r3/posix/localipc-posix.cpp \
|
---|
1194 | r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
|
---|
1195 | r3/posix/path-posix.cpp \
|
---|
1196 | r3/posix/path2-posix.cpp \
|
---|
1197 | r3/posix/pathhost-posix.cpp \
|
---|
1198 | r3/posix/RTPathUserDocuments-posix.cpp \
|
---|
1199 | r3/posix/pipe-posix.cpp \
|
---|
1200 | r3/posix/process-posix.cpp \
|
---|
1201 | r3/posix/process-creation-posix.cpp \
|
---|
1202 | r3/posix/rand-posix.cpp \
|
---|
1203 | r3/posix/semevent-posix.cpp \
|
---|
1204 | r3/posix/semeventmulti-posix.cpp \
|
---|
1205 | r3/posix/semmutex-posix.cpp \
|
---|
1206 | r3/posix/semrw-posix.cpp \
|
---|
1207 | r3/posix/symlink-posix.cpp \
|
---|
1208 | r3/posix/thread-posix.cpp \
|
---|
1209 | r3/posix/thread2-posix.cpp \
|
---|
1210 | r3/posix/time-posix.cpp \
|
---|
1211 | r3/posix/timelocal-posix.cpp \
|
---|
1212 | r3/posix/timer-posix.cpp \
|
---|
1213 | r3/posix/tls-posix.cpp \
|
---|
1214 | r3/posix/utf8-posix.cpp \
|
---|
1215 | r3/solaris/systemmem-solaris.cpp \
|
---|
1216 | r3/solaris/mp-solaris.cpp \
|
---|
1217 | r3/solaris/rtProcInitExePath-solaris.cpp \
|
---|
1218 | r3/solaris/RTSystemShutdown-solaris.cpp \
|
---|
1219 | r3/solaris/thread-affinity-solaris.cpp
|
---|
1220 | RuntimeR3_SOURCES.solaris.amd64 = \
|
---|
1221 | common/string/memrchr.asm \
|
---|
1222 | r3/solaris/coredumper-solaris.cpp \
|
---|
1223 | r3/solaris/RTSystemQueryDmiString-solaris.cpp
|
---|
1224 | RuntimeR3_SOURCES.solaris.x86 = \
|
---|
1225 | common/string/memrchr.asm \
|
---|
1226 | r3/solaris/coredumper-solaris.cpp \
|
---|
1227 | r3/solaris/RTSystemQueryDmiString-solaris.cpp
|
---|
1228 | RuntimeR3_SOURCES.solaris.sparc32 = \
|
---|
1229 | generic/RTSystemQueryDmiString-generic.cpp
|
---|
1230 | RuntimeR3_SOURCES.solaris.sparc64 = \
|
---|
1231 | generic/RTSystemQueryDmiString-generic.cpp
|
---|
1232 |
|
---|
1233 | RuntimeR3_SOURCES.haiku = \
|
---|
1234 | generic/RTCrStoreCreateSnapshotById-generic.cpp \
|
---|
1235 | generic/RTDirQueryInfo-generic.cpp \
|
---|
1236 | generic/RTDirSetTimes-generic.cpp \
|
---|
1237 | generic/RTFileMove-generic.cpp \
|
---|
1238 | generic/RTFileSetAllocationSize-generic.cpp \
|
---|
1239 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
1240 | generic/RTPathAbs-generic.cpp \
|
---|
1241 | generic/RTPathGetCurrentOnDrive-generic.cpp \
|
---|
1242 | generic/RTProcDaemonize-generic.cpp \
|
---|
1243 | generic/RTTimeLocalNow-generic.cpp \
|
---|
1244 | generic/RTTimerCreate-generic.cpp \
|
---|
1245 | generic/RTUuidCreate-generic.cpp \
|
---|
1246 | generic/mppresent-generic.cpp \
|
---|
1247 | generic/RTSemEventMultiWait-2-ex-generic.cpp \
|
---|
1248 | generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
|
---|
1249 | generic/sched-generic.cpp \
|
---|
1250 | generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
|
---|
1251 | generic/timer-generic.cpp \
|
---|
1252 | generic/utf16locale-generic.cpp \
|
---|
1253 | generic/uuid-generic.cpp\
|
---|
1254 | generic/RTProcIsRunningByName-generic.cpp \
|
---|
1255 | generic/RTThreadGetNativeState-generic.cpp \
|
---|
1256 | generic/RTMpGetCoreCount-generic.cpp \
|
---|
1257 | generic/RTMpGetOnlineCoreCount-generic.cpp \
|
---|
1258 | r3/haiku/rtProcInitExePath-haiku.cpp \
|
---|
1259 | r3/haiku/time-haiku.cpp \
|
---|
1260 | r3/generic/allocex-r3-generic.cpp \
|
---|
1261 | r3/posix/RTFileQueryFsSizes-posix.cpp \
|
---|
1262 | r3/posix/RTHandleGetStandard-posix.cpp \
|
---|
1263 | r3/posix/RTMemProtect-posix.cpp \
|
---|
1264 | r3/posix/RTPathUserHome-posix.cpp \
|
---|
1265 | r3/posix/RTSystemQueryOSInfo-posix.cpp \
|
---|
1266 | r3/posix/RTSystemQueryTotalRam-posix.cpp \
|
---|
1267 | r3/posix/RTTimeNow-posix.cpp \
|
---|
1268 | r3/posix/dir-posix.cpp \
|
---|
1269 | r3/posix/env-posix.cpp \
|
---|
1270 | r3/posix/errvars-posix.cpp \
|
---|
1271 | r3/posix/fileio-posix.cpp \
|
---|
1272 | r3/posix/fileio2-posix.cpp \
|
---|
1273 | r3/posix/filelock-posix.cpp \
|
---|
1274 | r3/posix/fs-posix.cpp \
|
---|
1275 | r3/posix/fs2-posix.cpp \
|
---|
1276 | r3/posix/fs3-posix.cpp \
|
---|
1277 | r3/posix/ldrNative-posix.cpp \
|
---|
1278 | r3/posix/localipc-posix.cpp \
|
---|
1279 | r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
|
---|
1280 | r3/posix/path-posix.cpp \
|
---|
1281 | r3/posix/path2-posix.cpp \
|
---|
1282 | r3/posix/pathhost-posix.cpp \
|
---|
1283 | r3/posix/pipe-posix.cpp \
|
---|
1284 | r3/posix/process-posix.cpp \
|
---|
1285 | r3/posix/process-creation-posix.cpp \
|
---|
1286 | r3/posix/rand-posix.cpp \
|
---|
1287 | r3/posix/semevent-posix.cpp \
|
---|
1288 | r3/posix/semeventmulti-posix.cpp \
|
---|
1289 | r3/posix/semmutex-posix.cpp \
|
---|
1290 | r3/posix/symlink-posix.cpp \
|
---|
1291 | r3/posix/thread-posix.cpp \
|
---|
1292 | r3/posix/thread2-posix.cpp \
|
---|
1293 | r3/posix/timelocal-posix.cpp \
|
---|
1294 | r3/posix/tls-posix.cpp \
|
---|
1295 | r3/posix/utf8-posix.cpp
|
---|
1296 | RuntimeR3_SOURCES.haiku.x86 += common/string/memrchr.asm
|
---|
1297 | RuntimeR3_SOURCES.haiku.amd64 += common/string/memrchr.asm
|
---|
1298 |
|
---|
1299 | ## PORTME: Porters add their selection of platform specific files for Ring-3 here.
|
---|
1300 |
|
---|
1301 |
|
---|
1302 | #
|
---|
1303 | # RuntimeBldProg - Static Runtime for build programs.
|
---|
1304 | #
|
---|
1305 | # Note! This is a bit of hacky since kBuild doesn't support building libraries
|
---|
1306 | # for build programs.
|
---|
1307 | #
|
---|
1308 | RuntimeBldProg_TEMPLATE := VBoxAdvBldProg
|
---|
1309 | RuntimeBldProg_EXTENDS := RuntimeR3
|
---|
1310 | RuntimeBldProg_BLD_TRG := $(KBUILD_HOST)
|
---|
1311 | RuntimeBldProg_BLD_TRG_ARCH := $(KBUILD_HOST_ARCH)
|
---|
1312 | RuntimeBldProg_BLD_TRG_CPU := $(KBUILD_HOST_CPU)
|
---|
1313 | RuntimeBldProg_DEFS := $(filter-out IN_SUP_R3 IN_SUP, $(RuntimeR3_DEFS)) IPRT_WITHOUT_LDR_VERIFY RT_NO_GIP
|
---|
1314 | RuntimeBldProg_SOURCES = $(filter-out \
|
---|
1315 | r3/xml.cpp \
|
---|
1316 | common/zip/xarvfs.cpp \
|
---|
1317 | , $(RuntimeR3_SOURCES))
|
---|
1318 | if "$(KBUILD_TARGET)" == "win" && "$(KBUILD_HOST)" != "win"
|
---|
1319 | RuntimeBldProg_SOURCES += \
|
---|
1320 | common/err/errmsgxpcom.cpp
|
---|
1321 | endif
|
---|
1322 |
|
---|
1323 |
|
---|
1324 |
|
---|
1325 | #
|
---|
1326 | # RuntimeGuestR3 - Guest Additions Runtime (static/exe).
|
---|
1327 | # (The KBUILD_HOST inheritance here is for cross building the linux
|
---|
1328 | # additions, while .x86 is for cross building x86 while targeting amd64.)
|
---|
1329 | #
|
---|
1330 | RuntimeGuestR3_TEMPLATE := VBoxGuestR3Lib
|
---|
1331 | ## @todo change this to EXTEND the RuntimeR3 target.
|
---|
1332 | RuntimeGuestR3_SDKS.win := $(RuntimeR3_SDKS.win)
|
---|
1333 | RuntimeGuestR3_DEFS := $(filter-out RTCRITSECT_STRICT RT_NO_GIP IPRT_WITH_OPENSSL, $(RuntimeR3_DEFS))
|
---|
1334 | RuntimeGuestR3_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
|
---|
1335 | RuntimeGuestR3_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST))
|
---|
1336 | RuntimeGuestR3_INCS := $(RuntimeR3_INCS)
|
---|
1337 | RuntimeGuestR3_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
|
---|
1338 | RuntimeGuestR3_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST))
|
---|
1339 | RuntimeGuestR3_SOURCES := $(filter-out \
|
---|
1340 | common/time/timesupref.cpp \
|
---|
1341 | common/time/timesupA.asm \
|
---|
1342 | common/time/timesup.cpp \
|
---|
1343 | generic/RTLogWriteUser-generic.cpp \
|
---|
1344 | r3/xml.cpp \
|
---|
1345 | common/zip/xarvfs.cpp \
|
---|
1346 | , $(RuntimeR3_SOURCES))
|
---|
1347 | RuntimeGuestR3_SOURCES += \
|
---|
1348 | common/time/timesysalias.cpp \
|
---|
1349 | VBox/logbackdoor.cpp
|
---|
1350 | RuntimeGuestR3_SOURCES.$(KBUILD_TARGET) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
|
---|
1351 | RuntimeGuestR3_SOURCES.$(KBUILD_HOST) := $(RuntimeR3_SOURCES.$(KBUILD_HOST))
|
---|
1352 | RuntimeGuestR3_SOURCES.$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
|
---|
1353 | RuntimeGuestR3_SOURCES.x86 := $(RuntimeR3_SOURCES.x86)
|
---|
1354 | RuntimeGuestR3_SOURCES.amd64 := $(RuntimeR3_SOURCES.amd64)
|
---|
1355 | RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
|
---|
1356 | RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).x86 := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).x86)
|
---|
1357 | RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).amd64:= $(RuntimeR3_SOURCES.$(KBUILD_TARGET).amd64)
|
---|
1358 | RuntimeGuestR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH))
|
---|
1359 | RuntimeGuestR3_SOURCES.win.x86 += \
|
---|
1360 | r3/win/vcc100-kernel32-fakes.cpp \
|
---|
1361 | r3/win/vcc100-kernel32-fakesA.asm \
|
---|
1362 | r3/win/vcc100-ntdll-fakes.cpp \
|
---|
1363 | r3/win/vcc100-ntdll-fakesA.asm \
|
---|
1364 | r3/win/vcc100-ws2_32-fakes.cpp \
|
---|
1365 | r3/win/vcc100-ws2_32-fakesA.asm
|
---|
1366 |
|
---|
1367 | #
|
---|
1368 | # RuntimeGuestR3-x86 - Same as RuntimeGuestR3, except that it's targeting x86.
|
---|
1369 | #
|
---|
1370 | RuntimeGuestR3-x86_EXTENDS := RuntimeGuestR3
|
---|
1371 | RuntimeGuestR3-x86_BLD_TRG_ARCH := x86
|
---|
1372 |
|
---|
1373 |
|
---|
1374 | #
|
---|
1375 | # RuntimeGuestR3Shared - Guest Additions Runtime (static/dll).
|
---|
1376 | #
|
---|
1377 | RuntimeGuestR3Shared_TEMPLATE := VBoxGuestR3Dll
|
---|
1378 | RuntimeGuestR3Shared_EXTENDS := RuntimeGuestR3
|
---|
1379 | RuntimeGuestR3Shared_INST = $(INST_ADDITIONS_LIB)
|
---|
1380 |
|
---|
1381 |
|
---|
1382 | #
|
---|
1383 | # RuntimeGuestR3Shared-x86 - Same as RuntimeGuestR3Shared, except that it's targeting x86.
|
---|
1384 | #
|
---|
1385 | RuntimeGuestR3Shared-x86_EXTENDS := RuntimeGuestR3Shared
|
---|
1386 | RuntimeGuestR3Shared-x86_BLD_TRG_ARCH := x86
|
---|
1387 |
|
---|
1388 |
|
---|
1389 | #
|
---|
1390 | # VBoxRT - Shared Object / DLL version.
|
---|
1391 | #
|
---|
1392 | VBoxRT_TEMPLATE = VBoxR3DllNoPic
|
---|
1393 | VBoxRT_SDKS = VBOX_LIBXML2
|
---|
1394 | ifdef VBOX_WITH_LIBCURL
|
---|
1395 | VBoxRT_SDKS += VBOX_LIBCURL
|
---|
1396 | endif
|
---|
1397 | VBoxRT_SDKS += VBOX_OPENSSL
|
---|
1398 | VBoxRT_SDKS.win = $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
|
---|
1399 | if1of ($(KBUILD_TARGET), win)
|
---|
1400 | VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE) $(VBOX_INST_TOOLS)
|
---|
1401 | else if1of ($(KBUILD_TARGET)$(VBOX_WITH_HARDENING), darwin win$(VBOX_WITH_HARDENING))
|
---|
1402 | VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE)
|
---|
1403 | endif
|
---|
1404 | VBoxRT_DEFS := $(filter-out RT_NO_GIP, $(RuntimeR3_DEFS)) \
|
---|
1405 | IN_SUP_R3 IN_SUP_R3 IPRT_WITH_XAR \
|
---|
1406 | $(if-expr !defined(VBOX_WITH_ALT_HASH_CODE),IPRT_WITHOUT_SHA512T224 IPRT_WITHOUT_SHA512T256,)
|
---|
1407 | ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
1408 | VBoxRT_DEFS += RT_NO_GIP
|
---|
1409 | endif
|
---|
1410 | ifdef VBOX_WITH_LIBCURL
|
---|
1411 | VBoxRT_DEFS += IPRT_WITH_HTTP
|
---|
1412 | endif
|
---|
1413 | ifdef RTALLOC_REPLACE_MALLOC
|
---|
1414 | VBoxRT_DEFS += RTALLOC_REPLACE_MALLOC
|
---|
1415 | endif
|
---|
1416 | ifdef VBOX_WITH_DTRACE_R3
|
---|
1417 | VBoxRT_DEFS += IPRT_WITH_DTRACE IPRT_DTRACE_INCLUDE=\"dtrace/iprt.h\"
|
---|
1418 | endif
|
---|
1419 | VBoxRT_DEFS.$(KBUILD_TYPE) := $(RuntimeR3_DEFS.$(KBUILD_TYPE))
|
---|
1420 | VBoxRT_SOURCES := \
|
---|
1421 | VBox/VBoxRTDeps.cpp \
|
---|
1422 | $(filter-out common/checksum/crc32.cpp, \
|
---|
1423 | $(if-expr defined(VBOX_WITH_ALT_HASH_CODE), $(RuntimeR3_SOURCES), \
|
---|
1424 | $(patsubst common/checksum/alt-%,common/checksum/openssl-%,$(RuntimeR3_SOURCES)) ) ) \
|
---|
1425 | common/checksum/crc32-zlib.cpp \
|
---|
1426 | common/misc/aiomgr.cpp
|
---|
1427 | ifdef VBOX_WITH_LIBCURL
|
---|
1428 | VBoxRT_SOURCES += \
|
---|
1429 | common/misc/s3.cpp \
|
---|
1430 | generic/http-curl.cpp
|
---|
1431 | endif
|
---|
1432 | ifdef VBOX_WITH_DTRACE_R3
|
---|
1433 | VBoxRT_SOURCES += \
|
---|
1434 | iprt.d
|
---|
1435 | endif
|
---|
1436 | VBoxRT_SOURCES.$(KBUILD_TARGET) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
|
---|
1437 | VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
|
---|
1438 | VBoxRT_SOURCES.$(KBUILD_TARGET).x86 := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).x86)
|
---|
1439 | VBoxRT_SOURCES.$(KBUILD_TARGET).amd64 := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).amd64)
|
---|
1440 | VBoxRT_SOURCES.$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
|
---|
1441 | VBoxRT_SOURCES.x86 := $(RuntimeR3_SOURCES.x86)
|
---|
1442 | VBoxRT_SOURCES.amd64 := $(RuntimeR3_SOURCES.amd64)
|
---|
1443 | VBoxRT_SOURCES.win += \
|
---|
1444 | r3/win/dllmain-win.cpp \
|
---|
1445 | r3/win/fileaio-win.cpp \
|
---|
1446 | $(VBoxRT_0_OUTDIR)/VBoxRT.def
|
---|
1447 | VBoxRT_SOURCES.linux += \
|
---|
1448 | r3/linux/fileaio-linux.cpp
|
---|
1449 | VBoxRT_SOURCES.solaris += \
|
---|
1450 | r3/solaris/fileaio-solaris.cpp
|
---|
1451 | VBoxRT_SOURCES.darwin += \
|
---|
1452 | r3/posix/fileaio-posix.cpp
|
---|
1453 | VBoxRT_SOURCES.freebsd += \
|
---|
1454 | r3/freebsd/fileaio-freebsd.cpp
|
---|
1455 | VBoxRT_INCS := $(RuntimeR3_INCS)
|
---|
1456 | VBoxRT_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
|
---|
1457 | VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
|
---|
1458 | VBoxRT_LIBS = \
|
---|
1459 | $(PATH_STAGE_LIB)/VBox-liblzf$(VBOX_SUFF_LIB)
|
---|
1460 | if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
1461 | VBoxRT_LIBS += \
|
---|
1462 | $(PATH_STAGE_LIB)/SUPR3$(VBOX_SUFF_LIB)
|
---|
1463 | endif
|
---|
1464 | ifdef IPRT_WITH_KSTUFF
|
---|
1465 | VBoxRT_LIBS += \
|
---|
1466 | $(PATH_STAGE_LIB)/VBox-kStuff$(VBOX_SUFF_LIB)
|
---|
1467 | endif
|
---|
1468 | ifndef SDK_VBOX_LIBXML2_LIBS
|
---|
1469 | VBoxRT_LIBS += \
|
---|
1470 | $(PATH_STAGE_LIB)/VBox-libxml2$(VBOX_SUFF_LIB)
|
---|
1471 | endif
|
---|
1472 | VBoxRT_LIBS += \
|
---|
1473 | $(SDK_VBOX_ZLIB_LIBS)
|
---|
1474 | ifndef SDK_VBOX_OPENSSL_LIBS
|
---|
1475 | VBoxRT_LIBS += \
|
---|
1476 | $(PATH_STAGE_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB) \
|
---|
1477 | $(PATH_STAGE_LIB)/VBox-libssl$(VBOX_SUFF_LIB)
|
---|
1478 | endif
|
---|
1479 | ifdef IPRT_WITH_LZO
|
---|
1480 | VBoxRT_LIBS += lzo2
|
---|
1481 | endif
|
---|
1482 | ifdef RTALLOC_REPLACE_MALLOC
|
---|
1483 | VBoxRT_LIBS += \
|
---|
1484 | $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
|
---|
1485 | endif
|
---|
1486 | VBoxRT_LIBS.linux = \
|
---|
1487 | crypt
|
---|
1488 | VBoxRT_LIBS.darwin = \
|
---|
1489 | iconv
|
---|
1490 | VBoxRT_LIBS.freebsd = \
|
---|
1491 | iconv \
|
---|
1492 | rt
|
---|
1493 | VBoxRT_LIBS.haiku = \
|
---|
1494 | iconv
|
---|
1495 | VBoxRT_LIBS.solaris = \
|
---|
1496 | kstat \
|
---|
1497 | contract
|
---|
1498 | ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)
|
---|
1499 | # SMBIOS not available on Solaris SPARC.
|
---|
1500 | VBoxRT_LIBS.solaris += smbios
|
---|
1501 | endif
|
---|
1502 | VBoxRT_LIBS.win = \
|
---|
1503 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/vccomsup.lib \
|
---|
1504 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/wbemuuid.lib \
|
---|
1505 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
|
---|
1506 | VBoxRT_LDFLAGS.darwin = \
|
---|
1507 | -framework IOKit \
|
---|
1508 | -framework CoreFoundation \
|
---|
1509 | -framework CoreServices \
|
---|
1510 | -framework Security \
|
---|
1511 | -framework SystemConfiguration \
|
---|
1512 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxRT.dylib
|
---|
1513 | VBoxRT_LDFLAGS.win = /MANIFEST \
|
---|
1514 | /delayload:gdi32.dll \
|
---|
1515 | /delayload:user32.dll \
|
---|
1516 | /delayload:shell32.dll \
|
---|
1517 | /delayload:ole32.dll \
|
---|
1518 | /delayload:oleaut32.dll \
|
---|
1519 | /delayload:advapi32.dll
|
---|
1520 |
|
---|
1521 | if1of ($(DLLS), VBoxRT)
|
---|
1522 | $$(VBoxRT_0_OUTDIR)/VBoxRT.def: \
|
---|
1523 | $(PATH_SUB_CURRENT)/r3/win/VBoxRT-$$(if-expr $$(KBUILD_TARGET_ARCH) == amd64,win64,win32).def \
|
---|
1524 | $(PATH_SUB_CURRENT)/r3/win/$(if $(VBOX_OSE),VBoxRT-openssl-ose.def,VBoxRT-openssl.def) \
|
---|
1525 | $(if-expr "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" && defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES)\
|
---|
1526 | ,$(PATH_SUB_CURRENT)/r3/win/VBoxRT-msvcr100-win32.def ,) #$(PATH_SUB_CURRENT)/r3/win/VBoxRT-msvcp100-win32.def
|
---|
1527 | $(RM) -f -- $@
|
---|
1528 | $(REDIRECT) -wto $@ -- $(CAT_EXT) $^
|
---|
1529 | endif
|
---|
1530 |
|
---|
1531 | if1of (VBoxRT,$(DLLS))
|
---|
1532 | $(call VBOX_SET_VER_INFO_DLL,VBoxRT,VirtualBox Runtime)
|
---|
1533 | endif
|
---|
1534 |
|
---|
1535 |
|
---|
1536 | if defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86"
|
---|
1537 | #
|
---|
1538 | # Hacks for running tests on NT 4. Really ugly!
|
---|
1539 | #
|
---|
1540 | # We put most of the CRT in VBoxRT because we cannot even load msvcr100.dll
|
---|
1541 | # or msvcp100.dll on NT4 because of kernel32.dll dependencies. More hacks
|
---|
1542 | # in RuntimeR3VccTricks.
|
---|
1543 | #
|
---|
1544 | TEMPLATE_VBoxR3RuntimeDllItself = xx
|
---|
1545 | TEMPLATE_VBoxR3RuntimeDllItself_EXTENDS = VBoxR3RuntimeDll
|
---|
1546 | TEMPLATE_VBoxR3RuntimeDllItself_LIBS.win.x86 = \
|
---|
1547 | $(filter-out $(PATH_STAGE_LIB)/RuntimeR3VccTricks%, $(TEMPLATE_VBoxR3RuntimeDll_LIBS.win.x86))
|
---|
1548 | TEMPLATE_VBoxR3RuntimeDllItself_SOURCES = \
|
---|
1549 | r3/win/vcc100-kernel32-fakes.cpp \
|
---|
1550 | r3/win/vcc100-kernel32-fakesA.asm \
|
---|
1551 | r3/win/vcc100-ws2_32-fakes.cpp \
|
---|
1552 | r3/win/vcc100-ws2_32-fakesA.asm \
|
---|
1553 | r3/win/vcc100-ntdll-fakes.cpp \
|
---|
1554 | r3/win/vcc100-ntdll-fakesA.asm \
|
---|
1555 | r3/win/vcc100-msvcrt-fakes.cpp
|
---|
1556 | VBoxRT_TEMPLATE = VBoxR3RuntimeDllItself
|
---|
1557 | VBoxRT_TEMPLATE.win.x86 = VBoxR3RuntimeDllItself
|
---|
1558 | VBoxRT_DEFS.win.x86 = $(TEMPLATE_VBoxR3RuntimeDll_DEFS.win.x86) _CRTIMP_PURE="__declspec(dllexport)"
|
---|
1559 | VBoxRT_LDFLAGS.win.x86 = /IGNORE:4049 /IGNORE:4217
|
---|
1560 | VBoxRT_LIBS.win.x86 = \
|
---|
1561 | $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/oldnames.lib \
|
---|
1562 | $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/libcmt.lib \
|
---|
1563 | $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/libcpmt.lib
|
---|
1564 | endif
|
---|
1565 |
|
---|
1566 |
|
---|
1567 | #
|
---|
1568 | # HACK ALERT! Make testcase run during build on SELinux boxes.
|
---|
1569 | # Create a dummy DLL that ensure that VBoxRT is installed
|
---|
1570 | # during the DLL pass and cleaned up later.
|
---|
1571 | #
|
---|
1572 | ifeq ($(KBUILD_TARGET),linux)
|
---|
1573 | if1of (VBoxRT, $(DLLS))
|
---|
1574 | ifneq ($(wildcard /usr/bin/chcon),)
|
---|
1575 | VBoxRT_INSTTYPE = none
|
---|
1576 | VBoxRT_DEBUG_INSTTYPE = both
|
---|
1577 |
|
---|
1578 | DLLS += VBoxRTDummy
|
---|
1579 | VBoxRTDummy_TEMPLATE = VBoxR3Dll
|
---|
1580 | VBoxRTDummy_INSTTYPE = none
|
---|
1581 | VBoxRTDummy_LIBS = $(PATH_STAGE_BIN)/VBoxRT.so
|
---|
1582 | VBoxRTDummy_CLEAN = $(PATH_STAGE_BIN)/VBoxRT.so
|
---|
1583 | BLDDIRS += $(PATH_STAGE_BIN)
|
---|
1584 |
|
---|
1585 | $(PATH_STAGE_BIN)/VBoxRT.so: $$(VBoxRT_1_TARGET) | $$(dir $$@)
|
---|
1586 | $(INSTALL) $< $@
|
---|
1587 | chcon -t texrel_shlib_t $@ || true
|
---|
1588 |
|
---|
1589 | VBoxRT:: VBoxRTDummy
|
---|
1590 | endif # chcon present.
|
---|
1591 | endif # building VBoxRT
|
---|
1592 | endif # linux
|
---|
1593 |
|
---|
1594 |
|
---|
1595 | #
|
---|
1596 | # VBoxRT-x86 - 32-bit version of VBoxRT
|
---|
1597 | #
|
---|
1598 | VBoxRT-x86_EXTENDS = VBoxRT
|
---|
1599 | VBoxRT-x86_TEMPLATE = VBoxR3Dll-x86
|
---|
1600 | VBoxRT-x86_INST.win = $(INST_DLL)x86/
|
---|
1601 | VBoxRT-x86_SDKS = VBOX_LIBXML2
|
---|
1602 | ifdef VBOX_WITH_LIBCURL
|
---|
1603 | VBoxRT-x86_SDKS += VBOX_LIBCURL-x86
|
---|
1604 | endif
|
---|
1605 | VBoxRT-x86_SDKS += VBOX_OPENSSL-x86
|
---|
1606 |
|
---|
1607 | VBoxRT-x86_LIBS = \
|
---|
1608 | $(PATH_STAGE_LIB)/VBox-liblzf-x86$(VBOX_SUFF_LIB)
|
---|
1609 | if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
1610 | VBoxRT-x86_LIBS += \
|
---|
1611 | $(PATH_STAGE_LIB)/SUPR3-x86$(VBOX_SUFF_LIB)
|
---|
1612 | endif
|
---|
1613 | ifdef IPRT_WITH_KSTUFF
|
---|
1614 | VBoxRT-x86_LIBS += \
|
---|
1615 | $(PATH_STAGE_LIB)/VBox-kStuff-x86$(VBOX_SUFF_LIB)
|
---|
1616 | endif
|
---|
1617 | ifndef SDK_VBOX_LIBXML2_LIBS
|
---|
1618 | VBoxRT-x86_LIBS += \
|
---|
1619 | $(PATH_STAGE_LIB)/VBox-libxml2-x86$(VBOX_SUFF_LIB)
|
---|
1620 | endif
|
---|
1621 | VBoxRT-x86_LIBS += \
|
---|
1622 | $(SDK_VBOX_ZLIB_LIBS-x86)
|
---|
1623 | ifndef SDK_VBOX_OPENSSL_LIBS
|
---|
1624 | VBoxRT-x86_LIBS += \
|
---|
1625 | $(PATH_STAGE_LIB)/VBox-libcrypto-x86$(VBOX_SUFF_LIB) \
|
---|
1626 | $(PATH_STAGE_LIB)/VBox-libssl-x86$(VBOX_SUFF_LIB)
|
---|
1627 | endif
|
---|
1628 | ifdef IPRT_WITH_LZO
|
---|
1629 | VBoxRT-x86_LIBS += lzo2
|
---|
1630 | endif
|
---|
1631 | VBoxRT-x86_LIBS.linux = \
|
---|
1632 | crypt
|
---|
1633 | VBoxRT-x86_LIBS.darwin = \
|
---|
1634 | iconv
|
---|
1635 | VBoxRT-x86_LIBS.freebsd = \
|
---|
1636 | iconv \
|
---|
1637 | rt
|
---|
1638 | VBoxRT-x86_LIBS.haiku = \
|
---|
1639 | iconv
|
---|
1640 | VBoxRT-x86_LIBS.solaris = \
|
---|
1641 | kstat \
|
---|
1642 | contract
|
---|
1643 | ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)
|
---|
1644 | # SMBIOS not available on Solaris SPARC.
|
---|
1645 | VBoxRT-x86_LIBS.solaris += smbios
|
---|
1646 | endif
|
---|
1647 | VBoxRT-x86_LIBS.win = \
|
---|
1648 | $(PATH_SDK_$(VBOX_WINDDK)_LIB.x86)/vccomsup.lib \
|
---|
1649 | $(PATH_SDK_$(VBOX_WINDDK)_LIB.x86)/wbemuuid.lib \
|
---|
1650 | $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/delayimp.lib
|
---|
1651 |
|
---|
1652 | VBoxRT-x86_SOURCES.win = $(filter-out %.def %.rc,$(VBoxRT_SOURCES.win)) \
|
---|
1653 | $(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def
|
---|
1654 | if1of ($(DLLS), VBoxRT-x86)
|
---|
1655 | $$(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def: \
|
---|
1656 | $(PATH_SUB_CURRENT)/r3/win/VBoxRT-win32.def \
|
---|
1657 | $(PATH_SUB_CURRENT)/r3/win/$(if $(VBOX_OSE),VBoxRT-openssl-ose.def,VBoxRT-openssl.def)
|
---|
1658 | $(RM) -f -- $@
|
---|
1659 | $(REDIRECT) -wto $@ -- $(CAT_EXT) $^
|
---|
1660 | endif
|
---|
1661 |
|
---|
1662 | if1of (VBoxRT-x86,$(DLLS))
|
---|
1663 | $(call VBOX_SET_VER_INFO_DLL,VBoxRT-x86,VirtualBox 32-bit Runtime)
|
---|
1664 | endif
|
---|
1665 |
|
---|
1666 | #
|
---|
1667 | # VBoxRTImp - Import library/hack.
|
---|
1668 | #
|
---|
1669 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
|
---|
1670 | $(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def r3/win/VBoxRT-win64.def)
|
---|
1671 | else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
|
---|
1672 | $(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def r3/win/VBoxRT-win32.def)
|
---|
1673 | else
|
---|
1674 | $(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def)
|
---|
1675 | endif
|
---|
1676 |
|
---|
1677 |
|
---|
1678 | #
|
---|
1679 | # RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
|
---|
1680 | # This is used together with VBoxRT.
|
---|
1681 | #
|
---|
1682 | ## @todo the *_alias.c stuff is busted, remove and use RT_WITH_NOCRT_ALIASES instead.
|
---|
1683 | RuntimeR3NoCRTGCC_TEMPLATE = VBoxNoCrtGccLib
|
---|
1684 | RuntimeR3NoCRTGCC_LIBSUFF = $(VBOX_SUFF_LIB)
|
---|
1685 | ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
1686 | RuntimeR3NoCRTGCC_DEFS += RT_NO_GIP
|
---|
1687 | endif
|
---|
1688 | RuntimeR3NoCRTGCC_INCS = include
|
---|
1689 | RuntimeR3NoCRTGCC_SOURCES := \
|
---|
1690 | common/misc/sanity-cpp.cpp \
|
---|
1691 | common/misc/sanity-c.c \
|
---|
1692 | \
|
---|
1693 | $(RuntimeNoCrt_SOURCES)
|
---|
1694 |
|
---|
1695 | if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
1696 | RuntimeR3NoCRTGCC_SOURCES += \
|
---|
1697 | common/math/ceill.asm \
|
---|
1698 | common/math/cosl.asm \
|
---|
1699 | common/math/fabs.asm \
|
---|
1700 | common/math/fabsf.asm \
|
---|
1701 | common/math/fabsl.asm \
|
---|
1702 | common/math/floor.asm \
|
---|
1703 | common/math/floorf.asm \
|
---|
1704 | common/math/floorl.asm \
|
---|
1705 | common/math/ldexpl.asm \
|
---|
1706 | common/math/llrint.asm \
|
---|
1707 | common/math/llrintf.asm \
|
---|
1708 | common/math/llrintl.asm \
|
---|
1709 | common/math/logl.asm \
|
---|
1710 | common/math/lrint.asm \
|
---|
1711 | common/math/lrintf.asm \
|
---|
1712 | common/math/lrintl.asm \
|
---|
1713 | common/math/remainder.asm \
|
---|
1714 | common/math/remainderf.asm \
|
---|
1715 | common/math/remainderl.asm \
|
---|
1716 | common/math/sinl.asm \
|
---|
1717 | common/math/tanl.asm \
|
---|
1718 | common/math/trunc.asm \
|
---|
1719 | common/math/truncf.asm \
|
---|
1720 | common/math/truncl.asm \
|
---|
1721 | \
|
---|
1722 | common/string/memchr_alias.c \
|
---|
1723 | common/string/memcmp_alias.c \
|
---|
1724 | common/string/memcpy_alias.c \
|
---|
1725 | common/string/memmove_alias.c \
|
---|
1726 | common/string/memset_alias.c \
|
---|
1727 | common/string/strchr_alias.c \
|
---|
1728 | common/string/strcmp_alias.c \
|
---|
1729 | common/string/strlen_alias.c
|
---|
1730 | endif
|
---|
1731 |
|
---|
1732 | RuntimeR3NoCRTGCC_SOURCES.x86 = \
|
---|
1733 | common/math/x86/fenv-x86.c \
|
---|
1734 | common/math/gcc/adddi3.c \
|
---|
1735 | common/math/gcc/anddi3.c \
|
---|
1736 | common/math/gcc/ashldi3.c \
|
---|
1737 | common/math/gcc/ashrdi3.c \
|
---|
1738 | common/math/gcc/cmpdi2.c \
|
---|
1739 | common/math/gcc/divdi3.c \
|
---|
1740 | common/math/gcc/iordi3.c \
|
---|
1741 | common/math/gcc/lshldi3.c \
|
---|
1742 | common/math/gcc/lshrdi3.c \
|
---|
1743 | common/math/gcc/moddi3.c \
|
---|
1744 | common/math/gcc/muldi3.c \
|
---|
1745 | common/math/gcc/negdi2.c \
|
---|
1746 | common/math/gcc/notdi2.c \
|
---|
1747 | common/math/gcc/qdivrem.c \
|
---|
1748 | common/math/gcc/subdi3.c \
|
---|
1749 | common/math/gcc/ucmpdi2.c \
|
---|
1750 | common/math/gcc/udivdi3.c \
|
---|
1751 | common/math/gcc/umoddi3.c \
|
---|
1752 | common/math/gcc/xordi3.c
|
---|
1753 |
|
---|
1754 |
|
---|
1755 | #
|
---|
1756 | # RuntimeR0 - Ring-0 library for VMMR0.
|
---|
1757 | #
|
---|
1758 | RuntimeR0_TEMPLATE = VBoxR0
|
---|
1759 | RuntimeR0_DEFS = IN_RT_R0 RT_WITH_VBOX
|
---|
1760 | ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
1761 | RuntimeR0_DEFS += RT_NO_GIP
|
---|
1762 | endif
|
---|
1763 | if defined(VBOX_WITH_DTRACE_R0) && !defined(VBOX_ONLY_VALIDATIONKIT)
|
---|
1764 | RuntimeR0_DEFS += IPRT_WITH_DTRACE IPRT_DTRACE_PREFIX=VBOXVMM_ IPRT_DTRACE_INCLUDE=\"dtrace/VBoxVMM.h\"
|
---|
1765 | endif
|
---|
1766 | RuntimeR0_INCS = include
|
---|
1767 | RuntimeR0_SOURCES := \
|
---|
1768 | $(if $(VBOX_ONLY_VALIDATIONKIT),,../VMM/VBoxVMM.d) \
|
---|
1769 | common/log/logellipsis.cpp \
|
---|
1770 | common/log/logrelellipsis.cpp \
|
---|
1771 | common/log/logcom.cpp \
|
---|
1772 | common/log/logformat.cpp \
|
---|
1773 | common/log/tracebuf.cpp \
|
---|
1774 | common/log/tracedefault.cpp \
|
---|
1775 | common/misc/RTAssertMsg1Weak.cpp \
|
---|
1776 | common/misc/RTAssertMsg2.cpp \
|
---|
1777 | common/misc/RTAssertMsg2Add.cpp \
|
---|
1778 | common/misc/RTAssertMsg2AddWeak.cpp \
|
---|
1779 | common/misc/RTAssertMsg2AddWeakV.cpp \
|
---|
1780 | common/misc/RTAssertMsg2Weak.cpp \
|
---|
1781 | common/misc/RTAssertMsg2WeakV.cpp \
|
---|
1782 | common/misc/buildconfig.cpp \
|
---|
1783 | common/misc/once.cpp \
|
---|
1784 | common/misc/sanity-c.c \
|
---|
1785 | common/misc/sanity-cpp.cpp \
|
---|
1786 | common/misc/term.cpp \
|
---|
1787 | common/path/RTPathFilename.cpp \
|
---|
1788 | common/string/strhash1.cpp \
|
---|
1789 | common/string/strncmp.cpp \
|
---|
1790 | common/string/strpbrk.cpp \
|
---|
1791 | common/string/RTStrCat.cpp \
|
---|
1792 | common/string/RTStrCatEx.cpp \
|
---|
1793 | common/string/RTStrCatP.cpp \
|
---|
1794 | common/string/RTStrCatPEx.cpp \
|
---|
1795 | common/string/RTStrCopy.cpp \
|
---|
1796 | common/string/RTStrCopyEx.cpp \
|
---|
1797 | common/string/RTStrCopyP.cpp \
|
---|
1798 | common/string/RTStrCopyPEx.cpp \
|
---|
1799 | common/string/RTStrNLen.cpp \
|
---|
1800 | common/string/RTStrNLenEx.cpp \
|
---|
1801 | common/table/avlgcptr.cpp \
|
---|
1802 | common/table/avlhcphys.cpp \
|
---|
1803 | common/table/avllu32.cpp \
|
---|
1804 | common/table/avlogcphys.cpp \
|
---|
1805 | common/table/avlogcptr.cpp \
|
---|
1806 | common/table/avlohcphys.cpp \
|
---|
1807 | common/table/avloioport.cpp \
|
---|
1808 | common/table/avlpv.cpp \
|
---|
1809 | common/table/avlrogcphys.cpp \
|
---|
1810 | common/table/avlrogcptr.cpp \
|
---|
1811 | common/table/avlroioport.cpp \
|
---|
1812 | common/table/avlroogcptr.cpp \
|
---|
1813 | common/table/avlu32.cpp \
|
---|
1814 | common/table/avlou32.cpp \
|
---|
1815 | common/time/timesup.cpp \
|
---|
1816 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
1817 | generic/critsect-generic.cpp \
|
---|
1818 | generic/critsectrw-generic.cpp \
|
---|
1819 | \
|
---|
1820 | $(RuntimeNoCrt_SOURCES)
|
---|
1821 |
|
---|
1822 | if1of ($(KBUILD_TARGET), darwin solaris freebsd)
|
---|
1823 | RuntimeR0_SOURCES += \
|
---|
1824 | common/math/gcc/adddi3.c \
|
---|
1825 | common/math/gcc/anddi3.c \
|
---|
1826 | common/math/gcc/ashldi3.c \
|
---|
1827 | common/math/gcc/ashrdi3.c \
|
---|
1828 | common/math/gcc/cmpdi2.c \
|
---|
1829 | common/math/gcc/divdi3.c \
|
---|
1830 | common/math/gcc/iordi3.c \
|
---|
1831 | common/math/gcc/lshldi3.c \
|
---|
1832 | common/math/gcc/lshrdi3.c \
|
---|
1833 | common/math/gcc/moddi3.c \
|
---|
1834 | common/math/gcc/muldi3.c \
|
---|
1835 | common/math/gcc/negdi2.c \
|
---|
1836 | common/math/gcc/notdi2.c \
|
---|
1837 | common/math/gcc/qdivrem.c \
|
---|
1838 | common/math/gcc/subdi3.c \
|
---|
1839 | common/math/gcc/ucmpdi2.c \
|
---|
1840 | common/math/gcc/udivdi3.c \
|
---|
1841 | common/math/gcc/umoddi3.c \
|
---|
1842 | common/math/gcc/xordi3.c
|
---|
1843 | endif
|
---|
1844 |
|
---|
1845 | RuntimeR0_SOURCES.x86 += \
|
---|
1846 | common/asm/ASMCpuIdExSlow.asm \
|
---|
1847 | common/asm/ASMAtomicUoAndU64.asm \
|
---|
1848 | common/asm/ASMAtomicUoAndU32.asm \
|
---|
1849 | common/asm/ASMAtomicUoDecU32.asm \
|
---|
1850 | common/asm/ASMAtomicUoIncU32.asm \
|
---|
1851 | common/asm/ASMAtomicUoOrU64.asm \
|
---|
1852 | common/asm/ASMAtomicUoOrU32.asm \
|
---|
1853 | common/asm/ASMMemFirstMismatchingU8.asm \
|
---|
1854 | common/asm/ASMGetXcr0.asm \
|
---|
1855 | common/asm/ASMSetXcr0.asm \
|
---|
1856 | common/asm/ASMXSave.asm \
|
---|
1857 | common/asm/ASMXRstor.asm \
|
---|
1858 | common/asm/ASMRdMsrEx.asm \
|
---|
1859 | common/asm/ASMWrMsrEx.asm
|
---|
1860 | RuntimeR0_SOURCES.amd64 += \
|
---|
1861 | common/asm/ASMCpuIdExSlow.asm \
|
---|
1862 | common/asm/ASMAtomicUoAndU64.asm \
|
---|
1863 | common/asm/ASMAtomicUoAndU32.asm \
|
---|
1864 | common/asm/ASMAtomicUoDecU32.asm \
|
---|
1865 | common/asm/ASMAtomicUoIncU32.asm \
|
---|
1866 | common/asm/ASMAtomicUoOrU64.asm \
|
---|
1867 | common/asm/ASMAtomicUoOrU32.asm \
|
---|
1868 | common/asm/ASMMemFirstMismatchingU8.asm \
|
---|
1869 | common/asm/ASMGetXcr0.asm \
|
---|
1870 | common/asm/ASMSetXcr0.asm \
|
---|
1871 | common/asm/ASMXSave.asm \
|
---|
1872 | common/asm/ASMXRstor.asm \
|
---|
1873 | common/asm/ASMRdMsrEx.asm \
|
---|
1874 | common/asm/ASMWrMsrEx.asm
|
---|
1875 |
|
---|
1876 | #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
|
---|
1877 | # RuntimeR0_SOURCES += common/time/timesupA.asm
|
---|
1878 | #else
|
---|
1879 | RuntimeR0_SOURCES += common/time/timesupref.cpp
|
---|
1880 | #endif
|
---|
1881 |
|
---|
1882 | RuntimeR0_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES)
|
---|
1883 | RuntimeR0_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES)
|
---|
1884 | RuntimeR0_SOURCES.win = \
|
---|
1885 | nt/NtProcessStartup-stub.cpp
|
---|
1886 |
|
---|
1887 | RuntimeR0_SOURCES.os2 = \
|
---|
1888 | os2/sys0.asm
|
---|
1889 |
|
---|
1890 |
|
---|
1891 | #
|
---|
1892 | # RuntimeR0Stub - Ring-0 context startup stub for Windows and Solaris.
|
---|
1893 | #
|
---|
1894 | RuntimeR0Stub_TEMPLATE = $(if-expr "$(KBUILD_TARGET)" == "solaris",VBoxR0DrvLib,VBoxR0)
|
---|
1895 | RuntimeR0Stub_SOURCES.win = \
|
---|
1896 | nt/NtProcessStartup-stub.cpp
|
---|
1897 | RuntimeR0Stub_SOURCES.solaris = \
|
---|
1898 | r0drv/solaris/modulestub-r0drv-solaris.c
|
---|
1899 |
|
---|
1900 |
|
---|
1901 | #
|
---|
1902 | # RuntimeR0Drv - Ring-0 library for host drivers.
|
---|
1903 | #
|
---|
1904 | RuntimeR0Drv_TEMPLATE = VBoxR0DrvLib
|
---|
1905 | RuntimeR0Drv_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK) $(VBOX_WINPSDK)INCS VBOX_OPENSSL
|
---|
1906 | RuntimeR0Drv_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS RT_NO_EXPORT_SYMBOL
|
---|
1907 | RuntimeR0Drv_DEFS.win = IN_SUP_R0 LDR_ONLY_PE
|
---|
1908 | RuntimeR0Drv_DEFS.linux = MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) IN_SUP_R0
|
---|
1909 |
|
---|
1910 | RuntimeR0Drv_INCS := $(PATH_SUB_CURRENT) include
|
---|
1911 | RuntimeR0Drv_INCS.freebsd = \
|
---|
1912 | $(PATH_STAGE)/gen-sys-hdrs
|
---|
1913 | RuntimeR0Drv_INCS.linux = \
|
---|
1914 | r0drv/linux
|
---|
1915 | RuntimeR0Drv_INCS.solaris = \
|
---|
1916 | r0drv/solaris/vbi/i86pc \
|
---|
1917 | r0drv/solaris/vbi/i86pc/sys
|
---|
1918 |
|
---|
1919 | RuntimeR0Drv_SOURCES = \
|
---|
1920 | common/alloc/alloc.cpp \
|
---|
1921 | common/alloc/heapsimple.cpp \
|
---|
1922 | common/alloc/heapoffset.cpp \
|
---|
1923 | common/checksum/alt-md5.cpp \
|
---|
1924 | common/checksum/crc32.cpp \
|
---|
1925 | common/checksum/crc64.cpp \
|
---|
1926 | common/checksum/ipv4.cpp \
|
---|
1927 | common/checksum/ipv6.cpp \
|
---|
1928 | common/err/RTErrConvertToErrno.cpp \
|
---|
1929 | common/err/RTErrConvertFromErrno.cpp \
|
---|
1930 | common/log/log.cpp \
|
---|
1931 | common/log/logellipsis.cpp \
|
---|
1932 | common/log/logrel.cpp \
|
---|
1933 | common/log/logrelellipsis.cpp \
|
---|
1934 | common/log/logcom.cpp \
|
---|
1935 | common/log/logformat.cpp \
|
---|
1936 | common/log/tracebuf.cpp \
|
---|
1937 | common/log/tracedefault.cpp \
|
---|
1938 | common/misc/RTAssertMsg1Weak.cpp \
|
---|
1939 | common/misc/RTAssertMsg2.cpp \
|
---|
1940 | common/misc/RTAssertMsg2Add.cpp \
|
---|
1941 | common/misc/RTAssertMsg2AddWeak.cpp \
|
---|
1942 | common/misc/RTAssertMsg2AddWeakV.cpp \
|
---|
1943 | common/misc/RTAssertMsg2Weak.cpp \
|
---|
1944 | common/misc/RTAssertMsg2WeakV.cpp \
|
---|
1945 | common/misc/assert.cpp \
|
---|
1946 | common/misc/buildconfig.cpp \
|
---|
1947 | common/misc/handletable.cpp \
|
---|
1948 | common/misc/handletablectx.cpp \
|
---|
1949 | common/misc/handletablesimple.cpp \
|
---|
1950 | common/misc/once.cpp \
|
---|
1951 | common/misc/sanity-c.c \
|
---|
1952 | common/misc/sanity-cpp.cpp \
|
---|
1953 | common/misc/term.cpp \
|
---|
1954 | common/misc/RTMemWipeThoroughly.cpp \
|
---|
1955 | common/path/rtPathVolumeSpecLen.cpp \
|
---|
1956 | common/path/RTPathAbsDup.cpp \
|
---|
1957 | common/path/RTPathAbsEx.cpp \
|
---|
1958 | common/path/RTPathAbsExDup.cpp \
|
---|
1959 | common/path/RTPathAppend.cpp \
|
---|
1960 | common/path/RTPathAppendEx.cpp \
|
---|
1961 | common/path/RTPathExt.cpp \
|
---|
1962 | common/path/RTPathFilename.cpp \
|
---|
1963 | common/path/RTPathHasExt.cpp \
|
---|
1964 | common/path/RTPathHasPath.cpp \
|
---|
1965 | common/path/RTPathParseSimple.cpp \
|
---|
1966 | common/path/RTPathRealDup.cpp \
|
---|
1967 | common/path/RTPathStripExt.cpp \
|
---|
1968 | common/path/RTPathStripFilename.cpp \
|
---|
1969 | common/path/RTPathStripTrailingSlash.cpp \
|
---|
1970 | common/rand/rand.cpp \
|
---|
1971 | common/rand/randadv.cpp \
|
---|
1972 | common/rand/randparkmiller.cpp \
|
---|
1973 | common/string/RTStrCat.cpp \
|
---|
1974 | common/string/RTStrCatEx.cpp \
|
---|
1975 | common/string/RTStrCatP.cpp \
|
---|
1976 | common/string/RTStrCatPEx.cpp \
|
---|
1977 | common/string/RTStrCmp.cpp \
|
---|
1978 | common/string/RTStrCopy.cpp \
|
---|
1979 | common/string/RTStrCopyEx.cpp \
|
---|
1980 | common/string/RTStrCopyP.cpp \
|
---|
1981 | common/string/RTStrCopyPEx.cpp \
|
---|
1982 | common/string/RTStrNCmp.cpp \
|
---|
1983 | common/string/RTStrNLen.cpp \
|
---|
1984 | common/string/RTStrNLenEx.cpp \
|
---|
1985 | common/string/straprintf.cpp \
|
---|
1986 | common/string/strformat.cpp \
|
---|
1987 | common/string/strformatnum.cpp \
|
---|
1988 | common/string/strformatrt.cpp \
|
---|
1989 | common/string/strformattype.cpp \
|
---|
1990 | common/string/strhash1.cpp \
|
---|
1991 | common/string/strprintf.cpp \
|
---|
1992 | common/string/strtonum.cpp \
|
---|
1993 | common/string/stringalloc.cpp \
|
---|
1994 | common/string/unidata-flags.cpp \
|
---|
1995 | common/string/unidata-lower.cpp \
|
---|
1996 | common/string/unidata-upper.cpp \
|
---|
1997 | common/string/utf-8.cpp \
|
---|
1998 | common/string/utf-8-case.cpp \
|
---|
1999 | common/string/utf-8-case2.cpp \
|
---|
2000 | common/string/utf-16.cpp \
|
---|
2001 | common/string/utf-16-case.cpp \
|
---|
2002 | common/string/utf-16-latin-1.cpp \
|
---|
2003 | common/table/avlpv.cpp \
|
---|
2004 | common/time/time.cpp \
|
---|
2005 | generic/RTLogWriteStdErr-stub-generic.cpp \
|
---|
2006 | generic/RTLogWriteUser-generic.cpp \
|
---|
2007 | generic/RTMpGetArraySize-generic.cpp \
|
---|
2008 | generic/RTRandAdvCreateSystemFaster-generic.cpp \
|
---|
2009 | generic/RTSemEventWait-2-ex-generic.cpp \
|
---|
2010 | generic/RTSemEventWaitNoResume-2-ex-generic.cpp \
|
---|
2011 | generic/RTSemEventMultiWait-2-ex-generic.cpp \
|
---|
2012 | generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
|
---|
2013 | generic/critsect-generic.cpp \
|
---|
2014 | generic/errvars-generic.cpp \
|
---|
2015 | generic/uuid-generic.cpp \
|
---|
2016 | r0drv/alloc-r0drv.cpp \
|
---|
2017 | r0drv/initterm-r0drv.cpp \
|
---|
2018 | r0drv/generic/semspinmutex-r0drv-generic.c \
|
---|
2019 | VBox/log-vbox.cpp \
|
---|
2020 |
|
---|
2021 | RuntimeR0Drv_SOURCES.amd64 = \
|
---|
2022 | common/asm/ASMMemFirstMismatchingU8.asm \
|
---|
2023 | common/asm/ASMRdMsrEx.asm \
|
---|
2024 | common/asm/ASMWrMsrEx.asm \
|
---|
2025 | common/math/bignum-amd64-x86.asm \
|
---|
2026 | common/math/RTUInt128MulByU64.asm
|
---|
2027 | RuntimeR0Drv_SOURCES.x86 = \
|
---|
2028 | common/asm/ASMMemFirstMismatchingU8.asm \
|
---|
2029 | common/asm/ASMRdMsrEx.asm \
|
---|
2030 | common/asm/ASMWrMsrEx.asm \
|
---|
2031 | common/math/bignum-amd64-x86.asm
|
---|
2032 |
|
---|
2033 |
|
---|
2034 | RuntimeR0Drv_SOURCES.linux = \
|
---|
2035 | common/misc/thread.cpp \
|
---|
2036 | common/string/strpbrk.cpp \
|
---|
2037 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
2038 | generic/RTLogWriteStdOut-stub-generic.cpp \
|
---|
2039 | generic/RTMpGetCoreCount-generic.cpp \
|
---|
2040 | generic/mppresent-generic.cpp \
|
---|
2041 | r0drv/linux/alloc-r0drv-linux.c \
|
---|
2042 | r0drv/linux/assert-r0drv-linux.c \
|
---|
2043 | r0drv/linux/initterm-r0drv-linux.c \
|
---|
2044 | r0drv/linux/memobj-r0drv-linux.c \
|
---|
2045 | r0drv/linux/memuserkernel-r0drv-linux.c \
|
---|
2046 | r0drv/linux/mp-r0drv-linux.c \
|
---|
2047 | r0drv/linux/mpnotification-r0drv-linux.c \
|
---|
2048 | r0drv/linux/process-r0drv-linux.c \
|
---|
2049 | r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \
|
---|
2050 | r0drv/linux/semevent-r0drv-linux.c \
|
---|
2051 | r0drv/linux/semeventmulti-r0drv-linux.c \
|
---|
2052 | r0drv/linux/semfastmutex-r0drv-linux.c \
|
---|
2053 | r0drv/linux/semmutex-r0drv-linux.c \
|
---|
2054 | r0drv/linux/spinlock-r0drv-linux.c \
|
---|
2055 | r0drv/linux/thread-r0drv-linux.c \
|
---|
2056 | r0drv/linux/thread2-r0drv-linux.c \
|
---|
2057 | r0drv/linux/threadctxhooks-r0drv-linux.c \
|
---|
2058 | r0drv/linux/time-r0drv-linux.c \
|
---|
2059 | r0drv/linux/timer-r0drv-linux.c \
|
---|
2060 | r0drv/memobj-r0drv.cpp \
|
---|
2061 | r0drv/mpnotification-r0drv.c \
|
---|
2062 | r0drv/powernotification-r0drv.c
|
---|
2063 |
|
---|
2064 | RuntimeR0Drv_SOURCES.win = \
|
---|
2065 | common/ldr/ldr.cpp \
|
---|
2066 | common/ldr/ldrEx.cpp \
|
---|
2067 | common/ldr/ldrPE.cpp \
|
---|
2068 | common/asn1/asn1-basics.cpp \
|
---|
2069 | common/asn1/asn1-dump.cpp \
|
---|
2070 | common/asn1/asn1-cursor.cpp \
|
---|
2071 | common/asn1/asn1-default-allocator.cpp \
|
---|
2072 | common/asn1/asn1-encode.cpp \
|
---|
2073 | common/asn1/asn1-ut-bitstring.cpp \
|
---|
2074 | common/asn1/asn1-ut-bitstring-decode.cpp \
|
---|
2075 | common/asn1/asn1-ut-boolean.cpp \
|
---|
2076 | common/asn1/asn1-ut-boolean-decode.cpp \
|
---|
2077 | common/asn1/asn1-ut-core.cpp \
|
---|
2078 | common/asn1/asn1-ut-core-decode.cpp \
|
---|
2079 | common/asn1/asn1-ut-dyntype.cpp \
|
---|
2080 | common/asn1/asn1-ut-dyntype-decode.cpp \
|
---|
2081 | common/asn1/asn1-ut-integer.cpp \
|
---|
2082 | common/asn1/asn1-ut-integer-decode.cpp \
|
---|
2083 | common/asn1/asn1-ut-null.cpp \
|
---|
2084 | common/asn1/asn1-ut-null-decode.cpp \
|
---|
2085 | common/asn1/asn1-ut-objid.cpp \
|
---|
2086 | common/asn1/asn1-ut-objid-decode.cpp \
|
---|
2087 | common/asn1/asn1-ut-octetstring.cpp \
|
---|
2088 | common/asn1/asn1-ut-octetstring-decode.cpp \
|
---|
2089 | common/asn1/asn1-ut-string.cpp \
|
---|
2090 | common/asn1/asn1-ut-string-decode.cpp \
|
---|
2091 | common/asn1/asn1-ut-time.cpp \
|
---|
2092 | common/asn1/asn1-ut-time-decode.cpp \
|
---|
2093 | common/crypto/digest-core.cpp \
|
---|
2094 | common/crypto/digest-builtin.cpp \
|
---|
2095 | common/crypto/rsa-asn1-decoder.cpp \
|
---|
2096 | common/crypto/rsa-core.cpp \
|
---|
2097 | common/crypto/rsa-init.cpp \
|
---|
2098 | common/crypto/rsa-sanity.cpp \
|
---|
2099 | common/crypto/pkcs7-asn1-decoder.cpp \
|
---|
2100 | common/crypto/pkcs7-core.cpp \
|
---|
2101 | common/crypto/pkcs7-init.cpp \
|
---|
2102 | common/crypto/pkcs7-sanity.cpp \
|
---|
2103 | common/crypto/pkcs7-verify.cpp \
|
---|
2104 | common/crypto/pkix-signature-builtin.cpp \
|
---|
2105 | common/crypto/pkix-signature-core.cpp \
|
---|
2106 | common/crypto/pkix-signature-rsa.cpp \
|
---|
2107 | common/crypto/pkix-util.cpp \
|
---|
2108 | common/crypto/pkix-verify.cpp \
|
---|
2109 | common/crypto/spc-asn1-decoder.cpp \
|
---|
2110 | common/crypto/spc-core.cpp \
|
---|
2111 | common/crypto/spc-init.cpp \
|
---|
2112 | common/crypto/spc-sanity.cpp \
|
---|
2113 | common/crypto/x509-asn1-decoder.cpp \
|
---|
2114 | common/crypto/x509-certpaths.cpp \
|
---|
2115 | common/crypto/x509-core.cpp \
|
---|
2116 | common/crypto/x509-init.cpp \
|
---|
2117 | common/crypto/x509-sanity.cpp \
|
---|
2118 | common/crypto/x509-verify.cpp \
|
---|
2119 | common/crypto/store.cpp \
|
---|
2120 | common/crypto/store-inmem.cpp \
|
---|
2121 | common/crypto/taf-asn1-decoder.cpp \
|
---|
2122 | common/crypto/taf-core.cpp \
|
---|
2123 | common/crypto/taf-init.cpp \
|
---|
2124 | common/crypto/taf-sanity.cpp \
|
---|
2125 | common/crypto/tsp-asn1-decoder.cpp \
|
---|
2126 | common/crypto/tsp-core.cpp \
|
---|
2127 | common/crypto/tsp-init.cpp \
|
---|
2128 | common/crypto/tsp-sanity.cpp \
|
---|
2129 | common/checksum/alt-md2.cpp \
|
---|
2130 | common/checksum/alt-sha1.cpp \
|
---|
2131 | common/checksum/alt-sha256.cpp \
|
---|
2132 | common/checksum/alt-sha512.cpp \
|
---|
2133 | common/checksum/md2str.cpp \
|
---|
2134 | common/checksum/md5str.cpp \
|
---|
2135 | common/checksum/sha1str.cpp \
|
---|
2136 | common/checksum/sha224str.cpp \
|
---|
2137 | common/checksum/sha256str.cpp \
|
---|
2138 | common/checksum/sha384str.cpp \
|
---|
2139 | common/checksum/sha512str.cpp \
|
---|
2140 | common/checksum/sha512t224str.cpp \
|
---|
2141 | common/checksum/sha512t256str.cpp \
|
---|
2142 | common/err/errinfo.cpp \
|
---|
2143 | common/path/RTPathChangeToUnixSlashes.cpp \
|
---|
2144 | common/math/bignum.cpp \
|
---|
2145 | common/misc/zero.asm \
|
---|
2146 | common/string/RTStrPrintHexBytes.cpp \
|
---|
2147 | common/string/RTUtf16Copy.cpp \
|
---|
2148 | common/string/RTUtf16CopyAscii.cpp \
|
---|
2149 | common/string/RTUtf16Cat.cpp \
|
---|
2150 | common/string/RTUtf16CatAscii.cpp \
|
---|
2151 | common/string/RTUtf16End.cpp \
|
---|
2152 | common/string/RTUtf16NLen.cpp \
|
---|
2153 | common/string/RTUtf16NLenEx.cpp \
|
---|
2154 | common/string/RTUtf16PrintHexBytes.cpp \
|
---|
2155 | common/string/strstrip.cpp \
|
---|
2156 | generic/memsafer-generic.cpp \
|
---|
2157 | \
|
---|
2158 | common/misc/thread.cpp \
|
---|
2159 | common/string/memcmp.asm \
|
---|
2160 | common/string/memchr.asm \
|
---|
2161 | common/string/memcpy.asm \
|
---|
2162 | common/string/memset.asm \
|
---|
2163 | common/string/memmove.asm \
|
---|
2164 | common/string/strlen.asm \
|
---|
2165 | common/string/strncmp.cpp \
|
---|
2166 | common/string/strpbrk.cpp \
|
---|
2167 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
2168 | generic/RTLogWriteStdOut-stub-generic.cpp \
|
---|
2169 | generic/RTTimerCreate-generic.cpp \
|
---|
2170 | generic/mppresent-generic.cpp \
|
---|
2171 | generic/RTMpGetCoreCount-generic.cpp \
|
---|
2172 | nt/RTErrConvertFromNtStatus.cpp \
|
---|
2173 | r0drv/generic/threadctxhooks-r0drv-generic.cpp \
|
---|
2174 | r0drv/alloc-ef-r0drv.cpp \
|
---|
2175 | r0drv/memobj-r0drv.cpp \
|
---|
2176 | r0drv/mpnotification-r0drv.c \
|
---|
2177 | r0drv/powernotification-r0drv.c \
|
---|
2178 | r0drv/nt/alloc-r0drv-nt.cpp \
|
---|
2179 | r0drv/nt/assert-r0drv-nt.cpp \
|
---|
2180 | r0drv/nt/initterm-r0drv-nt.cpp \
|
---|
2181 | r0drv/nt/memobj-r0drv-nt.cpp \
|
---|
2182 | r0drv/nt/memuserkernel-r0drv-nt.cpp \
|
---|
2183 | r0drv/nt/mp-r0drv-nt.cpp \
|
---|
2184 | r0drv/nt/mpnotification-r0drv-nt.cpp \
|
---|
2185 | r0drv/nt/process-r0drv-nt.cpp \
|
---|
2186 | r0drv/nt/RTLogWriteDebugger-r0drv-nt.cpp \
|
---|
2187 | r0drv/nt/semevent-r0drv-nt.cpp \
|
---|
2188 | r0drv/nt/semeventmulti-r0drv-nt.cpp \
|
---|
2189 | r0drv/nt/semfastmutex-r0drv-nt.cpp \
|
---|
2190 | r0drv/nt/semmutex-r0drv-nt.cpp \
|
---|
2191 | r0drv/nt/spinlock-r0drv-nt.cpp \
|
---|
2192 | r0drv/nt/thread-r0drv-nt.cpp \
|
---|
2193 | r0drv/nt/thread2-r0drv-nt.cpp \
|
---|
2194 | r0drv/nt/time-r0drv-nt.cpp \
|
---|
2195 | r0drv/nt/timer-r0drv-nt.cpp \
|
---|
2196 | r0drv/nt/toxic-chkstk-r0drv-nt.asm \
|
---|
2197 | r0drv/nt/RTTimerGetSystemGranularity-r0drv-nt.cpp
|
---|
2198 |
|
---|
2199 | RuntimeR0Drv_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES)
|
---|
2200 | RuntimeR0Drv_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES)
|
---|
2201 |
|
---|
2202 | RuntimeR0Drv_SOURCES.darwin = \
|
---|
2203 | common/misc/thread.cpp \
|
---|
2204 | common/string/memchr.asm \
|
---|
2205 | common/string/strpbrk.cpp \
|
---|
2206 | darwin/RTErrConvertFromDarwin.cpp \
|
---|
2207 | darwin/RTErrConvertFromDarwinIO.cpp \
|
---|
2208 | darwin/RTErrConvertFromDarwinKern.cpp \
|
---|
2209 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
2210 | generic/RTTimerCreate-generic.cpp \
|
---|
2211 | generic/RTMpGetCoreCount-generic.cpp \
|
---|
2212 | generic/RTMpOnPair-generic.cpp \
|
---|
2213 | generic/mppresent-generic.cpp \
|
---|
2214 | generic/timer-generic.cpp \
|
---|
2215 | r0drv/generic/mpnotification-r0drv-generic.cpp \
|
---|
2216 | r0drv/generic/threadctxhooks-r0drv-generic.cpp \
|
---|
2217 | r0drv/darwin/alloc-r0drv-darwin.cpp \
|
---|
2218 | r0drv/darwin/assert-r0drv-darwin.cpp \
|
---|
2219 | r0drv/darwin/initterm-r0drv-darwin.cpp \
|
---|
2220 | r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp \
|
---|
2221 | r0drv/darwin/memobj-r0drv-darwin.cpp \
|
---|
2222 | r0drv/darwin/mp-r0drv-darwin.cpp \
|
---|
2223 | r0drv/darwin/memuserkernel-r0drv-darwin.cpp \
|
---|
2224 | r0drv/darwin/process-r0drv-darwin.cpp \
|
---|
2225 | r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
|
---|
2226 | r0drv/darwin/RTLogWriteStdOut-r0drv-darwin.cpp \
|
---|
2227 | r0drv/darwin/semevent-r0drv-darwin.cpp \
|
---|
2228 | r0drv/darwin/semeventmulti-r0drv-darwin.cpp \
|
---|
2229 | r0drv/darwin/semfastmutex-r0drv-darwin.cpp \
|
---|
2230 | r0drv/darwin/semmutex-r0drv-darwin.cpp \
|
---|
2231 | r0drv/darwin/spinlock-r0drv-darwin.cpp \
|
---|
2232 | r0drv/darwin/thread-r0drv-darwin.cpp \
|
---|
2233 | r0drv/darwin/thread2-r0drv-darwin.cpp \
|
---|
2234 | r0drv/darwin/threadpreempt-r0drv-darwin.cpp \
|
---|
2235 | r0drv/darwin/time-r0drv-darwin.cpp \
|
---|
2236 | r0drv/alloc-ef-r0drv.cpp \
|
---|
2237 | r0drv/memobj-r0drv.cpp \
|
---|
2238 | r0drv/powernotification-r0drv.c
|
---|
2239 |
|
---|
2240 | RuntimeR0Drv_SOURCES.os2 = \
|
---|
2241 | common/string/memchr.asm \
|
---|
2242 | common/string/memcmp.asm \
|
---|
2243 | common/string/memcpy.asm \
|
---|
2244 | common/string/mempcpy.asm \
|
---|
2245 | common/string/memmove.asm \
|
---|
2246 | common/string/memset.asm \
|
---|
2247 | common/string/strchr.asm \
|
---|
2248 | common/string/strcmp.asm \
|
---|
2249 | common/string/strcpy.asm \
|
---|
2250 | common/string/strlen.asm \
|
---|
2251 | \
|
---|
2252 | common/string/strncmp.cpp \
|
---|
2253 | common/string/strpbrk.cpp \
|
---|
2254 | \
|
---|
2255 | common/misc/thread.cpp \
|
---|
2256 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
2257 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
2258 | generic/RTLogWriteStdOut-stub-generic.cpp \
|
---|
2259 | generic/RTMpCpuId-generic.cpp \
|
---|
2260 | generic/RTMpCpuIdFromSetIndex-generic.cpp \
|
---|
2261 | generic/RTMpCpuIdToSetIndex-generic.cpp \
|
---|
2262 | generic/RTMpIsCpuPossible-generic.cpp \
|
---|
2263 | generic/RTMpGetCount-generic.cpp \
|
---|
2264 | generic/RTMpGetMaxCpuId-generic.cpp \
|
---|
2265 | generic/RTMpGetOnlineCount-generic.cpp \
|
---|
2266 | generic/RTMpGetOnlineSet-generic.cpp \
|
---|
2267 | generic/RTMpGetSet-generic.cpp \
|
---|
2268 | generic/RTMpIsCpuOnline-generic.cpp \
|
---|
2269 | generic/RTTimerCreate-generic.cpp \
|
---|
2270 | generic/mppresent-generic.cpp \
|
---|
2271 | os2/RTErrConvertFromOS2.cpp \
|
---|
2272 | os2/rtSemWaitOs2ConvertTimeout.cpp \
|
---|
2273 | os2/sys0.asm \
|
---|
2274 | r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
|
---|
2275 | r0drv/generic/RTMpOn-r0drv-generic.cpp \
|
---|
2276 | r0drv/generic/mpnotification-r0drv-generic.cpp \
|
---|
2277 | r0drv/generic/threadctxhooks-r0drv-generic.cpp \
|
---|
2278 | r0drv/memobj-r0drv.cpp \
|
---|
2279 | r0drv/powernotification-r0drv.c \
|
---|
2280 | r0drv/os2/alloc-r0drv-os2.cpp \
|
---|
2281 | r0drv/os2/assert-r0drv-os2.cpp \
|
---|
2282 | r0drv/os2/assertA-r0drv-os2.asm \
|
---|
2283 | r0drv/os2/initterm-r0drv-os2.cpp \
|
---|
2284 | r0drv/os2/memobj-r0drv-os2.cpp \
|
---|
2285 | r0drv/os2/memuserkernel-r0drv-os2.cpp \
|
---|
2286 | r0drv/os2/os2imports.imp \
|
---|
2287 | r0drv/os2/process-r0drv-os2.cpp \
|
---|
2288 | r0drv/os2/RTR0AssertPanicSystem-r0drv-os2.asm \
|
---|
2289 | r0drv/os2/RTR0Os2DHQueryDOSVar.asm \
|
---|
2290 | r0drv/os2/RTR0Os2DHVMGlobalToProcess.asm \
|
---|
2291 | r0drv/os2/semevent-r0drv-os2.cpp \
|
---|
2292 | r0drv/os2/semeventmulti-r0drv-os2.cpp \
|
---|
2293 | r0drv/os2/semfastmutex-r0drv-os2.cpp \
|
---|
2294 | r0drv/os2/spinlock-r0drv-os2.cpp \
|
---|
2295 | r0drv/os2/thread-r0drv-os2.cpp \
|
---|
2296 | r0drv/os2/thread2-r0drv-os2.cpp \
|
---|
2297 | r0drv/os2/time-r0drv-os2.cpp \
|
---|
2298 | r0drv/os2/timer-r0drv-os2.cpp \
|
---|
2299 | r0drv/os2/timerA-r0drv-os2.asm
|
---|
2300 |
|
---|
2301 | RuntimeR0Drv_SOURCES.freebsd = \
|
---|
2302 | common/misc/thread.cpp \
|
---|
2303 | common/string/memchr.asm \
|
---|
2304 | common/string/memmove.asm \
|
---|
2305 | common/string/strpbrk.cpp \
|
---|
2306 | common/string/memcmp.asm \
|
---|
2307 | common/string/strchr.asm \
|
---|
2308 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
2309 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
2310 | generic/RTLogWriteStdOut-stub-generic.cpp \
|
---|
2311 | generic/RTMpOnPair-generic.cpp \
|
---|
2312 | generic/RTTimerCreate-generic.cpp \
|
---|
2313 | generic/mppresent-generic.cpp \
|
---|
2314 | r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
|
---|
2315 | r0drv/generic/mpnotification-r0drv-generic.cpp \
|
---|
2316 | r0drv/generic/threadctxhooks-r0drv-generic.cpp \
|
---|
2317 | r0drv/freebsd/alloc-r0drv-freebsd.c \
|
---|
2318 | r0drv/freebsd/assert-r0drv-freebsd.c \
|
---|
2319 | r0drv/freebsd/initterm-r0drv-freebsd.c \
|
---|
2320 | r0drv/freebsd/memobj-r0drv-freebsd.c \
|
---|
2321 | r0drv/freebsd/memuserkernel-r0drv-freebsd.c \
|
---|
2322 | r0drv/freebsd/process-r0drv-freebsd.c \
|
---|
2323 | r0drv/freebsd/semevent-r0drv-freebsd.c \
|
---|
2324 | r0drv/freebsd/semeventmulti-r0drv-freebsd.c \
|
---|
2325 | r0drv/freebsd/semfastmutex-r0drv-freebsd.c \
|
---|
2326 | r0drv/freebsd/semmutex-r0drv-freebsd.c \
|
---|
2327 | r0drv/freebsd/spinlock-r0drv-freebsd.c \
|
---|
2328 | r0drv/freebsd/thread-r0drv-freebsd.c \
|
---|
2329 | r0drv/freebsd/thread2-r0drv-freebsd.c \
|
---|
2330 | r0drv/freebsd/time-r0drv-freebsd.c \
|
---|
2331 | r0drv/freebsd/mp-r0drv-freebsd.c \
|
---|
2332 | generic/timer-generic.cpp \
|
---|
2333 | r0drv/alloc-ef-r0drv.cpp \
|
---|
2334 | r0drv/memobj-r0drv.cpp \
|
---|
2335 | r0drv/powernotification-r0drv.c
|
---|
2336 |
|
---|
2337 | RuntimeR0Drv_SOURCES.solaris = \
|
---|
2338 | common/misc/thread.cpp \
|
---|
2339 | common/string/memchr.asm \
|
---|
2340 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
2341 | generic/RTLogWriteStdOut-stub-generic.cpp \
|
---|
2342 | generic/RTMpGetCoreCount-generic.cpp \
|
---|
2343 | generic/RTTimerCreate-generic.cpp \
|
---|
2344 | generic/mppresent-generic.cpp \
|
---|
2345 | r0drv/memobj-r0drv.cpp \
|
---|
2346 | r0drv/mpnotification-r0drv.c \
|
---|
2347 | r0drv/powernotification-r0drv.c \
|
---|
2348 | r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \
|
---|
2349 | r0drv/solaris/RTMpPokeCpu-r0drv-solaris.c \
|
---|
2350 | r0drv/solaris/alloc-r0drv-solaris.c \
|
---|
2351 | r0drv/solaris/assert-r0drv-solaris.c \
|
---|
2352 | r0drv/solaris/dbgkrnlinfo-r0drv-solaris.c \
|
---|
2353 | r0drv/solaris/initterm-r0drv-solaris.c \
|
---|
2354 | r0drv/solaris/memuserkernel-r0drv-solaris.c \
|
---|
2355 | r0drv/solaris/mpnotification-r0drv-solaris.c \
|
---|
2356 | r0drv/solaris/memobj-r0drv-solaris.c \
|
---|
2357 | r0drv/solaris/mp-r0drv-solaris.c \
|
---|
2358 | r0drv/solaris/process-r0drv-solaris.c \
|
---|
2359 | r0drv/solaris/semevent-r0drv-solaris.c \
|
---|
2360 | r0drv/solaris/semeventmulti-r0drv-solaris.c \
|
---|
2361 | r0drv/solaris/semfastmutex-r0drv-solaris.c \
|
---|
2362 | r0drv/solaris/semmutex-r0drv-solaris.c \
|
---|
2363 | r0drv/solaris/spinlock-r0drv-solaris.c \
|
---|
2364 | r0drv/solaris/thread-r0drv-solaris.c \
|
---|
2365 | r0drv/solaris/thread2-r0drv-solaris.c \
|
---|
2366 | r0drv/solaris/threadctxhooks-r0drv-solaris.c \
|
---|
2367 | r0drv/solaris/time-r0drv-solaris.c \
|
---|
2368 | r0drv/solaris/timer-r0drv-solaris.c
|
---|
2369 |
|
---|
2370 | RuntimeR0Drv_SOURCES.haiku = \
|
---|
2371 | common/misc/thread.cpp \
|
---|
2372 | common/string/memchr.asm \
|
---|
2373 | common/string/memmove.asm \
|
---|
2374 | common/string/strpbrk.cpp \
|
---|
2375 | common/string/memcmp.asm \
|
---|
2376 | common/string/strchr.asm \
|
---|
2377 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
2378 | generic/RTMpOnPair-generic.cpp \
|
---|
2379 | generic/RTTimerCreate-generic.cpp \
|
---|
2380 | generic/mppresent-generic.cpp \
|
---|
2381 | r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
|
---|
2382 | r0drv/generic/mpnotification-r0drv-generic.cpp \
|
---|
2383 | r0drv/generic/threadctxhooks-r0drv-generic.cpp \
|
---|
2384 | r0drv/haiku/alloc-r0drv-haiku.c \
|
---|
2385 | r0drv/haiku/assert-r0drv-haiku.c \
|
---|
2386 | r0drv/haiku/initterm-r0drv-haiku.c \
|
---|
2387 | r0drv/haiku/memobj-r0drv-haiku.c \
|
---|
2388 | r0drv/haiku/mp-r0drv-haiku.c \
|
---|
2389 | r0drv/haiku/process-r0drv-haiku.c \
|
---|
2390 | r0drv/haiku/RTLogWriteDebugger-r0drv-haiku.c \
|
---|
2391 | r0drv/haiku/RTLogWriteStdOut-r0drv-haiku.c \
|
---|
2392 | r0drv/haiku/semevent-r0drv-haiku.c \
|
---|
2393 | r0drv/haiku/semeventmulti-r0drv-haiku.c \
|
---|
2394 | r0drv/haiku/semfastmutex-r0drv-haiku.c \
|
---|
2395 | r0drv/haiku/semmutex-r0drv-haiku.c \
|
---|
2396 | r0drv/haiku/spinlock-r0drv-haiku.c \
|
---|
2397 | r0drv/haiku/thread-r0drv-haiku.c \
|
---|
2398 | r0drv/haiku/thread2-r0drv-haiku.c \
|
---|
2399 | r0drv/haiku/time-r0drv-haiku.c \
|
---|
2400 | generic/timer-generic.cpp \
|
---|
2401 | r0drv/memobj-r0drv.cpp \
|
---|
2402 | r0drv/powernotification-r0drv.c
|
---|
2403 |
|
---|
2404 | ## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here.
|
---|
2405 |
|
---|
2406 | RuntimeR0Drv_ORDERDEPS.freebsd = \
|
---|
2407 | $(PATH_STAGE)/gen-sys-hdrs/bus_if.h \
|
---|
2408 | $(PATH_STAGE)/gen-sys-hdrs/device_if.h
|
---|
2409 |
|
---|
2410 |
|
---|
2411 | #
|
---|
2412 | # RuntimeGuestR0 - Guest driver runtime.
|
---|
2413 | # This is almost the same as the RuntimeR0Drv, the main difference
|
---|
2414 | # is in the backdoor logging and the lack of sup.h (which should be
|
---|
2415 | # made irrelevant even for RuntimeR0Drv).
|
---|
2416 | #
|
---|
2417 | RuntimeGuestR0_TEMPLATE := VBOXGUESTR0LIB
|
---|
2418 | RuntimeGuestR0_EXTENDS = RuntimeR0Drv
|
---|
2419 | RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES))
|
---|
2420 | RuntimeGuestR0_SOURCES += \
|
---|
2421 | VBox/logbackdoor.cpp
|
---|
2422 | RuntimeGuestR0_SOURCES.win := \
|
---|
2423 | $(filter-out common/checksum/md% common/checksum/sha%, $(RuntimeR0Drv_SOURCES.win))
|
---|
2424 |
|
---|
2425 |
|
---|
2426 | #
|
---|
2427 | # RuntimeGuestR0NT4 - Win32 NT4 guest driver runtime.
|
---|
2428 | #
|
---|
2429 | RuntimeGuestR0NT4_EXTENDS = RuntimeGuestR0
|
---|
2430 | RuntimeGuestR0NT4_EXTENDS_BY = appending
|
---|
2431 | RuntimeGuestR0NT4_DEFS = IPRT_TARGET_NT4
|
---|
2432 |
|
---|
2433 |
|
---|
2434 | ifdef VBOX_WITH_RAW_MODE
|
---|
2435 | #
|
---|
2436 | # RuntimeRC - Raw-mode context library.
|
---|
2437 | #
|
---|
2438 | RuntimeRC_TEMPLATE = VBoxRc
|
---|
2439 | RuntimeRC_DEFS = IN_RT_RC RT_WITH_VBOX IN_SUP_RC IN_VMM_RC
|
---|
2440 | RuntimeRC_INCS = include
|
---|
2441 | RuntimeRC_SOURCES := \
|
---|
2442 | common/asm/ASMMemFirstMismatchingU8.asm \
|
---|
2443 | common/asm/ASMGetXcr0.asm \
|
---|
2444 | common/asm/ASMSetXcr0.asm \
|
---|
2445 | common/asm/ASMXSave.asm \
|
---|
2446 | common/asm/ASMXRstor.asm \
|
---|
2447 | common/checksum/alt-md5.cpp \
|
---|
2448 | common/checksum/crc32.cpp \
|
---|
2449 | common/checksum/crc64.cpp \
|
---|
2450 | common/log/log.cpp \
|
---|
2451 | common/log/logellipsis.cpp \
|
---|
2452 | common/log/logrel.cpp \
|
---|
2453 | common/log/logrelellipsis.cpp \
|
---|
2454 | common/log/logcom.cpp \
|
---|
2455 | common/log/logformat.cpp \
|
---|
2456 | common/log/tracebuf.cpp \
|
---|
2457 | common/log/tracedefault.cpp \
|
---|
2458 | common/misc/RTAssertMsg1Weak.cpp \
|
---|
2459 | common/misc/RTAssertMsg2.cpp \
|
---|
2460 | common/misc/RTAssertMsg2Add.cpp \
|
---|
2461 | common/misc/RTAssertMsg2AddWeak.cpp \
|
---|
2462 | common/misc/RTAssertMsg2AddWeakV.cpp \
|
---|
2463 | common/misc/RTAssertMsg2Weak.cpp \
|
---|
2464 | common/misc/RTAssertMsg2WeakV.cpp \
|
---|
2465 | common/misc/assert.cpp \
|
---|
2466 | common/misc/buildconfig.cpp \
|
---|
2467 | common/misc/sanity-c.c \
|
---|
2468 | common/misc/sanity-cpp.cpp \
|
---|
2469 | common/path/RTPathFilename.cpp \
|
---|
2470 | common/string/strformat.cpp \
|
---|
2471 | common/string/strformatnum.cpp \
|
---|
2472 | common/string/strformatrt.cpp \
|
---|
2473 | common/string/strformattype.cpp \
|
---|
2474 | common/string/strncmp.cpp \
|
---|
2475 | common/string/strpbrk.cpp \
|
---|
2476 | common/string/strprintf.cpp \
|
---|
2477 | common/string/RTStrCopy.cpp \
|
---|
2478 | common/string/RTStrCopyEx.cpp \
|
---|
2479 | common/table/avllu32.cpp \
|
---|
2480 | common/table/avlou32.cpp \
|
---|
2481 | common/table/avlogcphys.cpp \
|
---|
2482 | common/table/avlogcptr.cpp \
|
---|
2483 | common/table/avlohcphys.cpp \
|
---|
2484 | common/table/avloioport.cpp \
|
---|
2485 | common/table/avlrogcphys.cpp \
|
---|
2486 | common/table/avlrogcptr.cpp \
|
---|
2487 | common/table/avlroioport.cpp \
|
---|
2488 | common/table/avlroogcptr.cpp \
|
---|
2489 | common/table/avlu32.cpp \
|
---|
2490 | common/time/timeprog.cpp \
|
---|
2491 | common/time/timesup.cpp \
|
---|
2492 | gc/initterm-gc.cpp \
|
---|
2493 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
2494 | generic/errvars-generic.cpp \
|
---|
2495 | \
|
---|
2496 | $(RuntimeNoCrt_SOURCES)
|
---|
2497 |
|
---|
2498 | #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
|
---|
2499 | # RuntimeRC_SOURCES += common/time/timesupA.asm
|
---|
2500 | #else
|
---|
2501 | RuntimeRC_SOURCES += common/time/timesupref.cpp
|
---|
2502 | #endif
|
---|
2503 |
|
---|
2504 | RuntimeRC_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
|
---|
2505 |
|
---|
2506 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
2507 | RuntimeRC_SOURCES += os2/sys0.asm
|
---|
2508 | endif
|
---|
2509 |
|
---|
2510 | if1of ($(KBUILD_TARGET), darwin solaris freebsd)
|
---|
2511 | RuntimeRC_SOURCES += \
|
---|
2512 | common/math/gcc/adddi3.c \
|
---|
2513 | common/math/gcc/anddi3.c \
|
---|
2514 | common/math/gcc/ashldi3.c \
|
---|
2515 | common/math/gcc/ashrdi3.c \
|
---|
2516 | common/math/gcc/cmpdi2.c \
|
---|
2517 | common/math/gcc/divdi3.c \
|
---|
2518 | common/math/gcc/iordi3.c \
|
---|
2519 | common/math/gcc/lshldi3.c \
|
---|
2520 | common/math/gcc/lshrdi3.c \
|
---|
2521 | common/math/gcc/moddi3.c \
|
---|
2522 | common/math/gcc/muldi3.c \
|
---|
2523 | common/math/gcc/negdi2.c \
|
---|
2524 | common/math/gcc/notdi2.c \
|
---|
2525 | common/math/gcc/qdivrem.c \
|
---|
2526 | common/math/gcc/subdi3.c \
|
---|
2527 | common/math/gcc/ucmpdi2.c \
|
---|
2528 | common/math/gcc/udivdi3.c \
|
---|
2529 | common/math/gcc/umoddi3.c \
|
---|
2530 | common/math/gcc/xordi3.c
|
---|
2531 | endif
|
---|
2532 |
|
---|
2533 |
|
---|
2534 | #
|
---|
2535 | # RuntimeRCStub - Raw-mode context startup stub for Windows.
|
---|
2536 | #
|
---|
2537 | RuntimeRCStub_TEMPLATE = VBoxRc
|
---|
2538 | RuntimeRCStub_SOURCES.win = \
|
---|
2539 | nt/NtProcessStartup-stub.cpp
|
---|
2540 |
|
---|
2541 |
|
---|
2542 | endif # VBOX_WITH_RAW_MODE
|
---|
2543 |
|
---|
2544 |
|
---|
2545 | #
|
---|
2546 | # Static library for new & delete for the electric fence.
|
---|
2547 | #
|
---|
2548 | RuntimeEFCPP_TEMPLATE := $(VBoxRT_TEMPLATE)
|
---|
2549 | RuntimeEFCPP_SDKS := $(RuntimeR3_SDKS)
|
---|
2550 | RuntimeEFCPP_SDKS.$(KBUILD_TARGET) := $(RuntimeR3_SDKS.$(KBUILD_TARGET))
|
---|
2551 | RuntimeEFCPP_DEFS := $(RuntimeR3_DEFS)
|
---|
2552 | RuntimeEFCPP_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
|
---|
2553 | RuntimeEFCPP_INCS := $(RuntimeR3_INCS)
|
---|
2554 | RuntimeEFCPP_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
|
---|
2555 | RuntimeEFCPP_SOURCES := r3/alloc-ef-cpp.cpp
|
---|
2556 |
|
---|
2557 |
|
---|
2558 |
|
---|
2559 | #
|
---|
2560 | # The NTDLL mini import library.
|
---|
2561 | #
|
---|
2562 | # Note! The reason for doing this is to avoid importing CRT symbols from the
|
---|
2563 | # NTDLL. We do not wish to do this because:
|
---|
2564 | # - Our compiler is usually a different one and we should use the
|
---|
2565 | # matching CRT,
|
---|
2566 | # - Older versions of NTDLL may not sport all the exports our w2k3 or
|
---|
2567 | # later WINDDK ntdll.lib have and thus we may easily end up with
|
---|
2568 | # images that does not load on older windows versions.
|
---|
2569 | #
|
---|
2570 | if1of (win,$(KBUILD_TARGET) $(KBUILD_HOST))
|
---|
2571 | RuntimeR3NtDll-amd64_TEMPLATE = VBoxR3Dll
|
---|
2572 | RuntimeR3NtDll-amd64_BLD_TRG_ARCH = amd64
|
---|
2573 | RuntimeR3NtDll-amd64_ARFLAGS = /NODEFAULTLIB /MACHINE:amd64
|
---|
2574 | RuntimeR3NtDll-amd64_SOURCES = \
|
---|
2575 | r3/win/ntdll-mini-implib.def
|
---|
2576 |
|
---|
2577 | RuntimeR3NtDll-x86_TEMPLATE = VBoxR3Dll
|
---|
2578 | RuntimeR3NtDll-x86_BLD_TRG_ARCH = x86
|
---|
2579 | RuntimeR3NtDll-x86_ARFLAGS = /NODEFAULTLIB /MACHINE:x86
|
---|
2580 | RuntimeR3NtDll-x86_SOURCES = \
|
---|
2581 | r3/win/ntdll-mini-implib.def \
|
---|
2582 | $(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm
|
---|
2583 | RuntimeR3NtDll-x86_CLEAN = \
|
---|
2584 | $(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm
|
---|
2585 |
|
---|
2586 | $$(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm: $(PATH_SUB_CURRENT)/r3/win/ntdll-mini-implib.def | $$(dir $$@)
|
---|
2587 | $(call MSG_GENERATE,,$@,$<)
|
---|
2588 | $(QUIET)$(APPEND) -nt "$@" \
|
---|
2589 | ';Autogenerated, do not edit' \
|
---|
2590 | '%include "iprt/asmdefs.mac"' \
|
---|
2591 | 'BEGINCODE' \
|
---|
2592 | '%macro IMPLIB_EXPORT 1' \
|
---|
2593 | 'global %1:function' \
|
---|
2594 | '%1: nop' \
|
---|
2595 | '%endm' \
|
---|
2596 | ''
|
---|
2597 | $(QUIET)$(SED) -e '1,/EXPORTS/d' \
|
---|
2598 | -e 's/^.*;;=[[:space:]]*\([^[:space:]]*\)[[:space:]]*$$/IMPLIB_EXPORT \1/' \
|
---|
2599 | $< --append $@
|
---|
2600 | endif
|
---|
2601 |
|
---|
2602 | #
|
---|
2603 | # Bag of tricks required for making VCC100 output binaries work on NT4, W2K
|
---|
2604 | # early XP and early W2K3.
|
---|
2605 | #
|
---|
2606 | RuntimeR3VccTricks_TEMPLATE = VBoxR3Dll
|
---|
2607 | RuntimeR3VccTricks_SOURCES = \
|
---|
2608 | r3/win/vcc100-kernel32-fakes.cpp \
|
---|
2609 | r3/win/vcc100-kernel32-fakesA.asm
|
---|
2610 |
|
---|
2611 | if defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" # Ugly hacks... :-)
|
---|
2612 | LIBRARIES += RuntimeR3VccTricks2
|
---|
2613 | RuntimeR3VccTricks2_TEMPLATE = VBoxR3Dll
|
---|
2614 | RuntimeR3VccTricks2_SOURCES = $(RuntimeR3VccTricks_SOURCES)
|
---|
2615 | RuntimeR3VccTricks2_SOURCES += $(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib
|
---|
2616 | RuntimeR3VccTricks2_CLEAN = $(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib
|
---|
2617 | RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED =
|
---|
2618 |
|
---|
2619 | $$(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib: \
|
---|
2620 | $$(PATH_TOOL_$$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \
|
---|
2621 | $$(PATH_TOOL_$$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
|
---|
2622 | $$(LIB_RUNTIME) \
|
---|
2623 | $(MAKEFILE) | $$(dir $$@)
|
---|
2624 | $(RM) -f -- "$@"
|
---|
2625 | # $(REDIRECT) -C $(dir $@) -- $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib \
|
---|
2626 | # $(PATH_TOOL_$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
|
---|
2627 | # $(foreach file, $(RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED), *$(file))
|
---|
2628 | $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib -o=$@.tmp.lib $< \
|
---|
2629 | -MSVCR100.dll \
|
---|
2630 | $(addprefix $(RuntimeR3VccTricks2_0_OUTDIR)/, $(RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED)) \
|
---|
2631 | -chandler4gs.obj
|
---|
2632 | $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib -o=$@ \
|
---|
2633 | $(LIB_RUNTIME) \
|
---|
2634 | +$@.tmp.lib
|
---|
2635 | $(RM) -f -- $@.tmp.lib $(addprefix $(RuntimeR3VccTricks2_0_OUTDIR)/, $(RuntimeR3VccTricks_VBOX_LIBCMT_NEEDED))
|
---|
2636 | endif
|
---|
2637 |
|
---|
2638 |
|
---|
2639 | #
|
---|
2640 | # errmsg.cpp depends on a generated header.
|
---|
2641 | #
|
---|
2642 | common/err/errmsg.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h
|
---|
2643 | common/err/errmsg.cpp_INCS = $(IPRT_OUT_DIR)
|
---|
2644 |
|
---|
2645 | win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgcomdata.h
|
---|
2646 | win/errmsgwin.cpp_INCS = $(IPRT_OUT_DIR)
|
---|
2647 |
|
---|
2648 | # Our COM errors only for R3 libraries on the host
|
---|
2649 | define def_errmsgwin_deps
|
---|
2650 | $(lib)_win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
|
---|
2651 | $(lib)_common/err/errmsgxpcom.cpp_INCS = $(IPRT_OUT_DIR)
|
---|
2652 | $(lib)_common/err/errmsgxpcom.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
|
---|
2653 | endef
|
---|
2654 | $(foreach lib,RuntimeR3 RuntimeBldProg VBoxRT VBoxRT-x86,$(eval $(def_errmsgwin_deps)))
|
---|
2655 |
|
---|
2656 |
|
---|
2657 | #
|
---|
2658 | # Generate the status code data.
|
---|
2659 | #
|
---|
2660 | $(IPRT_OUT_DIR)/errmsgdata.h: \
|
---|
2661 | $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsg.sed \
|
---|
2662 | $(PATH_ROOT)/include/iprt/err.h \
|
---|
2663 | $(PATH_ROOT)/include/VBox/err.h \
|
---|
2664 | | $$(dir $$@)
|
---|
2665 | $(call MSG_GENERATE,,$@,$(filter %.h,$^))
|
---|
2666 | $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
|
---|
2667 |
|
---|
2668 | ## @todo r=bird: rename this to indicate that it's not only COM errors, but all win32/64 errors.
|
---|
2669 | $(IPRT_OUT_DIR)/errmsgcomdata.h: \
|
---|
2670 | $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsgcom.sed \
|
---|
2671 | $$(PATH_SDK_$(VBOX_WINPSDK)_INC)/WinError.h \
|
---|
2672 | | $$(dir $$@)
|
---|
2673 | $(call MSG_GENERATE,,$@,$(filter %.h,$^))
|
---|
2674 | $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
|
---|
2675 |
|
---|
2676 | $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts +| $(IPRT_OUT_DIR)/errmsgvboxcomdata.h: \
|
---|
2677 | $(VBOX_PATH_RUNTIME_SRC)/VBox/errmsgvboxcom.xsl \
|
---|
2678 | $(VBOX_XIDL_FILE_SRC) \
|
---|
2679 | | $$(dir $$@)
|
---|
2680 | $(call MSG_GENERATE,,$@,$(filter %.xidl,$^))
|
---|
2681 | $(QUIET)$(VBOX_XSLTPROC) -o $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts $< $(filter %.xidl,$^)
|
---|
2682 | $(QUIET)$(CP) --changed -fv $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
|
---|
2683 |
|
---|
2684 |
|
---|
2685 | if "$(KBUILD_TARGET)" == "freebsd"
|
---|
2686 | #
|
---|
2687 | # FreeBSDGeneratedKernelHeaders - Generate some kernel interface headers.
|
---|
2688 | #
|
---|
2689 | # These are used by:
|
---|
2690 | # - The RTMp* API in IPRT.
|
---|
2691 | # - VBoxGuest
|
---|
2692 | #
|
---|
2693 | # Note! We cannot give a output path to the awk program, it will always
|
---|
2694 | # generate the header next to the source. So, we'll have to temporarily copy
|
---|
2695 | # the source file to the destination directory to work.
|
---|
2696 | #
|
---|
2697 | VBOX_AWK := /usr/bin/awk
|
---|
2698 | INSTALLS += FreeBSDGeneratedKernelHeaders
|
---|
2699 | FreeBSDGeneratedKernelHeaders_INST = gen-sys-hdrs/
|
---|
2700 | FreeBSDGeneratedKernelHeaders_SOURCES = \
|
---|
2701 | $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h \
|
---|
2702 | $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h \
|
---|
2703 | $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h
|
---|
2704 | FreeBSDGeneratedKernelHeaders_CLEAN = $(FreeBSDGeneratedKernelHeaders_SOURCES)
|
---|
2705 |
|
---|
2706 | $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h: $(VBOX_FREEBSD_SRC)/kern/bus_if.m | $$(dir $$@)
|
---|
2707 | $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
|
---|
2708 | $(QUIET)$(CP) -f $< $(@D)/bus_if.m
|
---|
2709 | $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/bus_if.m -h -p
|
---|
2710 | $(QUIET)$(RM) $(@D)/bus_if.m
|
---|
2711 |
|
---|
2712 | $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h: $(VBOX_FREEBSD_SRC)/kern/device_if.m | $$(dir $$@)
|
---|
2713 | $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
|
---|
2714 | $(QUIET)$(CP) -f $< $(@D)/device_if.m
|
---|
2715 | $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/device_if.m -h -p
|
---|
2716 | $(QUIET)$(RM) $(@D)/device_if.m
|
---|
2717 |
|
---|
2718 | $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h: $(VBOX_FREEBSD_SRC)/dev/pci/pci_if.m | $$(dir $$@)
|
---|
2719 | $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
|
---|
2720 | $(QUIET)$(CP) -f $< $(@D)/pci_if.m
|
---|
2721 | $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/pci_if.m -h -p
|
---|
2722 | $(QUIET)$(RM) $(@D)/pci_if.m
|
---|
2723 | endif # FreeBSD
|
---|
2724 |
|
---|
2725 |
|
---|
2726 | #
|
---|
2727 | # Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
|
---|
2728 | #
|
---|
2729 | ldrELFRelocatable.cpp.o: ldrELF.o
|
---|
2730 | ldrELFRelocatable.cpp.obj: ldrELF.obj
|
---|
2731 |
|
---|
2732 |
|
---|
2733 | #
|
---|
2734 | # Doxygen documentation.
|
---|
2735 | #
|
---|
2736 | IPRT_DOXYFILE_INPUT_DIRS = \
|
---|
2737 | $(PATH_ROOT)/include/iprt \
|
---|
2738 | $(PATH_ROOT)/include/iprt/cpp \
|
---|
2739 | $(PATH_ROOT)/include/iprt/linux \
|
---|
2740 | $(PATH_ROOT)/include/iprt/nocrt \
|
---|
2741 | $(PATH_ROOT)/include/iprt/nocrt/x86 \
|
---|
2742 | $(PATH_ROOT)/include/iprt/nocrt/amd64 \
|
---|
2743 | $(PATH_ROOT)/include/iprt/nocrt/compiler \
|
---|
2744 | $(VBOX_PATH_RUNTIME_SRC)/include/internal \
|
---|
2745 | $(VBOX_PATH_RUNTIME_SRC)/common/alloc \
|
---|
2746 | $(VBOX_PATH_RUNTIME_SRC)/common/asm \
|
---|
2747 | $(VBOX_PATH_RUNTIME_SRC)/common/checksum \
|
---|
2748 | $(VBOX_PATH_RUNTIME_SRC)/common/dbg \
|
---|
2749 | $(VBOX_PATH_RUNTIME_SRC)/common/err \
|
---|
2750 | $(VBOX_PATH_RUNTIME_SRC)/common/ldr \
|
---|
2751 | $(VBOX_PATH_RUNTIME_SRC)/common/log \
|
---|
2752 | $(VBOX_PATH_RUNTIME_SRC)/common/math \
|
---|
2753 | $(VBOX_PATH_RUNTIME_SRC)/common/math/amd64 \
|
---|
2754 | $(VBOX_PATH_RUNTIME_SRC)/common/math/gcc \
|
---|
2755 | $(VBOX_PATH_RUNTIME_SRC)/common/math/x86 \
|
---|
2756 | $(VBOX_PATH_RUNTIME_SRC)/common/misc \
|
---|
2757 | $(VBOX_PATH_RUNTIME_SRC)/common/path \
|
---|
2758 | $(VBOX_PATH_RUNTIME_SRC)/common/rand \
|
---|
2759 | $(VBOX_PATH_RUNTIME_SRC)/common/string \
|
---|
2760 | $(VBOX_PATH_RUNTIME_SRC)/common/table \
|
---|
2761 | $(VBOX_PATH_RUNTIME_SRC)/common/time \
|
---|
2762 | $(VBOX_PATH_RUNTIME_SRC)/VBox \
|
---|
2763 | $(foreach dir, $(VBOX_PATH_RUNTIME_SRC) $(VBOX_PATH_RUNTIME_SRC)/r3 $(VBOX_PATH_RUNTIME_SRC)/r0drv,\
|
---|
2764 | $(dir) \
|
---|
2765 | $(dir)/darwin \
|
---|
2766 | $(dir)/haiku \
|
---|
2767 | $(dir)/linux \
|
---|
2768 | $(dir)/nt \
|
---|
2769 | $(dir)/os2 \
|
---|
2770 | $(dir)/solaris \
|
---|
2771 | $(dir)/win \
|
---|
2772 | $(dir)/win32 \
|
---|
2773 | $(dir)/win64 \
|
---|
2774 | $(dir)/generic \
|
---|
2775 | )
|
---|
2776 |
|
---|
2777 | # These must come first in order to make things look nice.
|
---|
2778 | IPRT_DOXYFILE_INPUT_FIRST =\
|
---|
2779 | $(PATH_ROOT)/include/iprt/cdefs.h \
|
---|
2780 | $(PATH_ROOT)/include/iprt/types.h \
|
---|
2781 | $(PATH_ROOT)/include/iprt/runtime.h \
|
---|
2782 | $(PATH_ROOT)/include/iprt/param.h \
|
---|
2783 | $(PATH_ROOT)/include/iprt/assert.h \
|
---|
2784 | $(PATH_ROOT)/include/iprt/asm.h \
|
---|
2785 |
|
---|
2786 | IPRT_DOXYFILE_INPUT := \
|
---|
2787 | $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(IPRT_DOXYFILE_INPUT_DIRS)))) ) \
|
---|
2788 | $(foreach dir, $(IPRT_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
|
---|
2789 | IPRT_DOXYFILE_INPUT := \
|
---|
2790 | $(IPRT_DOXYFILE_INPUT_FIRST) \
|
---|
2791 | $(filter-out $(IPRT_DOXYFILE_INPUT_FIRST), $(IPRT_DOXYFILE_INPUT))
|
---|
2792 |
|
---|
2793 |
|
---|
2794 | IPRT_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/iprt
|
---|
2795 | BLDDIRS += $(IPRT_DOXYFILE_OUTPUT)
|
---|
2796 |
|
---|
2797 | includedep $(IPRT_OUT_DIR)/Doxyfile.iprt.dep
|
---|
2798 |
|
---|
2799 | # Generate the Doxyfile
|
---|
2800 | $(IPRT_OUT_DIR)/Doxyfile.iprt: \
|
---|
2801 | $(VBOX_PATH_RUNTIME_SRC)/Doxyfile \
|
---|
2802 | $(VBOX_PATH_RUNTIME_SRC)/Makefile.kmk \
|
---|
2803 | $(comp-vars IPRT_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
|
---|
2804 | $(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
|
---|
2805 | | $$(dir $$@)
|
---|
2806 | $(QUIET)$(RM) -f $@ $@.tmp $@.dep
|
---|
2807 | $(QUIET)$(CP) -f $(VBOX_PATH_RUNTIME_SRC)/Doxyfile $@.tmp
|
---|
2808 | $(QUIET)$(APPEND) $@.tmp
|
---|
2809 | $(QUIET)$(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(IPRT_DOXYFILE_OUTPUT)"
|
---|
2810 | $(QUIET)$(APPEND) $@.tmp "WARN_LOGFILE = $(IPRT_DOXYFILE_OUTPUT)/errors"
|
---|
2811 | $(QUIET)$(APPEND) $@.tmp 'INCLUDE_PATH = ' \
|
---|
2812 | '$(PATH_ROOT)/include' \
|
---|
2813 | '$(VBOX_PATH_RUNTIME_SRC)/include' \
|
---|
2814 | '$(VBOX_PATH_RUNTIME_SRC)/' \
|
---|
2815 | '$(VBOX_PATH_RUNTIME_SRC)/common/table'
|
---|
2816 | $(QUIET)$(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
|
---|
2817 | $(QUIET)$(APPEND) $@.tmp "PREDEFINED += $(ARCH_BITS_DEFS)"
|
---|
2818 | $(QUIET)$(APPEND) $@.tmp 'EXCLUDE = '\
|
---|
2819 | '$(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-flags.cpp' \
|
---|
2820 | '$(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-lower.cpp' \
|
---|
2821 | '$(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-upper.cpp' \
|
---|
2822 | '$(VBOX_PATH_RUNTIME_SRC)/common/ldr/ldrkStuff.cpp'
|
---|
2823 | $(QUIET)$(APPEND) $@.tmp
|
---|
2824 | $(QUIET)$(APPEND) $@.tmp 'INPUT = $(foreach x,$(IPRT_DOXYFILE_INPUT),\$(NLTAB)$(x))'
|
---|
2825 | $(QUIET)$(APPEND) $@.tmp
|
---|
2826 | $(QUIET)$(MV) -f $@.tmp $@
|
---|
2827 | $(QUIET)$(APPEND) $@.dep "DOXYGEN_OUTPUT_PREV = $(IPRT_DOXYFILE_OUTPUT)"
|
---|
2828 | $(QUIET)$(APPEND) $@.dep "DOXYGEN_INPUT_PREV = $(IPRT_DOXYFILE_INPUT)"
|
---|
2829 |
|
---|
2830 | # Do the actual job.
|
---|
2831 | $(IPRT_OUT_DIR)/docs.iprt: $(IPRT_OUT_DIR)/Doxyfile.iprt $$(IPRT_DOXYFILE_INPUT) | $(IPRT_DOXYFILE_OUTPUT)/
|
---|
2832 | $(QUIET)$(RM) -f $(wildcard $(IPRT_DOXYFILE_OUTPUT)/html/*) $(IPRT_OUT_DIR)/docs.iprt
|
---|
2833 | doxygen $(DOXYGEN_OPTS) $(IPRT_OUT_DIR)/Doxyfile.iprt
|
---|
2834 | $(SED) -e '/warning. Unexpected tag .dd. found/d' \
|
---|
2835 | -e '/warning. Unsupported xml.html tag .globalScope. found/d' \
|
---|
2836 | --output $(IPRT_DOXYFILE_OUTPUT)/errors2 \
|
---|
2837 | $(IPRT_DOXYFILE_OUTPUT)/errors
|
---|
2838 | $(CAT) $(IPRT_DOXYFILE_OUTPUT)/errors2
|
---|
2839 | $(SED) -e "/[^ ]/q 1" $(IPRT_DOXYFILE_OUTPUT)/errors2
|
---|
2840 | $(APPEND) $(IPRT_OUT_DIR)/docs.iprt
|
---|
2841 |
|
---|
2842 | # aliases
|
---|
2843 | docs.iprt: $(IPRT_OUT_DIR)/docs.iprt
|
---|
2844 | if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
|
---|
2845 | docs: $(IPRT_OUT_DIR)/docs.iprt
|
---|
2846 | endif
|
---|
2847 |
|
---|
2848 | test-doxygen::
|
---|
2849 | @echo test-$(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE)
|
---|
2850 | @echo $(IPRT_DOXYFILE_OUTPUT)
|
---|
2851 | @echo $(DOXYGEN_OUTPUT_PREV)
|
---|
2852 | @echo $(IPRT_DOXYFILE_INPUT)
|
---|
2853 |
|
---|
2854 |
|
---|
2855 | #
|
---|
2856 | # Test mangling.
|
---|
2857 | #
|
---|
2858 | if1of ($(LIBRARIES),RuntimeR3 RuntimeR0 RuntimeR0Drv RuntimeRC)
|
---|
2859 | test-mangling:: $(IPRT_OUT_DIR)/mangling.run
|
---|
2860 | OTHERS += $(IPRT_OUT_DIR)/mangling.run
|
---|
2861 | CLEANS += $(IPRT_OUT_DIR)/mangling.run
|
---|
2862 | $(IPRT_OUT_DIR)/mangling.run: \
|
---|
2863 | $$(RuntimeR3_1_TARGET) \
|
---|
2864 | $$(RuntimeR0_1_TARGET) \
|
---|
2865 | $$(RuntimeR0Drv_1_TARGET) \
|
---|
2866 | $$(RuntimeRC_1_TARGET)
|
---|
2867 | if1of ($(KBUILD_TARGET), win os2)
|
---|
2868 | $(call MSG_L1,IPRT: skipped mangling test.)
|
---|
2869 | else
|
---|
2870 | # Generate a SED script from mangling.h that checks for known symbols.
|
---|
2871 | $(QUIET)$(SED) \
|
---|
2872 | -e '/^# *define.*RT_MANGLER/!d' \
|
---|
2873 | -e 's/^.*RT_MANGLER(\([^)][^)]*\)).*$(DOLLAR)/\/^\1$(DOLLAR)\/b ok/' \
|
---|
2874 | $(PATH_ROOT)/include/iprt/mangling.h \
|
---|
2875 | --output "$@"
|
---|
2876 | $(QUIET)$(APPEND) -n '$@' \
|
---|
2877 | ':bad' \
|
---|
2878 | 's/^\(.*\)$(DOLLAR)/error: Missing # define \1 /' \
|
---|
2879 | ':bad-pad' \
|
---|
2880 | '/^.\{0,70\}$(DOLLAR)/ { s/$(DOLLAR)/ /; bbad-pad; }' \
|
---|
2881 | 's/define \([^ ]*\) \([ ]*\)$(DOLLAR)/define \1 \2RT_MANGLER(\1)/' \
|
---|
2882 | 'p' \
|
---|
2883 | $(if-expr !defined(IPRT_IGNORE_TEST_MANGLING),'q 1') \
|
---|
2884 | '' \
|
---|
2885 | ':ok' \
|
---|
2886 | 'd'
|
---|
2887 | # Find the best way to generate a symbol list and subject it to mangling.h.
|
---|
2888 | if $(intersects $(KBUILD_TARGET), linux) && "$(VBOX_GCC_fvisibility-hidden)"
|
---|
2889 | $(call MSG_L1,IPRT: Testing mangling and visiblity for newer gcc...)
|
---|
2890 | $(QUIET)readelf -Ws $^ \
|
---|
2891 | | $(SED) \
|
---|
2892 | -e 's/[[:space:]]\+/ /g' \
|
---|
2893 | -e '/^ *[[:digit:]]\+:/!d' \
|
---|
2894 | -e 's/^ \+[[:digit:]]\+: \+[[:xdigit:]]\+ \+[[:digit:]]\+ \+//' \
|
---|
2895 | -e '/^SECTION/d' \
|
---|
2896 | -e '/^FILE/d' \
|
---|
2897 | -e 's/^[[:alpha:]]\+ \+//' \
|
---|
2898 | -e '/LOCAL/d' \
|
---|
2899 | -e 's/^[[:alpha:]]\+ \+//' \
|
---|
2900 | -e '/^HIDDEN [[:xdigit:]]\+ RT/bkeep-hidden' \
|
---|
2901 | -e '/^HIDDEN [[:xdigit:]]\+ g_[a-z0-9]*RT/bkeep-hidden' \
|
---|
2902 | -e '/^HIDDEN/d' \
|
---|
2903 | -e ':keep-hidden' \
|
---|
2904 | -e 's/^[[:alpha:]]\+ \+//' \
|
---|
2905 | -e '/^UND/d' \
|
---|
2906 | -e 's/^[[:digit:]]\+ \+//' \
|
---|
2907 | \
|
---|
2908 | -e '/^nocrt_/d' \
|
---|
2909 | -e '/^memchr/d' \
|
---|
2910 | -e '/^memcmp/d' \
|
---|
2911 | -e '/^memcpy/d' \
|
---|
2912 | -e '/^mempcpy/d' \
|
---|
2913 | -e '/^memmove/d' \
|
---|
2914 | -e '/^memset/d' \
|
---|
2915 | -e '/^strchr/d' \
|
---|
2916 | -e '/^strpbrk/d' \
|
---|
2917 | -e '/^_Z7strpbrk/d' \
|
---|
2918 | -e '/^strcmp/d' \
|
---|
2919 | -e '/^strcpy/d' \
|
---|
2920 | -e '/^strncpy/d' \
|
---|
2921 | -e '/^strlen/d' \
|
---|
2922 | -e '/^_Z[[:alpha:]]*[[:digit:]]\+RTC/d' \
|
---|
2923 | -e '/^_Z[[:alpha:]]*[[:digit:]]\+RTC/d' \
|
---|
2924 | \
|
---|
2925 | -e '/^_ZnwjPv/d' \
|
---|
2926 | -e '/^_ZnwmPv/d' \
|
---|
2927 | -e '/^_ZNSt9bad_allocC1Ev/d' \
|
---|
2928 | -e '/^_ZNSt9exceptionC2Ev/d' \
|
---|
2929 | -e '/^_ZNSt9exceptionC[12]ERKS_/d' \
|
---|
2930 | \
|
---|
2931 | -e '/^_ZN[a-zA-Z]*St[[:digit:]]*_*[lL]ist/d' \
|
---|
2932 | -e '/^_ZN[a-zA-Z]*[[:digit:]]*__gnu_cxx/d' \
|
---|
2933 | -e '/^_ZNSa.*ElementNode.*/d' \
|
---|
2934 | -e '/^_ZSt.*ElementNode.*/d' \
|
---|
2935 | \
|
---|
2936 | -e '/^_Z[[:digit:]]\+dbus/d' \
|
---|
2937 | -e '/^_Z13RTDBusLoadLibv/d' \
|
---|
2938 | \
|
---|
2939 | -e '/^g_[ac]VTG/d' \
|
---|
2940 | -e '/^g_VTGObjHeader/d' \
|
---|
2941 | -e '/^g_VTGProbeData/d' \
|
---|
2942 | -e '/^VTGProbeStub/d' \
|
---|
2943 | -e '/^g_achVTGStringTable/d' \
|
---|
2944 | -e '/^g_acVTGProbeEnabled/d' \
|
---|
2945 | \
|
---|
2946 | -e '/^VBoxHost_/d'\
|
---|
2947 | -e '/^VBoxGuest_/d'\
|
---|
2948 | | $(SED) -nf "$@"
|
---|
2949 | endif
|
---|
2950 | $(call MSG_L1,IPRT: Testing mangling using nm...)
|
---|
2951 | $(QUIET)$(VBOX_NM) $^ 2> /dev/null \
|
---|
2952 | | $(SED) -n \
|
---|
2953 | -e 's/^[0-9a-f][0-9a-f]* //' \
|
---|
2954 | -e '/^[TUDB] /!d' \
|
---|
2955 | -e 's/^. //' \
|
---|
2956 | $(if-expr "$(KBUILD_TARGET)" == "darwin" || "$(KBUILD_TARGET)" == "os2" || "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86", \
|
---|
2957 | -e 's/^_//',) \
|
---|
2958 | \
|
---|
2959 | -e '/^g_cchrt/d'\
|
---|
2960 | -e '/^g_frt/d'\
|
---|
2961 | -e '/^g_offrt/d'\
|
---|
2962 | -e '/^g_pfnrt/d'\
|
---|
2963 | -e '/^g_rt/d'\
|
---|
2964 | -e '/^g_szrt/d'\
|
---|
2965 | -e '/^g_ProcessSelf/d'\
|
---|
2966 | -e '/^g_u64ProgramStart/d'\
|
---|
2967 | -e '/^g_enmProcessPriority/d'\
|
---|
2968 | -e '/^g_hDbgModStrCache/d'\
|
---|
2969 | -e '/^g_pfnR0Darwin/d'\
|
---|
2970 | -e '/^g_pDarwinLockGroup/d'\
|
---|
2971 | $(if-expr "$(KBUILD_TARGET)" == "solaris", \
|
---|
2972 | -e '/^g_kLdrRdrFileOps/d' \
|
---|
2973 | -e '/^g_pSUPGlobalInfoPage/d' \
|
---|
2974 | -e '/^g_Logger/d' \
|
---|
2975 | -e '/^g_RelLogger/d' \
|
---|
2976 | -e '/^g_VM/d',) \
|
---|
2977 | \
|
---|
2978 | -e '/^g_[ac]VTG/d' \
|
---|
2979 | -e '/^g_VTGObjHeader/d' \
|
---|
2980 | -e '/^g_VTGProbeData/d' \
|
---|
2981 | -e '/^VTGProbeStub/d' \
|
---|
2982 | -e '/^g_achVTGStringTable/d' \
|
---|
2983 | -e '/^g_acVTGProbeEnabled/d' \
|
---|
2984 | \
|
---|
2985 | -e '/^RTDBusLoadLib/d' \
|
---|
2986 | \
|
---|
2987 | -e '/^RT/p' \
|
---|
2988 | -e '/^g_/p' \
|
---|
2989 | | $(SED) -nf "$@"
|
---|
2990 | endif
|
---|
2991 | endif
|
---|
2992 | $(QUIET)$(APPEND) -t $@
|
---|
2993 |
|
---|
2994 | if !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_VALIDATIONKIT) && !defined(VBOX_ONLY_DOCS)
|
---|
2995 | #
|
---|
2996 | # Windows build tool.
|
---|
2997 | #
|
---|
2998 | BLDPROGS.win += ntBldSymDb
|
---|
2999 | ntBldSymDb_TEMPLATE = VBoxAdvBldProg
|
---|
3000 | ntBldSymDb_INCS = .
|
---|
3001 | ntBldSymDb_SOURCES = r0drv/nt/ntBldSymDb.cpp
|
---|
3002 | endif
|
---|
3003 |
|
---|
3004 |
|
---|
3005 | #
|
---|
3006 | # Generate the rules (we're the to sub-makefile).
|
---|
3007 | #
|
---|
3008 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
3009 |
|
---|
3010 |
|
---|
3011 | #
|
---|
3012 | # Aliases for code templates.
|
---|
3013 | #
|
---|
3014 | rsa-template.o rsa-template.obj: rsa-core.o rsa-asn1-decoder.o rsa-sanity.o rsa-init.o
|
---|
3015 | spc-template.o spc-template.obj: spc-core.o spc-asn1-decoder.o spc-sanity.o spc-init.o
|
---|
3016 | taf-template.o taf-template.obj: taf-core.o taf-asn1-decoder.o taf-sanity.o taf-init.o
|
---|
3017 | tsp-template.o tsp-template.obj: tsp-core.o tsp-asn1-decoder.o tsp-sanity.o tsp-init.o
|
---|
3018 | x509-template.o x509-template.obj: x509-core.o x509-asn1-decoder.o x509-sanity.o x509-init.o
|
---|
3019 | pkcs7-template.o pkcs7-template.obj: pkcs7-core.o pkcs7-asn1-decoder.o pkcs7-sanity.o pkcs7-init.o
|
---|
3020 |
|
---|