VirtualBox

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

Last change on this file since 101349 was 101349, checked in by vboxsync, 14 months ago

IPRT: Stable interface corrections and checker fixes (never really worked on linux and solaris).

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