VirtualBox

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

Last change on this file since 106877 was 106842, checked in by vboxsync, 3 weeks ago

IPRT: We need RuntimeGuestR3Shared-x86 on arm64 for the guest addition installer helper, at least for the moment. Made it build w/o nocrt. jiraref:VBP-1253

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