VirtualBox

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

Last change on this file since 96444 was 96444, checked in by vboxsync, 2 years ago

IPRT: Split out the public init data into separate files and made it possible to check if IPRT is initialized w/o dragging in the init code. Added tweak to stream.cpp so it'll work w/o IPRT init in debug builds. [build fix] bugref:10261

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