VirtualBox

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

Last change on this file since 100838 was 100493, checked in by vboxsync, 17 months ago

IPRT/PKCS8: Some corrections and adjustments (bugref:10299):

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

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