VirtualBox

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

Last change on this file was 106949, checked in by vboxsync, 2 weeks ago

IPRT/Makefile.kmk: Additions also needs RuntimeR3NtDll-x86 to be built. jiraref:VBP-1440

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

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