VirtualBox

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

Last change on this file since 107455 was 107192, checked in by vboxsync, 7 weeks ago

IPRT,VMM/TM: Support for GIP time on win.arm64. jiraref:VBP-1266

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