VirtualBox

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

Last change on this file since 96453 was 96453, checked in by vboxsync, 3 years ago

IPRT,Add: Build fixes related to VBoxAddInstallNt3x and VBoxGuestInstNT. bugref:10261

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

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