VirtualBox

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

Last change on this file since 106922 was 106921, checked in by vboxsync, 4 months ago

VBoxDTrace,VMM,IPRT: Made the ring-0 component of the DTrace extension pack compile on win.arm64. jiraref:VBP-1447

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 168.1 KB
Line 
1# $Id: Makefile.kmk 106921 2024-11-11 09:51:28Z vboxsync $
2## @file
3# Sub-Makefile for the IPRT.
4#
5
6#
7# Copyright (C) 2006-2024 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
11#
12# This program is free software; you can redistribute it and/or
13# modify it under the terms of the GNU General Public License
14# as published by the Free Software Foundation, in version 3 of the
15# License.
16#
17# This program is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, see <https://www.gnu.org/licenses>.
24#
25# The contents of this file may alternatively be used under the terms
26# of the Common Development and Distribution License Version 1.0
27# (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
28# in the VirtualBox distribution, in which case the provisions of the
29# CDDL are applicable instead of those of the GPL.
30#
31# You may elect to license modified versions of this file under the
32# terms and conditions of either the GPL or the CDDL or both.
33#
34# SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
35#
36
37SUB_DEPTH = ../../..
38include $(KBUILD_PATH)/subheader.kmk
39
40ifdef VBOX_ONLY_SDK
41 # Required for xpidl
42 LIBRARIES += RuntimeBldProg
43else ifdef VBOX_ONLY_ADDITIONS
44 #
45 # Only build the additions, sort out the legacy names first.
46 #
47 LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared
48 LIBRARIES.win += RuntimeR3NoCrt
49 LIBRARIES.win.amd64 += RuntimeGuestR3-x86 RuntimeGuestR3Shared-x86
50 LIBRARIES.win.arm64 += RuntimeGuestR3Shared-x86
51 ifdef VBOX_WITH_ADDITION_DRIVERS
52 LIBRARIES += RuntimeGuestR0
53 #LIBRARIES.os2 += RuntimeGuestR0OS2Warp3
54 endif
55 ifndef VBOX_ONLY_ADDITIONS_WITHOUT_RTISOMAKER
56 LIBRARIES += RuntimeBldProg
57 include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
58 endif
59
60else ifdef VBOX_ONLY_VALIDATIONKIT
61 #
62 # Only build the Validation Kit.
63 #
64 LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeR3 RuntimeBldProg
65 ifdef VBOX_WITH_R0_MODULES
66 LIBRARIES += RuntimeR0
67 endif
68 LIBRARIES.solaris += RuntimeR0Stub
69 LIBRARIES.win += RuntimeR0Stub #RuntimeR3NoCrt
70 ifndef VBOX_WITH_NOCRT_STATIC
71 LIBRARIES.win.x86 += RuntimeR3VccTricks
72 endif
73 include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
74 ifdef VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING
75 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
76 endif
77else ifdef VBOX_ONLY_DOCS
78 #
79 # Build docs only - need just regular R3 runtime.
80 #
81 LIBRARIES += RuntimeR3 RuntimeBldProg
82 include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
83
84else ifdef VBOX_ONLY_EXTPACKS_USE_IMPLIBS
85 #
86 # Build extension packs using import libraries as much as possible (VBoxDTrace
87 # needs Ring-0 IPRT, though).
88 #
89 LIBRARIES += RuntimeBldProg
90 ifdef VBOX_WITH_R0_MODULES
91 LIBRARIES += RuntimeR0
92 endif
93 LIBRARIES.solaris += RuntimeR0Stub
94 LIBRARIES.win += RuntimeR0Stub
95 ifdef VBOX_WITH_RAW_MODE
96 LIBRARIES.win += RuntimeRCStub
97 endif
98 ifneq ($(VBOX_LIB_RUNTIME_STATIC),$(VBOX_LIB_RUNTIME_STATIC_NO_ASAN))
99 LIBRARIES += RuntimeR3NoAsan
100 else
101 LIBRARIES += RuntimeR3
102 endif
103 include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
104
105else # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_VALIDATIONKIT && !VBOX_ONLY_DOCS
106
107 #
108 # Normal build.
109 #
110 ifndef VBOX_ONLY_EXTPACKS
111 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
112 endif
113 include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
114
115 BLDPROGS += uniread
116 LIBRARIES += RuntimeR3 RuntimeBldProg RuntimeEFCPP
117 ifdef VBOX_WITH_R0_MODULES
118 LIBRARIES += RuntimeR0
119 endif
120 LIBRARIES.solaris += RuntimeR0Stub
121 LIBRARIES.win += RuntimeR0Stub
122 LIBRARIES.win.x86 += RuntimeR3NoCrt
123 LIBRARIES.win.amd64 += RuntimeR3NoCrt
124 LIBRARIES.win.arm64 += RuntimeR3NoCrt
125 ifndef VBOX_WITH_PARFAIT
126 LIBRARIES.win.amd64 += RuntimeR3-x86
127 endif
128 ifdef VBOX_WITH_RAW_MODE
129 LIBRARIES += RuntimeRC
130 LIBRARIES.win += RuntimeRCStub
131 endif
132 ifdef VBOX_WITH_VBOXDRV
133 LIBRARIES += RuntimeR0Drv
134 endif
135 ifdef VBOX_WITH_ADDITIONS
136 LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared
137 LIBRARIES.win.amd64 += RuntimeGuestR3-x86 RuntimeGuestR3Shared-x86
138 LIBRARIES.win.arm64 += RuntimeGuestR3Shared-x86
139 ifdef VBOX_WITH_ADDITION_DRIVERS
140 LIBRARIES += RuntimeGuestR0
141 endif
142 #LIBRARIES.os2 += RuntimeGuestR0OS2Warp3
143 endif # VBOX_WITH_ADDITIONS
144 ifndef VBOX_WITH_NOCRT_STATIC
145 LIBRARIES.win.x86 += RuntimeR3VccTricks
146 endif
147 ifneq ($(VBOX_LIB_RUNTIME_STATIC),$(VBOX_LIB_RUNTIME_STATIC_NO_ASAN))
148 LIBRARIES += RuntimeR3NoAsan
149 endif
150 DLLS += VBoxRT
151 ifdef VBOX_WITH_32_ON_64_MAIN_API
152 DLLS += VBoxRT-x86
153 endif
154endif
155
156
157# Always build the ntdll import libraries on windows.
158if1of (amd64 x86, $(KBUILD_TARGET_ARCH) $(KBUILD_HOST_ARCH))
159 LIBRARIES.win += RuntimeR3NtDll-x86
160endif
161if1of (amd64, $(KBUILD_TARGET_ARCH) $(KBUILD_HOST_ARCH))
162 LIBRARIES.win += RuntimeR3NtDll-amd64
163endif
164if1of (arm64, $(KBUILD_TARGET_ARCH) $(KBUILD_HOST_ARCH))
165 LIBRARIES.win += RuntimeR3NtDll-arm64
166endif
167
168
169# Always build the import library.
170IMPORT_LIBS += VBoxRTImp
171
172
173# Where the generated stuff goes.
174IPRT_OUT_DIR := $(PATH_TARGET)/Runtime
175BLDDIRS += $(IPRT_OUT_DIR)
176OTHER_CLEAN += \
177 $(IPRT_OUT_DIR)/errmsgdata.h \
178 $(IPRT_OUT_DIR)/errmsgwindata.h \
179 $(IPRT_OUT_DIR)/errmsgwindata-sorted.h \
180 $(IPRT_OUT_DIR)/errmsgwindata-sorted.h.ts \
181 $(IPRT_OUT_DIR)/errmsgvboxcomdata.h \
182 $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts \
183 $(IPRT_OUT_DIR)/odi2name.h \
184 $(IPRT_OUT_DIR)/odi2name.h.ts \
185 $(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt \
186 $(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt.dep \
187 $(IPRT_DOXYFILE_OUTPUT)/docs.iprt
188
189
190#
191# Globals
192#
193VBOX_PATH_RUNTIME_SRC := $(PATH_SUB_CURRENT)
194
195
196#
197# Set the defines that buildconfig.cpp needs. Its used by several targets.
198#
199common/misc/buildconfig.cpp_DEFS = \
200 IPRT_BLDCFG_SCM_REV=$(VBOX_SVN_REV) \
201 IPRT_BLDCFG_VERSION_MAJOR=$(VBOX_VERSION_MAJOR) \
202 IPRT_BLDCFG_VERSION_MINOR=$(VBOX_VERSION_MINOR) \
203 IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD)
204ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
205 common/misc/buildconfig.cpp_DEFS += \
206 IPRT_BLDCFG_VERSION_STRING="$(VBOX_VERSION_STRING)" \
207 IPRT_BLDCFG_TARGET="$(KBUILD_TARGET)" \
208 IPRT_BLDCFG_TARGET_ARCH="$(KBUILD_TARGET_ARCH)" \
209 IPRT_BLDCFG_TYPE="$(KBUILD_TYPE)"
210else
211 common/misc/buildconfig.cpp_DEFS += \
212 IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
213 IPRT_BLDCFG_TARGET=\"$(KBUILD_TARGET)\" \
214 IPRT_BLDCFG_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\" \
215 IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\"
216endif
217
218#
219# OID to C table conversion program.
220#
221BLDPROGS += oiddb2c
222oiddb2c_TEMPLATE = VBoxBldProg
223oiddb2c_SOURCES = common/asn1/oiddb2c.cpp
224
225common/asn1/asn1-dump.cpp_DEPS = $(IPRT_OUT_DIR)/oiddb.h
226common/asn1/asn1-dump.cpp_INCS = $(IPRT_OUT_DIR)
227OTHER_CLEAN += $(IPRT_OUT_DIR)/oiddb.h $(IPRT_OUT_DIR)/oiddb.h.ts
228
229$(IPRT_OUT_DIR)/oiddb.h.ts +| $(IPRT_OUT_DIR)/oiddb.h: \
230 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/oiddb.cfg \
231 $(VBOX_EXTRA_OID_CFG_FILES) \
232 $$(oiddb2c_1_TARGET) \
233 | $$(dir $$@)
234 $(call MSG_GENERATE,,$@,$(filter %.xidl,$^))
235 $(QUIET)$(oiddb2c_1_TARGET) "$@" $(filter %.cfg,$^)
236 $(QUIET)$(CP) --changed -fv "$@" "$(IPRT_OUT_DIR)/oiddb.h"
237
238
239#
240# Unicode Specification reader used to regenerate unidata-*.cpp.
241#
242uniread_TEMPLATE = VBoxBldProg
243uniread_SOURCES = common/string/uniread.cpp
244uniread_INCS = include
245
246#
247# Win64 assembly sources.
248#
249RuntimeWin64ASM_SOURCES = \
250 win/amd64/ASMAtomicBitClear.asm \
251 win/amd64/ASMAtomicBitTestAndToggle.asm \
252 win/amd64/ASMAtomicBitToggle.asm \
253 win/amd64/ASMAtomicReadU64.asm \
254 win/amd64/ASMAtomicXchgU8.asm \
255 win/amd64/ASMGetCS.asm \
256 win/amd64/ASMGetDS.asm \
257 win/amd64/ASMGetES.asm \
258 common/asm/ASMGetFlags.asm \
259 win/amd64/ASMGetFS.asm \
260 win/amd64/ASMGetGS.asm \
261 win/amd64/ASMGetSS.asm \
262 win/amd64/ASMProbeReadByte.asm \
263 common/asm/ASMSetFlags.asm \
264 common/asm/ASMAddFlags.asm \
265 win/amd64/ASMGetDR0.asm \
266 win/amd64/ASMGetDR1.asm \
267 win/amd64/ASMGetDR2.asm \
268 win/amd64/ASMGetDR3.asm \
269 win/amd64/ASMGetDR6.asm \
270 win/amd64/ASMGetDR7.asm \
271 common/asm/ASMAtomicCmpXchgU8.asm \
272 common/asm/ASMAtomicCmpXchgU16.asm \
273 common/asm/ASMAtomicXchgU16.asm \
274 common/asm/ASMBitFirstClear.asm \
275 common/asm/ASMBitFirstSet.asm \
276 common/asm/ASMBitNextClear.asm \
277 common/asm/ASMBitNextSet.asm \
278 common/asm/ASMMultU32ByU32DivByU32.asm \
279 common/asm/ASMMultU64ByU32DivByU32.asm \
280 common/asm/ASMCpuId_Idx_ECX.asm \
281 common/asm/ASMNopPause.asm \
282 common/asm/ASMGetIDTR.asm \
283 common/asm/ASMGetIdtrLimit.asm \
284 common/asm/ASMSetIDTR.asm \
285 common/asm/ASMGetGDTR.asm \
286 common/asm/ASMSetGDTR.asm \
287 common/asm/ASMGetLDTR.asm \
288 common/asm/ASMGetSegAttr.asm \
289 common/asm/ASMGetFSBase.asm \
290 common/asm/ASMSetFSBase.asm \
291 common/asm/ASMGetGSBase.asm \
292 common/asm/ASMSetGSBase.asm \
293 common/asm/ASMGetTR.asm
294
295#
296# Win32 assembly sources.
297#
298RuntimeWin32ASM_SOURCES = \
299 common/asm/ASMAtomicCmpXchgU8.asm \
300 common/asm/ASMAtomicCmpXchgU16.asm \
301 common/asm/ASMAtomicXchgU16.asm \
302 common/asm/ASMMultU32ByU32DivByU32.asm \
303 common/asm/ASMMultU64ByU32DivByU32.asm \
304 common/asm/ASMCpuId_Idx_ECX.asm \
305 common/asm/ASMGetSegAttr.asm
306
307
308#
309# NoCRT sources (minus math stuff).
310#
311if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
312 RuntimeNoCrt_SOURCES = \
313 common/misc/setjmp.asm \
314 common/string/bzero.asm \
315 common/string/memchr.asm \
316 common/string/memcmp.asm \
317 common/string/memcpy.asm \
318 common/string/mempcpy.asm \
319 common/string/memmove.asm \
320 common/string/memset.asm \
321 common/string/strchr.asm \
322 common/string/strcpy.asm \
323 common/string/strncpy.asm \
324 common/string/strcmp.asm \
325 common/string/strlen.asm
326else if1of ($(KBUILD_TARGET_ARCH), arm64)
327 RuntimeNoCrt_SOURCES = \
328 common/string/bzero.cpp \
329 common/string/memchr.cpp \
330 common/string/memcmp.cpp \
331 common/string/memcpy.cpp \
332 common/string/mempcpy.cpp \
333 common/string/memmove.cpp \
334 common/string/memset.cpp \
335 common/string/strchr.cpp \
336 common/string/strcpy.cpp \
337 common/string/strncpy.cpp \
338 common/string/strcmp.cpp \
339 common/string/strlen.cpp
340endif
341
342
343#
344# RuntimeBaseR3 - Commmon Base Runtime Target for Ring-3 executables.
345#
346# Note! This is not make itself, it's only used as a base target config to be
347# inherited from by RuntimeR3(.lib) and VBoxR3(.dll).
348#
349RuntimeBaseR3_TEMPLATE = VBoxR3Static
350RuntimeBaseR3_SDKS = VBoxLibXml2
351RuntimeBaseR3_SDKS.win = $(VBOX_WINPSDK) $(VBOX_WINDDK)
352RuntimeBaseR3_DEFS = \
353 IN_RT_R3 \
354 LDR_WITH_NATIVE \
355 LDR_WITH_ELF32 \
356 LDR_WITH_LX \
357 LDR_WITH_MACHO \
358 LDR_WITH_PE \
359 RT_WITH_VBOX \
360 RT_NO_GIP \
361 RT_WITHOUT_NOCRT_WRAPPERS \
362 NOFILEID
363if1of ($(KBUILD_TARGET_ARCH), amd64 x86 arm64)
364 RuntimeBaseR3_DEFS += \
365 IN_SUP_R3
366endif
367#RuntimeBaseR3_DEFS += RTMEM_WRAP_TO_EF_APIS
368ifdef IPRT_WITH_LZJB
369 RuntimeBaseR3_DEFS += RTZIP_USE_LZJB
370endif
371ifdef IPRT_WITH_LZO
372 RuntimeBaseR3_DEFS += RTZIP_USE_LZO
373endif
374ifdef VBOX_WITH_LIBLZMA
375 RuntimeBaseR3_DEFS += IPRT_WITH_LZMA
376 RuntimeBaseR3_SDKS += VBoxLibLzma
377endif
378ifn1of ($(KBUILD_TARGET), win)
379 RuntimeBaseR3_DEFS += RT_WITH_ICONV_CACHE
380endif
381ifdef IPRT_WITH_FUTEX_BASED_SEMS
382 RuntimeBaseR3_DEFS.linux += IPRT_WITH_FUTEX_BASED_SEMS
383endif
384ifdef IPRT_HTTP_WITH_WEBDAV
385 RuntimeBaseR3_DEFS += IPRT_HTTP_WITH_WEBDAV
386endif
387ifdef IPRT_WITHOUT_PAM
388 RuntimeBaseR3_DEFS += IPRT_WITHOUT_PAM
389endif
390RuntimeBaseR3_INCS = \
391 include \
392 $(SDK_VBoxZlib_INCS) \
393 $(SDK_VBoxLzf_INCS)
394
395# RuntimeBaseR3_INCS.solaris = \
396# /usr/include
397
398RuntimeBaseR3_SOURCES := \
399 common/alloc/alloc.cpp \
400 common/alloc/heapsimple.cpp \
401 common/alloc/heapoffset.cpp \
402 common/alloc/memcache.cpp \
403 common/alloc/memtracker.cpp \
404 common/asn1/asn1-basics.cpp \
405 common/asn1/asn1-cursor.cpp \
406 common/asn1/asn1-default-allocator.cpp \
407 common/asn1/asn1-efence-allocator.cpp \
408 common/asn1/asn1-safer-allocator.cpp \
409 common/asn1/asn1-dump.cpp \
410 common/asn1/asn1-encode.cpp \
411 common/asn1/asn1-ut-bitstring.cpp \
412 common/asn1/asn1-ut-bitstring-decode.cpp \
413 common/asn1/asn1-ut-boolean.cpp \
414 common/asn1/asn1-ut-boolean-decode.cpp \
415 common/asn1/asn1-ut-core.cpp \
416 common/asn1/asn1-ut-core-decode.cpp \
417 common/asn1/asn1-ut-dyntype.cpp \
418 common/asn1/asn1-ut-dyntype-decode.cpp \
419 common/asn1/asn1-ut-integer.cpp \
420 common/asn1/asn1-ut-integer-decode.cpp \
421 common/asn1/asn1-ut-null.cpp \
422 common/asn1/asn1-ut-null-decode.cpp \
423 common/asn1/asn1-ut-objid.cpp \
424 common/asn1/asn1-ut-objid-decode.cpp \
425 common/asn1/asn1-ut-octetstring.cpp \
426 common/asn1/asn1-ut-octetstring-decode.cpp \
427 common/asn1/asn1-ut-string.cpp \
428 common/asn1/asn1-ut-string-decode.cpp \
429 common/asn1/asn1-ut-time.cpp \
430 common/asn1/asn1-ut-time-decode.cpp \
431 common/checksum/adler32.cpp \
432 common/checksum/crc32.cpp \
433 common/checksum/crc32c.cpp \
434 common/checksum/crc64.cpp \
435 common/checksum/crc16ccitt.cpp \
436 common/checksum/alt-md2.cpp \
437 common/checksum/alt-md4.cpp \
438 common/checksum/alt-md5.cpp \
439 common/checksum/alt-sha1.cpp \
440 common/checksum/alt-sha256.cpp \
441 common/checksum/alt-sha512.cpp \
442 common/checksum/alt-sha3.cpp \
443 common/checksum/md2str.cpp \
444 common/checksum/md4str.cpp \
445 common/checksum/md5str.cpp \
446 common/checksum/ipv4.cpp \
447 common/checksum/ipv6.cpp \
448 common/checksum/manifest.cpp \
449 common/checksum/manifest2.cpp \
450 common/checksum/manifest3.cpp \
451 common/checksum/manifest-file.cpp \
452 common/checksum/RTSha1Digest.cpp \
453 common/checksum/RTSha256Digest.cpp \
454 common/checksum/sha1str.cpp \
455 common/checksum/sha224str.cpp \
456 common/checksum/sha256str.cpp \
457 common/checksum/sha384str.cpp \
458 common/checksum/sha512str.cpp \
459 common/checksum/sha512t224str.cpp \
460 common/checksum/sha512t256str.cpp \
461 common/crypto/cipher-openssl.cpp \
462 common/crypto/digest-core.cpp \
463 common/crypto/digest-builtin.cpp \
464 common/crypto/digest-vfs.cpp \
465 common/crypto/iprt-openssl.cpp \
466 common/crypto/key.cpp \
467 common/crypto/key-file.cpp \
468 common/crypto/key-openssl.cpp \
469 common/crypto/key-create-rsa-openssl.cpp \
470 common/crypto/rc4-openssl.cpp \
471 common/crypto/rsa-asn1-decoder.cpp \
472 common/crypto/rsa-core.cpp \
473 common/crypto/rsa-init.cpp \
474 common/crypto/rsa-sanity.cpp \
475 common/crypto/pemfile-read.cpp \
476 common/crypto/pemfile-write.cpp \
477 common/crypto/pkcs7-asn1-decoder.cpp \
478 common/crypto/pkcs7-core.cpp \
479 common/crypto/pkcs7-file.cpp \
480 common/crypto/pkcs7-init.cpp \
481 common/crypto/pkcs7-sanity.cpp \
482 common/crypto/pkcs7-sign.cpp \
483 common/crypto/pkcs7-verify.cpp \
484 common/crypto/pkcs8-asn1-decoder.cpp \
485 common/crypto/pkcs8-core.cpp \
486 common/crypto/pkcs8-init.cpp \
487 common/crypto/pkcs8-sanity.cpp \
488 common/crypto/pkix-sign.cpp \
489 common/crypto/pkix-signature-builtin.cpp \
490 common/crypto/pkix-signature-core.cpp \
491 common/crypto/pkix-signature-rsa.cpp \
492 common/crypto/pkix-signature-ossl.cpp \
493 common/crypto/pkix-util.cpp \
494 common/crypto/pkix-verify.cpp \
495 common/crypto/shacrypt.cpp \
496 common/crypto/spc-asn1-decoder.cpp \
497 common/crypto/spc-core.cpp \
498 common/crypto/spc-init.cpp \
499 common/crypto/spc-sanity.cpp \
500 common/crypto/ssl-openssl.cpp \
501 common/crypto/x509-asn1-decoder.cpp \
502 common/crypto/x509-certpaths.cpp \
503 common/crypto/x509-core.cpp \
504 common/crypto/x509-create-sign.cpp \
505 common/crypto/x509-file.cpp \
506 common/crypto/x509-init.cpp \
507 common/crypto/x509-sanity.cpp \
508 common/crypto/x509-verify.cpp \
509 common/crypto/taf-asn1-decoder.cpp \
510 common/crypto/taf-core.cpp \
511 common/crypto/taf-init.cpp \
512 common/crypto/taf-sanity.cpp \
513 common/crypto/tsp-asn1-decoder.cpp \
514 common/crypto/tsp-core.cpp \
515 common/crypto/tsp-init.cpp \
516 common/crypto/tsp-sanity.cpp \
517 common/crypto/store.cpp \
518 common/crypto/store-inmem.cpp \
519 common/crypto/store-cert-add-basic.cpp \
520 common/crypto/RTCrPkcs5Pbkdf2Hmac-openssl.cpp \
521 common/crypto/RTCrRandBytes-openssl.cpp \
522 common/crypto/RTCrStoreCertAddFromJavaKeyStore.cpp \
523 common/crypto/RTCrStoreCertAddWantedFromFishingExpedition.cpp \
524 common/crypto/RTCrStoreCertExportAsPem.cpp \
525 common/crypto/RTCrStoreCreateSnapshotOfUserAndSystemTrustedCAsAndCerts.cpp \
526 common/dbg/dbg.cpp \
527 common/dbg/dbgas.cpp \
528 common/dbg/dbgcfg.cpp \
529 common/dbg/dbgmod.cpp \
530 common/dbg/dbgmodldr.cpp \
531 common/dbg/dbgmodcontainer.cpp \
532 common/dbg/dbgmoddeferred.cpp \
533 common/dbg/dbgmodexports.cpp \
534 common/dbg/dbgmodcodeview.cpp \
535 common/dbg/dbgmoddwarf.cpp \
536 common/dbg/dbgmodmapsym.cpp \
537 common/dbg/dbgmodnm.cpp \
538 common/dvm/dvm.cpp \
539 common/dvm/dvmbsdlabel.cpp \
540 common/dvm/dvmgpt.cpp \
541 common/dvm/dvmmbr.cpp \
542 common/dvm/dvmvfs.cpp \
543 common/efi/efiguid.cpp \
544 common/efi/efitime.cpp \
545 common/efi/efisignaturedb.cpp \
546 common/efi/efivarstorevfs.cpp \
547 common/err/errinfo.cpp \
548 common/err/errinfolog.cpp \
549 common/err/errinfo-alloc.cpp \
550 common/err/errmsg.cpp \
551 common/err/RTErrConvertFromErrno.cpp \
552 common/err/RTErrConvertToErrno.cpp \
553 common/fs/extvfs.cpp \
554 common/fs/fatvfs.cpp \
555 common/fs/isovfs.cpp \
556 common/fs/isomaker.cpp \
557 common/fs/isomakercmd.cpp \
558 common/fs/isomakerimport.cpp \
559 common/fs/ntfsvfs.cpp \
560 common/fs/pdbvfs.cpp \
561 common/fs/RTFsCmdLs.cpp \
562 common/ioqueue/ioqueuebase.cpp \
563 common/ioqueue/ioqueue-stdfile-provider.cpp \
564 common/ldr/ldr.cpp \
565 common/ldr/ldrELF.cpp \
566 common/ldr/ldrEx.cpp \
567 common/ldr/ldrFile.cpp \
568 common/ldr/ldrVfsFile.cpp \
569 common/ldr/ldrLX.cpp \
570 common/ldr/ldrMachO.cpp \
571 common/ldr/ldrMemory.cpp \
572 common/ldr/ldrNative.cpp \
573 common/ldr/ldrPE.cpp \
574 common/log/log.cpp \
575 common/log/log-weak.cpp \
576 common/log/log-weak-assert.cpp \
577 common/log/log-weak-rel.cpp \
578 common/log/logellipsis.cpp \
579 common/log/logrel.cpp \
580 common/log/logrelellipsis.cpp \
581 common/log/logcom.cpp \
582 common/log/logformat.cpp \
583 common/log/tracebuf.cpp \
584 common/log/tracedefault.cpp \
585 common/log/tracelogreader.cpp \
586 common/log/tracelogwriter.cpp \
587 common/log/RTLogCreateEx.cpp \
588 common/math/bignum.cpp \
589 common/misc/RTAssertMsg1Weak.cpp \
590 common/misc/RTAssertMsg2.cpp \
591 common/misc/RTAssertMsg2Add.cpp \
592 common/misc/RTAssertMsg2AddWeak.cpp \
593 common/misc/RTAssertMsg2AddWeakV.cpp \
594 common/misc/RTAssertMsg2Weak.cpp \
595 common/misc/RTAssertMsg2WeakV.cpp \
596 common/misc/RTFileModeToFlags.cpp \
597 common/misc/RTFileOpenF.cpp \
598 common/misc/RTFileOpenV.cpp \
599 common/misc/RTMemWipeThoroughly.cpp \
600 common/misc/RTSystemFirmwareTypeName.cpp \
601 common/misc/acpi.cpp \
602 common/misc/assert.cpp \
603 common/misc/buildconfig.cpp \
604 common/misc/cidr.cpp \
605 common/misc/expreval.cpp \
606 common/misc/fdt.cpp \
607 common/misc/getopt.cpp \
608 common/misc/getoptargv.cpp \
609 common/misc/handle.cpp \
610 common/misc/handletable.cpp \
611 common/misc/handletablectx.cpp \
612 common/misc/handletablesimple.cpp \
613 common/misc/inifile.cpp \
614 common/misc/json.cpp \
615 common/misc/lockvalidator.cpp \
616 common/misc/message.cpp \
617 common/misc/messagerefentry.cpp \
618 common/misc/once.cpp \
619 common/misc/req.cpp \
620 common/misc/reqpool.cpp \
621 common/misc/reqqueue.cpp \
622 common/misc/sanity-c.c \
623 common/misc/sanity-cpp.cpp \
624 common/misc/semspingpong.cpp \
625 common/misc/sg.cpp \
626 common/misc/circbuf.cpp \
627 common/misc/thread.cpp \
628 common/misc/term.cpp \
629 common/misc/uri.cpp \
630 common/net/netaddrstr2.cpp \
631 common/net/macstr.cpp \
632 common/path/rtPathRootSpecLen.cpp \
633 common/path/rtPathVolumeSpecLen.cpp \
634 common/path/RTPathAbsDup.cpp \
635 common/path/RTPathAbsEx.cpp \
636 common/path/RTPathAbsExDup.cpp \
637 common/path/RTPathAppend.cpp \
638 common/path/RTPathAppendEx.cpp \
639 common/path/RTPathCalcRelative.cpp \
640 common/path/RTPathChangeToDosSlashes.cpp \
641 common/path/RTPathChangeToUnixSlashes.cpp \
642 common/path/RTPathCopyComponents.cpp \
643 common/path/RTPathCountComponents.cpp \
644 common/path/RTPathEnsureTrailingSeparator.cpp \
645 common/path/RTPathExt.cpp \
646 common/path/RTPathFilename.cpp \
647 common/path/RTPathFilenameUtf16.cpp \
648 common/path/RTPathFindCommon.cpp \
649 common/path/RTPathGlob.cpp \
650 common/path/RTPathHasExt.cpp \
651 common/path/RTPathHasPath.cpp \
652 common/path/RTPathJoin.cpp \
653 common/path/RTPathJoinA.cpp \
654 common/path/RTPathJoinEx.cpp \
655 common/path/RTPathParentLength.cpp \
656 common/path/RTPathParse.cpp \
657 common/path/RTPathParsedReassemble.cpp \
658 common/path/RTPathParseSimple.cpp \
659 common/path/RTPathPurgeFilename.cpp \
660 common/path/RTPathRealDup.cpp \
661 common/path/RTPathRmCmd.cpp \
662 common/path/RTPathSkipRootSpec.cpp \
663 common/path/RTPathSplit.cpp \
664 common/path/RTPathSplitA.cpp \
665 common/path/RTPathSplitReassemble.cpp \
666 common/path/RTPathStartsWithRoot.cpp \
667 common/path/RTPathStripExt.cpp \
668 common/path/RTPathStripFilename.cpp \
669 common/path/RTPathStripTrailingSlash.cpp \
670 common/path/RTPathTraverseList.cpp \
671 common/path/comparepaths.cpp \
672 common/rand/rand.cpp \
673 common/rand/randadv.cpp \
674 common/rand/randparkmiller.cpp \
675 common/sort/RTSortIsSorted.cpp \
676 common/sort/RTSortApvIsSorted.cpp \
677 common/sort/shellsort.cpp \
678 common/string/RTStrCat.cpp \
679 common/string/RTStrCatEx.cpp \
680 common/string/RTStrCatP.cpp \
681 common/string/RTStrCatPEx.cpp \
682 common/string/RTStrCmp.cpp \
683 common/string/RTStrCopy.cpp \
684 common/string/RTStrCopyEx.cpp \
685 common/string/RTStrCopyP.cpp \
686 common/string/RTStrCopyPEx.cpp \
687 common/string/RTStrNCmp.cpp \
688 common/string/RTStrNLen.cpp \
689 common/string/RTStrNLenEx.cpp \
690 common/string/RTStrPrintHexBytes.cpp \
691 common/string/RTStrStartsWith.cpp \
692 common/string/RTStrIStartsWith.cpp \
693 common/string/RTStrICmpAscii.cpp \
694 common/string/RTStrNICmpAscii.cpp \
695 common/string/RTStrSplit.cpp \
696 common/string/RTStrStr.cpp \
697 common/string/RTUtf16Copy.cpp \
698 common/string/RTUtf16CopyAscii.cpp \
699 common/string/RTUtf16CopyEx.cpp \
700 common/string/RTUtf16Cat.cpp \
701 common/string/RTUtf16CatAscii.cpp \
702 common/string/RTUtf16Chr.cpp \
703 common/string/RTUtf16CmpAscii.cpp \
704 common/string/RTUtf16ICmpAscii.cpp \
705 common/string/RTUtf16End.cpp \
706 common/string/RTUtf16NCmp.cpp \
707 common/string/RTUtf16NCmpAscii.cpp \
708 common/string/RTUtf16NCmpUtf8.cpp \
709 common/string/RTUtf16NICmpAscii.cpp \
710 common/string/RTUtf16FindAscii.cpp \
711 common/string/RTUtf16NLen.cpp \
712 common/string/RTUtf16NLenEx.cpp \
713 common/string/RTUtf16PrintHexBytes.cpp \
714 common/string/base64.cpp \
715 common/string/base64-utf16.cpp \
716 common/string/simplepattern.cpp \
717 common/string/straprintf.cpp \
718 common/string/strformat.cpp \
719 common/string/RTStrFormat.cpp \
720 common/string/strformatfloat.cpp \
721 common/string/strformatnum.cpp \
722 common/string/strformatrt.cpp \
723 common/string/strformattype.cpp \
724 common/string/strhash1.cpp \
725 common/string/stringalloc.cpp \
726 common/string/strprintf.cpp \
727 common/string/strprintf-ellipsis.cpp \
728 common/string/strprintf2.cpp \
729 common/string/strprintf2-ellipsis.cpp \
730 common/string/strcache.cpp \
731 common/string/strspace.cpp \
732 common/string/strstrip.cpp \
733 common/string/strtofloat.cpp \
734 common/string/strtonum.cpp \
735 common/string/strversion.cpp \
736 common/string/uni.cpp \
737 common/string/unidata-flags.cpp \
738 common/string/unidata-lower.cpp \
739 common/string/unidata-upper.cpp \
740 common/string/utf-16.cpp \
741 common/string/utf-16-case.cpp \
742 common/string/utf-16-latin-1.cpp \
743 common/string/utf-16-printf.cpp \
744 common/string/utf-8.cpp \
745 common/string/utf-8-case.cpp \
746 common/string/utf-8-case2.cpp \
747 common/string/ministring.cpp \
748 common/table/avlgcptr.cpp \
749 common/table/avlhcphys.cpp \
750 common/table/avlgcphys.cpp \
751 common/table/avllu32.cpp \
752 common/table/avlou32.cpp \
753 common/table/avlogcphys.cpp \
754 common/table/avlogcptr.cpp \
755 common/table/avlohcphys.cpp \
756 common/table/avloioport.cpp \
757 common/table/avlpv.cpp \
758 common/table/avlrgcptr.cpp \
759 common/table/avlrogcphys.cpp \
760 common/table/avlrogcptr.cpp \
761 common/table/avlroioport.cpp \
762 common/table/avlroogcptr.cpp \
763 common/table/avlrpv.cpp \
764 common/table/avlruintptr.cpp \
765 common/table/avlrfoff.cpp \
766 common/table/avlru64.cpp \
767 common/table/avlu32.cpp \
768 common/table/avlu64.cpp \
769 common/table/avluintptr.cpp \
770 common/table/avlul.cpp \
771 common/table/table.cpp \
772 common/time/time.cpp \
773 common/time/timeprog.cpp \
774 common/time/timesup.cpp \
775 common/time/timezoneinfo.cpp \
776 common/time/RTTimeFormatDurationEx.cpp \
777 common/vfs/vfsbase.cpp \
778 common/vfs/vfschain.cpp \
779 common/vfs/vfsfss2dir.cpp \
780 common/vfs/vfsiosmisc.cpp \
781 common/vfs/vfsmemory.cpp \
782 common/vfs/vfsmisc.cpp \
783 common/vfs/vfsmount.cpp \
784 common/vfs/vfsmsg.cpp \
785 common/vfs/vfsprogress.cpp \
786 common/vfs/vfsreadahead.cpp \
787 common/vfs/vfsstddir.cpp \
788 common/vfs/vfsstdfile.cpp \
789 common/vfs/vfsstdpipe.cpp \
790 common/vfs/vfsprintf.cpp \
791 common/zip/cpiovfs.cpp \
792 common/zip/tarcmd.cpp \
793 common/zip/tarvfs.cpp \
794 common/zip/tarvfswriter.cpp \
795 common/zip/gzipvfs.cpp \
796 common/zip/gzipcmd.cpp \
797 common/zip/pkzip.cpp \
798 common/zip/pkzipvfs.cpp \
799 common/zip/unzipcmd.cpp \
800 common/zip/zip.cpp \
801 generic/createtemp-generic.cpp \
802 generic/critsect-generic.cpp \
803 generic/critsectrw-generic.cpp \
804 generic/env-generic.cpp \
805 generic/http.cpp \
806 generic/RTDirCreateUniqueNumbered-generic.cpp \
807 generic/RTEnvDupEx-generic.cpp \
808 generic/RTFileCopy-generic.cpp \
809 generic/RTFileCopyAttributes-generic.cpp \
810 generic/RTFileCopyEx-generic.cpp \
811 generic/RTFileCopyByHandlesEx-generic.cpp \
812 generic/RTFileCopyPart-generic.cpp \
813 generic/RTFileQuerySize-generic.cpp \
814 generic/RTFileReadAll-generic.cpp \
815 generic/RTFileReadAllEx-generic.cpp \
816 generic/RTFileReadAllByHandle-generic.cpp \
817 generic/RTFileReadAllByHandleEx-generic.cpp \
818 generic/RTFileReadAllFree-generic.cpp \
819 generic/RTLogWriteStdErr-generic.cpp \
820 generic/RTLogWriteStdOut-generic.cpp \
821 generic/RTLogWriteUser-generic.cpp \
822 generic/RTPathGetCurrentDrive-generic.cpp \
823 generic/RTPathIsSame-generic.cpp \
824 generic/RTProcSignalName-generic.cpp \
825 generic/RTTimerLRCreate-generic.cpp \
826 generic/rtStrFormatKernelAddress-generic.cpp \
827 generic/mempool-generic.cpp \
828 generic/semfastmutex-generic.cpp \
829 generic/semxroads-generic.cpp \
830 generic/spinlock-generic.cpp \
831 generic/timerlr-generic.cpp \
832 r3/alloc-ef.cpp \
833 r3/alloc.cpp \
834 r3/allocex.cpp \
835 r3/dir.cpp \
836 r3/dir2.cpp \
837 r3/fileio.cpp \
838 r3/fs.cpp \
839 r3/ftp-server.cpp \
840 r3/http-server.cpp \
841 r3/init.cpp \
842 r3/init-data.cpp \
843 r3/process-data.cpp \
844 r3/memsafer-r3.cpp \
845 r3/path.cpp \
846 r3/RTPathTemp.cpp \
847 r3/poll.cpp \
848 r3/process.cpp \
849 r3/socket.cpp \
850 r3/stream.cpp \
851 r3/test.cpp \
852 r3/testi.cpp \
853 r3/tcp.cpp \
854 r3/udp.cpp \
855 r3/generic/semspinmutex-r3-generic.cpp \
856 r3/xml.cpp \
857 common/zip/xarvfs.cpp
858ifdef VBOX_WITH_LIBLZMA
859 RuntimeBaseR3_SOURCES += \
860 common/zip/lzmavfs.cpp
861endif
862if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), linux.arm64)
863 RuntimeBaseR3_SOURCES += \
864 r3/mempage-direct.cpp
865else
866 RuntimeBaseR3_SOURCES += \
867 r3/mempage-heap.cpp
868endif
869
870
871#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
872# RuntimeBaseR3_SOURCES += common/time/timesupA.asm
873#else
874RuntimeBaseR3_SOURCES += common/time/timesupref.cpp
875#endif
876
877RuntimeBaseR3_SOURCES.x86 += \
878 generic/RTMpGetDescription-generic.cpp \
879 generic/system-page-size-generic.cpp \
880 common/misc/zero.asm \
881 common/misc/RTSystemIsInsideVM-amd64-x86.cpp \
882 common/string/RTStrMemFind32.asm \
883 VBox/RTLogWriteVmm-amd64-x86.asm
884RuntimeBaseR3_SOURCES.amd64 += \
885 generic/RTMpGetDescription-generic.cpp \
886 generic/system-page-size-generic.cpp \
887 common/misc/zero.asm \
888 common/misc/RTSystemIsInsideVM-amd64-x86.cpp \
889 common/string/RTStrMemFind32.asm \
890 VBox/RTLogWriteVmm-amd64-x86.asm
891RuntimeBaseR3_SOURCES.arm32 := \
892 common/asm/ASMBitFirstClear-generic.cpp \
893 common/asm/ASMBitNextClear-generic.cpp \
894 common/asm/ASMBitFirstSet-generic.cpp \
895 common/asm/ASMBitNextSet-generic.cpp \
896 common/asm/ASMMemZero32-generic.cpp \
897 common/asm/ASMMemFill32-generic.cpp \
898 common/asm/ASMMemFirstMismatchingU8-generic.cpp \
899 common/asm/ASMMemFirstNonZero-generic.cpp \
900 common/misc/zero-alt.S
901RuntimeBaseR3_SOURCES.arm64 := \
902 common/asm/ASMBitFirstClear-generic.cpp \
903 common/asm/ASMBitNextClear-generic.cpp \
904 common/asm/ASMBitFirstSet-generic.cpp \
905 common/asm/ASMBitNextSet-generic.cpp \
906 common/asm/ASMMemZero32-generic.cpp \
907 common/asm/ASMMemFill32-generic.cpp \
908 common/asm/ASMMemFirstMismatchingU8-generic.cpp \
909 common/asm/ASMMemFirstNonZero-generic.cpp
910RuntimeBaseR3_SOURCES.sparc32 += \
911 generic/RTMpGetDescription-generic-stub.cpp \
912 generic/system-page-size-generic.cpp \
913 generic/RTSystemIsInsideVM-generic.cpp \
914 common/asm/ASMBitFirstClear-generic.cpp \
915 common/asm/ASMBitNextClear-generic.cpp \
916 common/asm/ASMBitFirstSet-generic.cpp \
917 common/asm/ASMBitNextSet-generic.cpp \
918 common/asm/ASMMemZero32-generic.cpp \
919 common/asm/ASMMemFill32-generic.cpp \
920 common/asm/ASMMemFirstMismatchingU8-generic.cpp \
921 common/asm/ASMMemFirstNonZero-generic.cpp \
922 common/asm/asm-fake.cpp \
923 common/misc/zero-alt.S \
924 common/string/RTStrMemFind32.cpp
925RuntimeBaseR3_SOURCES.sparc64 += \
926 generic/RTMpGetDescription-generic-stub.cpp \
927 generic/system-page-size-generic.cpp \
928 generic/RTSystemIsInsideVM-generic.cpp \
929 common/asm/ASMBitFirstClear-generic.cpp \
930 common/asm/ASMBitNextClear-generic.cpp \
931 common/asm/ASMBitFirstSet-generic.cpp \
932 common/asm/ASMBitNextSet-generic.cpp \
933 common/asm/ASMMemZero32-generic.cpp \
934 common/asm/ASMMemFill32-generic.cpp \
935 common/asm/ASMMemFirstMismatchingU8-generic.cpp \
936 common/asm/ASMMemFirstNonZero-generic.cpp \
937 common/asm/asm-fake.cpp \
938 common/misc/zero-alt.S \
939 common/string/RTStrMemFind32.cpp
940
941ifdef IPRT_WITH_LZJB
942 RuntimeBaseR3_SOURCES += common/misc/lzjb.c
943endif
944
945# AMD64 / x86 assembly code.
946RuntimeBaseR3_SOURCES.x86 += \
947 common/asm/ASMCpuIdExSlow.asm \
948 common/asm/ASMAtomicUoAndU64.asm \
949 common/asm/ASMAtomicUoAndU32.asm \
950 common/asm/ASMAtomicUoDecU32.asm \
951 common/asm/ASMAtomicUoIncU32.asm \
952 common/asm/ASMAtomicUoOrU64.asm \
953 common/asm/ASMAtomicUoOrU32.asm \
954 common/asm/ASMAtomicUoXorU32.asm \
955 common/asm/ASMMemFirstMismatchingU8.asm \
956 common/asm/ASMRdMsrEx.asm \
957 common/asm/ASMWrMsrEx.asm \
958 common/asm/ASMGetXcr0.asm \
959 common/asm/ASMSetXcr0.asm \
960 common/asm/ASMXSave.asm \
961 common/asm/ASMXRstor.asm \
962 common/asm/ASMFxSave.asm \
963 common/asm/ASMFxRstor.asm \
964 common/asm/ASMSerializeInstruction-cpuid.asm \
965 common/asm/ASMSerializeInstruction-iret.asm \
966 common/asm/ASMSerializeInstruction-rdtscp.asm \
967 common/dbg/dbgstackdumpself.cpp \
968 common/dbg/dbgstackdumpself-amd64-x86.asm \
969 common/math/bignum-amd64-x86.asm \
970 common/string/RTStrEnd.asm
971RuntimeBaseR3_SOURCES.amd64 += \
972 common/asm/ASMCpuIdExSlow.asm \
973 common/asm/ASMAtomicUoAndU64.asm \
974 common/asm/ASMAtomicUoAndU32.asm \
975 common/asm/ASMAtomicUoDecU32.asm \
976 common/asm/ASMAtomicUoIncU32.asm \
977 common/asm/ASMAtomicUoOrU64.asm \
978 common/asm/ASMAtomicUoOrU32.asm \
979 common/asm/ASMAtomicUoXorU32.asm \
980 common/asm/ASMMemFirstMismatchingU8.asm \
981 common/asm/ASMRdMsrEx.asm \
982 common/asm/ASMWrMsrEx.asm \
983 common/asm/ASMGetXcr0.asm \
984 common/asm/ASMSetXcr0.asm \
985 common/asm/ASMXSave.asm \
986 common/asm/ASMXRstor.asm \
987 common/asm/ASMFxSave.asm \
988 common/asm/ASMFxRstor.asm \
989 common/asm/ASMSerializeInstruction-cpuid.asm \
990 common/asm/ASMSerializeInstruction-iret.asm \
991 common/asm/ASMSerializeInstruction-rdtscp.asm \
992 common/dbg/dbgstackdumpself.cpp \
993 common/dbg/dbgstackdumpself-amd64-x86.asm \
994 common/math/bignum-amd64-x86.asm \
995 common/math/RTUInt128MulByU64.asm \
996 common/math/RTUInt128MulByU64Ex.asm \
997 common/string/RTStrEnd.asm
998
999# Some versions of GCC might require this.
1000RuntimeBaseR3_SOURCES.x86 += \
1001 common/asm/ASMAtomicXchgU64.asm \
1002 common/asm/ASMAtomicCmpXchgU64.asm \
1003 common/asm/ASMAtomicCmpXchgExU64.asm \
1004 common/asm/ASMAtomicReadU64.asm \
1005 common/asm/ASMAtomicUoReadU64.asm
1006
1007# Some non-assembly for non-AMD64 / non-x86 targets:
1008RuntimeBaseR3_SOURCES.arm32 += \
1009 common/string/RTStrEnd.cpp \
1010 common/asm/ASMMultU64ByU32DivByU32-generic.cpp
1011RuntimeBaseR3_SOURCES.arm64 += \
1012 common/string/RTStrEnd.cpp \
1013 common/asm/ASMMultU64ByU32DivByU32-generic.cpp
1014RuntimeBaseR3_SOURCES.sparc32 += \
1015 common/string/RTStrEnd.cpp \
1016 common/asm/ASMMultU64ByU32DivByU32-generic.cpp
1017RuntimeBaseR3_SOURCES.sparc64 += \
1018 common/string/RTStrEnd.cpp \
1019 common/asm/ASMMultU64ByU32DivByU32-generic.cpp
1020
1021# VBox specific stuff.
1022RuntimeBaseR3_SOURCES += \
1023 VBox/RTAssertShouldPanic-vbox.cpp \
1024 VBox/log-vbox.cpp
1025ifneq ($(KBUILD_TARGET),win)
1026 RuntimeBaseR3_SOURCES += \
1027 common/err/errmsgxpcom.cpp
1028endif
1029if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
1030 RuntimeBaseR3_SOURCES += \
1031 $(if $(VBOX_WITH_DBUS),VBox/dbus.cpp,)
1032endif
1033
1034VBOX_WITH_NT_DIRENUM = 1
1035RuntimeBaseR3_SOURCES.win = \
1036 common/dbg/dbgmoddbghelp.cpp \
1037 common/ioqueue/ioqueue-aiofile-provider.cpp \
1038 generic/cdrom-generic.cpp \
1039 generic/RTDirExists-generic.cpp \
1040 generic/RTDirSetMode-generic.cpp \
1041 generic/RTDirSetTimes-generic.cpp \
1042 generic/fileio-sg-generic.cpp \
1043 generic/fileio-sg-at-generic.cpp \
1044 generic/RTFileCopyPartEx-generic.cpp \
1045 generic/RTFileExists-generic.cpp \
1046 generic/RTFileSetAllocationSize-generic.cpp \
1047 generic/RTMpGetCurFrequency-generic.cpp \
1048 generic/RTMpGetMaxFrequency-generic.cpp \
1049 generic/RTRandAdvCreateSystemFaster-generic.cpp \
1050 generic/RTRandAdvCreateSystemTruer-generic.cpp \
1051 generic/RTSemEventWait-2-ex-generic.cpp \
1052 generic/RTSemEventWaitNoResume-2-ex-generic.cpp \
1053 generic/RTSemEventMultiWait-2-ex-generic.cpp \
1054 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1055 generic/RTSemMutexRequest-generic.cpp \
1056 generic/RTSemMutexRequestDebug-generic.cpp \
1057 generic/RTTimerCreate-generic.cpp \
1058 generic/RTThreadSetAffinityToCpu-generic.cpp \
1059 generic/mppresent-generic-online.cpp \
1060 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
1061 generic/uuid-generic.cpp \
1062 generic/RTProcDaemonize-generic.cpp \
1063 generic/RTProcIsRunningByName-generic.cpp \
1064 generic/RTThreadGetNativeState-generic.cpp \
1065 nt/RTErrConvertFromNtStatus.cpp \
1066 nt/RTNtPathExpand8dot3Path.cpp \
1067 nt/RTNtPathExpand8dot3PathA.cpp \
1068 nt/RTNtPathFindPossible8dot3Name.cpp \
1069 nt/fileioutils-nt.cpp \
1070 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
1071 r3/nt/dirrel-r3-nt.cpp \
1072 r3/nt/fs-nt.cpp \
1073 r3/nt/pathint-nt.cpp \
1074 r3/nt/RTFileDelete-r3-nt.cpp \
1075 r3/nt/RTFileQueryFsSizes-nt.cpp \
1076 r3/nt/RTFileSetMode-r3-nt.cpp \
1077 r3/nt/RTPathQueryInfo-nt.cpp \
1078 r3/nt/RTPathSetMode-r3-nt.cpp \
1079 r3/nt/RTPathUnlink-r3-nt.cpp \
1080 r3/nt/RTProcQueryParent-r3-nt.cpp \
1081 nt/semevent-nt.cpp \
1082 nt/RTSemEventGetResolution-nt.cpp \
1083 nt/semeventmulti-nt.cpp \
1084 nt/RTSemEventMultiGetResolution-nt.cpp \
1085 r3/win/env-win.cpp \
1086 r3/win/RTCrStoreCreateSnapshotById-win.cpp \
1087 r3/win/RTFileQuerySectorSize-win.cpp \
1088 r3/win/RTFsMountpointsEnum-win.cpp \
1089 r3/win/RTHandleGetStandard-win.cpp \
1090 r3/win/RTLocaleQueryNormalizedBaseLocaleName-win.cpp \
1091 r3/win/RTLocaleQueryUserCountryCode-win.cpp \
1092 r3/win/RTSystemQueryOSInfo-win.cpp \
1093 r3/win/RTSystemShutdown-win.cpp \
1094 r3/win/RTSystemQueryDmiString-win.cpp \
1095 r3/win/RTSystemFirmware-win.cpp \
1096 r3/win/RTSystemQueryTotalRam-win.cpp \
1097 r3/win/RTSystemRegistry-win.cpp \
1098 r3/win/RTTimeZoneGetCurrent-win.cpp \
1099 r3/win/RTMemProtect-win.cpp \
1100 r3/win/allocex-win.cpp \
1101 r3/win/dir-win.cpp \
1102 $(if-expr defined(VBOX_WITH_NT_DIRENUM),r3/nt/direnum-r3-nt.cpp,r3/win/direnum-win.cpp generic/RTDirQueryInfo-generic.cpp) \
1103 r3/win/errvars-win.cpp \
1104 r3/win/fileaio-win.cpp \
1105 r3/win/fileio-win.cpp \
1106 r3/win/init-win.cpp \
1107 r3/win/krnlmod-win.cpp \
1108 r3/win/ldrNative-win.cpp \
1109 r3/win/localipc-win.cpp \
1110 r3/win/mempage-native-win.cpp \
1111 r3/win/mp-win.cpp \
1112 r3/win/path-win.cpp \
1113 r3/win/pathint-win.cpp \
1114 r3/win/pipe-win.cpp \
1115 r3/win/process-win.cpp \
1116 r3/win/RTLogWriteDebugger-win.cpp \
1117 r3/win/rtProcInitExePath-win.cpp \
1118 r3/win/sched-win.cpp \
1119 r3/win/semmutex-win.cpp \
1120 r3/win/serialport-win.cpp \
1121 r3/win/shmem-win.cpp \
1122 r3/win/symlink-win.cpp \
1123 r3/win/system-get-nt-xxx-win.cpp \
1124 r3/win/thread-win.cpp \
1125 r3/win/thread2-win.cpp \
1126 $(if-expr 1,r3/win/time-win.cpp,r3/nt/time-nt.cpp) \
1127 r3/win/time2-win.cpp \
1128 r3/win/timer-win.cpp \
1129 r3/win/tls-win.cpp \
1130 r3/win/tpm-win.cpp \
1131 r3/win/utf16locale-win.cpp \
1132 r3/win/utf8-win.cpp \
1133 r3/win/RTUuidCreate-win.cpp \
1134 win/errmsgwin.cpp \
1135 win/RTErrConvertFromWin32.cpp
1136
1137RuntimeBaseR3_SOURCES.win.amd64 := \
1138 $(RuntimeWin64ASM_SOURCES) \
1139 common/string/memrchr.asm \
1140 common/string/mempcpy.asm
1141RuntimeBaseR3_SOURCES.win.x86 := \
1142 $(RuntimeWin32ASM_SOURCES) \
1143 common/string/memrchr.asm \
1144 common/string/mempcpy.asm
1145RuntimeBaseR3_SOURCES.win.arm64 := \
1146 generic/RTMpGetDescription-generic-stub.cpp \
1147 common/string/memrchr.cpp \
1148 common/string/mempcpy.cpp \
1149 common/string/RTStrMemFind32.cpp \
1150 common/misc/zero.cpp \
1151 generic/system-page-size-generic.cpp
1152
1153RuntimeBaseR3_SOURCES.linux = \
1154 common/ioqueue/ioqueue-aiofile-provider.cpp \
1155 generic/cdrom-generic.cpp \
1156 generic/RTCrStoreCreateSnapshotById-generic.cpp \
1157 generic/RTDirQueryInfo-generic.cpp \
1158 generic/RTDirSetMode-generic.cpp \
1159 generic/RTDirSetTimes-generic.cpp \
1160 generic/RTFileMove-generic.cpp \
1161 generic/RTLogWriteDebugger-generic.cpp \
1162 generic/RTPathGetCurrentOnDrive-generic.cpp \
1163 generic/RTProcDaemonize-generic.cpp \
1164 generic/RTSemEventMultiWait-2-ex-generic.cpp \
1165 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1166 generic/RTTimeLocalNow-generic.cpp \
1167 generic/RTTimerCreate-generic.cpp \
1168 generic/RTThreadSetAffinityToCpu-generic.cpp \
1169 generic/RTUuidCreate-generic.cpp \
1170 generic/mppresent-generic.cpp \
1171 generic/utf16locale-generic.cpp \
1172 generic/uuid-generic.cpp \
1173 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
1174 r3/generic/RTLocaleQueryNormalizedBaseLocaleName-r3-generic.cpp \
1175 r3/generic/RTLocaleQueryUserCountryCode-r3-generic.cpp \
1176 r3/generic/dirrel-r3-generic.cpp \
1177 r3/posix/allocex-r3-posix.cpp \
1178 r3/linux/RTThreadGetNativeState-linux.cpp \
1179 r3/linux/fileaio-linux.cpp \
1180 r3/linux/ioqueue-iouringfile-provider.cpp \
1181 r3/linux/krnlmod-linux.cpp \
1182 r3/linux/mp-linux.cpp \
1183 r3/linux/rtProcInitExePath-linux.cpp \
1184 r3/linux/sched-linux.cpp \
1185 r3/linux/sysfs.cpp \
1186 r3/linux/time-linux.cpp \
1187 r3/linux/thread-affinity-linux.cpp \
1188 r3/linux/tpm-linux.cpp \
1189 r3/linux/RTFileCopyPartEx-linux.cpp \
1190 r3/linux/RTFileQuerySectorSize-linux.cpp \
1191 r3/linux/RTFileSetAllocationSize-linux.cpp \
1192 r3/linux/RTProcIsRunningByName-linux.cpp \
1193 r3/linux/RTSystemFirmware-linux.cpp \
1194 r3/linux/RTSystemQueryDmiString-linux.cpp \
1195 r3/linux/RTSystemShutdown-linux.cpp \
1196 r3/posix/RTFileQueryFsSizes-posix.cpp \
1197 r3/posix/RTFsMountpointsEnum-posix.cpp \
1198 r3/posix/RTHandleGetStandard-posix.cpp \
1199 r3/posix/RTMemProtect-posix.cpp \
1200 r3/posix/RTPathUserHome-posix.cpp \
1201 r3/posix/RTSystemQueryOSInfo-posix.cpp \
1202 r3/linux/systemmem-linux.cpp \
1203 r3/posix/RTTimeNow-posix.cpp \
1204 r3/posix/RTTimeSet-posix.cpp \
1205 r3/posix/RTTimeZoneGetCurrent-posix.cpp \
1206 r3/posix/mempage-native-posix.cpp \
1207 r3/posix/dir-posix.cpp \
1208 r3/posix/env-posix.cpp \
1209 r3/posix/errvars-posix.cpp \
1210 r3/posix/fileio-posix.cpp \
1211 r3/posix/fileio2-posix.cpp \
1212 r3/posix/fileio-at-posix.cpp \
1213 r3/posix/fileio-sg-posix.cpp \
1214 r3/posix/fileio-sg-at-posix.cpp \
1215 r3/posix/filelock-posix.cpp \
1216 r3/posix/fs-posix.cpp \
1217 r3/posix/fs2-posix.cpp \
1218 r3/posix/fs3-posix.cpp \
1219 r3/posix/ldrNative-posix.cpp \
1220 r3/posix/localipc-posix.cpp \
1221 r3/posix/path-posix.cpp \
1222 r3/posix/path2-posix.cpp \
1223 r3/posix/pathhost-posix.cpp \
1224 r3/posix/RTPathUserDocuments-posix.cpp \
1225 r3/posix/pipe-posix.cpp \
1226 r3/posix/process-posix.cpp \
1227 r3/posix/process-creation-posix.cpp \
1228 r3/posix/rand-posix.cpp \
1229 r3/posix/semrw-posix.cpp \
1230 r3/posix/serialport-posix.cpp \
1231 r3/posix/shmem-posix.cpp \
1232 r3/posix/symlink-posix.cpp \
1233 r3/posix/thread-posix.cpp \
1234 r3/posix/thread2-posix.cpp \
1235 r3/posix/timelocal-posix.cpp \
1236 r3/posix/timer-posix.cpp \
1237 r3/posix/tls-posix.cpp \
1238 r3/posix/utf8-posix.cpp
1239ifdef IPRT_WITH_FUTEX_BASED_SEMS
1240 RuntimeBaseR3_SOURCES.linux += \
1241 r3/linux/semevent-linux.cpp \
1242 r3/linux/semeventmulti-linux.cpp \
1243 r3/linux/semmutex-linux.cpp
1244else
1245 RuntimeBaseR3_SOURCES.linux.x86 += \
1246 r3/posix/semevent-posix.cpp \
1247 r3/posix/semeventmulti-posix.cpp \
1248 r3/posix/semmutex-posix.cpp
1249 RuntimeBaseR3_SOURCES.linux.amd64 += \
1250 r3/linux/semevent-linux.cpp \
1251 r3/linux/semeventmulti-linux.cpp
1252 RuntimeBaseR3_SOURCES.linux.arm64 += \
1253 generic/RTMpGetDescription-generic-stub.cpp \
1254 r3/posix/system-page-size-posix.cpp \
1255 r3/linux/semevent-linux.cpp \
1256 r3/linux/semeventmulti-linux.cpp \
1257 common/misc/zero-alt.S
1258 RuntimeBaseR3_SOURCES.linux.arm32 += \
1259 generic/RTMpGetDescription-generic-stub.cpp \
1260 r3/posix/system-page-size-posix.cpp \
1261 r3/linux/semevent-linux.cpp \
1262 r3/linux/semeventmulti-linux.cpp \
1263 common/misc/zero-alt.S
1264 ifdef RT_NEW_LINUX_MUTEX_CODE
1265 RuntimeBaseR3_SOURCES.linux.amd64 += \
1266 r3/linux/semmutex-linux.cpp
1267 RuntimeBaseR3_SOURCES.linux.arm64 += \
1268 r3/linux/semmutex-linux.cpp
1269 else
1270 RuntimeBaseR3_SOURCES.linux.amd64 += \
1271 r3/posix/semmutex-posix.cpp
1272 RuntimeBaseR3_SOURCES.linux.arm64 += \
1273 r3/posix/semmutex-posix.cpp
1274 endif
1275endif
1276
1277RuntimeBaseR3_SOURCES.os2 = \
1278 common/string/memrchr.asm \
1279 generic/cdrom-generic.cpp \
1280 generic/RTCrStoreCreateSnapshotById-generic.cpp \
1281 generic/RTDirQueryInfo-generic.cpp \
1282 generic/RTDirSetMode-generic.cpp \
1283 generic/RTDirSetTimes-generic.cpp \
1284 generic/fileio-at-generic.cpp \
1285 generic/fileio-sg-generic.cpp \
1286 generic/fileio-sg-at-generic.cpp \
1287 generic/RTFileCopyPartEx-generic.cpp \
1288 generic/RTFileMove-generic.cpp \
1289 generic/RTFileQuerySectorSize-generic.cpp \
1290 generic/RTFileSetAllocationSize-generic.cpp \
1291 generic/RTLogWriteDebugger-generic.cpp \
1292 generic/RTPathGetCurrentOnDrive-generic.cpp \
1293 generic/RTProcDaemonize-generic.cpp \
1294 generic/RTRandAdvCreateSystemFaster-generic.cpp \
1295 generic/RTRandAdvCreateSystemTruer-generic.cpp \
1296 generic/RTSystemQueryDmiString-generic.cpp \
1297 generic/RTSystemFirmware-generic.cpp \
1298 generic/RTSystemShutdown-generic.cpp \
1299 generic/RTTimeLocalNow-generic.cpp \
1300 generic/RTTimerCreate-generic.cpp \
1301 generic/RTThreadSetAffinityToCpu-generic.cpp \
1302 generic/RTUuidCreate-generic.cpp \
1303 generic/mppresent-generic.cpp \
1304 generic/RTSemEventWait-generic.cpp \
1305 generic/RTSemEventMultiWait-generic.cpp \
1306 generic/RTSemMutexRequest-generic.cpp \
1307 generic/RTSemMutexRequestDebug-generic.cpp \
1308 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
1309 generic/timer-generic.cpp \
1310 generic/utf16locale-generic.cpp \
1311 generic/uuid-generic.cpp \
1312 generic/RTMpGetCoreCount-generic.cpp \
1313 generic/RTMpGetOnlineCoreCount-generic.cpp \
1314 generic/RTMpGetCurFrequency-generic.cpp \
1315 generic/RTMpGetMaxFrequency-generic.cpp \
1316 generic/RTProcIsRunningByName-generic.cpp \
1317 generic/RTThreadGetNativeState-generic.cpp \
1318 os2/RTErrConvertFromOS2.cpp \
1319 r3/generic/allocex-r3-generic.cpp \
1320 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
1321 r3/generic/RTLocaleQueryNormalizedBaseLocaleName-r3-generic.cpp \
1322 r3/generic/RTLocaleQueryUserCountryCode-r3-generic.cpp \
1323 r3/generic/RTTimeZoneGetCurrent-generic.cpp \
1324 r3/generic/dirrel-r3-generic.cpp \
1325 r3/os2/RTTimeSet-os2.cpp \
1326 r3/os2/filelock-os2.cpp \
1327 r3/os2/mempage-native-os2.cpp \
1328 r3/os2/mp-os2.cpp \
1329 r3/os2/pipe-os2.cpp \
1330 r3/os2/rtProcInitExePath-os2.cpp \
1331 r3/os2/sched-os2.cpp \
1332 r3/os2/sems-os2.cpp \
1333 r3/os2/serialport-os2.cpp \
1334 r3/os2/systemmem-os2.cpp \
1335 r3/os2/thread-os2.cpp \
1336 r3/os2/time-os2.cpp \
1337 r3/posix/RTFileQueryFsSizes-posix.cpp \
1338 r3/posix/RTFsMountpointsEnum-posix.cpp \
1339 r3/posix/RTHandleGetStandard-posix.cpp \
1340 r3/posix/RTMemProtect-posix.cpp \
1341 r3/posix/RTPathUserHome-posix.cpp \
1342 r3/posix/RTSystemQueryOSInfo-posix.cpp \
1343 r3/posix/RTTimeNow-posix.cpp \
1344 r3/posix/dir-posix.cpp \
1345 r3/posix/env-posix.cpp \
1346 r3/posix/errvars-posix.cpp \
1347 r3/posix/fileio-posix.cpp \
1348 r3/posix/fileio2-posix.cpp \
1349 r3/posix/fs-posix.cpp \
1350 r3/posix/fs2-posix.cpp \
1351 r3/posix/fs3-posix.cpp \
1352 r3/posix/ldrNative-posix.cpp \
1353 r3/posix/localipc-posix.cpp \
1354 r3/posix/path-posix.cpp \
1355 r3/posix/path2-posix.cpp \
1356 r3/posix/pathhost-posix.cpp \
1357 r3/posix/RTPathUserDocuments-posix.cpp \
1358 r3/posix/process-posix.cpp \
1359 r3/posix/process-creation-posix.cpp \
1360 r3/posix/symlink-posix.cpp \
1361 r3/posix/timelocal-posix.cpp \
1362 r3/posix/utf8-posix.cpp
1363
1364RuntimeBaseR3_SOURCES.darwin = \
1365 common/ioqueue/ioqueue-aiofile-provider.cpp \
1366 darwin/RTErrConvertFromDarwin.cpp \
1367 darwin/RTErrConvertFromDarwinCOM.cpp \
1368 darwin/RTErrConvertFromDarwinIO.cpp \
1369 darwin/RTErrConvertFromDarwinKern.cpp \
1370 generic/cdrom-generic.cpp \
1371 generic/RTDirQueryInfo-generic.cpp \
1372 generic/RTDirSetMode-generic.cpp \
1373 generic/RTDirSetTimes-generic.cpp \
1374 generic/RTFileCopyPartEx-generic.cpp \
1375 generic/RTFileMove-generic.cpp \
1376 generic/RTFileSetAllocationSize-generic.cpp \
1377 generic/RTLogWriteDebugger-generic.cpp \
1378 generic/RTPathGetCurrentOnDrive-generic.cpp \
1379 generic/RTProcDaemonize-generic.cpp \
1380 generic/RTThreadGetAffinity-stub-generic.cpp \
1381 generic/RTThreadSetAffinity-stub-generic.cpp \
1382 generic/RTThreadSetAffinityToCpu-generic.cpp \
1383 generic/RTTimeLocalNow-generic.cpp \
1384 generic/RTTimerCreate-generic.cpp \
1385 generic/RTUuidCreate-generic.cpp \
1386 generic/mppresent-generic.cpp \
1387 generic/RTSemEventMultiWait-2-ex-generic.cpp \
1388 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1389 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
1390 generic/RTSystemShutdown-generic.cpp \
1391 generic/timer-generic.cpp \
1392 generic/utf16locale-generic.cpp \
1393 generic/uuid-generic.cpp \
1394 generic/RTProcIsRunningByName-generic.cpp \
1395 generic/RTThreadGetNativeState-generic.cpp \
1396 generic/RTSystemFirmware-generic.cpp \
1397 r3/darwin/RTCrStoreCreateSnapshotById-darwin.cpp \
1398 r3/darwin/filelock-darwin.cpp \
1399 r3/darwin/RTFileQuerySectorSize-darwin.cpp \
1400 r3/darwin/krnlmod-darwin.cpp \
1401 r3/darwin/mp-darwin.cpp \
1402 r3/darwin/pathhost-darwin.cpp \
1403 r3/darwin/rtProcInitExePath-darwin.cpp \
1404 r3/darwin/RTSystemQueryDmiString-darwin.cpp \
1405 r3/darwin/sched-darwin.cpp \
1406 r3/darwin/systemmem-darwin.cpp \
1407 r3/darwin/time-darwin.cpp \
1408 r3/darwin/RTPathUserDocuments-darwin.cpp \
1409 r3/generic/allocex-r3-generic.cpp \
1410 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
1411 r3/generic/RTLocaleQueryNormalizedBaseLocaleName-r3-generic.cpp \
1412 r3/generic/RTLocaleQueryUserCountryCode-r3-generic.cpp \
1413 r3/generic/dirrel-r3-generic.cpp \
1414 r3/posix/RTFileQueryFsSizes-posix.cpp \
1415 r3/posix/RTFsMountpointsEnum-posix.cpp \
1416 r3/posix/RTHandleGetStandard-posix.cpp \
1417 r3/posix/RTMemProtect-posix.cpp \
1418 r3/posix/RTPathUserHome-posix.cpp \
1419 r3/posix/RTSystemQueryOSInfo-posix.cpp \
1420 r3/posix/RTTimeSet-posix.cpp \
1421 r3/posix/RTTimeZoneGetCurrent-posix.cpp \
1422 r3/posix/dir-posix.cpp \
1423 r3/posix/env-posix.cpp \
1424 r3/posix/errvars-posix.cpp \
1425 r3/posix/fileaio-posix.cpp \
1426 r3/posix/fileio-posix.cpp \
1427 r3/posix/fileio2-posix.cpp \
1428 r3/posix/fileio-at-posix.cpp \
1429 r3/posix/fileio-sg-posix.cpp \
1430 r3/posix/fileio-sg-at-posix.cpp \
1431 r3/posix/fs-posix.cpp \
1432 r3/posix/fs2-posix.cpp \
1433 r3/posix/fs3-posix.cpp \
1434 r3/posix/ldrNative-posix.cpp \
1435 r3/posix/localipc-posix.cpp \
1436 r3/posix/mempage-native-posix.cpp \
1437 r3/posix/path-posix.cpp \
1438 r3/posix/path2-posix.cpp \
1439 r3/posix/pipe-posix.cpp \
1440 r3/posix/process-posix.cpp \
1441 r3/posix/process-creation-posix.cpp \
1442 r3/posix/rand-posix.cpp \
1443 r3/posix/semevent-posix.cpp \
1444 r3/posix/semeventmulti-posix.cpp \
1445 r3/posix/semmutex-posix.cpp \
1446 r3/posix/serialport-posix.cpp \
1447 r3/posix/symlink-posix.cpp \
1448 r3/posix/shmem-posix.cpp \
1449 r3/posix/thread-posix.cpp \
1450 r3/posix/thread2-posix.cpp \
1451 r3/posix/timelocal-posix.cpp \
1452 r3/posix/tls-posix.cpp \
1453 r3/posix/utf8-posix.cpp
1454RuntimeBaseR3_SOURCES.darwin.x86 += \
1455 common/string/mempcpy.asm \
1456 common/string/memrchr.asm
1457RuntimeBaseR3_SOURCES.darwin.amd64 += \
1458 common/string/mempcpy.asm \
1459 common/string/memrchr.asm
1460RuntimeBaseR3_SOURCES.darwin.arm32 += \
1461 common/string/mempcpy.cpp \
1462 common/string/memrchr.cpp \
1463 common/misc/zero-alt.S \
1464 generic/system-page-size-generic.cpp \
1465 r3/darwin/RTMpGetDescription-generic.cpp
1466RuntimeBaseR3_SOURCES.darwin.arm64 += \
1467 common/string/mempcpy.cpp \
1468 common/string/memrchr.cpp \
1469 common/misc/zero-alt.S \
1470 generic/system-page-size-generic.cpp \
1471 r3/darwin/RTMpGetDescription-generic.cpp
1472
1473## @todo Make BSD sched, implement RTMP*.
1474RuntimeBaseR3_SOURCES.freebsd = \
1475 common/ioqueue/ioqueue-aiofile-provider.cpp \
1476 generic/cdrom-generic.cpp \
1477 generic/RTCrStoreCreateSnapshotById-generic.cpp \
1478 generic/RTDirQueryInfo-generic.cpp \
1479 generic/RTDirSetMode-generic.cpp \
1480 generic/RTDirSetTimes-generic.cpp \
1481 generic/RTFileCopyPartEx-generic.cpp \
1482 generic/RTFileMove-generic.cpp \
1483 generic/RTFileSetAllocationSize-generic.cpp \
1484 generic/RTLogWriteDebugger-generic.cpp \
1485 generic/RTPathGetCurrentOnDrive-generic.cpp \
1486 generic/RTSemEventMultiWait-2-ex-generic.cpp \
1487 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1488 generic/RTSystemQueryDmiString-generic.cpp \
1489 generic/RTSystemFirmware-generic.cpp \
1490 generic/RTSystemShutdown-generic.cpp \
1491 generic/RTThreadGetAffinity-stub-generic.cpp \
1492 generic/RTThreadSetAffinity-stub-generic.cpp \
1493 generic/RTThreadSetAffinityToCpu-generic.cpp \
1494 generic/RTTimeLocalNow-generic.cpp \
1495 generic/RTTimerCreate-generic.cpp \
1496 generic/RTUuidCreate-generic.cpp \
1497 generic/mppresent-generic.cpp \
1498 generic/sched-generic.cpp \
1499 generic/utf16locale-generic.cpp \
1500 generic/uuid-generic.cpp \
1501 generic/RTMpCpuId-generic.cpp \
1502 generic/RTMpGetCoreCount-generic.cpp \
1503 generic/RTMpGetOnlineCoreCount-generic.cpp \
1504 generic/RTProcDaemonize-generic.cpp \
1505 generic/RTProcIsRunningByName-generic.cpp \
1506 generic/RTThreadGetNativeState-generic.cpp \
1507 r3/freebsd/fileaio-freebsd.cpp \
1508 r3/freebsd/RTFileQuerySectorSize-freebsd.cpp \
1509 r3/freebsd/mp-freebsd.cpp \
1510 r3/freebsd/systemmem-freebsd.cpp \
1511 r3/freebsd/rtProcInitExePath-freebsd.cpp \
1512 r3/generic/allocex-r3-generic.cpp \
1513 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
1514 r3/generic/RTLocaleQueryNormalizedBaseLocaleName-r3-generic.cpp \
1515 r3/generic/RTLocaleQueryUserCountryCode-r3-generic.cpp \
1516 r3/generic/dirrel-r3-generic.cpp \
1517 r3/posix/RTFileQueryFsSizes-posix.cpp \
1518 r3/posix/RTFsMountpointsEnum-posix.cpp \
1519 r3/posix/RTHandleGetStandard-posix.cpp \
1520 r3/posix/RTMemProtect-posix.cpp \
1521 r3/posix/RTPathUserHome-posix.cpp \
1522 r3/posix/RTSystemQueryOSInfo-posix.cpp \
1523 r3/posix/RTTimeNow-posix.cpp \
1524 r3/posix/RTTimeSet-posix.cpp \
1525 r3/posix/RTTimeZoneGetCurrent-posix.cpp \
1526 r3/posix/dir-posix.cpp \
1527 r3/posix/env-posix.cpp \
1528 r3/posix/errvars-posix.cpp \
1529 r3/posix/fileio-posix.cpp \
1530 r3/posix/fileio2-posix.cpp \
1531 r3/posix/fileio-at-posix.cpp \
1532 r3/posix/fileio-sg-posix.cpp \
1533 r3/posix/fileio-sg-at-posix.cpp \
1534 r3/posix/filelock-posix.cpp \
1535 r3/posix/fs-posix.cpp \
1536 r3/posix/fs2-posix.cpp \
1537 r3/posix/fs3-posix.cpp \
1538 r3/posix/ldrNative-posix.cpp \
1539 r3/posix/localipc-posix.cpp \
1540 r3/posix/mempage-native-posix.cpp \
1541 r3/posix/path-posix.cpp \
1542 r3/posix/path2-posix.cpp \
1543 r3/posix/pathhost-posix.cpp \
1544 r3/posix/RTPathUserDocuments-posix.cpp \
1545 r3/posix/pipe-posix.cpp \
1546 r3/posix/process-posix.cpp \
1547 r3/posix/process-creation-posix.cpp \
1548 r3/posix/rand-posix.cpp \
1549 r3/posix/semevent-posix.cpp \
1550 r3/posix/semeventmulti-posix.cpp \
1551 r3/posix/semmutex-posix.cpp \
1552 r3/posix/semrw-posix.cpp \
1553 r3/posix/serialport-posix.cpp \
1554 r3/posix/symlink-posix.cpp \
1555 r3/posix/shmem-posix.cpp \
1556 r3/posix/thread-posix.cpp \
1557 r3/posix/thread2-posix.cpp \
1558 r3/posix/time-posix.cpp \
1559 r3/posix/timelocal-posix.cpp \
1560 r3/posix/timer-posix.cpp \
1561 r3/posix/tls-posix.cpp \
1562 r3/posix/utf8-posix.cpp
1563
1564RuntimeBaseR3_SOURCES.netbsd = \
1565 generic/cdrom-generic.cpp \
1566 generic/RTDirQueryInfo-generic.cpp \
1567 generic/RTDirSetMode-generic.cpp \
1568 generic/RTDirSetTimes-generic.cpp \
1569 generic/RTFileCopyPartEx-generic.cpp \
1570 generic/RTFileMove-generic.cpp \
1571 generic/RTFileQuerySectorSize-generic.cpp \
1572 generic/RTLogWriteDebugger-generic.cpp \
1573 generic/RTPathGetCurrentOnDrive-generic.cpp \
1574 generic/RTSemEventMultiWait-2-ex-generic.cpp \
1575 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1576 generic/RTSystemQueryDmiString-generic.cpp \
1577 generic/RTSystemFirmware-generic.cpp \
1578 generic/RTSystemShutdown-generic.cpp \
1579 generic/RTThreadGetAffinity-stub-generic.cpp \
1580 generic/RTThreadSetAffinity-stub-generic.cpp \
1581 generic/RTThreadSetAffinityToCpu-generic.cpp \
1582 generic/RTTimeLocalNow-generic.cpp \
1583 generic/RTTimerCreate-generic.cpp \
1584 generic/RTUuidCreate-generic.cpp \
1585 generic/mppresent-generic.cpp \
1586 generic/sched-generic.cpp \
1587 generic/utf16locale-generic.cpp \
1588 generic/uuid-generic.cpp \
1589 generic/RTMpCpuId-generic.cpp \
1590 generic/RTMpGetCoreCount-generic.cpp \
1591 generic/RTMpGetOnlineCoreCount-generic.cpp \
1592 generic/RTProcDaemonize-generic.cpp \
1593 generic/RTProcIsRunningByName-generic.cpp \
1594 generic/RTThreadGetNativeState-generic.cpp \
1595 r3/netbsd/rtProcInitExePath-netbsd.cpp \
1596 r3/generic/allocex-r3-generic.cpp \
1597 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
1598 r3/generic/RTLocaleQueryNormalizedBaseLocaleName-r3-generic.cpp \
1599 r3/generic/RTLocaleQueryUserCountryCode-r3-generic.cpp \
1600 r3/generic/dirrel-r3-generic.cpp \
1601 r3/posix/RTFileQueryFsSizes-posix.cpp \
1602 r3/posix/RTFsMountpointsEnum-posix.cpp \
1603 r3/posix/RTFileSetAllocationSize-posix.cpp \
1604 r3/posix/RTHandleGetStandard-posix.cpp \
1605 r3/posix/RTMemProtect-posix.cpp \
1606 r3/posix/RTPathUserHome-posix.cpp \
1607 r3/posix/RTSystemQueryOSInfo-posix.cpp \
1608 r3/posix/RTSystemQueryTotalRam-posix.cpp \
1609 r3/posix/RTTimeNow-posix.cpp \
1610 r3/posix/RTTimeSet-posix.cpp \
1611 r3/posix/RTTimeZoneGetCurrent-posix.cpp \
1612 r3/posix/dir-posix.cpp \
1613 r3/posix/env-posix.cpp \
1614 r3/posix/errvars-posix.cpp \
1615 r3/posix/fileio-posix.cpp \
1616 r3/posix/fileio2-posix.cpp \
1617 r3/posix/fileio-at-posix.cpp \
1618 r3/posix/fileio-sg-posix.cpp \
1619 r3/posix/fileio-sg-at-posix.cpp \
1620 r3/posix/filelock-posix.cpp \
1621 r3/posix/fs-posix.cpp \
1622 r3/posix/fs2-posix.cpp \
1623 r3/posix/fs3-posix.cpp \
1624 r3/posix/ldrNative-posix.cpp \
1625 r3/posix/mempage-native-posix.cpp \
1626 r3/posix/path-posix.cpp \
1627 r3/posix/path2-posix.cpp \
1628 r3/posix/pathhost-posix.cpp \
1629 r3/posix/RTPathUserDocuments-posix.cpp \
1630 r3/posix/pipe-posix.cpp \
1631 r3/posix/process-posix.cpp \
1632 r3/posix/process-creation-posix.cpp \
1633 r3/posix/rand-posix.cpp \
1634 r3/posix/semevent-posix.cpp \
1635 r3/posix/semeventmulti-posix.cpp \
1636 r3/posix/semmutex-posix.cpp \
1637 r3/posix/semrw-posix.cpp \
1638 r3/posix/serialport-posix.cpp \
1639 r3/posix/symlink-posix.cpp \
1640 r3/posix/shmem-posix.cpp \
1641 r3/posix/thread-posix.cpp \
1642 r3/posix/thread2-posix.cpp \
1643 r3/posix/time-posix.cpp \
1644 r3/posix/timelocal-posix.cpp \
1645 r3/posix/timer-posix.cpp \
1646 r3/posix/tls-posix.cpp \
1647 r3/posix/utf8-posix.cpp
1648
1649RuntimeBaseR3_SOURCES.solaris = \
1650 common/ioqueue/ioqueue-aiofile-provider.cpp \
1651 generic/cdrom-generic.cpp \
1652 generic/RTCrStoreCreateSnapshotById-generic.cpp \
1653 generic/RTDirQueryInfo-generic.cpp \
1654 generic/RTDirSetMode-generic.cpp \
1655 generic/RTDirSetTimes-generic.cpp \
1656 generic/RTFileCopyPartEx-generic.cpp \
1657 generic/RTFileMove-generic.cpp \
1658 generic/RTLogWriteDebugger-generic.cpp \
1659 generic/RTPathGetCurrentOnDrive-generic.cpp \
1660 generic/RTProcDaemonize-generic.cpp \
1661 generic/RTProcIsRunningByName-generic.cpp \
1662 generic/RTSemEventMultiWait-2-ex-generic.cpp \
1663 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1664 generic/RTThreadSetAffinityToCpu-generic.cpp \
1665 generic/RTTimeLocalNow-generic.cpp \
1666 generic/RTTimerCreate-generic.cpp \
1667 generic/RTUuidCreate-generic.cpp \
1668 generic/sched-generic.cpp \
1669 generic/utf16locale-generic.cpp \
1670 generic/uuid-generic.cpp \
1671 generic/RTThreadGetNativeState-generic.cpp \
1672 r3/generic/allocex-r3-generic.cpp \
1673 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
1674 r3/generic/RTLocaleQueryNormalizedBaseLocaleName-r3-generic.cpp \
1675 r3/generic/RTLocaleQueryUserCountryCode-r3-generic.cpp \
1676 r3/generic/dirrel-r3-generic.cpp \
1677 r3/posix/RTFileQueryFsSizes-posix.cpp \
1678 r3/posix/RTFsMountpointsEnum-posix.cpp \
1679 r3/posix/RTFileSetAllocationSize-posix.cpp \
1680 r3/posix/RTHandleGetStandard-posix.cpp \
1681 r3/posix/RTMemProtect-posix.cpp \
1682 r3/posix/RTPathUserHome-posix.cpp \
1683 r3/posix/RTSystemQueryOSInfo-posix.cpp \
1684 r3/posix/RTTimeNow-posix.cpp \
1685 r3/posix/RTTimeSet-posix.cpp \
1686 r3/posix/RTTimeZoneGetCurrent-posix.cpp \
1687 r3/posix/dir-posix.cpp \
1688 r3/posix/env-posix.cpp \
1689 r3/posix/errvars-posix.cpp \
1690 r3/posix/fileio-posix.cpp \
1691 r3/posix/fileio2-posix.cpp \
1692 r3/posix/fileio-at-posix.cpp \
1693 r3/posix/fileio-sg-posix.cpp \
1694 r3/posix/fileio-sg-at-posix.cpp \
1695 r3/posix/filelock-posix.cpp \
1696 r3/posix/fs-posix.cpp \
1697 r3/posix/fs2-posix.cpp \
1698 r3/posix/fs3-posix.cpp \
1699 r3/posix/ldrNative-posix.cpp \
1700 r3/posix/localipc-posix.cpp \
1701 r3/posix/mempage-native-posix.cpp \
1702 r3/posix/path-posix.cpp \
1703 r3/posix/path2-posix.cpp \
1704 r3/posix/pathhost-posix.cpp \
1705 r3/posix/RTPathUserDocuments-posix.cpp \
1706 r3/posix/pipe-posix.cpp \
1707 r3/posix/process-posix.cpp \
1708 r3/posix/process-creation-posix.cpp \
1709 r3/posix/rand-posix.cpp \
1710 r3/posix/semevent-posix.cpp \
1711 r3/posix/semeventmulti-posix.cpp \
1712 r3/posix/semmutex-posix.cpp \
1713 r3/posix/semrw-posix.cpp \
1714 r3/posix/serialport-posix.cpp \
1715 r3/posix/symlink-posix.cpp \
1716 r3/posix/shmem-posix.cpp \
1717 r3/posix/thread-posix.cpp \
1718 r3/posix/thread2-posix.cpp \
1719 r3/posix/time-posix.cpp \
1720 r3/posix/timelocal-posix.cpp \
1721 r3/posix/timer-posix.cpp \
1722 r3/posix/tls-posix.cpp \
1723 r3/posix/utf8-posix.cpp \
1724 r3/solaris/fileaio-solaris.cpp \
1725 r3/solaris/RTFileQuerySectorSize-solaris.cpp \
1726 r3/solaris/krnlmod-solaris.cpp \
1727 r3/solaris/systemmem-solaris.cpp \
1728 r3/solaris/mp-solaris.cpp \
1729 r3/solaris/rtProcInitExePath-solaris.cpp \
1730 r3/solaris/RTSystemFirmware-solaris.cpp \
1731 r3/solaris/RTSystemShutdown-solaris.cpp \
1732 r3/solaris/thread-affinity-solaris.cpp
1733RuntimeBaseR3_SOURCES.solaris.amd64 = \
1734 common/string/memrchr.asm \
1735 common/string/mempcpy.asm \
1736 r3/solaris/coredumper-solaris.cpp \
1737 r3/solaris/RTSystemQueryDmiString-solaris.cpp
1738RuntimeBaseR3_SOURCES.solaris.x86 = \
1739 common/string/memrchr.asm \
1740 common/string/mempcpy.asm \
1741 r3/solaris/coredumper-solaris.cpp \
1742 r3/solaris/RTSystemQueryDmiString-solaris.cpp
1743RuntimeBaseR3_SOURCES.solaris.sparc32 = \
1744 common/string/memrchr.cpp \
1745 common/string/mempcpy.cpp \
1746 generic/RTSystemQueryDmiString-generic.cpp
1747RuntimeBaseR3_SOURCES.solaris.sparc64 = \
1748 common/string/memrchr.cpp \
1749 common/string/mempcpy.cpp \
1750 generic/RTSystemQueryDmiString-generic.cpp
1751
1752RuntimeBaseR3_SOURCES.haiku = \
1753 generic/RTCrStoreCreateSnapshotById-generic.cpp \
1754 generic/RTDirQueryInfo-generic.cpp \
1755 generic/RTDirSetMode-generic.cpp \
1756 generic/RTDirSetTimes-generic.cpp \
1757 generic/fileio-at-generic.cpp \
1758 generic/fileio-sg-generic.cpp \
1759 generic/fileio-sg-at-generic.cpp \
1760 generic/RTFileCopyPartEx-generic.cpp \
1761 generic/RTFileMove-generic.cpp \
1762 generic/RTFileQuerySectorSize-generic.cpp \
1763 generic/RTFileSetAllocationSize-generic.cpp \
1764 generic/RTLogWriteDebugger-generic.cpp \
1765 generic/RTPathGetCurrentOnDrive-generic.cpp \
1766 generic/RTProcDaemonize-generic.cpp \
1767 generic/RTTimeLocalNow-generic.cpp \
1768 generic/RTTimerCreate-generic.cpp \
1769 generic/RTUuidCreate-generic.cpp \
1770 generic/mppresent-generic.cpp \
1771 generic/RTSemEventMultiWait-2-ex-generic.cpp \
1772 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1773 generic/sched-generic.cpp \
1774 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
1775 generic/timer-generic.cpp \
1776 generic/utf16locale-generic.cpp \
1777 generic/uuid-generic.cpp \
1778 generic/RTProcIsRunningByName-generic.cpp \
1779 generic/RTThreadGetNativeState-generic.cpp \
1780 generic/RTMpGetCoreCount-generic.cpp \
1781 generic/RTMpGetOnlineCoreCount-generic.cpp \
1782 r3/haiku/rtProcInitExePath-haiku.cpp \
1783 r3/haiku/time-haiku.cpp \
1784 r3/generic/allocex-r3-generic.cpp \
1785 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
1786 r3/generic/RTLocaleQueryNormalizedBaseLocaleName-r3-generic.cpp \
1787 r3/generic/RTLocaleQueryUserCountryCode-r3-generic.cpp \
1788 r3/generic/RTTimeZoneGetCurrent-generic.cpp \
1789 r3/generic/dirrel-r3-generic.cpp \
1790 r3/posix/RTFileQueryFsSizes-posix.cpp \
1791 r3/posix/RTFsMountpointsEnum-posix.cpp \
1792 r3/posix/RTHandleGetStandard-posix.cpp \
1793 r3/posix/RTMemProtect-posix.cpp \
1794 r3/posix/RTPathUserHome-posix.cpp \
1795 r3/posix/RTSystemQueryOSInfo-posix.cpp \
1796 r3/posix/RTSystemQueryTotalRam-posix.cpp \
1797 r3/posix/RTTimeNow-posix.cpp \
1798 r3/posix/dir-posix.cpp \
1799 r3/posix/env-posix.cpp \
1800 r3/posix/errvars-posix.cpp \
1801 r3/posix/fileio-posix.cpp \
1802 r3/posix/fileio2-posix.cpp \
1803 r3/posix/filelock-posix.cpp \
1804 r3/posix/fs-posix.cpp \
1805 r3/posix/fs2-posix.cpp \
1806 r3/posix/fs3-posix.cpp \
1807 r3/posix/ldrNative-posix.cpp \
1808 r3/posix/localipc-posix.cpp \
1809 r3/posix/mempage-native-posix.cpp \
1810 r3/posix/path-posix.cpp \
1811 r3/posix/path2-posix.cpp \
1812 r3/posix/pathhost-posix.cpp \
1813 r3/posix/pipe-posix.cpp \
1814 r3/posix/process-posix.cpp \
1815 r3/posix/process-creation-posix.cpp \
1816 r3/posix/rand-posix.cpp \
1817 r3/posix/semevent-posix.cpp \
1818 r3/posix/semeventmulti-posix.cpp \
1819 r3/posix/semmutex-posix.cpp \
1820 r3/posix/serialport-posix.cpp \
1821 r3/posix/symlink-posix.cpp \
1822 r3/posix/thread-posix.cpp \
1823 r3/posix/thread2-posix.cpp \
1824 r3/posix/timelocal-posix.cpp \
1825 r3/posix/tls-posix.cpp \
1826 r3/posix/utf8-posix.cpp
1827RuntimeBaseR3_SOURCES.haiku.x86 += common/string/memrchr.asm
1828RuntimeBaseR3_SOURCES.haiku.amd64 += common/string/memrchr.asm
1829
1830## PORTME: Porters add their selection of platform specific files for Ring-3 here.
1831
1832
1833#
1834# kBuild unit for generating nocrt aliases.
1835#
1836# This scans assembly, C and C++ source files for the target looking for macros
1837# that defines functions and variables needing aliasing.
1838#
1839UNIT_VBoxNoCrtAliases = CRT symbol alias for the rtnocr_xxx implementations
1840
1841# Only adding the VBOX_NOCRT_ALIASES property to library targets for now:
1842PROPS_ACCUMULATE_L += VBOX_NOCRT_ALIASES
1843PROPS_ACCUMULATE_L_LNK += VBOX_NOCRT_ALIASES
1844PROPS_LIBRARIES_ACCUMULATE_L += VBOX_NOCRT_ALIASES
1845PROPS_ALL += VBOX_NOCRT_ALIASES
1846
1847define def_unit_VBoxNoCrtAliases_double_expansion
1848 $$($(target)_2_VBOX_NOCRT_ALIAS_KMK_FILE).ts +| $$($(target)_2_VBOX_NOCRT_ALIAS_KMK_FILE): \
1849 $$(abspathex \
1850 $$($(target)_SOURCES) \
1851 $$($(target)_SOURCES.$(bld_trg)) \
1852 $$($(target)_SOURCES.$(bld_trg).$(bld_type)) \
1853 $$($(target)_SOURCES.$(bld_trg).$(bld_trg_arch)) \
1854 $$($(target)_SOURCES.$(bld_trg).$(bld_trg_arch).$(bld_type)) \
1855 $$($(target)_SOURCES.$(bld_trg_arch)) \
1856 $$($(target)_SOURCES.$(bld_trg_cpu)) \
1857 $$($(target)_SOURCES.$(bld_type)) \
1858 , $(firstfile $(defpath) $(PATH_SUB_CURRENT))) \
1859 $$(VBOX_PATH_RUNTIME_SRC)//nocrt-aliases.sed
1860 $$(call MSG_GENERATE,$(target),$$@,)
1861 $$(QUIET)$$(MKDIR) -p -- "$$(dir $$@)"
1862 $$(QUIET)$$(APPEND) -tn "$$@" "$(target)_2_VBOX_NOCRT_ALIASES := \\"
1863 $$(xargs $$(QUIET)$$(SED) -rn -f "$$(VBOX_PATH_RUNTIME_SRC)/nocrt-aliases.sed" --append "$$@" , $$(filter %.c %.cpp %.asm, $$^) )
1864 $$(QUIET)$$(APPEND) -n "$$@" "" ""
1865 $$(QUIET)$$(CP) --changed -f -- "$$@" "$$(patsubst %.ts,%,$$@)"
1866
1867 $$($(target)_0_OUTDIR)/genalias/genalias.ts + $$($(target)_2_VBOX_NOCRT_ALIAS_FILES): | $$(VBOX_GENALIAS)
1868 $$(call MSG_GENERATE,$(target),$$@,)
1869 $$(QUIET)$$(MKDIR) -p -- "$$($(target)_0_OUTDIR)/genalias/"
1870 $$(QUIET)$$(VBOX_GENALIAS) -f $$(if-expr "$(bld_trg)" == "win",coff.$(bld_trg_arch),$$(if-expr "$(bld_trg)" == "darwin",macho,omf)) \
1871 -D "$$($(target)_0_OUTDIR)/genalias/" $$($(target)_2_VBOX_NOCRT_ALIASES) \
1872 $$($(target)_VBOX_NOCRT_ALIASES) \
1873 $$($(target)_VBOX_NOCRT_ALIASES.$(bld_trg)) \
1874 $$($(target)_VBOX_NOCRT_ALIASES.$(bld_trg).$(bld_type)) \
1875 $$($(target)_VBOX_NOCRT_ALIASES.$(bld_trg).$(bld_trg_arch)) \
1876 $$($(target)_VBOX_NOCRT_ALIASES.$(bld_trg).$(bld_trg_arch).$(bld_type)) \
1877 $$($(target)_VBOX_NOCRT_ALIASES.$(bld_trg_arch)) \
1878 $$($(target)_VBOX_NOCRT_ALIASES.$(bld_trg_cpu)) \
1879 $$($(target)_VBOX_NOCRT_ALIASES.$(bld_type))
1880 $$(QUIET)$$(APPEND) -tn "$$($(target)_0_OUTDIR)/genalias/genalias.ts" "$$($(target)_2_VBOX_NOCRT_ALIASES))"
1881
1882 $(target)_2_OBJS += $$($(target)_2_VBOX_NOCRT_ALIAS_FILES)
1883 OTHER_CLEAN += $$($(target)_2_VBOX_NOCRT_ALIAS_KMK_FILE) $$($(target)_2_VBOX_NOCRT_ALIAS_KMK_FILE).ts
1884endef
1885
1886define def_unit_VBoxNoCrtAliases_target_pre
1887 if1of ($(bld_trg), win os2 darwin) # Only non-ELF targets as ELF does not support aliasing.
1888 $(target)_2_VBOX_NOCRT_ALIAS_KMK_FILE := $(PATH_OUT)/nocrt-aliases-$(target).kmk
1889 include $($(target)_2_VBOX_NOCRT_ALIAS_KMK_FILE)
1890 $(target)_2_VBOX_NOCRT_ALIAS_FILES := $(foreach alias,$($(target)_2_VBOX_NOCRT_ALIASES) \
1891 $($(target)_VBOX_NOCRT_ALIASES) \
1892 $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg)) \
1893 $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg).$(bld_type)) \
1894 $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg).$(bld_trg_arch)) \
1895 $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg).$(bld_trg_arch).$(bld_type)) \
1896 $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg_arch)) \
1897 $($(target)_VBOX_NOCRT_ALIASES.$(bld_trg_cpu)) \
1898 $($(target)_VBOX_NOCRT_ALIASES.$(bld_type)) \
1899 , $($(target)_0_OUTDIR)/genalias/$(firstword $(subst =, $(SPACE),$(alias))).o)
1900 $(eval $(def_unit_VBoxNoCrtAliases_double_expansion))
1901 endif
1902endef
1903
1904
1905#
1906# RuntimeR3 - Static Runtime for Ring-3 executables.
1907#
1908# We drop the windows error defines here for reason of size. The valkit tstUtf8
1909# was reduced by 175KB, from 600KB to 425KB (about 30%). Come up with a way of
1910# stripping it down or compressing it better and it can be added back.
1911# - 2022-08-17, bird.
1912#
1913RuntimeR3_TEMPLATE = VBoxR3Static
1914RuntimeR3_EXTENDS = RuntimeBaseR3
1915RuntimeR3_DEFS.win = $(RuntimeBaseR3_DEFS.win) IPRT_NO_WIN_ERROR_DATA
1916ifdef VBOX_WITH_NOCRT_STATIC
1917 if1of ($(KBUILD_TARGET), win)
1918 RuntimeR3_USES = $(RuntimeBaseR3_USES) VBoxNoCrtAliases
1919 RuntimeR3_DEFS = $(filter-out RT_WITHOUT_NOCRT_WRAPPERS,$(RuntimeBaseR3_DEFS)) \
1920 RT_FORCE_NOCRT_WRAPPERS \
1921 RT_WITH_NOCRT_ALIASES RT_WITH_NOCRT_UNDERSCORE_ALIASES RT_WITH_GENALIAS_NOCRT_ALIASES
1922
1923 RuntimeR3_SOURCES = $(filter-out \
1924 r3/alloc.cpp \
1925 r3/alloc-ef.cpp \
1926 r3/xml.cpp \
1927 common/zip/xarvfs.cpp \
1928 common/misc/json.cpp \
1929 generic/RTLogWriteStdErr-generic.cpp \
1930 generic/RTLogWriteStdOut-generic.cpp \
1931 ,$(RuntimeBaseR3_SOURCES)) \
1932 \
1933 common/err/nocrt-strerror.cpp \
1934 common/file/nocrt-open.cpp \
1935 common/file/nocrt-close.cpp \
1936 common/file/nocrt-fstat.cpp \
1937 common/file/nocrt-isatty.cpp \
1938 common/file/nocrt-read.cpp \
1939 common/math/nocrt-abs.cpp \
1940 common/math/nocrt-labs.cpp \
1941 common/math/nocrt-llabs.cpp \
1942 common/math/consts.c \
1943 common/math/copysign.cpp \
1944 common/math/copysignf.cpp \
1945 common/math/copysignl.cpp \
1946 common/math/fmax.cpp \
1947 common/math/fmaxf.cpp \
1948 common/math/fmaxl.cpp \
1949 common/math/fmin.cpp \
1950 common/math/fminf.cpp \
1951 common/math/fminl.cpp \
1952 common/math/frexp.cpp \
1953 common/math/frexpf.cpp \
1954 common/math/frexpl.cpp \
1955 common/math/__fpclassifyd.cpp \
1956 common/math/__fpclassifyf.cpp \
1957 common/math/__fpclassifyl.cpp \
1958 common/math/__isfinite.cpp \
1959 common/math/__isfinitef.cpp \
1960 common/math/__isfinitel.cpp \
1961 common/math/isinf.cpp \
1962 common/math/__isinff.cpp \
1963 common/math/__isinfl.cpp \
1964 common/math/isnan.cpp \
1965 common/math/isnanf.cpp \
1966 common/math/__isnanl.cpp \
1967 common/math/__isnormal.cpp \
1968 common/math/__isnormalf.cpp \
1969 common/math/__isnormall.cpp \
1970 common/math/llround.cpp \
1971 common/math/llroundf.cpp \
1972 common/math/llroundl.cpp \
1973 common/math/lround.cpp \
1974 common/math/lroundf.cpp \
1975 common/math/lroundl.cpp \
1976 common/math/round.cpp \
1977 common/math/roundf.cpp \
1978 common/math/roundl.cpp \
1979 common/math/__signbit.cpp \
1980 common/math/__signbitf.cpp \
1981 common/math/__signbitl.cpp \
1982 common/path/nocrt-access.cpp \
1983 common/path/nocrt-unlink.cpp \
1984 common/rand/nocrt-rand.cpp \
1985 common/sort/nocrt-qsort.cpp \
1986 common/sort/nocrt-qsort_r.cpp \
1987 common/sort/nocrt-bsearch.cpp \
1988 common/string/nocrt-strdup.cpp \
1989 common/string/nocrt-stricmp.cpp \
1990 common/string/nocrt-strtod.cpp \
1991 common/string/nocrt-atof.cpp \
1992 common/string/nocrt-strtol.cpp \
1993 common/string/nocrt-strtoll.cpp \
1994 common/string/nocrt-strtoul.cpp \
1995 common/string/nocrt-strtoull.cpp \
1996 common/string/nocrt-snprintf.cpp \
1997 common/string/nocrt-vsnprintf.cpp \
1998 common/string/nocrt-scprintf.cpp \
1999 common/string/nocrt-vscprintf.cpp \
2000 common/string/nocrt-sscanf.cpp \
2001 common/string/nocrt-vsscanf.cpp \
2002 common/string/atoi.cpp \
2003 common/string/strtok_r.cpp \
2004 r3/nocrt-per-thread-1.cpp \
2005 r3/nocrt-per-thread-2.cpp \
2006 r3/nocrt-errno.cpp \
2007 r3/nocrt-fopen.cpp \
2008 r3/nocrt-fdopen.cpp \
2009 r3/nocrt-tmpfile.cpp \
2010 r3/nocrt-tmpfile_s.cpp \
2011 r3/nocrt-fileno.cpp \
2012 r3/nocrt-fclose.cpp \
2013 r3/nocrt-fflush.cpp \
2014 r3/nocrt-setvbuf.cpp \
2015 r3/nocrt-fseek.cpp \
2016 r3/nocrt-fseeko.cpp \
2017 r3/nocrt-ftell.cpp \
2018 r3/nocrt-ftello.cpp \
2019 r3/nocrt-fwrite.cpp \
2020 r3/nocrt-fputc.cpp \
2021 r3/nocrt-putc.cpp \
2022 r3/nocrt-fputs.cpp \
2023 r3/nocrt-puts.cpp \
2024 r3/nocrt-fread.cpp \
2025 r3/nocrt-fgetc.cpp \
2026 r3/nocrt-getc.cpp \
2027 r3/nocrt-clearerr.cpp \
2028 r3/nocrt-ferror.cpp \
2029 r3/nocrt-cerr.cpp \
2030 r3/nocrt-cout.cpp
2031
2032 RuntimeR3_SOURCES.x86 = $(RuntimeBaseR3_SOURCES.x86) \
2033 common/math/atan.asm \
2034 common/math/atanf.asm \
2035 common/math/atan2.asm \
2036 common/math/atan2f.asm \
2037 common/math/cos.asm \
2038 common/math/cosf.asm \
2039 common/math/ceil.asm \
2040 common/math/ceilf.asm \
2041 common/math/exp.asm \
2042 common/math/expf.asm \
2043 common/math/exp2.asm \
2044 common/math/exp2f.asm \
2045 common/math/fabs.asm \
2046 common/math/fabsf.asm \
2047 common/math/rtNoCrtHasSse.asm \
2048 common/math/fegetenv.asm \
2049 common/math/fesetenv.asm \
2050 common/math/feholdexcept.asm \
2051 common/math/feupdateenv.asm \
2052 common/math/fegetround.asm \
2053 common/math/fesetround.asm \
2054 common/math/fegetx87precision.asm \
2055 common/math/fesetx87precision.asm \
2056 common/math/fegetexcept.asm \
2057 common/math/feenableexcept.asm \
2058 common/math/fedisableexcept.asm \
2059 common/math/feclearexcept.asm \
2060 common/math/fegetexceptflag.asm \
2061 common/math/fesetexceptflag.asm \
2062 common/math/fetestexcept.asm \
2063 common/math/feraiseexcept.asm \
2064 common/math/floor.asm \
2065 common/math/floorf.asm \
2066 common/math/ldexp.asm \
2067 common/math/ldexpf.asm \
2068 common/math/log.asm \
2069 common/math/logf.asm \
2070 common/math/log2.asm \
2071 common/math/log2f.asm \
2072 common/math/llrint.asm \
2073 common/math/llrintf.asm \
2074 common/math/lrint.asm \
2075 common/math/lrintf.asm \
2076 common/math/pow.asm \
2077 common/math/powf.asm \
2078 common/math/powcore.asm \
2079 common/math/remainder.asm \
2080 common/math/remainderf.asm \
2081 common/math/rint.asm \
2082 common/math/rintf.asm \
2083 common/math/sin.asm \
2084 common/math/sinf.asm \
2085 common/math/sincore.asm \
2086 common/math/sqrt.asm \
2087 common/math/sqrtf.asm \
2088 common/math/tan.asm \
2089 common/math/tanf.asm \
2090 common/math/trunc.asm \
2091 common/math/truncf.asm \
2092 common/misc/setjmp.asm \
2093 common/string/memcpy.asm \
2094 common/string/memchr.asm \
2095 common/string/memcmp.asm \
2096 common/string/memmove.asm \
2097 common/string/memset.asm \
2098 common/string/strlen.asm \
2099 common/string/strnlen.cpp \
2100 common/string/strchr.asm \
2101 common/string/strcmp.asm \
2102 common/string/strncmp.asm \
2103 common/string/strcpy.asm \
2104 common/string/strncpy.asm \
2105 common/string/strcat.cpp \
2106 common/string/strncat.cpp \
2107 common/string/strrchr.cpp \
2108 common/string/strstr.cpp \
2109 common/string/strcspn.cpp \
2110 common/string/strpbrk.cpp \
2111 common/string/wcslen.asm
2112
2113 RuntimeR3_SOURCES.amd64 = $(RuntimeBaseR3_SOURCES.amd64) \
2114 common/math/atan.asm \
2115 common/math/atanf.asm \
2116 common/math/atan2.asm \
2117 common/math/atan2f.asm \
2118 common/math/cos.asm \
2119 common/math/cosf.asm \
2120 common/math/ceil.asm \
2121 common/math/ceilf.asm \
2122 common/math/exp.asm \
2123 common/math/expf.asm \
2124 common/math/exp2.asm \
2125 common/math/exp2f.asm \
2126 common/math/fabs.asm \
2127 common/math/fabsf.asm \
2128 common/math/fegetenv.asm \
2129 common/math/fesetenv.asm \
2130 common/math/feholdexcept.asm \
2131 common/math/feupdateenv.asm \
2132 common/math/fegetround.asm \
2133 common/math/fesetround.asm \
2134 common/math/fegetx87precision.asm \
2135 common/math/fesetx87precision.asm \
2136 common/math/fegetexcept.asm \
2137 common/math/feenableexcept.asm \
2138 common/math/fedisableexcept.asm \
2139 common/math/feclearexcept.asm \
2140 common/math/fegetexceptflag.asm \
2141 common/math/fesetexceptflag.asm \
2142 common/math/fetestexcept.asm \
2143 common/math/feraiseexcept.asm \
2144 common/math/floor.asm \
2145 common/math/floorf.asm \
2146 common/math/ldexp.asm \
2147 common/math/ldexpf.asm \
2148 common/math/log.asm \
2149 common/math/logf.asm \
2150 common/math/log2.asm \
2151 common/math/log2f.asm \
2152 common/math/llrint.asm \
2153 common/math/llrintf.asm \
2154 common/math/lrint.asm \
2155 common/math/lrintf.asm \
2156 common/math/pow.asm \
2157 common/math/powf.asm \
2158 common/math/powcore.asm \
2159 common/math/remainder.asm \
2160 common/math/remainderf.asm \
2161 common/math/rint.asm \
2162 common/math/rintf.asm \
2163 common/math/sin.asm \
2164 common/math/sinf.asm \
2165 common/math/sincore.asm \
2166 common/math/sqrt.asm \
2167 common/math/sqrtf.asm \
2168 common/math/tan.asm \
2169 common/math/tanf.asm \
2170 common/math/trunc.asm \
2171 common/math/truncf.asm \
2172 common/misc/setjmp.asm \
2173 common/string/memcpy.asm \
2174 common/string/memchr.asm \
2175 common/string/memcmp.asm \
2176 common/string/memmove.asm \
2177 common/string/memset.asm \
2178 common/string/strlen.asm \
2179 common/string/strnlen.cpp \
2180 common/string/strchr.asm \
2181 common/string/strcmp.asm \
2182 common/string/strncmp.asm \
2183 common/string/strcpy.asm \
2184 common/string/strncpy.asm \
2185 common/string/strcat.cpp \
2186 common/string/strncat.cpp \
2187 common/string/strrchr.cpp \
2188 common/string/strstr.cpp \
2189 common/string/strcspn.cpp \
2190 common/string/strpbrk.cpp \
2191 common/string/wcslen.asm
2192
2193 RuntimeR3_SOURCES.win = $(filter-out \
2194 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
2195 ,$(RuntimeBaseR3_SOURCES.win)) \
2196 \
2197 common/compiler/vcc/atexit-vcc.cpp \
2198 common/compiler/vcc/loadcfg-vcc.c \
2199 common/compiler/vcc/tlsdir-vcc.c \
2200 common/compiler/vcc/initializers-c-cpp-vcc.cpp \
2201 common/compiler/vcc/stacksup-vcc.cpp \
2202 common/compiler/vcc/fltused-vcc.cpp \
2203 common/compiler/vcc/purecall-vcc.cpp \
2204 common/file/nocrt-dup.cpp \
2205 r3/win/nocrt-startup-exe-win.cpp \
2206 r3/win/nocrt-startup-dll-win.cpp \
2207 r3/win/nocrt-startup-common-win.cpp \
2208 r3/win/nocrt-fatal-write-win.cpp \
2209 r3/win/nocrt-alloc-win.cpp \
2210 r3/win/nocrt-RTLogWriteStdErr-win.cpp \
2211 r3/win/nocrt-RTLogWriteStdOut-win.cpp \
2212 generic/new-delete-generic.cpp
2213 RuntimeR3_SOURCES.win.amd64 = $(RuntimeBaseR3_SOURCES.win.amd64) \
2214 r3/win/nocrt-atexit-win.asm \
2215 r3/win/nocrt-mainCRTStartup-win.asm \
2216 r3/win/nocrt-WinMainCRTStartup-win.asm \
2217 common/compiler/vcc/guard-vcc.asm \
2218 common/compiler/vcc/stack-vcc.asm \
2219 common/compiler/vcc/stack-except-vcc.cpp \
2220 common/compiler/vcc/stack-except-seh-vcc.cpp \
2221 common/compiler/vcc/stack-probe-vcc.asm \
2222 common/compiler/vcc/except-seh-vcc.cpp
2223 RuntimeR3_SOURCES.win.x86 = $(RuntimeBaseR3_SOURCES.win.x86) \
2224 r3/win/nocrt-atexit-win.asm \
2225 r3/win/nocrt-mainCRTStartup-win.asm \
2226 r3/win/nocrt-WinMainCRTStartup-win.asm \
2227 common/compiler/vcc/guard-vcc.asm \
2228 common/compiler/vcc/stack-vcc.asm \
2229 common/compiler/vcc/stack-probe-vcc.asm \
2230 common/compiler/vcc/ftol2-vcc.asm \
2231 common/compiler/vcc/except-x86-vcc.cpp \
2232 common/compiler/vcc/except-x86-vcc-asm.asm \
2233 common/compiler/vcc/x86-allshl.asm \
2234 common/compiler/vcc/x86-allshr.asm \
2235 common/compiler/vcc/x86-aullshr.asm \
2236 common/compiler/vcc/x86-allmul.asm \
2237 common/compiler/vcc/x86-alldiv.asm \
2238 common/compiler/vcc/x86-allrem.asm \
2239 common/compiler/vcc/x86-alldvrm.asm \
2240 common/compiler/vcc/x86-aulldiv.asm \
2241 common/compiler/vcc/x86-aullrem.asm \
2242 common/compiler/vcc/x86-aulldvrm.asm
2243 RuntimeR3_VBOX_NOCRT_ALIASES.win := \
2244 strtok_s=nocrt_strtok_r _strtok_s=nocrt_strtok_r nocrt_strtok_s=nocrt_strtok_r \
2245 $(foreach fn, atan atan2 cos ceil exp fabs floor ldexp log lrint llrint remainder sin tan \
2246 ,$(fn)l=nocrt_$(fn) _$(fn)l=nocrt_$(fn))
2247 endif
2248endif
2249
2250
2251#
2252# Generate RTIsoMaker / VISO help text from the manpage xml.
2253#
2254ifn1of ($(KBUILD_TARGET), os2) # breaks validationkit, figure out later.
2255
2256 IPRT_XML_REFENTRY_FILES = \
2257 common/fs/isomakercmd-man.xml
2258
2259 #$(call KB_FN_DO_PASS0_ON_TARGET,RuntimeR3)
2260
2261 BLDDIRS += $(IPRT_OUT_DIR)/man/
2262 OTHER_CLEAN += $(foreach xml,$(basename $(notdir $(IPRT_XML_REFENTRY_FILES))), \
2263 $(IPRT_OUT_DIR)/man/$(xml).xml $(IPRT_OUT_DIR)/man/$(xml).h $(IPRT_OUT_DIR)/man/$(xml).h.ts)
2264
2265
2266 include $(PATH_ROOT)/doc/manual/Config.kmk
2267
2268 # Preprocess the xml files, applying remarks.
2269 $(foreach file,$(IPRT_XML_REFENTRY_FILES) \
2270 , $(evalcall2 def_vbox_refentry_preprocess_for_manpage,$(IPRT_OUT_DIR)/man,$(notdir $(file)),$(VBOX_PATH_RUNTIME_SRC)/$(file)))
2271
2272 # generate the header and add it as a dependency to the source using it.
2273 $(evalcall2 def_vbox_single_refentry_to_h,$(IPRT_OUT_DIR)/man/isomakercmd-man.h, $(IPRT_OUT_DIR)/man/isomakercmd-man.xml)
2274 common/fs/isomakercmd.cpp_DEPS = $(IPRT_OUT_DIR)/man/isomakercmd-man.h
2275 common/fs/isomakercmd.cpp_INCS = $(IPRT_OUT_DIR)/man/
2276
2277endif
2278
2279
2280#
2281# RuntimeR3-x86 - 32-bit version of RuntimeR3 for windows hosts.
2282#
2283RuntimeR3-x86_EXTENDS := RuntimeR3
2284RuntimeR3-x86_BLD_TRG_ARCH := x86
2285RuntimeR3-x86_DEFS = $(filter-out IN_SUP_R3 IN_SUP, $(RuntimeR3_DEFS)) IPRT_WITHOUT_LDR_VERIFY RT_NO_GIP
2286
2287
2288#
2289# RuntimeR3NoAsan - A RuntimeR3 version without ASAN for windows hosts.
2290#
2291RuntimeR3NoAsan_EXTENDS := RuntimeR3
2292RuntimeR3NoAsan_TEMPLATE := VBoxR3StaticExeNoAsan
2293
2294
2295#
2296# RuntimeBldProg - Static Runtime for build programs.
2297#
2298# Note! This is a bit of hacky since kBuild doesn't support building libraries
2299# for build programs.
2300#
2301RuntimeBldProg_TEMPLATE := VBoxAdvBldProg
2302RuntimeBldProg_EXTENDS := RuntimeBaseR3
2303RuntimeBldProg_BLD_TRG := $(KBUILD_HOST)
2304RuntimeBldProg_BLD_TRG_ARCH := $(KBUILD_HOST_ARCH)
2305RuntimeBldProg_BLD_TRG_CPU := $(KBUILD_HOST_CPU)
2306RuntimeBldProg_DEFS := $(filter-out IN_SUP_R3 IN_SUP, $(RuntimeBaseR3_DEFS)) IPRT_WITHOUT_LDR_VERIFY RT_NO_GIP
2307RuntimeBldProg_SOURCES = \
2308 common/alloc/alloc.cpp \
2309 common/alloc/memcache.cpp \
2310 common/asn1/asn1-basics.cpp \
2311 common/asn1/asn1-cursor.cpp \
2312 common/asn1/asn1-default-allocator.cpp \
2313 common/asn1/asn1-dump.cpp \
2314 common/asn1/asn1-efence-allocator.cpp \
2315 common/asn1/asn1-encode.cpp \
2316 common/asn1/asn1-safer-allocator.cpp \
2317 common/asn1/asn1-ut-bitstring-decode.cpp \
2318 common/asn1/asn1-ut-bitstring.cpp \
2319 common/asn1/asn1-ut-boolean-decode.cpp \
2320 common/asn1/asn1-ut-boolean.cpp \
2321 common/asn1/asn1-ut-core-decode.cpp \
2322 common/asn1/asn1-ut-core.cpp \
2323 common/asn1/asn1-ut-dyntype-decode.cpp \
2324 common/asn1/asn1-ut-dyntype.cpp \
2325 common/asn1/asn1-ut-integer-decode.cpp \
2326 common/asn1/asn1-ut-integer.cpp \
2327 common/asn1/asn1-ut-null-decode.cpp \
2328 common/asn1/asn1-ut-null.cpp \
2329 common/asn1/asn1-ut-objid-decode.cpp \
2330 common/asn1/asn1-ut-objid.cpp \
2331 common/asn1/asn1-ut-octetstring-decode.cpp \
2332 common/asn1/asn1-ut-octetstring.cpp \
2333 common/asn1/asn1-ut-string-decode.cpp \
2334 common/asn1/asn1-ut-string.cpp \
2335 common/asn1/asn1-ut-time-decode.cpp \
2336 common/asn1/asn1-ut-time.cpp \
2337 common/checksum/adler32.cpp \
2338 common/checksum/alt-md2.cpp \
2339 common/checksum/alt-md4.cpp \
2340 common/checksum/alt-md5.cpp \
2341 common/checksum/alt-sha1.cpp \
2342 common/checksum/alt-sha256.cpp \
2343 common/checksum/alt-sha512.cpp \
2344 common/checksum/alt-sha3.cpp \
2345 common/checksum/crc16ccitt.cpp \
2346 common/checksum/crc32.cpp \
2347 common/checksum/crc32c.cpp \
2348 common/checksum/crc64.cpp \
2349 common/checksum/manifest2.cpp \
2350 common/checksum/manifest3.cpp \
2351 common/checksum/md5str.cpp \
2352 common/checksum/sha1str.cpp \
2353 common/checksum/sha256str.cpp \
2354 common/checksum/sha512str.cpp \
2355 common/crypto/digest-builtin.cpp \
2356 common/crypto/digest-core.cpp \
2357 common/crypto/key.cpp \
2358 common/crypto/pemfile-read.cpp \
2359 common/crypto/pkcs7-asn1-decoder.cpp \
2360 common/crypto/pkcs7-core.cpp \
2361 common/crypto/pkcs7-init.cpp \
2362 common/crypto/pkcs7-sanity.cpp \
2363 common/crypto/pkcs7-verify.cpp \
2364 common/crypto/pkcs8-asn1-decoder.cpp \
2365 common/crypto/pkcs8-core.cpp \
2366 common/crypto/pkcs8-init.cpp \
2367 common/crypto/pkcs8-sanity.cpp \
2368 common/crypto/pkix-signature-builtin.cpp \
2369 common/crypto/pkix-signature-core.cpp \
2370 common/crypto/pkix-signature-rsa.cpp \
2371 common/crypto/pkix-signature-ossl.cpp \
2372 common/crypto/pkix-util.cpp \
2373 common/crypto/pkix-verify.cpp \
2374 common/crypto/rsa-asn1-decoder.cpp \
2375 common/crypto/rsa-core.cpp \
2376 common/crypto/rsa-init.cpp \
2377 common/crypto/rsa-sanity.cpp \
2378 common/crypto/RTCrStoreCertAddFromJavaKeyStore.cpp \
2379 common/crypto/RTCrStoreCreateSnapshotOfUserAndSystemTrustedCAsAndCerts.cpp \
2380 common/crypto/spc-asn1-decoder.cpp \
2381 common/crypto/spc-core.cpp \
2382 common/crypto/spc-init.cpp \
2383 common/crypto/spc-sanity.cpp \
2384 common/crypto/store-cert-add-basic.cpp \
2385 common/crypto/store-inmem.cpp \
2386 common/crypto/store.cpp \
2387 common/crypto/taf-asn1-decoder.cpp \
2388 common/crypto/taf-core.cpp \
2389 common/crypto/taf-init.cpp \
2390 common/crypto/taf-sanity.cpp \
2391 common/crypto/tsp-asn1-decoder.cpp \
2392 common/crypto/tsp-core.cpp \
2393 common/crypto/tsp-init.cpp \
2394 common/crypto/tsp-sanity.cpp \
2395 common/crypto/x509-asn1-decoder.cpp \
2396 common/crypto/x509-certpaths.cpp \
2397 common/crypto/x509-core.cpp \
2398 common/crypto/x509-create-sign.cpp \
2399 common/crypto/x509-file.cpp \
2400 common/crypto/x509-init.cpp \
2401 common/crypto/x509-sanity.cpp \
2402 common/crypto/x509-verify.cpp \
2403 common/dbg/dbg.cpp \
2404 common/dbg/dbgcfg.cpp \
2405 common/dbg/dbgmod.cpp \
2406 common/dbg/dbgmodcodeview.cpp \
2407 common/dbg/dbgmodcontainer.cpp \
2408 common/dbg/dbgmoddeferred.cpp \
2409 common/dbg/dbgmoddwarf.cpp \
2410 common/dbg/dbgmodexports.cpp \
2411 common/dbg/dbgmodldr.cpp \
2412 common/dbg/dbgmodmapsym.cpp \
2413 common/dbg/dbgmodnm.cpp \
2414 common/err/errinfo-alloc.cpp \
2415 common/err/errinfo.cpp \
2416 common/err/errinfolog.cpp \
2417 common/err/errmsg.cpp \
2418 common/err/RTErrConvertFromErrno.cpp \
2419 common/err/RTErrConvertToErrno.cpp \
2420 common/fs/isomaker.cpp \
2421 common/fs/isomakercmd.cpp \
2422 common/fs/isomakerimport.cpp \
2423 common/fs/isovfs.cpp \
2424 common/fs/pdbvfs.cpp \
2425 common/ldr/ldr.cpp \
2426 common/ldr/ldrELF.cpp \
2427 common/ldr/ldrEx.cpp \
2428 common/ldr/ldrFile.cpp \
2429 common/ldr/ldrLX.cpp \
2430 common/ldr/ldrMachO.cpp \
2431 common/ldr/ldrNative.cpp \
2432 common/ldr/ldrPE.cpp \
2433 common/ldr/ldrVfsFile.cpp \
2434 common/log/log.cpp \
2435 common/log/log-weak.cpp \
2436 common/log/log-weak-assert.cpp \
2437 common/log/log-weak-rel.cpp \
2438 common/log/logellipsis.cpp \
2439 common/log/logformat.cpp \
2440 common/log/logrel.cpp \
2441 common/log/logrelellipsis.cpp \
2442 common/log/RTLogCreateEx.cpp \
2443 common/math/bignum.cpp \
2444 common/misc/assert.cpp \
2445 common/misc/cidr.cpp \
2446 common/misc/getopt.cpp \
2447 common/misc/getoptargv.cpp \
2448 common/misc/lockvalidator.cpp \
2449 common/misc/message.cpp \
2450 common/misc/messagerefentry.cpp \
2451 common/misc/once.cpp \
2452 common/misc/RTAssertMsg1Weak.cpp \
2453 common/misc/RTAssertMsg2.cpp \
2454 common/misc/RTAssertMsg2Add.cpp \
2455 common/misc/RTAssertMsg2AddWeak.cpp \
2456 common/misc/RTAssertMsg2AddWeakV.cpp \
2457 common/misc/RTAssertMsg2Weak.cpp \
2458 common/misc/RTAssertMsg2WeakV.cpp \
2459 common/misc/RTFileModeToFlags.cpp \
2460 common/misc/RTFileOpenF.cpp \
2461 common/misc/RTFileOpenV.cpp \
2462 common/misc/RTMemWipeThoroughly.cpp \
2463 common/misc/req.cpp \
2464 common/misc/reqqueue.cpp \
2465 common/misc/reqpool.cpp \
2466 common/misc/sanity-c.c \
2467 common/misc/sanity-cpp.cpp \
2468 common/misc/sg.cpp \
2469 common/misc/term.cpp \
2470 common/misc/thread.cpp \
2471 common/net/macstr.cpp \
2472 common/net/netaddrstr2.cpp \
2473 common/path/comparepaths.cpp \
2474 common/path/RTPathAbsDup.cpp \
2475 common/path/RTPathAbsEx.cpp \
2476 common/path/RTPathAbsExDup.cpp \
2477 common/path/RTPathAppend.cpp \
2478 common/path/RTPathAppendEx.cpp \
2479 common/path/RTPathChangeToDosSlashes.cpp \
2480 common/path/RTPathChangeToUnixSlashes.cpp \
2481 common/path/RTPathCopyComponents.cpp \
2482 common/path/RTPathCountComponents.cpp \
2483 common/path/RTPathEnsureTrailingSeparator.cpp \
2484 common/path/RTPathExt.cpp \
2485 common/path/RTPathFilename.cpp \
2486 common/path/RTPathHasExt.cpp \
2487 common/path/RTPathHasPath.cpp \
2488 common/path/RTPathJoin.cpp \
2489 common/path/RTPathJoinA.cpp \
2490 common/path/RTPathJoinEx.cpp \
2491 common/path/RTPathParse.cpp \
2492 common/path/RTPathParsedReassemble.cpp \
2493 common/path/RTPathParseSimple.cpp \
2494 common/path/RTPathRealDup.cpp \
2495 common/path/rtPathRootSpecLen.cpp \
2496 common/path/RTPathSkipRootSpec.cpp \
2497 common/path/RTPathSplit.cpp \
2498 common/path/RTPathSplitA.cpp \
2499 common/path/RTPathSplitReassemble.cpp \
2500 common/path/RTPathStartsWithRoot.cpp \
2501 common/path/RTPathStripExt.cpp \
2502 common/path/RTPathStripFilename.cpp \
2503 common/path/RTPathStripTrailingSlash.cpp \
2504 common/path/RTPathTraverseList.cpp \
2505 common/path/rtPathVolumeSpecLen.cpp \
2506 common/rand/rand.cpp \
2507 common/rand/randadv.cpp \
2508 common/rand/randparkmiller.cpp \
2509 common/sort/shellsort.cpp \
2510 common/string/base64.cpp \
2511 common/string/RTStrCat.cpp \
2512 common/string/RTStrCmp.cpp \
2513 common/string/RTStrCopy.cpp \
2514 common/string/RTStrCopyEx.cpp \
2515 common/string/RTStrCopyP.cpp \
2516 common/string/RTStrICmpAscii.cpp \
2517 common/string/RTStrIStartsWith.cpp \
2518 common/string/RTStrNCmp.cpp \
2519 common/string/RTStrNICmpAscii.cpp \
2520 common/string/RTStrNLen.cpp \
2521 common/string/RTStrPrintHexBytes.cpp \
2522 common/string/RTStrStartsWith.cpp \
2523 common/string/RTStrStr.cpp \
2524 common/string/simplepattern.cpp \
2525 common/string/straprintf.cpp \
2526 common/string/strcache.cpp \
2527 common/string/strformat.cpp \
2528 common/string/RTStrFormat.cpp \
2529 common/string/strformatnum.cpp \
2530 common/string/strformatrt.cpp \
2531 common/string/strformattype.cpp \
2532 common/string/strhash1.cpp \
2533 common/string/stringalloc.cpp \
2534 common/string/strprintf.cpp \
2535 common/string/strprintf-ellipsis.cpp \
2536 common/string/strprintf2.cpp \
2537 common/string/strprintf2-ellipsis.cpp \
2538 common/string/strspace.cpp \
2539 common/string/strstrip.cpp \
2540 common/string/strtonum.cpp \
2541 common/string/unidata-flags.cpp \
2542 common/string/unidata-lower.cpp \
2543 common/string/unidata-upper.cpp \
2544 common/string/RTUtf16CopyAscii.cpp \
2545 common/string/utf-16-case.cpp \
2546 common/string/utf-16.cpp \
2547 common/string/utf-8-case.cpp \
2548 common/string/utf-8-case2.cpp \
2549 common/string/utf-8.cpp \
2550 common/table/avllu32.cpp \
2551 common/table/avlpv.cpp \
2552 common/table/avlrpv.cpp \
2553 common/table/avlruintptr.cpp \
2554 common/table/avlu32.cpp \
2555 common/table/avluintptr.cpp \
2556 common/time/time.cpp \
2557 common/time/timeprog.cpp \
2558 common/time/timesupref.cpp \
2559 common/time/timesysalias.cpp \
2560 common/vfs/vfsbase.cpp \
2561 common/vfs/vfschain.cpp \
2562 common/vfs/vfsiosmisc.cpp \
2563 common/vfs/vfsmemory.cpp \
2564 common/vfs/vfsmisc.cpp \
2565 common/vfs/vfsmsg.cpp \
2566 common/vfs/vfsstddir.cpp \
2567 common/vfs/vfsstdfile.cpp \
2568 common/vfs/vfsstdpipe.cpp \
2569 common/zip/gzipvfs.cpp \
2570 common/zip/tarcmd.cpp \
2571 common/zip/tarvfs.cpp \
2572 common/zip/tarvfswriter.cpp \
2573 generic/critsect-generic.cpp \
2574 generic/critsectrw-generic.cpp \
2575 generic/env-generic.cpp \
2576 generic/mempool-generic.cpp \
2577 generic/RTEnvDupEx-generic.cpp \
2578 generic/RTFileCopy-generic.cpp \
2579 generic/RTFileCopyAttributes-generic.cpp \
2580 generic/RTFileCopyEx-generic.cpp \
2581 generic/RTFileCopyByHandlesEx-generic.cpp \
2582 generic/RTFileQuerySize-generic.cpp \
2583 generic/RTFileReadAll-generic.cpp \
2584 generic/RTFileReadAllByHandle-generic.cpp \
2585 generic/RTFileReadAllByHandleEx-generic.cpp \
2586 generic/RTFileReadAllEx-generic.cpp \
2587 generic/RTFileReadAllFree-generic.cpp \
2588 generic/RTLogWriteStdErr-generic.cpp \
2589 generic/RTLogWriteStdOut-generic.cpp \
2590 generic/RTLogWriteUser-generic.cpp \
2591 generic/RTLogWriteVmm-stub-generic.cpp \
2592 generic/RTPathIsSame-generic.cpp \
2593 generic/RTPathGetCurrentDrive-generic.cpp \
2594 generic/rtStrFormatKernelAddress-generic.cpp \
2595 generic/RTTimerLRCreate-generic.cpp \
2596 generic/semfastmutex-generic.cpp \
2597 generic/semxroads-generic.cpp \
2598 generic/spinlock-generic.cpp \
2599 r3/alloc-ef.cpp \
2600 r3/alloc.cpp \
2601 r3/allocex.cpp \
2602 r3/dir.cpp \
2603 r3/dir2.cpp \
2604 r3/fileio.cpp \
2605 r3/fs.cpp \
2606 r3/generic/semspinmutex-r3-generic.cpp \
2607 r3/init.cpp \
2608 r3/init-data.cpp \
2609 r3/process-data.cpp \
2610 r3/mempage-direct.cpp \
2611 r3/memsafer-r3.cpp \
2612 r3/path.cpp \
2613 r3/RTPathTemp.cpp \
2614 r3/process.cpp \
2615 r3/socket.cpp \
2616 r3/stream.cpp \
2617 r3/tcp.cpp \
2618 VBox/log-vbox.cpp \
2619 VBox/RTAssertShouldPanic-vbox.cpp \
2620 common/string/ministring.cpp # for main
2621ifneq ($(KBUILD_HOST),win)
2622 RuntimeBldProg_SOURCES += \
2623 common/err/errmsgxpcom.cpp
2624endif
2625ifdef VBOX_WITH_LIBLZMA
2626 RuntimeBldProg_SOURCES += \
2627 common/zip/lzmavfs.cpp
2628endif
2629
2630RuntimeBldProg_SOURCES.darwin = $(filter-out \
2631 generic/cdrom-generic.cpp \
2632 generic/RTFileMove-generic.cpp \
2633 generic/RTProcDaemonize-generic.cpp \
2634 generic/RTThreadGetAffinity-stub-generic.cpp \
2635 generic/RTThreadSetAffinity-stub-generic.cpp \
2636 generic/RTThreadSetAffinityToCpu-generic.cpp \
2637 generic/RTTimerCreate-generic.cpp \
2638 generic/mppresent-generic.cpp \
2639 generic/RTSystemShutdown-generic.cpp \
2640 generic/timer-generic.cpp \
2641 generic/utf16locale-generic.cpp \
2642 generic/RTProcIsRunningByName-generic.cpp \
2643 generic/RTThreadGetNativeState-generic.cpp \
2644 r3/darwin/filelock-darwin.cpp \
2645 r3/darwin/systemmem-darwin.cpp \
2646 r3/darwin/krnlmod-darwin.cpp \
2647 r3/darwin/filelock-darwin.cpp \
2648 r3/darwin/RTSystemQueryDmiString-darwin.cpp \
2649 r3/darwin/RTPathUserDocuments-darwin.cpp \
2650 r3/posix/RTTimeSet-posix.cpp \
2651 r3/posix/serialport-posix.cpp \
2652 r3/posix/localipc-posix.cpp \
2653 r3/generic/allocex-r3-generic.cpp \
2654 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
2655 r3/generic/RTLocaleQueryNormalizedBaseLocaleName-r3-generic.cpp \
2656 r3/generic/RTLocaleQueryUserCountryCode-r3-generic.cpp \
2657 , $(RuntimeBaseR3_SOURCES.darwin))
2658
2659RuntimeBldProg_SOURCES.win = \
2660 common/dbg/dbgmoddbghelp.cpp \
2661 common/string/RTUtf16End.cpp \
2662 common/string/RTUtf16NLenEx.cpp \
2663 common/string/RTUtf16ICmpAscii.cpp \
2664 common/string/RTUtf16NICmpAscii.cpp \
2665 generic/mppresent-generic-online.cpp \
2666 generic/RTDirExists-generic.cpp \
2667 generic/RTDirSetTimes-generic.cpp \
2668 generic/RTFileCopyPartEx-generic.cpp \
2669 generic/RTFileExists-generic.cpp \
2670 generic/RTFileSetAllocationSize-generic.cpp \
2671 generic/RTRandAdvCreateSystemFaster-generic.cpp \
2672 generic/RTRandAdvCreateSystemTruer-generic.cpp \
2673 generic/RTSemEventWait-2-ex-generic.cpp \
2674 generic/RTSemEventWaitNoResume-2-ex-generic.cpp \
2675 generic/RTSemEventMultiWait-2-ex-generic.cpp \
2676 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
2677 generic/RTSemMutexRequest-generic.cpp \
2678 generic/RTSemMutexRequestDebug-generic.cpp \
2679 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
2680 generic/uuid-generic.cpp \
2681 nt/fileioutils-nt.cpp \
2682 nt/RTErrConvertFromNtStatus.cpp \
2683 nt/semevent-nt.cpp \
2684 nt/semeventmulti-nt.cpp \
2685 r3/nt/direnum-r3-nt.cpp \
2686 r3/nt/dirrel-r3-nt.cpp \
2687 r3/nt/fs-nt.cpp \
2688 r3/nt/pathint-nt.cpp \
2689 r3/nt/RTFileDelete-r3-nt.cpp \
2690 r3/nt/RTFileQueryFsSizes-nt.cpp \
2691 r3/nt/RTFileSetMode-r3-nt.cpp \
2692 r3/nt/RTPathQueryInfo-nt.cpp \
2693 r3/nt/RTPathSetMode-r3-nt.cpp \
2694 r3/nt/RTPathUnlink-r3-nt.cpp \
2695 r3/nt/RTProcQueryParent-r3-nt.cpp \
2696 r3/win/RTMemProtect-win.cpp \
2697 r3/win/allocex-win.cpp \
2698 r3/win/dir-win.cpp \
2699 r3/win/env-win.cpp \
2700 r3/win/errvars-win.cpp \
2701 r3/win/fileio-win.cpp \
2702 r3/win/init-win.cpp \
2703 r3/win/ldrNative-win.cpp \
2704 r3/win/mempage-native-win.cpp \
2705 r3/win/path-win.cpp \
2706 r3/win/pathint-win.cpp \
2707 r3/win/pipe-win.cpp \
2708 r3/win/process-win.cpp \
2709 r3/win/RTCrStoreCreateSnapshotById-win.cpp \
2710 r3/win/RTHandleGetStandard-win.cpp \
2711 r3/win/RTLogWriteDebugger-win.cpp \
2712 r3/win/rtProcInitExePath-win.cpp \
2713 r3/win/RTUuidCreate-win.cpp \
2714 r3/win/sched-win.cpp \
2715 r3/win/semmutex-win.cpp \
2716 r3/win/symlink-win.cpp \
2717 r3/win/system-get-nt-xxx-win.cpp \
2718 r3/win/thread-win.cpp \
2719 r3/win/thread2-win.cpp \
2720 $(if-expr 1,r3/win/time-win.cpp,r3/nt/time-nt.cpp) \
2721 r3/win/time2-win.cpp \
2722 r3/win/tls-win.cpp \
2723 r3/win/utf16locale-win.cpp \
2724 r3/win/utf8-win.cpp \
2725 win/errmsgwin.cpp \
2726 win/RTErrConvertFromWin32.cpp
2727
2728RuntimeBldProg_SOURCES.amd64 = $(filter-out \
2729 VBox/RTLogWriteVmm-amd64-x86.asm \
2730 , $(RuntimeBaseR3_SOURCES.amd64))
2731
2732RuntimeBldProg_SOURCES.x86 = $(filter-out \
2733 VBox/RTLogWriteVmm-amd64-x86.asm \
2734 , $(RuntimeBaseR3_SOURCES.x86))
2735
2736RuntimeBldProg_SOURCES.arm32 = \
2737 $(RuntimeBaseR3_SOURCES.arm32)
2738
2739RuntimeBldProg_SOURCES.arm64 = \
2740 $(RuntimeBaseR3_SOURCES.arm64)
2741
2742RuntimeBldProg_SOURCES.win.amd64 := \
2743 $(RuntimeWin64ASM_SOURCES) \
2744 common/string/mempcpy.asm \
2745 common/string/memrchr.asm
2746
2747RuntimeBldProg_SOURCES.win.x86 := \
2748 $(RuntimeWin32ASM_SOURCES) \
2749 common/string/mempcpy.asm \
2750 common/string/memrchr.asm
2751
2752RuntimeBldProg_SOURCES.win.arm64 := \
2753 $(RuntimeBaseR3_SOURCES.win.arm64) \
2754 r3/win/mp-win.cpp
2755
2756## @todo reduce this
2757RuntimeBldProg_SOURCES.os2 += \
2758 common/string/memrchr.asm \
2759 generic/mppresent-generic.cpp \
2760 generic/RTCrStoreCreateSnapshotById-generic.cpp \
2761 generic/RTDirQueryInfo-generic.cpp \
2762 generic/RTDirSetTimes-generic.cpp \
2763 generic/fileio-at-generic.cpp \
2764 generic/RTFileCopyPartEx-generic.cpp \
2765 generic/RTFileMove-generic.cpp \
2766 generic/RTFileSetAllocationSize-generic.cpp \
2767 generic/RTLogWriteDebugger-generic.cpp \
2768 generic/RTPathGetCurrentOnDrive-generic.cpp \
2769 generic/RTRandAdvCreateSystemFaster-generic.cpp \
2770 generic/RTRandAdvCreateSystemTruer-generic.cpp \
2771 generic/RTSemEventMultiWait-generic.cpp \
2772 generic/RTSemEventWait-generic.cpp \
2773 generic/RTSemMutexRequest-generic.cpp \
2774 generic/RTSemMutexRequestDebug-generic.cpp \
2775 generic/RTThreadGetNativeState-generic.cpp \
2776 generic/RTUuidCreate-generic.cpp \
2777 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
2778 generic/timer-generic.cpp \
2779 generic/utf16locale-generic.cpp \
2780 generic/uuid-generic.cpp \
2781 os2/RTErrConvertFromOS2.cpp \
2782 r3/generic/allocex-r3-generic.cpp \
2783 r3/generic/dirrel-r3-generic.cpp \
2784 r3/os2/filelock-os2.cpp \
2785 r3/os2/mempage-native-os2.cpp \
2786 r3/os2/mp-os2.cpp \
2787 r3/os2/pipe-os2.cpp \
2788 r3/os2/rtProcInitExePath-os2.cpp \
2789 r3/os2/sched-os2.cpp \
2790 r3/os2/sems-os2.cpp \
2791 r3/os2/systemmem-os2.cpp \
2792 r3/os2/thread-os2.cpp \
2793 r3/os2/time-os2.cpp \
2794 r3/posix/dir-posix.cpp \
2795 r3/posix/env-posix.cpp \
2796 r3/posix/errvars-posix.cpp \
2797 r3/posix/fileio-posix.cpp \
2798 r3/posix/fileio2-posix.cpp \
2799 r3/posix/fs-posix.cpp \
2800 r3/posix/fs2-posix.cpp \
2801 r3/posix/fs3-posix.cpp \
2802 r3/posix/ldrNative-posix.cpp \
2803 r3/posix/path-posix.cpp \
2804 r3/posix/path2-posix.cpp \
2805 r3/posix/pathhost-posix.cpp \
2806 r3/posix/process-creation-posix.cpp \
2807 r3/posix/process-posix.cpp \
2808 r3/posix/RTFileQueryFsSizes-posix.cpp \
2809 r3/posix/RTFsMountpointsEnum-posix.cpp \
2810 r3/posix/RTHandleGetStandard-posix.cpp \
2811 r3/posix/RTMemProtect-posix.cpp \
2812 r3/posix/RTPathUserDocuments-posix.cpp \
2813 r3/posix/RTPathUserHome-posix.cpp \
2814 r3/posix/RTTimeNow-posix.cpp \
2815 r3/posix/RTTimeSet-posix.cpp \
2816 r3/posix/symlink-posix.cpp \
2817 r3/posix/timelocal-posix.cpp \
2818 r3/posix/utf8-posix.cpp
2819
2820RuntimeBldProg_SOURCES.linux = $(filter-out \
2821 r3/memsafer-r3.cpp \
2822 , $(RuntimeBaseR3_SOURCES.linux))
2823
2824## @todo reduce linux, solaris and freebsd sources too.
2825
2826
2827
2828#
2829# RuntimeGuestR3 - Guest Additions Runtime (static/exe).
2830# (The KBUILD_HOST inheritance here is for cross building the linux
2831# additions, while .x86 is for cross building x86 while targeting amd64.)
2832#
2833RuntimeGuestR3_TEMPLATE := VBoxGuestR3Lib
2834RuntimeGuestR3_EXTENDS := RuntimeR3
2835RuntimeGuestR3_DEFS = $(filter-out RTCRITSECT_STRICT RT_NO_GIP IN_SUP_R3 IPRT_WITH_LZMA, $(RuntimeR3_DEFS))
2836RuntimeGuestR3_SOURCES = $(filter-out \
2837 common/time/timesupref.cpp \
2838 common/time/timesupA.asm \
2839 common/time/timesup.cpp \
2840 common/zip/xarvfs.cpp \
2841 common/zip/lzmavfs.cpp \
2842 r3/mempage-heap.cpp \
2843 r3/xml.cpp \
2844 generic/RTLogWriteUser-generic.cpp \
2845 , $(RuntimeR3_SOURCES)) \
2846 \
2847 common/time/timesysalias.cpp \
2848 r3/mempage-direct.cpp \
2849 VBox/logbackdoor.cpp
2850ifndef VBOX_WITH_NOCRT_STATIC
2851 RuntimeGuestR3_DEFS.win.x86 = $(RuntimeR3_DEFS.win.x86) \
2852 VCC_FAKES_TARGET_$(VBOX_VCC_TOOL_STEM) VCC_FAKES_TARGET=$(substr $(VBOX_VCC_TOOL_STEM),-3)
2853 RuntimeGuestR3_SOURCES.win.x86 = $(RuntimeR3_SOURCES.win.x86) \
2854 r3/win/vcc-fakes-kernel32.cpp \
2855 r3/win/vcc-fakes-kernel32-A.asm \
2856 r3/win/vcc-fakes-ntdll.cpp \
2857 r3/win/vcc-fakes-ntdll-A.asm \
2858 r3/win/vcc-fakes-ws2_32.cpp \
2859 r3/win/vcc-fakes-ws2_32-A.asm \
2860 r3/win/vcc-fakes-shell32.cpp \
2861 r3/win/vcc-fakes-shell32-A.asm
2862endif
2863
2864RuntimeGuestR3_SOURCES.linux = $(filter-out \
2865 r3/memsafer-r3.cpp \
2866 , $(RuntimeR3_SOURCES.linux))
2867
2868
2869#
2870# RuntimeGuestR3-x86 - Same as RuntimeGuestR3, except that it's targeting x86.
2871#
2872RuntimeGuestR3-x86_EXTENDS := RuntimeGuestR3
2873RuntimeGuestR3-x86_BLD_TRG_ARCH := x86
2874
2875
2876#
2877# RuntimeGuestR3Shared - Guest Additions Runtime (static/dll).
2878#
2879RuntimeGuestR3Shared_TEMPLATE := VBoxGuestR3Dll
2880RuntimeGuestR3Shared_EXTENDS := RuntimeGuestR3
2881RuntimeGuestR3Shared_INST = $(INST_ADDITIONS_LIB)
2882ifdef VBOX_WITH_NOCRT_STATIC
2883 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.x86 win.amd64)
2884 RuntimeGuestR3Shared_SDKS = $(filter-out VBoxSoftFloatR3Shared,$(RuntimeGuestR3_SDKS)) VBoxSoftFloatGuestR3Shared
2885 RuntimeGuestR3Shared_SOURCES = $(RuntimeGuestR3_SOURCES) \
2886 common/math/fma.cpp \
2887 common/math/fma-asm.asm \
2888 common/math/fmaf.cpp \
2889 common/math/fmaf-asm.asm
2890
2891 endif
2892endif
2893
2894#
2895# RuntimeGuestR3Shared-x86 - Same as RuntimeGuestR3Shared, except that it's targeting x86.
2896#
2897RuntimeGuestR3Shared-x86_EXTENDS := RuntimeGuestR3Shared
2898RuntimeGuestR3Shared-x86_BLD_TRG_ARCH := x86
2899
2900
2901#
2902# VBoxRT - Shared Object / DLL version.
2903#
2904VBoxRT_TEMPLATE = VBoxR3DllNoPic
2905VBoxRT_SDKS = VBoxLibXml2
2906ifdef VBOX_WITH_LIBCURL
2907 VBoxRT_SDKS += VBoxLibCurl
2908endif
2909ifdef VBOX_WITH_LIBLZMA
2910 VBoxRT_SDKS += VBoxLibLzma
2911endif
2912VBoxRT_SDKS += VBoxOpenSslStatic
2913if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
2914 VBoxRT_SDKS += VBoxSoftFloatR3Shared
2915endif
2916VBoxRT_SDKS.win = $(VBOX_WINPSDK) $(VBOX_WINDDK) VBoxNtDll
2917if1of ($(KBUILD_TARGET), win)
2918 VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE) $(VBOX_INST_TOOLS)
2919else if1of ($(KBUILD_TARGET)$(VBOX_WITH_HARDENING), darwin win$(VBOX_WITH_HARDENING))
2920 VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE)
2921endif
2922VBoxRT_DEFS := $(filter-out RT_NO_GIP, $(RuntimeBaseR3_DEFS)) \
2923 IPRT_WITH_OPENSSL \
2924 IPRT_WITH_XAR \
2925 IPRT_WITH_GHIDRA_DBG_MOD \
2926 $(if-expr !defined(VBOX_WITH_ALT_HASH_CODE),IPRT_WITHOUT_SHA512T224 IPRT_WITHOUT_SHA512T256,)
2927ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
2928 VBoxRT_DEFS += RT_NO_GIP
2929endif
2930ifdef VBOX_WITH_LIBCURL
2931 VBoxRT_DEFS += IPRT_WITH_HTTP
2932endif
2933ifdef VBOX_WITH_LIBLZMA
2934 VBoxRT_DEFS += IPRT_WITH_LZMA
2935endif
2936ifdef RTALLOC_REPLACE_MALLOC
2937 VBoxRT_DEFS += RTALLOC_REPLACE_MALLOC
2938endif
2939if defined(VBOX_WITH_DTRACE_R3) && !defined(VBOX_ONLY_VALIDATIONKIT)
2940 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
2941 VBoxRT_DEFS += IPRT_WITH_DTRACE IPRT_DTRACE_INCLUDE="dtrace/iprt.h"
2942 else
2943 VBoxRT_DEFS += IPRT_WITH_DTRACE IPRT_DTRACE_INCLUDE=\"dtrace/iprt.h\"
2944 endif
2945endif
2946VBoxRT_DEFS.$(KBUILD_TYPE) := $(RuntimeBaseR3_DEFS.$(KBUILD_TYPE))
2947VBoxRT_DEFS.$(KBUILD_TARGET) := $(RuntimeBaseR3_DEFS.$(KBUILD_TARGET))
2948VBoxRT_SOURCES := \
2949 VBox/VBoxRTDeps.cpp \
2950 $(filter-out common/checksum/crc32.cpp, \
2951 $(if-expr defined(VBOX_WITH_ALT_HASH_CODE), $(RuntimeBaseR3_SOURCES), \
2952 $(patsubst common/checksum/alt-%,common/checksum/openssl-%,$(RuntimeBaseR3_SOURCES)) ) ) \
2953 common/checksum/crc32-zlib.cpp \
2954 common/dbg/dbgmodghidra.cpp \
2955 common/fuzz/fuzz.cpp \
2956 common/fuzz/fuzz-config.cpp \
2957 common/fuzz/fuzz-observer.cpp \
2958 common/fuzz/fuzz-target-recorder.cpp \
2959 common/fuzz/fuzzmastercmd.cpp \
2960 common/fuzz/fuzzclientcmd.cpp \
2961 common/script/scriptlex.cpp
2962ifneq ($(KBUILD_TARGET),win)
2963 VBox/VBoxRTDeps.cpp_CXXFLAGS = -Wno-deprecated-declarations
2964endif
2965ifdef VBOX_WITH_LIBCURL
2966 VBoxRT_SOURCES += \
2967 generic/http-curl.cpp \
2968 common/rest/rest-primary-object-types.cpp \
2969 common/rest/rest-binary.cpp \
2970 common/rest/RTCRestAnyObject.cpp \
2971 common/rest/RTCRestArrayBase.cpp \
2972 common/rest/RTCRestClientApiBase.cpp \
2973 common/rest/RTCRestClientApiBaseOci.cpp \
2974 common/rest/RTCRestClientRequestBase.cpp \
2975 common/rest/RTCRestClientResponseBase.cpp \
2976 common/rest/RTCRestJsonPrimaryCursor.cpp \
2977 common/rest/RTCRestStringMapBase.cpp \
2978 common/rest/RTCRestOutputBase.cpp \
2979 common/rest/RTCRestOutputPrettyBase.cpp \
2980 common/rest/RTCRestOutputPrettyToString.cpp \
2981 common/rest/RTCRestOutputToString.cpp
2982endif
2983if defined(VBOX_WITH_DTRACE_R3) && !defined(VBOX_ONLY_VALIDATIONKIT)
2984 VBoxRT_SOURCES += \
2985 iprt.d
2986endif
2987VBoxRT_SOURCES.$(KBUILD_TARGET) = $(RuntimeBaseR3_SOURCES.$(KBUILD_TARGET))
2988VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeBaseR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
2989VBoxRT_SOURCES.$(KBUILD_TARGET).x86 := $(RuntimeBaseR3_SOURCES.$(KBUILD_TARGET).x86)
2990VBoxRT_SOURCES.$(KBUILD_TARGET).amd64 := $(RuntimeBaseR3_SOURCES.$(KBUILD_TARGET).amd64)
2991VBoxRT_SOURCES.$(KBUILD_TARGET_ARCH) := $(RuntimeBaseR3_SOURCES.$(KBUILD_TARGET_ARCH))
2992VBoxRT_SOURCES.x86 := $(RuntimeBaseR3_SOURCES.x86)
2993VBoxRT_SOURCES.amd64 := $(RuntimeBaseR3_SOURCES.amd64)
2994VBoxRT_SOURCES.win += \
2995 r3/win/dllmain-win.cpp \
2996 $(VBoxRT_0_OUTDIR)/VBoxRT.def
2997VBoxRT_CLEAN.win += \
2998 $(VBoxRT_0_OUTDIR)/VBoxRT.def
2999VBoxRT_INCS := $(RuntimeBaseR3_INCS)
3000VBoxRT_INCS.$(KBUILD_TARGET) := $(RuntimeBaseR3_INCS.$(KBUILD_TARGET))
3001VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeBaseR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
3002VBoxRT_LIBS = \
3003 $(SDK_VBoxLzf_LIBS) \
3004 $(PATH_STAGE_LIB)/SUPR3$(VBOX_SUFF_LIB)
3005ifndef SDK_VBoxLibXml2_LIBS
3006 VBoxRT_LIBS += \
3007 $(PATH_STAGE_LIB)/VBox-libxml2$(VBOX_SUFF_LIB)
3008endif
3009VBoxRT_LIBS += \
3010 $(SDK_VBoxZlib_LATE_LIBS)
3011ifndef SDK_VBoxOpenSslStatic_LIBS
3012 VBoxRT_LIBS += \
3013 $(PATH_STAGE_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB) \
3014 $(PATH_STAGE_LIB)/VBox-libssl$(VBOX_SUFF_LIB)
3015endif
3016ifdef IPRT_WITH_LZO
3017 VBoxRT_LIBS += lzo2
3018endif
3019ifdef RTALLOC_REPLACE_MALLOC
3020 VBoxRT_LIBS += \
3021 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
3022endif
3023VBoxRT_LIBS.darwin = \
3024 iconv
3025VBoxRT_LIBS.freebsd = \
3026 iconv \
3027 rt
3028VBoxRT_LIBS.haiku = \
3029 iconv
3030VBoxRT_LIBS.solaris = \
3031 kstat \
3032 contract \
3033 devinfo
3034ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)
3035 # SMBIOS not available on Solaris SPARC.
3036 VBoxRT_LIBS.solaris += smbios
3037endif
3038VBoxRT_LIBS.win += \
3039 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/mpr.lib \
3040 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/wbemuuid.lib \
3041 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
3042VBoxRT_LDFLAGS.darwin = \
3043 -framework IOKit \
3044 -framework CoreFoundation \
3045 -framework CoreServices \
3046 -framework Security \
3047 -framework SystemConfiguration \
3048 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxRT.dylib
3049VBoxRT_LDFLAGS.win = /MANIFEST \
3050 /delayload:user32.dll \
3051 /delayload:shell32.dll \
3052 /delayload:ole32.dll \
3053 /delayload:oleaut32.dll \
3054 /delayload:advapi32.dll
3055
3056if1of (VBoxRT, $(DLLS))
3057 $(call VBOX_SET_VER_INFO_DLL,VBoxRT,VirtualBox Runtime)
3058endif
3059
3060
3061if defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86"
3062 #
3063 # Hacks for running tests on NT 4. Really ugly!
3064 #
3065 # We put most of the CRT in VBoxRT because we cannot even load msvcr100.dll
3066 # or msvcp100.dll on NT4 because of kernel32.dll dependencies. More hacks
3067 # in RuntimeR3VccTricks.
3068 #
3069 TEMPLATE_VBoxR3RuntimeDllItself = xx
3070 TEMPLATE_VBoxR3RuntimeDllItself_EXTENDS = VBoxR3RuntimeDll
3071 TEMPLATE_VBoxR3RuntimeDllItself_LATE_LIBS.win.x86 = \
3072 $(filter-out $(PATH_STAGE_LIB)/RuntimeR3VccTricks%, $(TEMPLATE_VBoxR3RuntimeDll_LATE_LIBS.win.x86))
3073 TEMPLATE_VBoxR3RuntimeDllItself_DEFS += IN_RING3 VCC_FAKES_TARGET_$(VBOX_VCC_TOOL_STEM) VCC_FAKES_TARGET=$(substr $(VBOX_VCC_TOOL_STEM),-3)
3074 TEMPLATE_VBoxR3RuntimeDllItself_SOURCES = \
3075 r3/win/vcc-fakes-kernel32.cpp \
3076 r3/win/vcc-fakes-kernel32-A.asm \
3077 r3/win/vcc-fakes-ws2_32.cpp \
3078 r3/win/vcc-fakes-ws2_32-A.asm \
3079 r3/win/vcc-fakes-ntdll.cpp \
3080 r3/win/vcc-fakes-ntdll-A.asm \
3081 r3/win/vcc-fakes-msvcrt.cpp
3082 VBoxRT_TEMPLATE = VBoxR3RuntimeDllItself
3083 VBoxRT_TEMPLATE.win.x86 = VBoxR3RuntimeDllItself
3084 VBoxRT_DEFS.win.x86 = $(TEMPLATE_VBoxR3RuntimeDll_DEFS.win.x86) \
3085 _CRTIMP_PURE="__declspec(dllexport)" VCC_FAKES_TARGET_$(VBOX_VCC_TOOL_STEM) VCC_FAKES_TARGET=$(substr $(VBOX_VCC_TOOL_STEM),-3)
3086 VBoxRT_LDFLAGS.win.x86 = /IGNORE:4049 /IGNORE:4217
3087 VBoxRT_LIBS.win.x86 = \
3088 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/oldnames.lib \
3089 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/libcmt.lib \
3090 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/libcpmt.lib
3091endif
3092
3093
3094#
3095# HACK ALERT! Make testcase run during build on SELinux boxes.
3096# Create a dummy DLL that ensure that VBoxRT is installed
3097# during the DLL pass and cleaned up later.
3098#
3099ifeq ($(KBUILD_TARGET),linux)
3100 if1of (VBoxRT, $(DLLS))
3101 ifneq ($(wildcard /usr/bin/chcon),)
3102 VBoxRT_INSTTYPE = none
3103 VBoxRT_DEBUG_INSTTYPE = both
3104
3105 VBoxRT-x86_INSTTYPE = $(NO_SUCH_VARIABLE)
3106
3107 DLLS += VBoxRTDummy
3108 VBoxRTDummy_TEMPLATE = VBoxR3Dll
3109 VBoxRTDummy_INSTTYPE = none
3110 VBoxRTDummy_LIBS = $(PATH_STAGE_BIN)/VBoxRT.so
3111 VBoxRTDummy_CLEAN = $(PATH_STAGE_BIN)/VBoxRT.so
3112 BLDDIRS += $(PATH_STAGE_BIN)
3113
3114 $(PATH_STAGE_BIN)/VBoxRT.so: $$(VBoxRT_1_TARGET) | $$(dir $$@)
3115 $(INSTALL) $< $@
3116 chcon -t texrel_shlib_t $@ || true
3117
3118 VBoxRT:: VBoxRTDummy
3119 endif # chcon present.
3120 endif # building VBoxRT
3121endif # linux
3122
3123if1of ($(DLLS), VBoxRT)
3124 # .def file for windows.
3125 $(call KB_FN_DO_PASS0_ON_TARGET,VBoxRT)
3126 $(VBoxRT_0_OUTDIR)/VBoxRT.def: \
3127 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-$(KBUILD_TARGET_ARCH).def \
3128 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-openssl-3.0.def \
3129 $(if-expr "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" && defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) \
3130 ,$(PATH_SUB_CURRENT)/r3/win/VBoxRT-msvcr100-win32.def ,) \
3131 | $$(dir $$@) #$(PATH_SUB_CURRENT)/r3/win/VBoxRT-msvcp100-win32.def
3132 $(RM) -f -- $@
3133 $(SED) --output "$@" \
3134 $(if-expr "$(KBUILD_TARGET_ARCH)" == "x86" ,-e "/not-x86/d", -e "/only-x86/d") \
3135 $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64",-e "/not-amd64/d",-e "/only-amd64/d") \
3136 $(if-expr "$(KBUILD_TARGET_ARCH)" == "arm64",-e "/not-arm64/d",-e "/only-arm64/d") \
3137 $(if-expr "$(substr $(if-expr $(KBUILD_TARGET) != 'win',$(VBOX_GCC_std), $(VBOX_VCC_std)),-2)" >= "17" \
3138 && ("$(KBUILD_TARGET)" != "win" || !$(intersects RT_RELAXED_CALLBACKS_TYPES,$(DEFS))) \
3139 ,-e "/before-noexcept/d", -e "/after-noexcept/d") \
3140 $^
3141 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
3142 $(call KB_FN_AUTO_CMD_DEPS,$(VBoxRT_0_OUTDIR)/VBoxRT.def)
3143endif
3144
3145
3146#
3147# VBoxRT-x86 - 32-bit version of VBoxRT
3148#
3149VBoxRT-x86_EXTENDS = VBoxRT
3150VBoxRT-x86_TEMPLATE = VBoxR3Dll-x86
3151VBoxRT-x86_INST.win = $(INST_DLL)x86/
3152VBoxRT-x86_SDKS = VBoxLibXml2
3153ifdef VBOX_WITH_LIBCURL
3154 VBoxRT-x86_SDKS += VBoxLibCurl-x86
3155endif
3156ifdef VBOX_WITH_LIBLZMA
3157 VBoxRT-x86_SDKS += VBoxLibLzma-x86
3158endif
3159VBoxRT-x86_SDKS += VBoxOpenSslStatic-x86
3160
3161VBoxRT-x86_LIBS = \
3162 $(SDK_VBoxLzf-x86_LIBS)
3163if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
3164 VBoxRT-x86_LIBS += \
3165 $(PATH_STAGE_LIB)/SUPR3-x86$(VBOX_SUFF_LIB)
3166endif
3167ifndef SDK_VBoxLibXml2_LIBS
3168 VBoxRT-x86_LIBS += \
3169 $(PATH_STAGE_LIB)/VBox-libxml2-x86$(VBOX_SUFF_LIB)
3170endif
3171VBoxRT-x86_LIBS += \
3172 $(SDK_VBoxZlib-x86_LIBS)
3173ifndef SDK_VBoxOpenSslStatic_LIBS
3174 VBoxRT-x86_LIBS += \
3175 $(PATH_STAGE_LIB)/VBox-libcrypto-x86$(VBOX_SUFF_LIB) \
3176 $(PATH_STAGE_LIB)/VBox-libssl-x86$(VBOX_SUFF_LIB)
3177endif
3178ifdef IPRT_WITH_LZO
3179 VBoxRT-x86_LIBS += lzo2
3180endif
3181VBoxRT-x86_LIBS.darwin = \
3182 iconv
3183VBoxRT-x86_LIBS.freebsd = \
3184 iconv \
3185 rt
3186VBoxRT-x86_LIBS.haiku = \
3187 iconv
3188VBoxRT-x86_LIBS.solaris = \
3189 kstat \
3190 contract \
3191 devinfo
3192ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)
3193 # SMBIOS not available on Solaris SPARC.
3194 VBoxRT-x86_LIBS.solaris += smbios
3195endif
3196VBoxRT-x86_LIBS.win += \
3197 $(PATH_SDK_$(VBOX_WINPSDK)_LIB.x86)/mpr.lib \
3198 $(PATH_SDK_$(VBOX_WINPSDK)_LIB.x86)/wbemuuid.lib \
3199 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/delayimp.lib
3200
3201VBoxRT-x86_SOURCES.win = $(filter-out %.def %.rc,$(VBoxRT_SOURCES.win)) \
3202 $(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def
3203VBoxRT-x86_CLEAN += $(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def
3204
3205if1of (VBoxRT-x86, $(DLLS))
3206 $(call VBOX_SET_VER_INFO_DLL,VBoxRT-x86,VirtualBox 32-bit Runtime)
3207endif
3208
3209if1of ($(DLLS), VBoxRT-x86)
3210 # .def file for windows.
3211 $(call KB_FN_DO_PASS0_ON_TARGET,VBoxRT-x86)
3212 $(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def: \
3213 $(VBOX_PATH_RUNTIME_SRC)/r3/win/VBoxRT-x86.def \
3214 | $$(dir $$@) # Hopefully no need to export openssl here.
3215 $(RM) -f -- $@
3216 $(SED) --output "$@" \
3217 -e "/not-x86/d" \
3218 -e "/only-amd64/d" \
3219 -e "/only-arm64/d" \
3220 $(if-expr "$(substr $(if-expr $(KBUILD_TARGET) != 'win',$(VBOX_GCC_std), $(VBOX_VCC_std)),-2)" >= "17" \
3221 ,-e "/before-noexcept/d", -e "/after-noexcept/d") \
3222 $(VBOX_PATH_RUNTIME_SRC)/r3/win/VBoxRT-x86.def
3223 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
3224 $(call KB_FN_AUTO_CMD_DEPS,$(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def)
3225endif
3226
3227#
3228# VBoxRTImp - Import library/hack.
3229#
3230ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
3231 $(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def VBox/VBoxRTImp-vcc64.def r3/win/VBoxRT-amd64.def)
3232else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
3233 $(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def VBox/VBoxRTImp-vcc32.def r3/win/VBoxRT-x86.def)
3234else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.arm64)
3235 $(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def VBox/VBoxRTImp-vcc-arm64.def r3/win/VBoxRT-arm64.def)
3236else
3237 $(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def VBox/VBoxRTImp-gcc.def)
3238endif
3239
3240
3241if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.x86 win.amd64 linux.amd64 darwin.amd64) # remove later
3242 if1of (VBoxRT, $(DLLS))
3243 ifdef VBOX_WITH_LIBCURL
3244 #
3245 # VBoxRTImpCheck - Import library check.
3246 #
3247 PROGRAMS += VBoxRTStableCheck
3248 VBoxRTStableCheck_TEMPLATE = VBoxR3TstExe
3249 VBoxRTStableCheck_ASDEFS.linux.amd64 = PIC # Hack
3250 VBoxRTStableCheck_SOURCES = \
3251 VBox/VBoxRTStableCheck.cpp \
3252 $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm
3253 VBoxRTStableCheck_LIBS = \
3254 $(LIB_RUNTIME)
3255 VBoxRTStableCheck_CLEAN = \
3256 $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm
3257 $(call KB_FN_DO_PASS0_ON_TARGET,VBoxRTStableCheck)
3258
3259 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
3260 $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: \
3261 $(PATH_SUB_CURRENT)/VBox/DefToAsmExterns.sed \
3262 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def \
3263 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-vcc64.def \
3264 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-amd64.def \
3265 | $$(dir $$@)
3266 else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
3267 $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: \
3268 $(PATH_SUB_CURRENT)/VBox/DefToAsmExternsVcc32.sed \
3269 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def \
3270 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-vcc32.def \
3271 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-x86.def | $$(dir $$@)
3272 else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.arm64)
3273 $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: \
3274 $(PATH_SUB_CURRENT)/VBox/DefToAsmExterns.sed \
3275 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def \
3276 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-vcc-arm64.def \
3277 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-arm64.def \
3278 | $$(dir $$@)
3279 else
3280 $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: \
3281 $(PATH_SUB_CURRENT)/VBox/DefToAsmExterns.sed \
3282 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def \
3283 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-gcc.def | $$(dir $$@)
3284 endif
3285 $(APPEND) -tn "$@" '%include "iprt/asmdefs.mac"' ''
3286 $(SED) --append "$@" \
3287 -e "/not-$(KBUILD_TARGET)/d" \
3288 $(if-expr "$(KBUILD_TARGET)" == "linux" ,, -e "/only-linux/d") \
3289 $(if-expr "$(KBUILD_TARGET)" == "win" ,, -e "/only-win/d") \
3290 $(if-expr "$(KBUILD_TARGET)" == "darwin",, -e "/only-darwin/d") \
3291 $(if-expr "$(KBUILD_TARGET_ARCH)" == "x86" ,-e "/not-x86/d", -e "/only-x86/d") \
3292 $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64",-e "/not-amd64/d",-e "/only-amd64/d") \
3293 $(if-expr "$(KBUILD_TARGET_ARCH)" == "arm64",-e "/not-arm64/d",-e "/only-arm64/d") \
3294 $(if-expr "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "darwin.arm64",, -e "/only-darwin.arm64/d") \
3295 $(if-expr "$(substr $(if-expr $(KBUILD_TARGET) != 'win',$(VBOX_GCC_std), $(VBOX_VCC_std)),-2)" >= "17" \
3296 ,-e "/before-noexcept/d", -e "/after-noexcept/d") \
3297 $(if-expr $(intersects $(KBUILD_TARGET), linux) && $(intersects $(KBUILD_TARGET_ARCH), amd64 arm64) \
3298 ,-e "/int64=llong/d", -e "/int64=long/d") \
3299 -f "$<" $(filter %.def, $^)
3300 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
3301 $(call KB_FN_AUTO_CMD_DEPS,$(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm)
3302
3303 endif
3304 endif
3305endif # remove later
3306
3307
3308#
3309# RuntimeR3NoCRT - For windows applications w/o any runtime library.
3310# Experimental.
3311#
3312RuntimeR3NoCrt_TEMPLATE := VBoxR3StaticNoCrt
3313RuntimeR3NoCrt_INCS := include
3314RuntimeR3NoCrt_DEFS := \
3315 RT_NO_STRICT \
3316 IPRT_NO_ALLOCA_TROUBLE \
3317 IPRT_GETOPT_WITHOUT_NETWORK_ADDRESSES \
3318 IPRT_MINIMAL_STREAM \
3319 IPRT_NO_FLOAT_FORMATTING
3320RuntimeR3NoCrt_SOURCES := \
3321 common/string/straprintf.cpp \
3322 common/string/strformat.cpp \
3323 common/string/RTStrFormat.cpp \
3324 common/string/strformatnum.cpp \
3325 common/string/strformatrt.cpp \
3326 common/string/strformattype.cpp \
3327 common/string/strprintf.cpp \
3328 common/string/strprintf-ellipsis.cpp \
3329 common/string/strprintf2.cpp \
3330 common/string/strprintf2-ellipsis.cpp \
3331 common/string/stringalloc.cpp \
3332 common/string/strtonum.cpp \
3333 common/string/RTStrNLen.cpp \
3334 common/string/RTStrCmp.cpp \
3335 common/string/RTStrNCmp.cpp \
3336 common/string/RTStrICmpAscii.cpp \
3337 common/string/RTStrNICmpAscii.cpp \
3338 common/string/RTStrCopy.cpp \
3339 common/string/RTUtf16Copy.cpp \
3340 common/string/utf-16.cpp \
3341 common/string/utf-8.cpp \
3342 common/path/RTPathFilename.cpp \
3343 common/misc/getopt.cpp \
3344 common/misc/getoptargv.cpp \
3345 common/misc/message.cpp \
3346 common/err/errmsg.cpp \
3347 r3/init-data.cpp \
3348 r3/process-data.cpp \
3349 generic/uuid-generic.cpp \
3350 generic/rtStrFormatKernelAddress-generic.cpp
3351
3352RuntimeR3NoCrt_SOURCES.x86 := \
3353 common/string/memcpy.asm \
3354 common/string/memchr.asm \
3355 common/string/memcmp.asm \
3356 common/string/memmove.asm \
3357 common/string/memset.asm \
3358 common/string/strlen.asm \
3359 common/string/strchr.asm \
3360 common/string/strcmp.asm \
3361 common/string/strncmp.asm \
3362 common/string/RTStrEnd.asm
3363
3364RuntimeR3NoCrt_SOURCES.amd64 := \
3365 common/string/memcpy.asm \
3366 common/string/memchr.asm \
3367 common/string/memcmp.asm \
3368 common/string/memmove.asm \
3369 common/string/memset.asm \
3370 common/string/strlen.asm \
3371 common/string/strchr.asm \
3372 common/string/strcmp.asm \
3373 common/string/strncmp.asm \
3374 common/string/RTStrEnd.asm
3375
3376RuntimeR3NoCrt_SOURCES.win := \
3377 r3/win/nocrt-startup-exe-win.cpp \
3378 r3/win/nocrt-startup-common-win.cpp \
3379 r3/win/nocrt-fatal-write-win.cpp \
3380 r3/win/nocrt-alloc-win.cpp \
3381 r3/win/nocrt-streams-win.cpp \
3382 \
3383 win/errmsgwin.cpp
3384
3385#
3386# RuntimeR0 - Ring-0 library for VMMR0.
3387#
3388RuntimeR0_TEMPLATE = VBoxR0
3389RuntimeR0_DEFS = IN_RT_R0 RT_WITH_VBOX NOFILEID
3390ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
3391 #ifn1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.arm64)
3392 RuntimeR0_DEFS += RT_NO_GIP
3393 #endif
3394endif
3395if defined(VBOX_WITH_DTRACE_R0) && !defined(VBOX_ONLY_VALIDATIONKIT)
3396 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
3397 RuntimeR0_DEFS += IPRT_WITH_DTRACE IPRT_DTRACE_PREFIX=VBOXVMM_ IPRT_DTRACE_INCLUDE="dtrace/VBoxVMM.h"
3398 else
3399 RuntimeR0_DEFS += IPRT_WITH_DTRACE IPRT_DTRACE_PREFIX=VBOXVMM_ IPRT_DTRACE_INCLUDE=\"dtrace/VBoxVMM.h\"
3400 endif
3401endif
3402RuntimeR0_INCS = include
3403RuntimeR0_SOURCES := \
3404 $(if $(VBOX_ONLY_VALIDATIONKIT),,../VMM/VBoxVMM.d) \
3405 common/checksum/crc32c.cpp \
3406 common/log/logellipsis.cpp \
3407 common/log/logrelellipsis.cpp \
3408 common/log/logcom.cpp \
3409 common/log/logformat.cpp \
3410 common/log/tracebuf.cpp \
3411 common/log/tracedefault.cpp \
3412 common/log/RTLogCreateEx.cpp \
3413 common/log/RTLogSetR0ThreadNameF.cpp \
3414 common/misc/RTAssertMsg1Weak.cpp \
3415 common/misc/RTAssertMsg2.cpp \
3416 common/misc/RTAssertMsg2Add.cpp \
3417 common/misc/RTAssertMsg2AddWeak.cpp \
3418 common/misc/RTAssertMsg2AddWeakV.cpp \
3419 common/misc/RTAssertMsg2Weak.cpp \
3420 common/misc/RTAssertMsg2WeakV.cpp \
3421 common/misc/buildconfig.cpp \
3422 common/misc/once.cpp \
3423 common/misc/sanity-c.c \
3424 common/misc/sanity-cpp.cpp \
3425 common/misc/term.cpp \
3426 common/path/RTPathFilename.cpp \
3427 common/rand/rand.cpp \
3428 common/rand/randadv.cpp \
3429 common/rand/randparkmiller.cpp \
3430 common/string/strprintf-ellipsis.cpp \
3431 common/string/strprintf2-ellipsis.cpp \
3432 common/string/strhash1.cpp \
3433 common/string/strncmp.cpp \
3434 common/string/strpbrk.cpp \
3435 common/string/strtonum.cpp \
3436 common/string/RTStrCat.cpp \
3437 common/string/RTStrCatEx.cpp \
3438 common/string/RTStrCatP.cpp \
3439 common/string/RTStrCatPEx.cpp \
3440 common/string/RTStrCopyEx.cpp \
3441 common/string/RTStrCopyP.cpp \
3442 common/string/RTStrCopyPEx.cpp \
3443 common/string/RTStrCmp.cpp \
3444 common/string/RTStrICmpAscii.cpp \
3445 common/string/RTStrNICmpAscii.cpp \
3446 common/string/RTStrNLen.cpp \
3447 common/string/RTStrNLenEx.cpp \
3448 common/table/avlgcptr.cpp \
3449 common/table/avlhcphys.cpp \
3450 common/table/avllu32.cpp \
3451 common/table/avlogcphys.cpp \
3452 common/table/avlogcptr.cpp \
3453 common/table/avlohcphys.cpp \
3454 common/table/avloioport.cpp \
3455 common/table/avlpv.cpp \
3456 common/table/avlrogcphys.cpp \
3457 common/table/avlrogcptr.cpp \
3458 common/table/avlroioport.cpp \
3459 common/table/avlroogcptr.cpp \
3460 common/table/avlu32.cpp \
3461 common/table/avlou32.cpp \
3462 common/time/timesup.cpp \
3463 generic/RTAssertShouldPanic-generic.cpp \
3464 generic/critsect-generic.cpp \
3465 generic/critsectrw-generic.cpp \
3466 generic/RTRandAdvCreateSystemFaster-generic.cpp \
3467 generic/RTRandAdvCreateSystemTruer-generic.cpp \
3468 \
3469 $(RuntimeNoCrt_SOURCES)
3470
3471if1of ($(KBUILD_TARGET), darwin solaris freebsd os2)
3472 RuntimeR0_SOURCES += \
3473 common/math/gcc/adddi3.c \
3474 common/math/gcc/anddi3.c \
3475 common/math/gcc/ashldi3.c \
3476 common/math/gcc/ashrdi3.c \
3477 common/math/gcc/cmpdi2.c \
3478 common/math/gcc/divdi3.c \
3479 common/math/gcc/divmoddi4.c \
3480 common/math/gcc/iordi3.c \
3481 common/math/gcc/lshldi3.c \
3482 common/math/gcc/lshrdi3.c \
3483 common/math/gcc/moddi3.c \
3484 common/math/gcc/muldi3.c \
3485 common/math/gcc/negdi2.c \
3486 common/math/gcc/notdi2.c \
3487 common/math/gcc/qdivrem.c \
3488 common/math/gcc/subdi3.c \
3489 common/math/gcc/ucmpdi2.c \
3490 common/math/gcc/udivdi3.c \
3491 common/math/gcc/udivmoddi4.c \
3492 common/math/gcc/umoddi3.c \
3493 common/math/gcc/xordi3.c
3494endif
3495
3496RuntimeR0_SOURCES.x86 += \
3497 common/asm/ASMCpuIdExSlow.asm \
3498 common/asm/ASMAtomicUoAndU64.asm \
3499 common/asm/ASMAtomicUoAndU32.asm \
3500 common/asm/ASMAtomicUoDecU32.asm \
3501 common/asm/ASMAtomicUoIncU32.asm \
3502 common/asm/ASMAtomicUoOrU64.asm \
3503 common/asm/ASMAtomicUoOrU32.asm \
3504 common/asm/ASMAtomicUoXorU32.asm \
3505 common/asm/ASMMemFirstMismatchingU8.asm \
3506 common/asm/ASMGetXcr0.asm \
3507 common/asm/ASMSetXcr0.asm \
3508 common/asm/ASMXSave.asm \
3509 common/asm/ASMXRstor.asm \
3510 common/asm/ASMFxSave.asm \
3511 common/asm/ASMFxRstor.asm \
3512 common/asm/ASMRdMsrEx.asm \
3513 common/asm/ASMWrMsrEx.asm \
3514 common/string/RTStrEnd.asm \
3515 VBox/RTLogWriteVmm-amd64-x86.asm
3516RuntimeR0_SOURCES.amd64 += \
3517 common/asm/ASMCpuIdExSlow.asm \
3518 common/asm/ASMAtomicUoAndU64.asm \
3519 common/asm/ASMAtomicUoAndU32.asm \
3520 common/asm/ASMAtomicUoDecU32.asm \
3521 common/asm/ASMAtomicUoIncU32.asm \
3522 common/asm/ASMAtomicUoOrU64.asm \
3523 common/asm/ASMAtomicUoOrU32.asm \
3524 common/asm/ASMAtomicUoXorU32.asm \
3525 common/asm/ASMMemFirstMismatchingU8.asm \
3526 common/asm/ASMGetXcr0.asm \
3527 common/asm/ASMSetXcr0.asm \
3528 common/asm/ASMXSave.asm \
3529 common/asm/ASMXRstor.asm \
3530 common/asm/ASMFxSave.asm \
3531 common/asm/ASMFxRstor.asm \
3532 common/asm/ASMRdMsrEx.asm \
3533 common/asm/ASMWrMsrEx.asm \
3534 common/math/RTUInt128MulByU64Ex.asm \
3535 common/string/RTStrEnd.asm \
3536 VBox/RTLogWriteVmm-amd64-x86.asm
3537RuntimeR0_SOURCES.arm32 += \
3538 common/string/RTStrEnd.cpp
3539RuntimeR0_SOURCES.arm64 += \
3540 common/string/RTStrEnd.cpp \
3541 common/asm/ASMMemFirstNonZero-generic.cpp \
3542 common/asm/ASMBitFirstClear-generic.cpp
3543RuntimeR0_SOURCES.sparc32 += \
3544 common/string/RTStrEnd.cpp
3545RuntimeR0_SOURCES.sparc64 += \
3546 common/string/RTStrEnd.cpp
3547
3548#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
3549# RuntimeR0_SOURCES += common/time/timesupA.asm
3550#else
3551RuntimeR0_SOURCES += common/time/timesupref.cpp
3552#endif
3553
3554RuntimeR0_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES)
3555RuntimeR0_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES)
3556RuntimeR0_SOURCES.win = \
3557 nt/NtProcessStartup-stub.cpp
3558
3559RuntimeR0_SOURCES.os2 = \
3560 os2/sys0.asm
3561
3562
3563#
3564# RuntimeR0Stub - Ring-0 context startup stub for Windows and Solaris.
3565#
3566RuntimeR0Stub_TEMPLATE = $(if-expr "$(KBUILD_TARGET)" == "solaris",VBoxR0DrvLib,VBoxR0)
3567RuntimeR0Stub_SOURCES.win = \
3568 nt/NtProcessStartup-stub.cpp
3569RuntimeR0Stub_SOURCES.solaris = \
3570 r0drv/solaris/modulestub-r0drv-solaris.c
3571
3572
3573#
3574# RuntimeR0Drv - Ring-0 library for host drivers.
3575#
3576RuntimeR0Drv_TEMPLATE = VBoxR0DrvLib
3577RuntimeR0Drv_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK) $(VBOX_WINPSDK_INCS)
3578RuntimeR0Drv_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS RT_NO_EXPORT_SYMBOL NOFILEID
3579RuntimeR0Drv_DEFS.win = IN_SUP_R0 LDR_ONLY_PE IPRT_WITHOUT_DIGEST_MD4
3580RuntimeR0Drv_DEFS.darwin = IN_SUP_R0 LDR_ONLY_MACHO IPRT_WITHOUT_DIGEST_MD4 IN_RING0_DRV_ON_DARWIN
3581if ($(VBOX_SOLARIS_11_UPDATE_VERSION) > 2 \
3582 || ($(VBOX_SOLARIS_11_UPDATE_VERSION) == 2 && $(VBOX_SOLARIS_11_BUILD_VERSION) >= 22))
3583 RuntimeR0Drv_DEFS.solaris += VBOX_NEW_CRASH_DUMP_FORMAT
3584endif
3585
3586RuntimeR0Drv_INCS := $(PATH_SUB_CURRENT) include
3587RuntimeR0Drv_INCS.freebsd = \
3588 $(PATH_STAGE)/gen-sys-hdrs
3589RuntimeR0Drv_INCS.solaris = \
3590 r0drv/solaris/vbi/i86pc \
3591 r0drv/solaris/vbi/i86pc/sys
3592
3593RuntimeR0Drv_SOURCES = \
3594 common/alloc/alloc.cpp \
3595 common/alloc/heapsimple.cpp \
3596 common/alloc/heapoffset.cpp \
3597 common/checksum/alt-md5.cpp \
3598 common/checksum/crc32.cpp \
3599 common/checksum/crc64.cpp \
3600 common/checksum/ipv4.cpp \
3601 common/checksum/ipv6.cpp \
3602 common/err/RTErrConvertToErrno.cpp \
3603 common/err/RTErrConvertFromErrno.cpp \
3604 common/err/errinfo.cpp \
3605 common/log/log.cpp \
3606 common/log/log-weak.cpp \
3607 common/log/log-weak-assert.cpp \
3608 common/log/log-weak-rel.cpp \
3609 common/log/logellipsis.cpp \
3610 common/log/logrel.cpp \
3611 common/log/logrelellipsis.cpp \
3612 common/log/logcom.cpp \
3613 common/log/logformat.cpp \
3614 common/log/tracebuf.cpp \
3615 common/log/tracedefault.cpp \
3616 common/log/RTLogCreateEx.cpp \
3617 common/misc/RTAssertMsg1Weak.cpp \
3618 common/misc/RTAssertMsg2.cpp \
3619 common/misc/RTAssertMsg2Add.cpp \
3620 common/misc/RTAssertMsg2AddWeak.cpp \
3621 common/misc/RTAssertMsg2AddWeakV.cpp \
3622 common/misc/RTAssertMsg2Weak.cpp \
3623 common/misc/RTAssertMsg2WeakV.cpp \
3624 common/misc/assert.cpp \
3625 common/misc/buildconfig.cpp \
3626 common/misc/handletable.cpp \
3627 common/misc/handletablectx.cpp \
3628 common/misc/handletablesimple.cpp \
3629 common/misc/once.cpp \
3630 common/misc/sanity-c.c \
3631 common/misc/sanity-cpp.cpp \
3632 common/misc/term.cpp \
3633 common/misc/RTMemWipeThoroughly.cpp \
3634 common/path/rtPathVolumeSpecLen.cpp \
3635 common/path/RTPathAbsDup.cpp \
3636 common/path/RTPathAbsEx.cpp \
3637 common/path/RTPathAbsExDup.cpp \
3638 common/path/RTPathAppend.cpp \
3639 common/path/RTPathAppendEx.cpp \
3640 common/path/RTPathExt.cpp \
3641 common/path/RTPathFilename.cpp \
3642 common/path/RTPathHasExt.cpp \
3643 common/path/RTPathHasPath.cpp \
3644 common/path/RTPathParseSimple.cpp \
3645 common/path/RTPathRealDup.cpp \
3646 common/path/RTPathStripExt.cpp \
3647 common/path/RTPathStripFilename.cpp \
3648 common/path/RTPathStripTrailingSlash.cpp \
3649 common/rand/rand.cpp \
3650 common/rand/randadv.cpp \
3651 common/rand/randparkmiller.cpp \
3652 common/string/RTStrCat.cpp \
3653 common/string/RTStrCatEx.cpp \
3654 common/string/RTStrCatP.cpp \
3655 common/string/RTStrCatPEx.cpp \
3656 common/string/RTStrCmp.cpp \
3657 common/string/RTStrCopy.cpp \
3658 common/string/RTStrCopyEx.cpp \
3659 common/string/RTStrCopyP.cpp \
3660 common/string/RTStrCopyPEx.cpp \
3661 common/string/RTStrICmpAscii.cpp \
3662 common/string/RTStrNICmpAscii.cpp \
3663 common/string/RTStrNCmp.cpp \
3664 common/string/RTStrNLen.cpp \
3665 common/string/RTStrNLenEx.cpp \
3666 common/string/RTUtf16ICmpAscii.cpp \
3667 common/string/RTUtf16NICmpAscii.cpp \
3668 common/string/straprintf.cpp \
3669 common/string/strformat.cpp \
3670 common/string/RTStrFormat.cpp \
3671 common/string/strformatnum.cpp \
3672 common/string/strformatrt.cpp \
3673 common/string/strformattype.cpp \
3674 common/string/strhash1.cpp \
3675 common/string/strprintf.cpp \
3676 common/string/strprintf-ellipsis.cpp \
3677 common/string/strprintf2.cpp \
3678 common/string/strprintf2-ellipsis.cpp \
3679 common/string/strtonum.cpp \
3680 common/string/stringalloc.cpp \
3681 common/string/unidata-flags.cpp \
3682 common/string/unidata-lower.cpp \
3683 common/string/unidata-upper.cpp \
3684 common/string/utf-8.cpp \
3685 common/string/utf-8-case.cpp \
3686 common/string/utf-8-case2.cpp \
3687 common/string/utf-16.cpp \
3688 common/string/utf-16-case.cpp \
3689 common/string/utf-16-latin-1.cpp \
3690 common/string/utf-16-printf.cpp \
3691 common/table/avlpv.cpp \
3692 common/table/avlu32.cpp \
3693 common/table/avllu32.cpp \
3694 common/time/time.cpp \
3695 generic/RTLogWriteStdErr-stub-generic.cpp \
3696 generic/RTLogWriteUser-generic.cpp \
3697 generic/RTMpGetArraySize-generic.cpp \
3698 generic/RTRandAdvCreateSystemFaster-generic.cpp \
3699 generic/RTSemEventWait-2-ex-generic.cpp \
3700 generic/RTSemEventWaitNoResume-2-ex-generic.cpp \
3701 generic/RTSemEventMultiWait-2-ex-generic.cpp \
3702 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
3703 generic/system-page-size-generic.cpp \
3704 generic/critsect-generic.cpp \
3705 generic/critsectrw-generic.cpp \
3706 generic/errvars-generic.cpp \
3707 generic/uuid-generic.cpp \
3708 r0drv/alloc-r0drv.cpp \
3709 r0drv/initterm-r0drv.cpp \
3710 r0drv/generic/semspinmutex-r0drv-generic.c \
3711 r0drv/RTR0DbgKrnlInfoGetSymbol.cpp \
3712 VBox/log-vbox.cpp
3713
3714RuntimeR0Drv_SOURCES.amd64 = \
3715 common/asm/ASMCpuIdExSlow.asm \
3716 common/asm/ASMMemFirstMismatchingU8.asm \
3717 common/asm/ASMRdMsrEx.asm \
3718 common/asm/ASMWrMsrEx.asm \
3719 common/math/bignum-amd64-x86.asm \
3720 common/math/RTUInt128MulByU64.asm \
3721 common/math/RTUInt128MulByU64Ex.asm \
3722 common/string/RTStrEnd.asm \
3723 VBox/RTLogWriteVmm-amd64-x86.asm
3724RuntimeR0Drv_SOURCES.x86 = \
3725 common/asm/ASMCpuIdExSlow.asm \
3726 common/asm/ASMMemFirstMismatchingU8.asm \
3727 common/asm/ASMRdMsrEx.asm \
3728 common/asm/ASMWrMsrEx.asm \
3729 common/math/bignum-amd64-x86.asm \
3730 common/string/RTStrEnd.asm \
3731 VBox/RTLogWriteVmm-amd64-x86.asm
3732RuntimeR0Drv_SOURCES.arm32 += \
3733 common/string/RTStrEnd.cpp \
3734 common/asm/ASMMultU64ByU32DivByU32-generic.cpp
3735RuntimeR0Drv_SOURCES.arm64 += \
3736 common/string/RTStrEnd.cpp \
3737 common/asm/ASMMultU64ByU32DivByU32-generic.cpp
3738RuntimeR0Drv_SOURCES.sparc32 += \
3739 common/string/RTStrEnd.cpp \
3740 common/asm/ASMMultU64ByU32DivByU32-generic.cpp
3741RuntimeR0Drv_SOURCES.sparc64 += \
3742 common/string/RTStrEnd.cpp \
3743 common/asm/ASMMultU64ByU32DivByU32-generic.cpp
3744
3745RuntimeR0Drv_SOURCES.linux = \
3746 common/misc/thread.cpp \
3747 common/string/strpbrk.cpp \
3748 generic/RTAssertShouldPanic-generic.cpp \
3749 generic/RTLogWriteStdOut-stub-generic.cpp \
3750 generic/RTMpGetCoreCount-generic.cpp \
3751 generic/mppresent-generic.cpp \
3752 generic/rtStrFormatKernelAddress-generic.cpp \
3753 r0drv/linux/alloc-r0drv-linux.c \
3754 r0drv/linux/assert-r0drv-linux.c \
3755 r0drv/linux/initterm-r0drv-linux.c \
3756 r0drv/linux/memobj-r0drv-linux.c \
3757 r0drv/linux/memuserkernel-r0drv-linux.c \
3758 r0drv/linux/mp-r0drv-linux.c \
3759 r0drv/linux/mpnotification-r0drv-linux.c \
3760 r0drv/linux/process-r0drv-linux.c \
3761 r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \
3762 r0drv/linux/semevent-r0drv-linux.c \
3763 r0drv/linux/semeventmulti-r0drv-linux.c \
3764 r0drv/linux/semfastmutex-r0drv-linux.c \
3765 r0drv/linux/semmutex-r0drv-linux.c \
3766 r0drv/linux/spinlock-r0drv-linux.c \
3767 r0drv/linux/thread-r0drv-linux.c \
3768 r0drv/linux/thread2-r0drv-linux.c \
3769 r0drv/linux/threadctxhooks-r0drv-linux.c \
3770 r0drv/linux/time-r0drv-linux.c \
3771 r0drv/linux/timer-r0drv-linux.c \
3772 r0drv/memobj-r0drv.cpp \
3773 r0drv/mpnotification-r0drv.c \
3774 r0drv/powernotification-r0drv.c
3775
3776RuntimeR0Drv_SOURCES.win = \
3777 common/ldr/ldr.cpp \
3778 common/ldr/ldrEx.cpp \
3779 common/ldr/ldrPE.cpp \
3780 common/asn1/asn1-basics.cpp \
3781 common/asn1/asn1-dump.cpp \
3782 common/asn1/asn1-cursor.cpp \
3783 common/asn1/asn1-default-allocator.cpp \
3784 common/asn1/asn1-safer-allocator.cpp \
3785 common/asn1/asn1-encode.cpp \
3786 common/asn1/asn1-ut-bitstring.cpp \
3787 common/asn1/asn1-ut-bitstring-decode.cpp \
3788 common/asn1/asn1-ut-boolean.cpp \
3789 common/asn1/asn1-ut-boolean-decode.cpp \
3790 common/asn1/asn1-ut-core.cpp \
3791 common/asn1/asn1-ut-core-decode.cpp \
3792 common/asn1/asn1-ut-dyntype.cpp \
3793 common/asn1/asn1-ut-dyntype-decode.cpp \
3794 common/asn1/asn1-ut-integer.cpp \
3795 common/asn1/asn1-ut-integer-decode.cpp \
3796 common/asn1/asn1-ut-null.cpp \
3797 common/asn1/asn1-ut-null-decode.cpp \
3798 common/asn1/asn1-ut-objid.cpp \
3799 common/asn1/asn1-ut-objid-decode.cpp \
3800 common/asn1/asn1-ut-octetstring.cpp \
3801 common/asn1/asn1-ut-octetstring-decode.cpp \
3802 common/asn1/asn1-ut-string.cpp \
3803 common/asn1/asn1-ut-string-decode.cpp \
3804 common/asn1/asn1-ut-time.cpp \
3805 common/asn1/asn1-ut-time-decode.cpp \
3806 common/crypto/digest-core.cpp \
3807 common/crypto/digest-builtin.cpp \
3808 common/crypto/key.cpp \
3809 common/crypto/rsa-asn1-decoder.cpp \
3810 common/crypto/rsa-core.cpp \
3811 common/crypto/rsa-init.cpp \
3812 common/crypto/rsa-sanity.cpp \
3813 common/crypto/pkcs7-asn1-decoder.cpp \
3814 common/crypto/pkcs7-core.cpp \
3815 common/crypto/pkcs7-init.cpp \
3816 common/crypto/pkcs7-sanity.cpp \
3817 common/crypto/pkcs7-verify.cpp \
3818 common/crypto/pkix-signature-builtin.cpp \
3819 common/crypto/pkix-signature-core.cpp \
3820 common/crypto/pkix-signature-rsa.cpp \
3821 common/crypto/pkix-util.cpp \
3822 common/crypto/pkix-verify.cpp \
3823 common/crypto/spc-asn1-decoder.cpp \
3824 common/crypto/spc-core.cpp \
3825 common/crypto/spc-init.cpp \
3826 common/crypto/spc-sanity.cpp \
3827 common/crypto/x509-asn1-decoder.cpp \
3828 common/crypto/x509-certpaths.cpp \
3829 common/crypto/x509-core.cpp \
3830 common/crypto/x509-create-sign.cpp \
3831 common/crypto/x509-init.cpp \
3832 common/crypto/x509-sanity.cpp \
3833 common/crypto/x509-verify.cpp \
3834 common/crypto/store.cpp \
3835 common/crypto/store-inmem.cpp \
3836 common/crypto/taf-asn1-decoder.cpp \
3837 common/crypto/taf-core.cpp \
3838 common/crypto/taf-init.cpp \
3839 common/crypto/taf-sanity.cpp \
3840 common/crypto/tsp-asn1-decoder.cpp \
3841 common/crypto/tsp-core.cpp \
3842 common/crypto/tsp-init.cpp \
3843 common/crypto/tsp-sanity.cpp \
3844 common/checksum/alt-md2.cpp \
3845 common/checksum/alt-sha1.cpp \
3846 common/checksum/alt-sha256.cpp \
3847 common/checksum/alt-sha512.cpp \
3848 common/checksum/alt-sha3.cpp \
3849 common/checksum/md2str.cpp \
3850 common/checksum/md4str.cpp \
3851 common/checksum/md5str.cpp \
3852 common/checksum/sha1str.cpp \
3853 common/checksum/sha224str.cpp \
3854 common/checksum/sha256str.cpp \
3855 common/checksum/sha384str.cpp \
3856 common/checksum/sha512str.cpp \
3857 common/checksum/sha512t224str.cpp \
3858 common/checksum/sha512t256str.cpp \
3859 common/err/errinfolog.cpp \
3860 common/path/RTPathFilenameUtf16.cpp \
3861 common/path/RTPathChangeToUnixSlashes.cpp \
3862 common/math/bignum.cpp \
3863 common/string/RTStrPrintHexBytes.cpp \
3864 common/string/RTUtf16Copy.cpp \
3865 common/string/RTUtf16CopyAscii.cpp \
3866 common/string/RTUtf16CopyEx.cpp \
3867 common/string/RTUtf16Cat.cpp \
3868 common/string/RTUtf16CatAscii.cpp \
3869 common/string/RTUtf16End.cpp \
3870 common/string/RTUtf16NLen.cpp \
3871 common/string/RTUtf16NLenEx.cpp \
3872 common/string/RTUtf16PrintHexBytes.cpp \
3873 common/string/strstrip.cpp \
3874 generic/memsafer-generic.cpp \
3875 common/misc/thread.cpp \
3876 common/string/strncmp.cpp \
3877 common/string/strpbrk.cpp \
3878 generic/RTAssertShouldPanic-generic.cpp \
3879 generic/RTLogWriteStdOut-stub-generic.cpp \
3880 generic/RTMpGetCoreCount-generic.cpp \
3881 generic/RTTimerCreate-generic.cpp \
3882 generic/mppresent-generic-online.cpp \
3883 generic/rtStrFormatKernelAddress-generic.cpp \
3884 nt/RTErrConvertFromNtStatus.cpp \
3885 nt/RTNtPathExpand8dot3Path.cpp \
3886 nt/RTNtPathExpand8dot3PathA.cpp \
3887 nt/RTNtPathFindPossible8dot3Name.cpp \
3888 nt/semevent-nt.cpp \
3889 nt/RTSemEventGetResolution-nt.cpp \
3890 nt/semeventmulti-nt.cpp \
3891 nt/RTSemEventMultiGetResolution-nt.cpp \
3892 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
3893 r0drv/alloc-ef-r0drv.cpp \
3894 r0drv/memobj-r0drv.cpp \
3895 r0drv/mpnotification-r0drv.c \
3896 r0drv/powernotification-r0drv.c \
3897 r0drv/nt/alloc-r0drv-nt.cpp \
3898 r0drv/nt/assert-r0drv-nt.cpp \
3899 r0drv/nt/dbgkrnlinfo-r0drv-nt.cpp \
3900 r0drv/nt/initterm-r0drv-nt.cpp \
3901 r0drv/nt/memobj-r0drv-nt.cpp \
3902 r0drv/nt/memuserkernel-r0drv-nt.cpp \
3903 r0drv/nt/mp-r0drv-nt.cpp \
3904 r0drv/nt/process-r0drv-nt.cpp \
3905 r0drv/nt/RTLogWriteDebugger-r0drv-nt.cpp \
3906 r0drv/nt/semfastmutex-r0drv-nt.cpp \
3907 r0drv/nt/semmutex-r0drv-nt.cpp \
3908 r0drv/nt/spinlock-r0drv-nt.cpp \
3909 r0drv/nt/thread-r0drv-nt.cpp \
3910 r0drv/nt/thread2-r0drv-nt.cpp \
3911 r0drv/nt/time-r0drv-nt.cpp \
3912 r0drv/nt/timer-r0drv-nt.cpp \
3913 r0drv/nt/RTTimerGetSystemGranularity-r0drv-nt.cpp
3914
3915RuntimeR0Drv_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES) \
3916 common/misc/zero.asm \
3917 common/string/memcmp.asm \
3918 common/string/memchr.asm \
3919 common/string/memcpy.asm \
3920 common/string/memset.asm \
3921 common/string/memmove.asm \
3922 common/string/strlen.asm \
3923 r0drv/nt/toxic-chkstk-r0drv-nt.asm
3924
3925RuntimeR0Drv_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES) \
3926 common/misc/zero.asm \
3927 common/string/memcmp.asm \
3928 common/string/memchr.asm \
3929 common/string/memcpy.asm \
3930 common/string/memset.asm \
3931 common/string/memmove.asm \
3932 common/string/strlen.asm \
3933 r0drv/nt/nt3fakes-stub-r0drv-nt.cpp \
3934 r0drv/nt/alloca-x86-r0drv-nt.asm \
3935 r0drv/nt/toxic-chkstk-r0drv-nt.asm
3936
3937
3938RuntimeR0Drv_SOURCES.darwin = \
3939 common/ldr/ldr.cpp \
3940 common/ldr/ldrEx.cpp \
3941 common/ldr/ldrMachO.cpp \
3942 common/ldr/ldrMemory.cpp \
3943 common/asn1/asn1-basics.cpp \
3944 common/asn1/asn1-dump.cpp \
3945 common/asn1/asn1-cursor.cpp \
3946 common/asn1/asn1-default-allocator.cpp \
3947 common/asn1/asn1-safer-allocator.cpp \
3948 common/asn1/asn1-encode.cpp \
3949 common/asn1/asn1-ut-bitstring.cpp \
3950 common/asn1/asn1-ut-bitstring-decode.cpp \
3951 common/asn1/asn1-ut-boolean.cpp \
3952 common/asn1/asn1-ut-boolean-decode.cpp \
3953 common/asn1/asn1-ut-core.cpp \
3954 common/asn1/asn1-ut-core-decode.cpp \
3955 common/asn1/asn1-ut-dyntype.cpp \
3956 common/asn1/asn1-ut-dyntype-decode.cpp \
3957 common/asn1/asn1-ut-integer.cpp \
3958 common/asn1/asn1-ut-integer-decode.cpp \
3959 common/asn1/asn1-ut-null.cpp \
3960 common/asn1/asn1-ut-null-decode.cpp \
3961 common/asn1/asn1-ut-objid.cpp \
3962 common/asn1/asn1-ut-objid-decode.cpp \
3963 common/asn1/asn1-ut-octetstring.cpp \
3964 common/asn1/asn1-ut-octetstring-decode.cpp \
3965 common/asn1/asn1-ut-string.cpp \
3966 common/asn1/asn1-ut-string-decode.cpp \
3967 common/asn1/asn1-ut-time.cpp \
3968 common/asn1/asn1-ut-time-decode.cpp \
3969 common/crypto/digest-core.cpp \
3970 common/crypto/digest-builtin.cpp \
3971 common/crypto/key.cpp \
3972 common/crypto/rsa-asn1-decoder.cpp \
3973 common/crypto/rsa-core.cpp \
3974 common/crypto/rsa-init.cpp \
3975 common/crypto/rsa-sanity.cpp \
3976 common/crypto/pkcs7-asn1-decoder.cpp \
3977 common/crypto/pkcs7-core.cpp \
3978 common/crypto/pkcs7-init.cpp \
3979 common/crypto/pkcs7-sanity.cpp \
3980 common/crypto/pkcs7-verify.cpp \
3981 common/crypto/pkix-signature-builtin.cpp \
3982 common/crypto/pkix-signature-core.cpp \
3983 common/crypto/pkix-signature-rsa.cpp \
3984 common/crypto/pkix-util.cpp \
3985 common/crypto/pkix-verify.cpp \
3986 common/crypto/spc-asn1-decoder.cpp \
3987 common/crypto/spc-core.cpp \
3988 common/crypto/spc-init.cpp \
3989 common/crypto/spc-sanity.cpp \
3990 common/crypto/x509-asn1-decoder.cpp \
3991 common/crypto/x509-certpaths.cpp \
3992 common/crypto/x509-core.cpp \
3993 common/crypto/x509-create-sign.cpp \
3994 common/crypto/x509-init.cpp \
3995 common/crypto/x509-sanity.cpp \
3996 common/crypto/x509-verify.cpp \
3997 common/crypto/store.cpp \
3998 common/crypto/store-inmem.cpp \
3999 common/crypto/taf-asn1-decoder.cpp \
4000 common/crypto/taf-core.cpp \
4001 common/crypto/taf-init.cpp \
4002 common/crypto/taf-sanity.cpp \
4003 common/crypto/tsp-asn1-decoder.cpp \
4004 common/crypto/tsp-core.cpp \
4005 common/crypto/tsp-init.cpp \
4006 common/crypto/tsp-sanity.cpp \
4007 common/checksum/alt-md2.cpp \
4008 common/checksum/alt-sha1.cpp \
4009 common/checksum/alt-sha256.cpp \
4010 common/checksum/alt-sha512.cpp \
4011 common/checksum/alt-sha3.cpp \
4012 common/checksum/md2str.cpp \
4013 common/checksum/md4str.cpp \
4014 common/checksum/md5str.cpp \
4015 common/checksum/sha1str.cpp \
4016 common/checksum/sha224str.cpp \
4017 common/checksum/sha256str.cpp \
4018 common/checksum/sha384str.cpp \
4019 common/checksum/sha512str.cpp \
4020 common/checksum/sha512t224str.cpp \
4021 common/checksum/sha512t256str.cpp \
4022 common/err/errinfolog.cpp \
4023 common/math/bignum.cpp \
4024 common/misc/thread.cpp \
4025 common/string/base64.cpp \
4026 common/string/memchr.asm \
4027 common/string/mempcpy.asm \
4028 common/string/strpbrk.cpp \
4029 common/string/strstrip.cpp \
4030 common/string/RTStrPrintHexBytes.cpp \
4031 darwin/RTErrConvertFromDarwin.cpp \
4032 darwin/RTErrConvertFromDarwinIO.cpp \
4033 darwin/RTErrConvertFromDarwinKern.cpp \
4034 generic/RTAssertShouldPanic-generic.cpp \
4035 generic/RTFileReadAll-generic.cpp \
4036 generic/RTFileReadAllByHandle-generic.cpp \
4037 generic/RTFileReadAllByHandleEx-generic.cpp \
4038 generic/RTFileReadAllEx-generic.cpp \
4039 generic/RTFileReadAllFree-generic.cpp \
4040 generic/RTMpGetCoreCount-generic.cpp \
4041 generic/RTMpOnPair-generic.cpp \
4042 generic/RTThreadQueryTerminationStatus-stub-generic.cpp \
4043 generic/RTTimerCreate-generic.cpp \
4044 generic/memsafer-generic.cpp \
4045 generic/mppresent-generic.cpp \
4046 generic/timer-generic.cpp \
4047 r0drv/generic/mpnotification-r0drv-generic.cpp \
4048 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
4049 r0drv/darwin/alloc-r0drv-darwin.cpp \
4050 r0drv/darwin/assert-r0drv-darwin.cpp \
4051 r0drv/darwin/initterm-r0drv-darwin.cpp \
4052 r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp \
4053 r0drv/darwin/fileio-r0drv-darwin.cpp \
4054 r0drv/darwin/memobj-r0drv-darwin.cpp \
4055 r0drv/darwin/mp-r0drv-darwin.cpp \
4056 r0drv/darwin/memuserkernel-r0drv-darwin.cpp \
4057 r0drv/darwin/process-r0drv-darwin.cpp \
4058 r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
4059 r0drv/darwin/RTLogWriteStdOut-r0drv-darwin.cpp \
4060 r0drv/darwin/rtStrFormatKernelAddress-r0drv-darwin.cpp \
4061 r0drv/darwin/semevent-r0drv-darwin.cpp \
4062 r0drv/darwin/semeventmulti-r0drv-darwin.cpp \
4063 r0drv/darwin/semfastmutex-r0drv-darwin.cpp \
4064 r0drv/darwin/semmutex-r0drv-darwin.cpp \
4065 r0drv/darwin/spinlock-r0drv-darwin.cpp \
4066 r0drv/darwin/thread-r0drv-darwin.cpp \
4067 r0drv/darwin/thread2-r0drv-darwin.cpp \
4068 r0drv/darwin/threadpreempt-r0drv-darwin.cpp \
4069 r0drv/darwin/time-r0drv-darwin.cpp \
4070 r0drv/alloc-ef-r0drv.cpp \
4071 r0drv/memobj-r0drv.cpp \
4072 r0drv/powernotification-r0drv.c
4073# - The xnu memcpy implementation in osfmk/x86_64/bcopy.s returned 'void' rather than 'void *' for a long time, so use our own.
4074# - The memcmp and strlen implementations are still C implementations living in osfmk/x86_64/loose_ends.c, so use our asm code.
4075RuntimeR0Drv_SOURCES.darwin.amd64 = \
4076 common/string/memcpy.asm
4077# common/string/strlen.asm - try again later \
4078# common/string/memcmp.asm
4079
4080RuntimeR0Drv_SOURCES.os2 = \
4081 common/path/RTPathFilenameUtf16.cpp \
4082 common/string/RTUtf16Chr.cpp \
4083 common/string/RTUtf16CmpAscii.cpp \
4084 common/string/memchr.asm \
4085 common/string/memcmp.asm \
4086 common/string/memcpy.asm \
4087 common/string/mempcpy.asm \
4088 common/string/memmove.asm \
4089 common/string/memset.asm \
4090 common/string/strchr.asm \
4091 common/string/strcmp.asm \
4092 common/string/strcpy.asm \
4093 common/string/strlen.asm \
4094 common/string/strncmp.cpp \
4095 common/string/strpbrk.cpp \
4096 common/misc/thread.cpp \
4097 generic/RTAssertShouldPanic-generic.cpp \
4098 generic/RTLogWriteDebugger-generic.cpp \
4099 generic/RTLogWriteStdOut-stub-generic.cpp \
4100 generic/RTMpCpuId-generic.cpp \
4101 generic/RTMpCpuIdFromSetIndex-generic.cpp \
4102 generic/RTMpCpuIdToSetIndex-generic.cpp \
4103 generic/RTMpIsCpuPossible-generic.cpp \
4104 generic/RTMpGetCount-generic.cpp \
4105 generic/RTMpGetMaxCpuId-generic.cpp \
4106 generic/RTMpGetOnlineCount-generic.cpp \
4107 generic/RTMpGetOnlineSet-generic.cpp \
4108 generic/RTMpGetSet-generic.cpp \
4109 generic/RTMpIsCpuOnline-generic.cpp \
4110 generic/RTThreadQueryTerminationStatus-stub-generic.cpp \
4111 generic/RTTimerCreate-generic.cpp \
4112 generic/mppresent-generic.cpp \
4113 generic/rtStrFormatKernelAddress-generic.cpp \
4114 os2/RTErrConvertFromOS2.cpp \
4115 os2/rtSemWaitOs2ConvertTimeout.cpp \
4116 os2/sys0.asm \
4117 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
4118 r0drv/generic/RTMpOn-r0drv-generic.cpp \
4119 r0drv/generic/mpnotification-r0drv-generic.cpp \
4120 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
4121 r0drv/memobj-r0drv.cpp \
4122 r0drv/powernotification-r0drv.c \
4123 r0drv/os2/alloc-r0drv-os2.cpp \
4124 r0drv/os2/assert-r0drv-os2.cpp \
4125 r0drv/os2/assertA-r0drv-os2.asm \
4126 r0drv/os2/initterm-r0drv-os2.cpp \
4127 r0drv/os2/memobj-r0drv-os2.cpp \
4128 r0drv/os2/memuserkernel-r0drv-os2.cpp \
4129 r0drv/os2/os2imports.imp \
4130 r0drv/os2/process-r0drv-os2.cpp \
4131 r0drv/os2/RTR0AssertPanicSystem-r0drv-os2.asm \
4132 r0drv/os2/RTR0Os2DHQueryDOSVar.asm \
4133 r0drv/os2/RTR0Os2DHVMGlobalToProcess.asm \
4134 r0drv/os2/semevent-r0drv-os2.cpp \
4135 r0drv/os2/semeventmulti-r0drv-os2.cpp \
4136 r0drv/os2/semfastmutex-r0drv-os2.cpp \
4137 r0drv/os2/spinlock-r0drv-os2.cpp \
4138 r0drv/os2/thread-r0drv-os2.cpp \
4139 r0drv/os2/thread2-r0drv-os2.cpp \
4140 r0drv/os2/time-r0drv-os2.cpp \
4141 r0drv/os2/timer-r0drv-os2.cpp \
4142 r0drv/os2/timerA-r0drv-os2.asm
4143ifndef VBOX_USE_WATCOM_FOR_OS2
4144 RuntimeR0Drv_SOURCES.os2 += \
4145 common/math/gcc/adddi3.c \
4146 common/math/gcc/anddi3.c \
4147 common/math/gcc/ashldi3.c \
4148 common/math/gcc/ashrdi3.c \
4149 common/math/gcc/cmpdi2.c \
4150 common/math/gcc/divdi3.c \
4151 common/math/gcc/divmoddi4.c \
4152 common/math/gcc/iordi3.c \
4153 common/math/gcc/lshldi3.c \
4154 common/math/gcc/lshrdi3.c \
4155 common/math/gcc/moddi3.c \
4156 common/math/gcc/muldi3.c \
4157 common/math/gcc/negdi2.c \
4158 common/math/gcc/notdi2.c \
4159 common/math/gcc/qdivrem.c \
4160 common/math/gcc/subdi3.c \
4161 common/math/gcc/ucmpdi2.c \
4162 common/math/gcc/udivdi3.c \
4163 common/math/gcc/udivmoddi4.c \
4164 common/math/gcc/umoddi3.c \
4165 common/math/gcc/xordi3.c
4166else
4167 RuntimeR0Drv_SOURCES.os2 += \
4168 common/math/watcom/I8D-x86-32.asm \
4169 common/math/watcom/U8D-x86-32.asm \
4170 common/math/watcom/RTWatcomUInt64Div.c \
4171 common/math/watcom/U8LS-x86-32.asm \
4172 common/math/watcom/U8RS-x86-32.asm \
4173 common/math/watcom/U8M-I8M-x86-32.asm \
4174 common/string/watcom/bzero.asm \
4175 common/string/watcom/memchr.asm \
4176 common/string/watcom/memcmp.asm \
4177 common/string/watcom/memcpy.asm \
4178 common/string/watcom/memmove.asm \
4179 common/string/watcom/mempcpy.asm \
4180 common/string/watcom/memrchr.asm \
4181 common/string/watcom/memset.asm \
4182 common/string/watcom/strchr.asm \
4183 common/string/watcom/strcmp.asm \
4184 common/string/watcom/strcpy.asm \
4185 common/string/watcom/strlen.asm \
4186 common/string/watcom/strncmp.asm \
4187 common/string/watcom/strncpy.asm
4188endif
4189
4190RuntimeR0Drv_SOURCES.freebsd = \
4191 common/misc/thread.cpp \
4192 common/string/memchr.asm \
4193 common/string/memmove.asm \
4194 common/string/strpbrk.cpp \
4195 common/string/memcmp.asm \
4196 common/string/strchr.asm \
4197 generic/RTAssertShouldPanic-generic.cpp \
4198 generic/RTLogWriteDebugger-generic.cpp \
4199 generic/RTLogWriteStdOut-stub-generic.cpp \
4200 generic/RTMpOnPair-generic.cpp \
4201 generic/RTTimerCreate-generic.cpp \
4202 generic/mppresent-generic.cpp \
4203 generic/rtStrFormatKernelAddress-generic.cpp \
4204 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
4205 r0drv/generic/mpnotification-r0drv-generic.cpp \
4206 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
4207 r0drv/freebsd/alloc-r0drv-freebsd.c \
4208 r0drv/freebsd/assert-r0drv-freebsd.c \
4209 r0drv/freebsd/initterm-r0drv-freebsd.c \
4210 r0drv/freebsd/memobj-r0drv-freebsd.c \
4211 r0drv/freebsd/memuserkernel-r0drv-freebsd.c \
4212 r0drv/freebsd/process-r0drv-freebsd.c \
4213 r0drv/freebsd/semevent-r0drv-freebsd.c \
4214 r0drv/freebsd/semeventmulti-r0drv-freebsd.c \
4215 r0drv/freebsd/semfastmutex-r0drv-freebsd.c \
4216 r0drv/freebsd/semmutex-r0drv-freebsd.c \
4217 r0drv/freebsd/spinlock-r0drv-freebsd.c \
4218 r0drv/freebsd/thread-r0drv-freebsd.c \
4219 r0drv/freebsd/thread2-r0drv-freebsd.c \
4220 r0drv/freebsd/time-r0drv-freebsd.c \
4221 r0drv/freebsd/mp-r0drv-freebsd.c \
4222 generic/timer-generic.cpp \
4223 r0drv/alloc-ef-r0drv.cpp \
4224 r0drv/memobj-r0drv.cpp \
4225 r0drv/powernotification-r0drv.c
4226
4227RuntimeR0Drv_SOURCES.netbsd = \
4228 common/misc/thread.cpp \
4229 common/string/strpbrk.cpp \
4230 generic/RTAssertShouldPanic-generic.cpp \
4231 generic/RTLogWriteDebugger-generic.cpp \
4232 generic/RTThreadQueryTerminationStatus-stub-generic.cpp \
4233 generic/RTTimerCreate-generic.cpp \
4234 generic/mppresent-generic.cpp \
4235 generic/rtStrFormatKernelAddress-generic.cpp \
4236 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
4237 r0drv/generic/mpnotification-r0drv-generic.cpp \
4238 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
4239 r0drv/netbsd/RTLogWriteStdOut-r0drv-netbsd.c \
4240 r0drv/netbsd/alloc-r0drv-netbsd.c \
4241 r0drv/netbsd/assert-r0drv-netbsd.c \
4242 r0drv/netbsd/initterm-r0drv-netbsd.c \
4243 r0drv/netbsd/memobj-r0drv-netbsd.c \
4244 r0drv/netbsd/memuserkernel-r0drv-netbsd.c \
4245 r0drv/netbsd/process-r0drv-netbsd.c \
4246 r0drv/netbsd/semevent-r0drv-netbsd.c \
4247 r0drv/netbsd/semeventmulti-r0drv-netbsd.c \
4248 r0drv/netbsd/semfastmutex-r0drv-netbsd.c \
4249 r0drv/netbsd/spinlock-r0drv-netbsd.c \
4250 r0drv/netbsd/thread-r0drv-netbsd.c \
4251 r0drv/netbsd/thread2-r0drv-netbsd.c \
4252 r0drv/netbsd/time-r0drv-netbsd.c \
4253 r0drv/netbsd/mp-r0drv-netbsd.c \
4254 generic/timer-generic.cpp \
4255 r0drv/memobj-r0drv.cpp \
4256 r0drv/powernotification-r0drv.c
4257
4258RuntimeR0Drv_SOURCES.solaris = \
4259 common/misc/thread.cpp \
4260 common/string/memchr.asm \
4261 generic/RTAssertShouldPanic-generic.cpp \
4262 generic/RTLogWriteStdOut-stub-generic.cpp \
4263 generic/RTMpGetCoreCount-generic.cpp \
4264 generic/RTThreadQueryTerminationStatus-stub-generic.cpp \
4265 generic/RTTimerCreate-generic.cpp \
4266 generic/mppresent-generic.cpp \
4267 generic/rtStrFormatKernelAddress-generic.cpp \
4268 r0drv/memobj-r0drv.cpp \
4269 r0drv/mpnotification-r0drv.c \
4270 r0drv/powernotification-r0drv.c \
4271 r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \
4272 r0drv/solaris/RTMpPokeCpu-r0drv-solaris.c \
4273 r0drv/solaris/alloc-r0drv-solaris.c \
4274 r0drv/solaris/assert-r0drv-solaris.c \
4275 r0drv/solaris/dbgkrnlinfo-r0drv-solaris.c \
4276 r0drv/solaris/initterm-r0drv-solaris.c \
4277 r0drv/solaris/memuserkernel-r0drv-solaris.c \
4278 r0drv/solaris/mpnotification-r0drv-solaris.c \
4279 r0drv/solaris/memobj-r0drv-solaris.c \
4280 r0drv/solaris/mp-r0drv-solaris.c \
4281 r0drv/solaris/process-r0drv-solaris.c \
4282 r0drv/solaris/semevent-r0drv-solaris.c \
4283 r0drv/solaris/semeventmulti-r0drv-solaris.c \
4284 r0drv/solaris/semfastmutex-r0drv-solaris.c \
4285 r0drv/solaris/semmutex-r0drv-solaris.c \
4286 r0drv/solaris/spinlock-r0drv-solaris.c \
4287 r0drv/solaris/thread-r0drv-solaris.c \
4288 r0drv/solaris/thread2-r0drv-solaris.c \
4289 r0drv/solaris/threadctxhooks-r0drv-solaris.c \
4290 r0drv/solaris/time-r0drv-solaris.c \
4291 r0drv/solaris/timer-r0drv-solaris.c
4292
4293RuntimeR0Drv_SOURCES.haiku = \
4294 common/misc/thread.cpp \
4295 common/string/memchr.asm \
4296 common/string/memmove.asm \
4297 common/string/strpbrk.cpp \
4298 common/string/memcmp.asm \
4299 common/string/strchr.asm \
4300 generic/RTAssertShouldPanic-generic.cpp \
4301 generic/RTMpOnPair-generic.cpp \
4302 generic/RTThreadQueryTerminationStatus-stub-generic.cpp \
4303 generic/RTTimerCreate-generic.cpp \
4304 generic/mppresent-generic.cpp \
4305 generic/rtStrFormatKernelAddress-generic.cpp \
4306 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
4307 r0drv/generic/mpnotification-r0drv-generic.cpp \
4308 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
4309 r0drv/haiku/alloc-r0drv-haiku.c \
4310 r0drv/haiku/assert-r0drv-haiku.c \
4311 r0drv/haiku/initterm-r0drv-haiku.c \
4312 r0drv/haiku/memobj-r0drv-haiku.c \
4313 r0drv/haiku/mp-r0drv-haiku.c \
4314 r0drv/haiku/process-r0drv-haiku.c \
4315 r0drv/haiku/RTLogWriteDebugger-r0drv-haiku.c \
4316 r0drv/haiku/RTLogWriteStdOut-r0drv-haiku.c \
4317 r0drv/haiku/semevent-r0drv-haiku.c \
4318 r0drv/haiku/semeventmulti-r0drv-haiku.c \
4319 r0drv/haiku/semfastmutex-r0drv-haiku.c \
4320 r0drv/haiku/semmutex-r0drv-haiku.c \
4321 r0drv/haiku/spinlock-r0drv-haiku.c \
4322 r0drv/haiku/thread-r0drv-haiku.c \
4323 r0drv/haiku/thread2-r0drv-haiku.c \
4324 r0drv/haiku/time-r0drv-haiku.c \
4325 generic/timer-generic.cpp \
4326 r0drv/memobj-r0drv.cpp \
4327 r0drv/powernotification-r0drv.c
4328
4329## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here.
4330
4331RuntimeR0Drv_ORDERDEPS.freebsd = \
4332 $(PATH_STAGE)/gen-sys-hdrs/bus_if.h \
4333 $(PATH_STAGE)/gen-sys-hdrs/device_if.h
4334
4335
4336#
4337# RuntimeGuestR0 - Guest driver runtime.
4338#
4339# This is almost the same as the RuntimeR0Drv, the main difference is in the
4340# backdoor logging and the lack of sup.h (which should be made irrelevant even
4341# for RuntimeR0Drv).
4342#
4343# In addition we include 64-bit integer stuff, since older kernels doesn't
4344# export all of these and we happen to have all of it.
4345#
4346RuntimeGuestR0_TEMPLATE := VBoxGuestR0DrvLib
4347RuntimeGuestR0_EXTENDS = RuntimeR0Drv
4348RuntimeGuestR0_DEFS.win.x86 = $(RuntimeR0Drv_DEFS.win.x86) IPRT_TARGET_NT4 # The 32-bit version needs to work on NT4 too.
4349RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES))
4350RuntimeGuestR0_SOURCES += \
4351 VBox/logbackdoor.cpp
4352RuntimeGuestR0_SOURCES.win := \
4353 $(filter-out common/checksum/md% common/checksum/sha%, $(RuntimeR0Drv_SOURCES.win))
4354RuntimeGuestR0_SOURCES.win.x86 := \
4355 $(RuntimeR0Drv_SOURCES.win.x86) \
4356 common/compiler/vcc/x86-allshl.asm \
4357 common/compiler/vcc/x86-allshr.asm \
4358 common/compiler/vcc/x86-aullshr.asm \
4359 common/compiler/vcc/x86-allmul.asm \
4360 common/compiler/vcc/x86-alldiv.asm \
4361 common/compiler/vcc/x86-allrem.asm \
4362 common/compiler/vcc/x86-alldvrm.asm \
4363 common/compiler/vcc/x86-aulldiv.asm \
4364 common/compiler/vcc/x86-aullrem.asm \
4365 common/compiler/vcc/x86-aulldvrm.asm
4366
4367
4368
4369ifdef VBOX_WITH_RAW_MODE
4370 #
4371 # RuntimeRC - Raw-mode context library.
4372 #
4373 RuntimeRC_TEMPLATE = VBoxRc
4374 RuntimeRC_DEFS = IN_RT_RC RT_WITH_VBOX IN_SUP_RC IN_VMM_RC NOFILEID
4375 RuntimeRC_INCS = include
4376 RuntimeRC_SOURCES := \
4377 common/asm/ASMMemFirstMismatchingU8.asm \
4378 common/asm/ASMGetXcr0.asm \
4379 common/asm/ASMSetXcr0.asm \
4380 common/asm/ASMXSave.asm \
4381 common/asm/ASMXRstor.asm \
4382 common/asm/ASMFxSave.asm \
4383 common/asm/ASMFxRstor.asm \
4384 common/checksum/alt-md5.cpp \
4385 common/checksum/crc32.cpp \
4386 common/checksum/crc64.cpp \
4387 common/log/log.cpp \
4388 common/log/log-weak.cpp \
4389 common/log/log-weak-assert.cpp \
4390 common/log/log-weak-rel.cpp \
4391 common/log/logellipsis.cpp \
4392 common/log/logrel.cpp \
4393 common/log/logrelellipsis.cpp \
4394 common/log/logcom.cpp \
4395 common/log/logformat.cpp \
4396 common/log/tracebuf.cpp \
4397 common/log/tracedefault.cpp \
4398 common/log/RTLogCreateEx.cpp \
4399 common/misc/RTAssertMsg1Weak.cpp \
4400 common/misc/RTAssertMsg2.cpp \
4401 common/misc/RTAssertMsg2Add.cpp \
4402 common/misc/RTAssertMsg2AddWeak.cpp \
4403 common/misc/RTAssertMsg2AddWeakV.cpp \
4404 common/misc/RTAssertMsg2Weak.cpp \
4405 common/misc/RTAssertMsg2WeakV.cpp \
4406 common/misc/assert.cpp \
4407 common/misc/buildconfig.cpp \
4408 common/misc/sanity-c.c \
4409 common/misc/sanity-cpp.cpp \
4410 common/path/RTPathFilename.cpp \
4411 common/string/strformat.cpp \
4412 common/string/RTStrFormat.cpp \
4413 common/string/strformatnum.cpp \
4414 common/string/strformatrt.cpp \
4415 common/string/strformattype.cpp \
4416 common/string/strncmp.cpp \
4417 common/string/strpbrk.cpp \
4418 common/string/strprintf.cpp \
4419 common/string/strprintf-ellipsis.cpp \
4420 common/string/strprintf2.cpp \
4421 common/string/strprintf2-ellipsis.cpp \
4422 common/string/RTStrCmp.cpp \
4423 common/string/RTStrCopy.cpp \
4424 common/string/RTStrCopyEx.cpp \
4425 common/string/RTStrEnd.asm \
4426 common/string/RTStrICmpAscii.cpp \
4427 common/table/avllu32.cpp \
4428 common/table/avlou32.cpp \
4429 common/table/avlogcphys.cpp \
4430 common/table/avlogcptr.cpp \
4431 common/table/avlohcphys.cpp \
4432 common/table/avloioport.cpp \
4433 common/table/avlrogcphys.cpp \
4434 common/table/avlrogcptr.cpp \
4435 common/table/avlroioport.cpp \
4436 common/table/avlroogcptr.cpp \
4437 common/table/avlu32.cpp \
4438 common/time/timeprog.cpp \
4439 common/time/timesup.cpp \
4440 gc/initterm-gc.cpp \
4441 generic/RTAssertShouldPanic-generic.cpp \
4442 generic/rtStrFormatKernelAddress-generic.cpp \
4443 generic/errvars-generic.cpp \
4444 \
4445 $(RuntimeNoCrt_SOURCES)
4446
4447 #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
4448 # RuntimeRC_SOURCES += common/time/timesupA.asm
4449 #else
4450 RuntimeRC_SOURCES += common/time/timesupref.cpp
4451 #endif
4452
4453 RuntimeRC_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
4454
4455 ifeq ($(VBOX_LDR_FMT32),lx)
4456 RuntimeRC_SOURCES += os2/sys0.asm
4457 endif
4458
4459 if1of ($(KBUILD_TARGET), darwin solaris freebsd os2)
4460 RuntimeRC_SOURCES += \
4461 common/math/gcc/adddi3.c \
4462 common/math/gcc/anddi3.c \
4463 common/math/gcc/ashldi3.c \
4464 common/math/gcc/ashrdi3.c \
4465 common/math/gcc/cmpdi2.c \
4466 common/math/gcc/divdi3.c \
4467 common/math/gcc/divmoddi4.c \
4468 common/math/gcc/iordi3.c \
4469 common/math/gcc/lshldi3.c \
4470 common/math/gcc/lshrdi3.c \
4471 common/math/gcc/moddi3.c \
4472 common/math/gcc/muldi3.c \
4473 common/math/gcc/negdi2.c \
4474 common/math/gcc/notdi2.c \
4475 common/math/gcc/qdivrem.c \
4476 common/math/gcc/subdi3.c \
4477 common/math/gcc/ucmpdi2.c \
4478 common/math/gcc/udivdi3.c \
4479 common/math/gcc/udivmoddi4.c \
4480 common/math/gcc/umoddi3.c \
4481 common/math/gcc/xordi3.c
4482 endif
4483
4484
4485 #
4486 # RuntimeRCStub - Raw-mode context startup stub for Windows.
4487 #
4488 RuntimeRCStub_TEMPLATE = VBoxRc
4489 RuntimeRCStub_SOURCES.win = \
4490 nt/NtProcessStartup-stub.cpp
4491
4492
4493endif # VBOX_WITH_RAW_MODE
4494
4495
4496#
4497# Static library for new & delete for the electric fence.
4498#
4499RuntimeEFCPP_TEMPLATE := $(VBoxRT_TEMPLATE)
4500RuntimeEFCPP_SDKS := $(RuntimeR3_SDKS)
4501RuntimeEFCPP_SDKS.$(KBUILD_TARGET) := $(RuntimeR3_SDKS.$(KBUILD_TARGET))
4502RuntimeEFCPP_DEFS := $(RuntimeR3_DEFS)
4503RuntimeEFCPP_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
4504RuntimeEFCPP_INCS := $(RuntimeR3_INCS)
4505RuntimeEFCPP_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
4506RuntimeEFCPP_SOURCES := r3/alloc-ef-cpp.cpp
4507
4508
4509
4510#
4511# The NTDLL mini import library.
4512#
4513# Note! The reason for doing this is to avoid importing CRT symbols from the
4514# NTDLL. We do not wish to do this because:
4515# - Our compiler is usually a different one and we should use the
4516# matching CRT,
4517# - Older versions of NTDLL may not sport all the exports our w2k3 or
4518# later WINDDK ntdll.lib have and thus we may easily end up with
4519# images that does not load on older windows versions.
4520#
4521if1of (win, $(KBUILD_TARGET) $(KBUILD_HOST))
4522 RuntimeR3NtDll-amd64_TEMPLATE = VBoxR3Dll
4523 RuntimeR3NtDll-amd64_BLD_TRG_ARCH = amd64
4524 RuntimeR3NtDll-amd64_ARFLAGS = /NODEFAULTLIB /MACHINE:amd64
4525 RuntimeR3NtDll-amd64_SOURCES = \
4526 r3/win/ntdll-mini-implib.def
4527
4528 RuntimeR3NtDll-x86_TEMPLATE = VBoxR3Dll
4529 RuntimeR3NtDll-x86_BLD_TRG_ARCH = x86
4530 RuntimeR3NtDll-x86_ARFLAGS = /NODEFAULTLIB /MACHINE:x86
4531 RuntimeR3NtDll-x86_SOURCES = \
4532 r3/win/ntdll-mini-implib.def \
4533 $(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm
4534 RuntimeR3NtDll-x86_CLEAN = \
4535 $(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm
4536 $(call KB_FN_DO_PASS0_ON_TARGET,RuntimeR3NtDll-x86)
4537
4538 $$(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm: $(PATH_SUB_CURRENT)/r3/win/ntdll-mini-implib.def | $$(dir $$@)
4539 $(call MSG_GENERATE,,$@,$<)
4540 $(QUIET)$(APPEND) -nt "$@" \
4541 ';Autogenerated, do not edit' \
4542 '%include "iprt/asmdefs.mac"' \
4543 'BEGINCODE' \
4544 '%macro IMPLIB_EXPORT 1' \
4545 'global %1:function' \
4546 '%1: nop' \
4547 '%endm' \
4548 ''
4549 $(QUIET)$(SED) -e '1,/EXPORTS/d' \
4550 -e 's/^.*;;=[[:space:]]*\([^[:space:]]*\)[[:space:]]*$$/IMPLIB_EXPORT \1/' \
4551 $< --append $@
4552
4553 RuntimeR3NtDll-arm64_TEMPLATE = VBoxR3Dll
4554 RuntimeR3NtDll-arm64_BLD_TRG_ARCH = arm64
4555 RuntimeR3NtDll-arm64_ARFLAGS = /NODEFAULTLIB /MACHINE:arm64
4556 RuntimeR3NtDll-arm64_SOURCES = \
4557 r3/win/ntdll-mini-implib.def
4558endif
4559
4560#
4561# Bag of tricks required for making VCC100 output binaries work on NT4, W2K
4562# early XP and early W2K3. Used by validation kit.
4563#
4564ifndef VBOX_WITH_NOCRT_STATIC
4565 RuntimeR3VccTricks_TEMPLATE = VBoxR3Static
4566 RuntimeR3VccTricks_DEFS = VCC_FAKES_TARGET_$(VBOX_VCC_TOOL_STEM) VCC_FAKES_TARGET=$(substr $(VBOX_VCC_TOOL_STEM),-3)
4567 RuntimeR3VccTricks_SOURCES = \
4568 r3/win/vcc-fakes-kernel32.cpp \
4569 r3/win/vcc-fakes-kernel32-A.asm \
4570 r3/win/vcc-fakes-shell32.cpp \
4571 r3/win/vcc-fakes-shell32-A.asm \
4572 r3/win/vcc-fakes-ntdll.cpp \
4573 r3/win/vcc-fakes-ntdll-A.asm
4574endif
4575
4576if defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" # Ugly hacks... :-)
4577 LIBRARIES += RuntimeR3VccTricks2
4578 RuntimeR3VccTricks2_TEMPLATE = VBoxR3Dll
4579 RuntimeR3VccTricks2_DEFS += $(RuntimeR3VccTricks_DEFS)
4580 RuntimeR3VccTricks2_SOURCES = $(RuntimeR3VccTricks_SOURCES)
4581 RuntimeR3VccTricks2_SOURCES += $(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib
4582 RuntimeR3VccTricks2_CLEAN = $(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib
4583 RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED =
4584
4585 $$(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib: \
4586 $$(PATH_TOOL_$$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \
4587 $$(PATH_TOOL_$$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
4588 $$(LIB_RUNTIME) \
4589 $(MAKEFILE) | $$(dir $$@)
4590 $(RM) -f -- "$@"
4591 # $(REDIRECT) -C $(dir $@) -- $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib \
4592 # $(PATH_TOOL_$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
4593 # $(foreach file, $(RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED), *$(file))
4594 $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib [email protected] $< \
4595 -MSVCR100.dll \
4596 $(addprefix $(RuntimeR3VccTricks2_0_OUTDIR)/, $(RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED)) \
4597 -chandler4gs.obj
4598 $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib -o=$@ \
4599 $(LIB_RUNTIME) \
4600 [email protected]
4601 $(RM) -f -- [email protected] $(addprefix $(RuntimeR3VccTricks2_0_OUTDIR)/, $(RuntimeR3VccTricks_VBOX_LIBCMT_NEEDED))
4602endif
4603
4604
4605#
4606# errmsg.cpp depends on a generated header.
4607#
4608common/err/errmsg.cpp_DEPS = \
4609 $(IPRT_OUT_DIR)/errmsgdata-all.h \
4610 $(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h \
4611 $(IPRT_OUT_DIR)/errmsgdata-only-defines.h
4612common/err/errmsg.cpp_INCS = $(IPRT_OUT_DIR)
4613
4614win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgwindata-only-defines.h
4615win/errmsgwin.cpp_INCS = $(IPRT_OUT_DIR)
4616
4617# Our COM errors only for R3 libraries on the host
4618define def_errmsgwin_deps
4619 $(lib)_common/err/errmsgxpcom.cpp_INCS = $(IPRT_OUT_DIR)
4620 $(lib)_common/err/errmsgxpcom.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
4621endef
4622$(foreach lib,RuntimeR3 RuntimeBldProg VBoxRT VBoxRT-x86,$(eval $(def_errmsgwin_deps)))
4623
4624
4625#
4626# Generate the status code data.
4627#
4628$(IPRT_OUT_DIR)/errmsgdata.h: \
4629 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsg.sed \
4630 $(PATH_ROOT)/include/iprt/err.h \
4631 $(PATH_ROOT)/include/VBox/err.h \
4632 | $$(dir $$@)
4633 $(call MSG_GENERATE,,$@,$(filter %.h,$^))
4634 $(QUIET)$(SED) -f $< --output "$@" $(filter %.h,$^)
4635
4636$(IPRT_OUT_DIR)/errmsgdata-all.h.ts +| $(IPRT_OUT_DIR)/errmsgdata-all.h: \
4637 $$(bldRTErrMsgSorter_1_TARGET)
4638 $(call MSG_GENERATE,,$@,$<)
4639 $(QUIET)"$<" --all "$(IPRT_OUT_DIR)/errmsgdata-all.h.ts"
4640 $(QUIET)$(CP) --changed -fv -- "$(IPRT_OUT_DIR)/errmsgdata-all.h.ts" "$(IPRT_OUT_DIR)/errmsgdata-all.h"
4641
4642$(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h.ts +| $(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h: \
4643 $$(bldRTErrMsgSorter_1_TARGET)
4644 $(call MSG_GENERATE,,$@,$<)
4645 $(QUIET)"$<" --no-full-msg "$(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h.ts"
4646 $(QUIET)$(CP) --changed -fv -- "$(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h.ts" "$(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h"
4647
4648$(IPRT_OUT_DIR)/errmsgdata-only-defines.h.ts +| $(IPRT_OUT_DIR)/errmsgdata-only-defines.h: \
4649 $$(bldRTErrMsgSorter_1_TARGET)
4650 $(call MSG_GENERATE,,$@,$<)
4651 $(QUIET)"$<" --only-defines "$(IPRT_OUT_DIR)/errmsgdata-only-defines.h.ts"
4652 $(QUIET)$(CP) --changed -fv -- "$(IPRT_OUT_DIR)/errmsgdata-only-defines.h.ts" "$(IPRT_OUT_DIR)/errmsgdata-only-defines.h"
4653
4654
4655$(IPRT_OUT_DIR)/errmsgwindata.h: \
4656 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsgcom.sed \
4657 $$(qwildcard ,$$(qaddsuffix ,/WinError.h,$$(SDK_$$(VBOX_WINPSDK)_INCS))) \
4658 | $$(dir $$@)
4659 $(call MSG_GENERATE,,$@,$(deps $@, 2))
4660 $(QUIET)$(SED) -f "$<" --output "$@" $(qdeps sh,$@,2)
4661
4662$(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts +| $(IPRT_OUT_DIR)/errmsgvboxcomdata.h: \
4663 $(VBOX_PATH_RUNTIME_SRC)/VBox/errmsgvboxcom.xsl \
4664 $(VBOX_XIDL_FILE_SRC) \
4665 | $$(dir $$@)
4666 $(call MSG_GENERATE,,$@,$(filter %.xidl,$^))
4667 $(QUIET)$(VBOX_XSLTPROC) -o $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts $< $(filter %.xidl,$^)
4668 $(QUIET)$(CP) --changed -fv -- $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
4669
4670$(IPRT_OUT_DIR)/errmsgwindata-only-defines.h.ts +| $(IPRT_OUT_DIR)/errmsgwindata-only-defines.h: \
4671 $$(bldRTErrMsgWinSorter_1_TARGET)
4672 $(call MSG_GENERATE,,$@,$<)
4673 $(QUIET)"$<" --only-defines "$(IPRT_OUT_DIR)/errmsgwindata-only-defines.h.ts"
4674 $(QUIET)$(CP) --changed -fv -- "$(IPRT_OUT_DIR)/errmsgwindata-only-defines.h.ts" "$(IPRT_OUT_DIR)/errmsgwindata-only-defines.h"
4675
4676
4677#
4678# Sorter for the IPRT status codes.
4679#
4680BLDPROGS += bldRTErrMsgSorter
4681bldRTErrMsgSorter_TEMPLATE = VBoxBldProg
4682bldRTErrMsgSorter_INCS = $(IPRT_OUT_DIR)
4683bldRTErrMsgSorter_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h
4684bldRTErrMsgSorter_SOURCES = common/err/errmsg-sorter.cpp
4685
4686#
4687# Sorter for the windows error codes.
4688#
4689BLDPROGS.win += bldRTErrMsgWinSorter
4690bldRTErrMsgWinSorter_TEMPLATE = VBoxBldProg
4691bldRTErrMsgWinSorter_INCS = $(IPRT_OUT_DIR)
4692bldRTErrMsgWinSorter_DEPS = \
4693 $(IPRT_OUT_DIR)/errmsgwindata.h \
4694 $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
4695bldRTErrMsgWinSorter_SOURCES = win/errmsgwin-sorter.cpp
4696
4697
4698
4699if "$(KBUILD_TARGET)" == "freebsd"
4700 #
4701 # FreeBSDGeneratedKernelHeaders - Generate some kernel interface headers.
4702 #
4703 # These are used by:
4704 # - The RTMp* API in IPRT.
4705 # - VBoxGuest
4706 #
4707 # Note! We cannot give a output path to the awk program, it will always
4708 # generate the header next to the source. So, we'll have to temporarily copy
4709 # the source file to the destination directory to work.
4710 #
4711 VBOX_AWK := /usr/bin/awk
4712 INSTALLS += FreeBSDGeneratedKernelHeaders
4713 FreeBSDGeneratedKernelHeaders_INST = gen-sys-hdrs/
4714 FreeBSDGeneratedKernelHeaders_SOURCES = \
4715 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h \
4716 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h \
4717 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h
4718 FreeBSDGeneratedKernelHeaders_CLEAN = $(FreeBSDGeneratedKernelHeaders_SOURCES)
4719
4720 $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h: $(VBOX_FREEBSD_SRC)/kern/bus_if.m | $$(dir $$@)
4721 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
4722 $(QUIET)$(CP) -f $< $(@D)/bus_if.m
4723 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/bus_if.m -h -p
4724 $(QUIET)$(RM) $(@D)/bus_if.m
4725
4726 $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h: $(VBOX_FREEBSD_SRC)/kern/device_if.m | $$(dir $$@)
4727 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
4728 $(QUIET)$(CP) -f $< $(@D)/device_if.m
4729 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/device_if.m -h -p
4730 $(QUIET)$(RM) $(@D)/device_if.m
4731
4732 $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h: $(VBOX_FREEBSD_SRC)/dev/pci/pci_if.m | $$(dir $$@)
4733 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
4734 $(QUIET)$(CP) -f $< $(@D)/pci_if.m
4735 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/pci_if.m -h -p
4736 $(QUIET)$(RM) $(@D)/pci_if.m
4737endif # FreeBSD
4738
4739
4740#
4741# Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
4742#
4743ldrELFRelocatable.cpp.o: ldrELF.o
4744ldrELFRelocatable.cpp.obj: ldrELF.obj
4745
4746
4747#
4748# Doxygen documentation.
4749#
4750IPRT_DOXYFILE_INPUT_DIRS = \
4751 $(PATH_ROOT)/include/iprt \
4752 $(PATH_ROOT)/include/iprt/cpp \
4753 $(PATH_ROOT)/include/iprt/linux \
4754 $(PATH_ROOT)/include/iprt/nocrt \
4755 $(PATH_ROOT)/include/iprt/nocrt/x86 \
4756 $(PATH_ROOT)/include/iprt/nocrt/amd64 \
4757 $(PATH_ROOT)/include/iprt/nocrt/compiler \
4758 $(VBOX_PATH_RUNTIME_SRC)/include/internal \
4759 $(VBOX_PATH_RUNTIME_SRC)/common/alloc \
4760 $(VBOX_PATH_RUNTIME_SRC)/common/asm \
4761 $(VBOX_PATH_RUNTIME_SRC)/common/checksum \
4762 $(VBOX_PATH_RUNTIME_SRC)/common/dbg \
4763 $(VBOX_PATH_RUNTIME_SRC)/common/err \
4764 $(VBOX_PATH_RUNTIME_SRC)/common/ldr \
4765 $(VBOX_PATH_RUNTIME_SRC)/common/log \
4766 $(VBOX_PATH_RUNTIME_SRC)/common/math \
4767 $(VBOX_PATH_RUNTIME_SRC)/common/math/amd64 \
4768 $(VBOX_PATH_RUNTIME_SRC)/common/math/gcc \
4769 $(VBOX_PATH_RUNTIME_SRC)/common/math/x86 \
4770 $(VBOX_PATH_RUNTIME_SRC)/common/misc \
4771 $(VBOX_PATH_RUNTIME_SRC)/common/path \
4772 $(VBOX_PATH_RUNTIME_SRC)/common/rand \
4773 $(VBOX_PATH_RUNTIME_SRC)/common/string \
4774 $(VBOX_PATH_RUNTIME_SRC)/common/table \
4775 $(VBOX_PATH_RUNTIME_SRC)/common/time \
4776 $(VBOX_PATH_RUNTIME_SRC)/VBox \
4777 $(foreach dir, $(VBOX_PATH_RUNTIME_SRC) $(VBOX_PATH_RUNTIME_SRC)/r3 $(VBOX_PATH_RUNTIME_SRC)/r0drv, \
4778 $(dir) \
4779 $(dir)/darwin \
4780 $(dir)/haiku \
4781 $(dir)/linux \
4782 $(dir)/nt \
4783 $(dir)/os2 \
4784 $(dir)/solaris \
4785 $(dir)/win \
4786 $(dir)/win32 \
4787 $(dir)/win64 \
4788 $(dir)/generic \
4789 )
4790
4791# These must come first in order to make things look nice.
4792IPRT_DOXYFILE_INPUT_FIRST = \
4793 $(PATH_ROOT)/include/iprt/cdefs.h \
4794 $(PATH_ROOT)/include/iprt/types.h \
4795 $(PATH_ROOT)/include/iprt/runtime.h \
4796 $(PATH_ROOT)/include/iprt/param.h \
4797 $(PATH_ROOT)/include/iprt/assert.h \
4798 $(PATH_ROOT)/include/iprt/asm.h
4799
4800IPRT_DOXYFILE_INPUT := \
4801 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(IPRT_DOXYFILE_INPUT_DIRS)))) ) \
4802 $(foreach dir, $(IPRT_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
4803IPRT_DOXYFILE_INPUT := \
4804 $(IPRT_DOXYFILE_INPUT_FIRST) \
4805 $(sort $(filter-out $(IPRT_DOXYFILE_INPUT_FIRST), $(IPRT_DOXYFILE_INPUT)))
4806
4807
4808IPRT_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/iprt
4809BLDDIRS += $(IPRT_DOXYFILE_OUTPUT)
4810
4811includedep $(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt.dep
4812
4813# Generate the Doxyfile
4814$(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt: \
4815 $(VBOX_PATH_RUNTIME_SRC)/Doxyfile \
4816 $(VBOX_PATH_RUNTIME_SRC)/Makefile.kmk \
4817 $(comp-vars IPRT_DOXYFILE_INPUT,DOXYGEN_IPRT_INPUT_PREV,FORCE) \
4818 $(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_IPRT_OUTPUT_PREV,FORCE) \
4819 | $$(dir $$@)
4820 $(QUIET)$(RM) -f $@ [email protected] [email protected]
4821 $(QUIET)$(CP) -f $(VBOX_PATH_RUNTIME_SRC)/Doxyfile [email protected]
4822 $(QUIET)$(APPEND) [email protected]
4823 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(IPRT_DOXYFILE_OUTPUT)"
4824 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(IPRT_DOXYFILE_OUTPUT)/errors"
4825 $(QUIET)$(APPEND) [email protected] 'INCLUDE_PATH = ' \
4826 '$(PATH_ROOT)/include' \
4827 '$(VBOX_PATH_RUNTIME_SRC)/include' \
4828 '$(VBOX_PATH_RUNTIME_SRC)/' \
4829 '$(VBOX_PATH_RUNTIME_SRC)/common/table'
4830 $(QUIET)$(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
4831 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
4832 $(QUIET)$(APPEND) [email protected] 'EXCLUDE = '\
4833 '$(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-flags.cpp' \
4834 '$(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-lower.cpp' \
4835 '$(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-upper.cpp' \
4836 $(QUIET)$(APPEND) [email protected]
4837 $(QUIET)$(APPEND) [email protected] 'INPUT = $(foreach x,$(IPRT_DOXYFILE_INPUT),\$(NLTAB)$(x))'
4838 $(QUIET)$(APPEND) [email protected]
4839 $(QUIET)$(MV) -f [email protected] $@
4840 $(QUIET)$(APPEND) [email protected] "DOXYGEN_IPRT_OUTPUT_PREV = $(IPRT_DOXYFILE_OUTPUT)"
4841 $(QUIET)$(APPEND) [email protected] "DOXYGEN_IPRT_INPUT_PREV = $(IPRT_DOXYFILE_INPUT)"
4842
4843# Do the actual job.
4844$(IPRT_DOXYFILE_OUTPUT)/docs.iprt: $(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt $$(IPRT_DOXYFILE_INPUT) \
4845 | $(IPRT_DOXYFILE_OUTPUT)/
4846 $(QUIET)$(RM) -f $@
4847 $(QUIET)$(RM) -Rf $(IPRT_DOXYFILE_OUTPUT)/html/
4848 $(VBOX_DOXYGEN) $(DOXYGEN_OPTS) $(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt
4849 $(SED) -e '/warning. Unexpected tag .dd. found/d' \
4850 -e '/warning. Unsupported xml.html tag .globalScope. found/d' \
4851 --output $(IPRT_DOXYFILE_OUTPUT)/errors2 \
4852 $(IPRT_DOXYFILE_OUTPUT)/errors
4853 $(CAT) $(IPRT_DOXYFILE_OUTPUT)/errors2
4854 $(SED) -e "/[^ ]/q 1" $(IPRT_DOXYFILE_OUTPUT)/errors2
4855 $(APPEND) $@
4856
4857# aliases
4858docs.iprt: $(IPRT_DOXYFILE_OUTPUT)/docs.iprt
4859if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
4860 docs: $(IPRT_DOXYFILE_OUTPUT)/docs.iprt
4861endif
4862
4863test-doxygen::
4864 @echo test-$(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_IPRT_OUTPUT_PREV,FORCE)
4865 @echo $(IPRT_DOXYFILE_OUTPUT)
4866 @echo $(DOXYGEN_IPRT_OUTPUT_PREV)
4867 @echo $(IPRT_DOXYFILE_INPUT)
4868
4869
4870#
4871# Test mangling.
4872#
4873if1of ($(LIBRARIES), RuntimeR3 RuntimeR0 RuntimeR0Drv RuntimeRC)
4874 test-mangling:: $(IPRT_OUT_DIR)/mangling.run
4875 OTHERS += $(IPRT_OUT_DIR)/mangling.run
4876 OTHER_CLEAN += $(IPRT_OUT_DIR)/mangling.run
4877 $(IPRT_OUT_DIR)/mangling.run: \
4878 $$(RuntimeR3_1_TARGET) \
4879 $$(RuntimeR0_1_TARGET) \
4880 $$(RuntimeR0Drv_1_TARGET) \
4881 $$(RuntimeRC_1_TARGET)
4882 if1of ($(KBUILD_TARGET), win os2)
4883 $(call MSG_L1,IPRT: skipped mangling test.)
4884 else
4885 # Generate a SED script from mangling.h that checks for known symbols.
4886 $(QUIET)$(SED) \
4887 -e '/^# *define.*RT_MANGLER/!d' \
4888 -e 's/^.*RT_MANGLER(\([^)][^)]*\)).*$(DOLLAR)/\/^\1$(DOLLAR)\/b ok/' \
4889 $(PATH_ROOT)/include/iprt/mangling.h \
4890 --output "$@"
4891 $(QUIET)$(APPEND) -n '$@' \
4892 ':bad' \
4893 's/^\(.*\)$(DOLLAR)/error: Missing # define \1 /' \
4894 ':bad-pad' \
4895 '/^.\{0,70\}$(DOLLAR)/ { s/$(DOLLAR)/ /; bbad-pad; }' \
4896 's/define \([^ ]*\) \([ ]*\)$(DOLLAR)/define \1 \2RT_MANGLER(\1)/' \
4897 'p' \
4898 $(if-expr !defined(IPRT_IGNORE_TEST_MANGLING),'q 1') \
4899 '' \
4900 ':ok' \
4901 'd'
4902 # Find the best way to generate a symbol list and subject it to mangling.h.
4903 if $(intersects $(KBUILD_TARGET), linux) && "$(VBOX_GCC_fvisibility-hidden)"
4904 $(call MSG_L1,IPRT: Testing mangling and visiblity for newer gcc...)
4905 $(QUIET)readelf -Ws $^ \
4906 | $(SED) \
4907 -e 's/[[:space:]]\+/ /g' \
4908 -e '/^ *[[:digit:]]\+:/!d' \
4909 -e 's/^ \+[[:digit:]]\+: \+[[:xdigit:]]\+ \+[[:digit:]]\+ \+//' \
4910 -e '/^SECTION/d' \
4911 -e '/^FILE/d' \
4912 -e 's/^[[:alpha:]]\+ \+//' \
4913 -e '/LOCAL/d' \
4914 -e 's/^[[:alpha:]]\+ \+//' \
4915 -e '/^HIDDEN [[:xdigit:]]\+ RT/bkeep-hidden' \
4916 -e '/^HIDDEN [[:xdigit:]]\+ g_[a-z0-9]*RT/bkeep-hidden' \
4917 -e '/^HIDDEN/d' \
4918 -e ':keep-hidden' \
4919 -e 's/^[[:alpha:]]\+ \+//' \
4920 -e '/^UND/d' \
4921 -e 's/^[[:digit:]]\+ \+//' \
4922 \
4923 -e '/^nocrt_/d' \
4924 -e '/^bzero/d' \
4925 -e '/^memchr/d' \
4926 -e '/^memcmp/d' \
4927 -e '/^memcpy/d' \
4928 -e '/^mempcpy/d' \
4929 -e '/^memmove/d' \
4930 -e '/^memset/d' \
4931 -e '/^strchr/d' \
4932 -e '/^strpbrk/d' \
4933 -e '/^_Z7strpbrk/d' \
4934 -e '/^strcmp/d' \
4935 -e '/^strcpy/d' \
4936 -e '/^strncpy/d' \
4937 -e '/^strlen/d' \
4938 -e '/^setjmp/d' \
4939 -e '/^longjmp/d' \
4940 -e '/^_Z[[:alpha:]]*[[:digit:]]\+RTC/d' \
4941 -e '/^_Z[[:alpha:]]*[[:digit:]]\+RTC/d' \
4942 \
4943 -e '/^_ZnwjPv/d' \
4944 -e '/^_ZnwmPv/d' \
4945 -e '/^_ZNSt[1-9]/d' \
4946 \
4947 -e '/^_ZN[a-zA-Z]*St[[:digit:]]*_*[lL]ist/d' \
4948 -e '/^_ZN[a-zA-Z]*[[:digit:]]*__gnu_cxx/d' \
4949 -e '/^_ZNSa.*ElementNode.*/d' \
4950 -e '/^_ZSt.*ElementNode.*/d' \
4951 \
4952 -e '/^_Z[[:digit:]]\+dbus/d' \
4953 -e '/^g_pfn_dbus/d' \
4954 -e '/^_Z13RTDBusLoadLibv/d' \
4955 \
4956 -e '/^g_[ac]VTG/d' \
4957 -e '/^g_VTGObjHeader/d' \
4958 -e '/^g_VTGProbeData/d' \
4959 -e '/^VTGProbeStub/d' \
4960 -e '/^g_achVTGStringTable/d' \
4961 -e '/^g_acVTGProbeEnabled/d' \
4962 \
4963 -e '/^VBoxHost_/d'\
4964 -e '/^VBoxGuest_/d'\
4965 | $(SED) -nf "$@"
4966 endif
4967 $(call MSG_L1,IPRT: Testing mangling using nm...)
4968 $(QUIET)$(VBOX_NM) $^ 2> /dev/null \
4969 | $(SED) -n \
4970 -e 's/^[0-9a-f][0-9a-f]* //' \
4971 -e '/^[TUDB] /!d' \
4972 -e 's/^. //' \
4973 $(if-expr "$(KBUILD_TARGET)" == "darwin" || "$(KBUILD_TARGET)" == "os2" || "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86", \
4974 -e 's/^_//',) \
4975 \
4976 -e '/^g_cchrt/d'\
4977 -e '/^g_crt/d'\
4978 -e '/^g_frt/d'\
4979 -e '/^g_offrt/d'\
4980 -e '/^g_pfnrt/d'\
4981 -e '/^g_rt/d'\
4982 -e '/^g_szrt/d'\
4983 -e '/^g_ProcessSelf/d'\
4984 -e '/^g_u64ProgramStart/d'\
4985 -e '/^g_enmProcessPriority/d'\
4986 -e '/^g_hDbgModStrCache/d'\
4987 -e '/^g_pfnR0Darwin/d'\
4988 -e '/^g_pDarwinLockGroup/d'\
4989 $(if-expr "$(KBUILD_TARGET)" == "solaris", \
4990 -e '/^g_kLdrRdrFileOps/d' \
4991 -e '/^g_pSUPGlobalInfoPage/d' \
4992 -e '/^g_Logger/d' \
4993 -e '/^g_RelLogger/d' \
4994 -e '/^g_VM/d',) \
4995 $(if-expr "$(KBUILD_TARGET)" == "linux", \
4996 -e '/^g_kLdrRdrFileOps/d',) \
4997 \
4998 -e '/^g_[ac]VTG/d' \
4999 -e '/^g_VTGObjHeader/d' \
5000 -e '/^g_VTGProbeData/d' \
5001 -e '/^VTGProbeStub/d' \
5002 -e '/^g_achVTGStringTable/d' \
5003 -e '/^g_acVTGProbeEnabled/d' \
5004 \
5005 -e '/^g_pfn_dbus/d' \
5006 -e '/^RTDBusLoadLib/d' \
5007 \
5008 -e '/^RT/p' \
5009 -e '/^g_/p' \
5010 | $(SED) -nf "$@"
5011 endif
5012endif
5013 $(QUIET)$(APPEND) -t $@
5014
5015if !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_VALIDATIONKIT) && !defined(VBOX_ONLY_DOCS)
5016 #
5017 # Windows build tool.
5018 #
5019 BLDPROGS.win += ntBldSymDb
5020 ntBldSymDb_TEMPLATE = VBoxAdvBldProg
5021 ntBldSymDb_INCS = .
5022 ntBldSymDb_SOURCES = r0drv/nt/ntBldSymDb.cpp
5023endif
5024
5025
5026#
5027# Generate the rules (we're the to sub-makefile).
5028#
5029include $(FILE_KBUILD_SUB_FOOTER)
5030
5031
5032#
5033# Aliases for code templates.
5034#
5035rsa-template.o rsa-template.obj: rsa-core.o rsa-asn1-decoder.o rsa-sanity.o rsa-init.o
5036spc-template.o spc-template.obj: spc-core.o spc-asn1-decoder.o spc-sanity.o spc-init.o
5037taf-template.o taf-template.obj: taf-core.o taf-asn1-decoder.o taf-sanity.o taf-init.o
5038tsp-template.o tsp-template.obj: tsp-core.o tsp-asn1-decoder.o tsp-sanity.o tsp-init.o
5039x509-template.o x509-template.obj: x509-core.o x509-asn1-decoder.o x509-sanity.o x509-init.o
5040pkcs7-template.o pkcs7-template.obj: pkcs7-core.o pkcs7-asn1-decoder.o pkcs7-sanity.o pkcs7-init.o
5041pkcs8-template.o pkcs8-template.obj: pkcs8-core.o pkcs8-asn1-decoder.o pkcs8-sanity.o pkcs8-init.o
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette