VirtualBox

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

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

IPRT: Smoother and simpler alternative to r3/mempage-heap.cpp for the GA version of IPRT. bugref:10371

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 164.3 KB
Line 
1# $Id: Makefile.kmk 101300 2023-09-28 00:24:54Z 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 -f "$<" $(filter %.def, $^)
3220 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
3221 $(call KB_FN_AUTO_CMD_DEPS,$(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm)
3222
3223 endif
3224 endif ## @todo bugref:9898
3225endif # remove later
3226
3227
3228#
3229# RuntimeR3NoCRT - For windows applications w/o any runtime library.
3230# Experimental.
3231#
3232RuntimeR3NoCrt_TEMPLATE := VBoxR3StaticNoCrt
3233RuntimeR3NoCrt_INCS := include
3234RuntimeR3NoCrt_DEFS := \
3235 RT_NO_STRICT \
3236 IPRT_NO_ALLOCA_TROUBLE \
3237 IPRT_GETOPT_WITHOUT_NETWORK_ADDRESSES \
3238 IPRT_MINIMAL_STREAM \
3239 IPRT_NO_FLOAT_FORMATTING
3240RuntimeR3NoCrt_SOURCES := \
3241 common/string/straprintf.cpp \
3242 common/string/strformat.cpp \
3243 common/string/RTStrFormat.cpp \
3244 common/string/strformatnum.cpp \
3245 common/string/strformatrt.cpp \
3246 common/string/strformattype.cpp \
3247 common/string/strprintf.cpp \
3248 common/string/strprintf-ellipsis.cpp \
3249 common/string/strprintf2.cpp \
3250 common/string/strprintf2-ellipsis.cpp \
3251 common/string/stringalloc.cpp \
3252 common/string/strtonum.cpp \
3253 common/string/RTStrNLen.cpp \
3254 common/string/RTStrCmp.cpp \
3255 common/string/RTStrNCmp.cpp \
3256 common/string/RTStrICmpAscii.cpp \
3257 common/string/RTStrNICmpAscii.cpp \
3258 common/string/RTStrCopy.cpp \
3259 common/string/RTStrEnd.asm \
3260 common/string/RTUtf16Copy.cpp \
3261 common/string/utf-16.cpp \
3262 common/string/utf-8.cpp \
3263 common/path/RTPathFilename.cpp \
3264 common/misc/getopt.cpp \
3265 common/misc/getoptargv.cpp \
3266 common/misc/message.cpp \
3267 common/err/errmsg.cpp \
3268 r3/init-data.cpp \
3269 r3/process-data.cpp \
3270 generic/uuid-generic.cpp \
3271 generic/rtStrFormatKernelAddress-generic.cpp
3272
3273RuntimeR3NoCrt_SOURCES.x86 := \
3274 common/string/memcpy.asm \
3275 common/string/memchr.asm \
3276 common/string/memcmp.asm \
3277 common/string/memmove.asm \
3278 common/string/memset.asm \
3279 common/string/strlen.asm \
3280 common/string/strchr.asm \
3281 common/string/strcmp.asm \
3282 common/string/strncmp.asm
3283RuntimeR3NoCrt_SOURCES.amd64 := \
3284 common/string/memcpy.asm \
3285 common/string/memchr.asm \
3286 common/string/memcmp.asm \
3287 common/string/memmove.asm \
3288 common/string/memset.asm \
3289 common/string/strlen.asm \
3290 common/string/strchr.asm \
3291 common/string/strcmp.asm \
3292 common/string/strncmp.asm
3293
3294RuntimeR3NoCrt_SOURCES.win := \
3295 r3/win/nocrt-startup-exe-win.cpp \
3296 r3/win/nocrt-startup-common-win.cpp \
3297 r3/win/nocrt-fatal-write-win.cpp \
3298 r3/win/nocrt-alloc-win.cpp \
3299 r3/win/nocrt-streams-win.cpp \
3300 \
3301 win/errmsgwin.cpp
3302
3303#
3304# RuntimeR0 - Ring-0 library for VMMR0.
3305#
3306RuntimeR0_TEMPLATE = VBoxR0
3307RuntimeR0_DEFS = IN_RT_R0 RT_WITH_VBOX NOFILEID
3308ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
3309 RuntimeR0_DEFS += RT_NO_GIP
3310endif
3311if defined(VBOX_WITH_DTRACE_R0) && !defined(VBOX_ONLY_VALIDATIONKIT)
3312 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
3313 RuntimeR0_DEFS += IPRT_WITH_DTRACE IPRT_DTRACE_PREFIX=VBOXVMM_ IPRT_DTRACE_INCLUDE="dtrace/VBoxVMM.h"
3314 else
3315 RuntimeR0_DEFS += IPRT_WITH_DTRACE IPRT_DTRACE_PREFIX=VBOXVMM_ IPRT_DTRACE_INCLUDE=\"dtrace/VBoxVMM.h\"
3316 endif
3317endif
3318RuntimeR0_INCS = include
3319RuntimeR0_SOURCES := \
3320 $(if $(VBOX_ONLY_VALIDATIONKIT),,../VMM/VBoxVMM.d) \
3321 common/checksum/crc32c.cpp \
3322 common/log/logellipsis.cpp \
3323 common/log/logrelellipsis.cpp \
3324 common/log/logcom.cpp \
3325 common/log/logformat.cpp \
3326 common/log/tracebuf.cpp \
3327 common/log/tracedefault.cpp \
3328 common/log/RTLogCreateEx.cpp \
3329 common/log/RTLogSetR0ThreadNameF.cpp \
3330 common/misc/RTAssertMsg1Weak.cpp \
3331 common/misc/RTAssertMsg2.cpp \
3332 common/misc/RTAssertMsg2Add.cpp \
3333 common/misc/RTAssertMsg2AddWeak.cpp \
3334 common/misc/RTAssertMsg2AddWeakV.cpp \
3335 common/misc/RTAssertMsg2Weak.cpp \
3336 common/misc/RTAssertMsg2WeakV.cpp \
3337 common/misc/buildconfig.cpp \
3338 common/misc/once.cpp \
3339 common/misc/sanity-c.c \
3340 common/misc/sanity-cpp.cpp \
3341 common/misc/term.cpp \
3342 common/path/RTPathFilename.cpp \
3343 common/rand/rand.cpp \
3344 common/rand/randadv.cpp \
3345 common/rand/randparkmiller.cpp \
3346 common/string/strprintf-ellipsis.cpp \
3347 common/string/strprintf2-ellipsis.cpp \
3348 common/string/strhash1.cpp \
3349 common/string/strncmp.cpp \
3350 common/string/strpbrk.cpp \
3351 common/string/strtonum.cpp \
3352 common/string/RTStrCat.cpp \
3353 common/string/RTStrCatEx.cpp \
3354 common/string/RTStrCatP.cpp \
3355 common/string/RTStrCatPEx.cpp \
3356 common/string/RTStrCopyEx.cpp \
3357 common/string/RTStrCopyP.cpp \
3358 common/string/RTStrCopyPEx.cpp \
3359 common/string/RTStrCmp.cpp \
3360 common/string/RTStrICmpAscii.cpp \
3361 common/string/RTStrNICmpAscii.cpp \
3362 common/string/RTStrNLen.cpp \
3363 common/string/RTStrNLenEx.cpp \
3364 common/table/avlgcptr.cpp \
3365 common/table/avlhcphys.cpp \
3366 common/table/avllu32.cpp \
3367 common/table/avlogcphys.cpp \
3368 common/table/avlogcptr.cpp \
3369 common/table/avlohcphys.cpp \
3370 common/table/avloioport.cpp \
3371 common/table/avlpv.cpp \
3372 common/table/avlrogcphys.cpp \
3373 common/table/avlrogcptr.cpp \
3374 common/table/avlroioport.cpp \
3375 common/table/avlroogcptr.cpp \
3376 common/table/avlu32.cpp \
3377 common/table/avlou32.cpp \
3378 common/time/timesup.cpp \
3379 generic/RTAssertShouldPanic-generic.cpp \
3380 generic/critsect-generic.cpp \
3381 generic/critsectrw-generic.cpp \
3382 generic/RTRandAdvCreateSystemFaster-generic.cpp \
3383 generic/RTRandAdvCreateSystemTruer-generic.cpp \
3384 \
3385 $(RuntimeNoCrt_SOURCES)
3386
3387if1of ($(KBUILD_TARGET), darwin solaris freebsd os2)
3388 RuntimeR0_SOURCES += \
3389 common/math/gcc/adddi3.c \
3390 common/math/gcc/anddi3.c \
3391 common/math/gcc/ashldi3.c \
3392 common/math/gcc/ashrdi3.c \
3393 common/math/gcc/cmpdi2.c \
3394 common/math/gcc/divdi3.c \
3395 common/math/gcc/divmoddi4.c \
3396 common/math/gcc/iordi3.c \
3397 common/math/gcc/lshldi3.c \
3398 common/math/gcc/lshrdi3.c \
3399 common/math/gcc/moddi3.c \
3400 common/math/gcc/muldi3.c \
3401 common/math/gcc/negdi2.c \
3402 common/math/gcc/notdi2.c \
3403 common/math/gcc/qdivrem.c \
3404 common/math/gcc/subdi3.c \
3405 common/math/gcc/ucmpdi2.c \
3406 common/math/gcc/udivdi3.c \
3407 common/math/gcc/udivmoddi4.c \
3408 common/math/gcc/umoddi3.c \
3409 common/math/gcc/xordi3.c
3410endif
3411
3412RuntimeR0_SOURCES.x86 += \
3413 common/asm/ASMCpuIdExSlow.asm \
3414 common/asm/ASMAtomicUoAndU64.asm \
3415 common/asm/ASMAtomicUoAndU32.asm \
3416 common/asm/ASMAtomicUoDecU32.asm \
3417 common/asm/ASMAtomicUoIncU32.asm \
3418 common/asm/ASMAtomicUoOrU64.asm \
3419 common/asm/ASMAtomicUoOrU32.asm \
3420 common/asm/ASMAtomicUoXorU32.asm \
3421 common/asm/ASMMemFirstMismatchingU8.asm \
3422 common/asm/ASMGetXcr0.asm \
3423 common/asm/ASMSetXcr0.asm \
3424 common/asm/ASMXSave.asm \
3425 common/asm/ASMXRstor.asm \
3426 common/asm/ASMFxSave.asm \
3427 common/asm/ASMFxRstor.asm \
3428 common/asm/ASMRdMsrEx.asm \
3429 common/asm/ASMWrMsrEx.asm \
3430 common/string/RTStrEnd.asm \
3431 VBox/RTLogWriteVmm-amd64-x86.asm
3432RuntimeR0_SOURCES.amd64 += \
3433 common/asm/ASMCpuIdExSlow.asm \
3434 common/asm/ASMAtomicUoAndU64.asm \
3435 common/asm/ASMAtomicUoAndU32.asm \
3436 common/asm/ASMAtomicUoDecU32.asm \
3437 common/asm/ASMAtomicUoIncU32.asm \
3438 common/asm/ASMAtomicUoOrU64.asm \
3439 common/asm/ASMAtomicUoOrU32.asm \
3440 common/asm/ASMAtomicUoXorU32.asm \
3441 common/asm/ASMMemFirstMismatchingU8.asm \
3442 common/asm/ASMGetXcr0.asm \
3443 common/asm/ASMSetXcr0.asm \
3444 common/asm/ASMXSave.asm \
3445 common/asm/ASMXRstor.asm \
3446 common/asm/ASMFxSave.asm \
3447 common/asm/ASMFxRstor.asm \
3448 common/asm/ASMRdMsrEx.asm \
3449 common/asm/ASMWrMsrEx.asm \
3450 common/math/RTUInt128MulByU64Ex.asm \
3451 common/string/RTStrEnd.asm \
3452 VBox/RTLogWriteVmm-amd64-x86.asm
3453RuntimeR0_SOURCES.arm32 += \
3454 common/string/RTStrEnd.cpp
3455RuntimeR0_SOURCES.arm64 += \
3456 common/string/RTStrEnd.cpp
3457RuntimeR0_SOURCES.sparc32 += \
3458 common/string/RTStrEnd.cpp
3459RuntimeR0_SOURCES.sparc64 += \
3460 common/string/RTStrEnd.cpp
3461
3462#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
3463# RuntimeR0_SOURCES += common/time/timesupA.asm
3464#else
3465RuntimeR0_SOURCES += common/time/timesupref.cpp
3466#endif
3467
3468RuntimeR0_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES)
3469RuntimeR0_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES)
3470RuntimeR0_SOURCES.win = \
3471 nt/NtProcessStartup-stub.cpp
3472
3473RuntimeR0_SOURCES.os2 = \
3474 os2/sys0.asm
3475
3476
3477#
3478# RuntimeR0Stub - Ring-0 context startup stub for Windows and Solaris.
3479#
3480RuntimeR0Stub_TEMPLATE = $(if-expr "$(KBUILD_TARGET)" == "solaris",VBoxR0DrvLib,VBoxR0)
3481RuntimeR0Stub_SOURCES.win = \
3482 nt/NtProcessStartup-stub.cpp
3483RuntimeR0Stub_SOURCES.solaris = \
3484 r0drv/solaris/modulestub-r0drv-solaris.c
3485
3486
3487#
3488# RuntimeR0Drv - Ring-0 library for host drivers.
3489#
3490RuntimeR0Drv_TEMPLATE = VBoxR0DrvLib
3491RuntimeR0Drv_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK) $(VBOX_WINPSDK_INCS)
3492RuntimeR0Drv_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS RT_NO_EXPORT_SYMBOL NOFILEID
3493RuntimeR0Drv_DEFS.win = IN_SUP_R0 LDR_ONLY_PE IPRT_WITHOUT_DIGEST_MD4
3494RuntimeR0Drv_DEFS.darwin = IN_SUP_R0 LDR_ONLY_MACHO IPRT_WITHOUT_DIGEST_MD4 IN_RING0_DRV_ON_DARWIN
3495if ($(VBOX_SOLARIS_11_UPDATE_VERSION) > 2 \
3496 || ($(VBOX_SOLARIS_11_UPDATE_VERSION) == 2 && $(VBOX_SOLARIS_11_BUILD_VERSION) >= 22))
3497 RuntimeR0Drv_DEFS.solaris += VBOX_NEW_CRASH_DUMP_FORMAT
3498endif
3499
3500RuntimeR0Drv_INCS := $(PATH_SUB_CURRENT) include
3501RuntimeR0Drv_INCS.freebsd = \
3502 $(PATH_STAGE)/gen-sys-hdrs
3503RuntimeR0Drv_INCS.solaris = \
3504 r0drv/solaris/vbi/i86pc \
3505 r0drv/solaris/vbi/i86pc/sys
3506
3507RuntimeR0Drv_SOURCES = \
3508 common/alloc/alloc.cpp \
3509 common/alloc/heapsimple.cpp \
3510 common/alloc/heapoffset.cpp \
3511 common/checksum/alt-md5.cpp \
3512 common/checksum/crc32.cpp \
3513 common/checksum/crc64.cpp \
3514 common/checksum/ipv4.cpp \
3515 common/checksum/ipv6.cpp \
3516 common/err/RTErrConvertToErrno.cpp \
3517 common/err/RTErrConvertFromErrno.cpp \
3518 common/err/errinfo.cpp \
3519 common/log/log.cpp \
3520 common/log/log-weak.cpp \
3521 common/log/log-weak-assert.cpp \
3522 common/log/log-weak-rel.cpp \
3523 common/log/logellipsis.cpp \
3524 common/log/logrel.cpp \
3525 common/log/logrelellipsis.cpp \
3526 common/log/logcom.cpp \
3527 common/log/logformat.cpp \
3528 common/log/tracebuf.cpp \
3529 common/log/tracedefault.cpp \
3530 common/log/RTLogCreateEx.cpp \
3531 common/misc/RTAssertMsg1Weak.cpp \
3532 common/misc/RTAssertMsg2.cpp \
3533 common/misc/RTAssertMsg2Add.cpp \
3534 common/misc/RTAssertMsg2AddWeak.cpp \
3535 common/misc/RTAssertMsg2AddWeakV.cpp \
3536 common/misc/RTAssertMsg2Weak.cpp \
3537 common/misc/RTAssertMsg2WeakV.cpp \
3538 common/misc/assert.cpp \
3539 common/misc/buildconfig.cpp \
3540 common/misc/handletable.cpp \
3541 common/misc/handletablectx.cpp \
3542 common/misc/handletablesimple.cpp \
3543 common/misc/once.cpp \
3544 common/misc/sanity-c.c \
3545 common/misc/sanity-cpp.cpp \
3546 common/misc/term.cpp \
3547 common/misc/RTMemWipeThoroughly.cpp \
3548 common/path/rtPathVolumeSpecLen.cpp \
3549 common/path/RTPathAbsDup.cpp \
3550 common/path/RTPathAbsEx.cpp \
3551 common/path/RTPathAbsExDup.cpp \
3552 common/path/RTPathAppend.cpp \
3553 common/path/RTPathAppendEx.cpp \
3554 common/path/RTPathExt.cpp \
3555 common/path/RTPathFilename.cpp \
3556 common/path/RTPathHasExt.cpp \
3557 common/path/RTPathHasPath.cpp \
3558 common/path/RTPathParseSimple.cpp \
3559 common/path/RTPathRealDup.cpp \
3560 common/path/RTPathStripExt.cpp \
3561 common/path/RTPathStripFilename.cpp \
3562 common/path/RTPathStripTrailingSlash.cpp \
3563 common/rand/rand.cpp \
3564 common/rand/randadv.cpp \
3565 common/rand/randparkmiller.cpp \
3566 common/string/RTStrCat.cpp \
3567 common/string/RTStrCatEx.cpp \
3568 common/string/RTStrCatP.cpp \
3569 common/string/RTStrCatPEx.cpp \
3570 common/string/RTStrCmp.cpp \
3571 common/string/RTStrCopy.cpp \
3572 common/string/RTStrCopyEx.cpp \
3573 common/string/RTStrCopyP.cpp \
3574 common/string/RTStrCopyPEx.cpp \
3575 common/string/RTStrICmpAscii.cpp \
3576 common/string/RTStrNICmpAscii.cpp \
3577 common/string/RTStrNCmp.cpp \
3578 common/string/RTStrNLen.cpp \
3579 common/string/RTStrNLenEx.cpp \
3580 common/string/RTUtf16ICmpAscii.cpp \
3581 common/string/RTUtf16NICmpAscii.cpp \
3582 common/string/straprintf.cpp \
3583 common/string/strformat.cpp \
3584 common/string/RTStrFormat.cpp \
3585 common/string/strformatnum.cpp \
3586 common/string/strformatrt.cpp \
3587 common/string/strformattype.cpp \
3588 common/string/strhash1.cpp \
3589 common/string/strprintf.cpp \
3590 common/string/strprintf-ellipsis.cpp \
3591 common/string/strprintf2.cpp \
3592 common/string/strprintf2-ellipsis.cpp \
3593 common/string/strtonum.cpp \
3594 common/string/stringalloc.cpp \
3595 common/string/unidata-flags.cpp \
3596 common/string/unidata-lower.cpp \
3597 common/string/unidata-upper.cpp \
3598 common/string/utf-8.cpp \
3599 common/string/utf-8-case.cpp \
3600 common/string/utf-8-case2.cpp \
3601 common/string/utf-16.cpp \
3602 common/string/utf-16-case.cpp \
3603 common/string/utf-16-latin-1.cpp \
3604 common/string/utf-16-printf.cpp \
3605 common/table/avlpv.cpp \
3606 common/table/avlu32.cpp \
3607 common/table/avllu32.cpp \
3608 common/time/time.cpp \
3609 generic/RTLogWriteStdErr-stub-generic.cpp \
3610 generic/RTLogWriteUser-generic.cpp \
3611 generic/RTMpGetArraySize-generic.cpp \
3612 generic/RTRandAdvCreateSystemFaster-generic.cpp \
3613 generic/RTSemEventWait-2-ex-generic.cpp \
3614 generic/RTSemEventWaitNoResume-2-ex-generic.cpp \
3615 generic/RTSemEventMultiWait-2-ex-generic.cpp \
3616 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
3617 generic/system-page-size-generic.cpp \
3618 generic/critsect-generic.cpp \
3619 generic/critsectrw-generic.cpp \
3620 generic/errvars-generic.cpp \
3621 generic/uuid-generic.cpp \
3622 r0drv/alloc-r0drv.cpp \
3623 r0drv/initterm-r0drv.cpp \
3624 r0drv/generic/semspinmutex-r0drv-generic.c \
3625 r0drv/RTR0DbgKrnlInfoGetSymbol.cpp \
3626 VBox/log-vbox.cpp
3627
3628RuntimeR0Drv_SOURCES.amd64 = \
3629 common/asm/ASMCpuIdExSlow.asm \
3630 common/asm/ASMMemFirstMismatchingU8.asm \
3631 common/asm/ASMRdMsrEx.asm \
3632 common/asm/ASMWrMsrEx.asm \
3633 common/math/bignum-amd64-x86.asm \
3634 common/math/RTUInt128MulByU64.asm \
3635 common/math/RTUInt128MulByU64Ex.asm \
3636 common/string/RTStrEnd.asm \
3637 VBox/RTLogWriteVmm-amd64-x86.asm
3638RuntimeR0Drv_SOURCES.x86 = \
3639 common/asm/ASMCpuIdExSlow.asm \
3640 common/asm/ASMMemFirstMismatchingU8.asm \
3641 common/asm/ASMRdMsrEx.asm \
3642 common/asm/ASMWrMsrEx.asm \
3643 common/math/bignum-amd64-x86.asm \
3644 common/string/RTStrEnd.asm \
3645 VBox/RTLogWriteVmm-amd64-x86.asm
3646RuntimeR0Drv_SOURCES.arm32 += \
3647 common/string/RTStrEnd.cpp
3648RuntimeR0Drv_SOURCES.arm64 += \
3649 common/string/RTStrEnd.cpp
3650RuntimeR0Drv_SOURCES.sparc32 += \
3651 common/string/RTStrEnd.cpp
3652RuntimeR0Drv_SOURCES.sparc64 += \
3653 common/string/RTStrEnd.cpp
3654
3655RuntimeR0Drv_SOURCES.linux = \
3656 common/misc/thread.cpp \
3657 common/string/strpbrk.cpp \
3658 generic/RTAssertShouldPanic-generic.cpp \
3659 generic/RTLogWriteStdOut-stub-generic.cpp \
3660 generic/RTMpGetCoreCount-generic.cpp \
3661 generic/mppresent-generic.cpp \
3662 generic/rtStrFormatKernelAddress-generic.cpp \
3663 r0drv/linux/alloc-r0drv-linux.c \
3664 r0drv/linux/assert-r0drv-linux.c \
3665 r0drv/linux/initterm-r0drv-linux.c \
3666 r0drv/linux/memobj-r0drv-linux.c \
3667 r0drv/linux/memuserkernel-r0drv-linux.c \
3668 r0drv/linux/mp-r0drv-linux.c \
3669 r0drv/linux/mpnotification-r0drv-linux.c \
3670 r0drv/linux/process-r0drv-linux.c \
3671 r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \
3672 r0drv/linux/semevent-r0drv-linux.c \
3673 r0drv/linux/semeventmulti-r0drv-linux.c \
3674 r0drv/linux/semfastmutex-r0drv-linux.c \
3675 r0drv/linux/semmutex-r0drv-linux.c \
3676 r0drv/linux/spinlock-r0drv-linux.c \
3677 r0drv/linux/thread-r0drv-linux.c \
3678 r0drv/linux/thread2-r0drv-linux.c \
3679 r0drv/linux/threadctxhooks-r0drv-linux.c \
3680 r0drv/linux/time-r0drv-linux.c \
3681 r0drv/linux/timer-r0drv-linux.c \
3682 r0drv/memobj-r0drv.cpp \
3683 r0drv/mpnotification-r0drv.c \
3684 r0drv/powernotification-r0drv.c
3685
3686RuntimeR0Drv_SOURCES.win = \
3687 common/ldr/ldr.cpp \
3688 common/ldr/ldrEx.cpp \
3689 common/ldr/ldrPE.cpp \
3690 common/asn1/asn1-basics.cpp \
3691 common/asn1/asn1-dump.cpp \
3692 common/asn1/asn1-cursor.cpp \
3693 common/asn1/asn1-default-allocator.cpp \
3694 common/asn1/asn1-safer-allocator.cpp \
3695 common/asn1/asn1-encode.cpp \
3696 common/asn1/asn1-ut-bitstring.cpp \
3697 common/asn1/asn1-ut-bitstring-decode.cpp \
3698 common/asn1/asn1-ut-boolean.cpp \
3699 common/asn1/asn1-ut-boolean-decode.cpp \
3700 common/asn1/asn1-ut-core.cpp \
3701 common/asn1/asn1-ut-core-decode.cpp \
3702 common/asn1/asn1-ut-dyntype.cpp \
3703 common/asn1/asn1-ut-dyntype-decode.cpp \
3704 common/asn1/asn1-ut-integer.cpp \
3705 common/asn1/asn1-ut-integer-decode.cpp \
3706 common/asn1/asn1-ut-null.cpp \
3707 common/asn1/asn1-ut-null-decode.cpp \
3708 common/asn1/asn1-ut-objid.cpp \
3709 common/asn1/asn1-ut-objid-decode.cpp \
3710 common/asn1/asn1-ut-octetstring.cpp \
3711 common/asn1/asn1-ut-octetstring-decode.cpp \
3712 common/asn1/asn1-ut-string.cpp \
3713 common/asn1/asn1-ut-string-decode.cpp \
3714 common/asn1/asn1-ut-time.cpp \
3715 common/asn1/asn1-ut-time-decode.cpp \
3716 common/crypto/digest-core.cpp \
3717 common/crypto/digest-builtin.cpp \
3718 common/crypto/key.cpp \
3719 common/crypto/rsa-asn1-decoder.cpp \
3720 common/crypto/rsa-core.cpp \
3721 common/crypto/rsa-init.cpp \
3722 common/crypto/rsa-sanity.cpp \
3723 common/crypto/pkcs7-asn1-decoder.cpp \
3724 common/crypto/pkcs7-core.cpp \
3725 common/crypto/pkcs7-init.cpp \
3726 common/crypto/pkcs7-sanity.cpp \
3727 common/crypto/pkcs7-verify.cpp \
3728 common/crypto/pkix-signature-builtin.cpp \
3729 common/crypto/pkix-signature-core.cpp \
3730 common/crypto/pkix-signature-rsa.cpp \
3731 common/crypto/pkix-util.cpp \
3732 common/crypto/pkix-verify.cpp \
3733 common/crypto/spc-asn1-decoder.cpp \
3734 common/crypto/spc-core.cpp \
3735 common/crypto/spc-init.cpp \
3736 common/crypto/spc-sanity.cpp \
3737 common/crypto/x509-asn1-decoder.cpp \
3738 common/crypto/x509-certpaths.cpp \
3739 common/crypto/x509-core.cpp \
3740 common/crypto/x509-init.cpp \
3741 common/crypto/x509-sanity.cpp \
3742 common/crypto/x509-verify.cpp \
3743 common/crypto/store.cpp \
3744 common/crypto/store-inmem.cpp \
3745 common/crypto/taf-asn1-decoder.cpp \
3746 common/crypto/taf-core.cpp \
3747 common/crypto/taf-init.cpp \
3748 common/crypto/taf-sanity.cpp \
3749 common/crypto/tsp-asn1-decoder.cpp \
3750 common/crypto/tsp-core.cpp \
3751 common/crypto/tsp-init.cpp \
3752 common/crypto/tsp-sanity.cpp \
3753 common/checksum/alt-md2.cpp \
3754 common/checksum/alt-sha1.cpp \
3755 common/checksum/alt-sha256.cpp \
3756 common/checksum/alt-sha512.cpp \
3757 common/checksum/alt-sha3.cpp \
3758 common/checksum/md2str.cpp \
3759 common/checksum/md4str.cpp \
3760 common/checksum/md5str.cpp \
3761 common/checksum/sha1str.cpp \
3762 common/checksum/sha224str.cpp \
3763 common/checksum/sha256str.cpp \
3764 common/checksum/sha384str.cpp \
3765 common/checksum/sha512str.cpp \
3766 common/checksum/sha512t224str.cpp \
3767 common/checksum/sha512t256str.cpp \
3768 common/err/errinfolog.cpp \
3769 common/path/RTPathFilenameUtf16.cpp \
3770 common/path/RTPathChangeToUnixSlashes.cpp \
3771 common/math/bignum.cpp \
3772 common/misc/zero.asm \
3773 common/string/RTStrPrintHexBytes.cpp \
3774 common/string/RTUtf16Copy.cpp \
3775 common/string/RTUtf16CopyAscii.cpp \
3776 common/string/RTUtf16CopyEx.cpp \
3777 common/string/RTUtf16Cat.cpp \
3778 common/string/RTUtf16CatAscii.cpp \
3779 common/string/RTUtf16End.cpp \
3780 common/string/RTUtf16NLen.cpp \
3781 common/string/RTUtf16NLenEx.cpp \
3782 common/string/RTUtf16PrintHexBytes.cpp \
3783 common/string/strstrip.cpp \
3784 generic/memsafer-generic.cpp \
3785 common/misc/thread.cpp \
3786 common/string/memcmp.asm \
3787 common/string/memchr.asm \
3788 common/string/memcpy.asm \
3789 common/string/memset.asm \
3790 common/string/memmove.asm \
3791 common/string/strlen.asm \
3792 common/string/strncmp.cpp \
3793 common/string/strpbrk.cpp \
3794 generic/RTAssertShouldPanic-generic.cpp \
3795 generic/RTLogWriteStdOut-stub-generic.cpp \
3796 generic/RTMpGetCoreCount-generic.cpp \
3797 generic/RTTimerCreate-generic.cpp \
3798 generic/mppresent-generic-online.cpp \
3799 generic/rtStrFormatKernelAddress-generic.cpp \
3800 nt/RTErrConvertFromNtStatus.cpp \
3801 nt/RTNtPathExpand8dot3Path.cpp \
3802 nt/RTNtPathExpand8dot3PathA.cpp \
3803 nt/RTNtPathFindPossible8dot3Name.cpp \
3804 nt/semevent-nt.cpp \
3805 nt/RTSemEventGetResolution-nt.cpp \
3806 nt/semeventmulti-nt.cpp \
3807 nt/RTSemEventMultiGetResolution-nt.cpp \
3808 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
3809 r0drv/alloc-ef-r0drv.cpp \
3810 r0drv/memobj-r0drv.cpp \
3811 r0drv/mpnotification-r0drv.c \
3812 r0drv/powernotification-r0drv.c \
3813 r0drv/nt/alloc-r0drv-nt.cpp \
3814 r0drv/nt/assert-r0drv-nt.cpp \
3815 r0drv/nt/dbgkrnlinfo-r0drv-nt.cpp \
3816 r0drv/nt/initterm-r0drv-nt.cpp \
3817 r0drv/nt/memobj-r0drv-nt.cpp \
3818 r0drv/nt/memuserkernel-r0drv-nt.cpp \
3819 r0drv/nt/mp-r0drv-nt.cpp \
3820 r0drv/nt/process-r0drv-nt.cpp \
3821 r0drv/nt/RTLogWriteDebugger-r0drv-nt.cpp \
3822 r0drv/nt/semfastmutex-r0drv-nt.cpp \
3823 r0drv/nt/semmutex-r0drv-nt.cpp \
3824 r0drv/nt/spinlock-r0drv-nt.cpp \
3825 r0drv/nt/thread-r0drv-nt.cpp \
3826 r0drv/nt/thread2-r0drv-nt.cpp \
3827 r0drv/nt/time-r0drv-nt.cpp \
3828 r0drv/nt/timer-r0drv-nt.cpp \
3829 r0drv/nt/toxic-chkstk-r0drv-nt.asm \
3830 r0drv/nt/RTTimerGetSystemGranularity-r0drv-nt.cpp
3831
3832RuntimeR0Drv_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES)
3833RuntimeR0Drv_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES) \
3834 r0drv/nt/nt3fakes-stub-r0drv-nt.cpp \
3835 r0drv/nt/alloca-x86-r0drv-nt.asm
3836
3837
3838RuntimeR0Drv_SOURCES.darwin = \
3839 common/ldr/ldr.cpp \
3840 common/ldr/ldrEx.cpp \
3841 common/ldr/ldrMachO.cpp \
3842 common/ldr/ldrMemory.cpp \
3843 common/asn1/asn1-basics.cpp \
3844 common/asn1/asn1-dump.cpp \
3845 common/asn1/asn1-cursor.cpp \
3846 common/asn1/asn1-default-allocator.cpp \
3847 common/asn1/asn1-safer-allocator.cpp \
3848 common/asn1/asn1-encode.cpp \
3849 common/asn1/asn1-ut-bitstring.cpp \
3850 common/asn1/asn1-ut-bitstring-decode.cpp \
3851 common/asn1/asn1-ut-boolean.cpp \
3852 common/asn1/asn1-ut-boolean-decode.cpp \
3853 common/asn1/asn1-ut-core.cpp \
3854 common/asn1/asn1-ut-core-decode.cpp \
3855 common/asn1/asn1-ut-dyntype.cpp \
3856 common/asn1/asn1-ut-dyntype-decode.cpp \
3857 common/asn1/asn1-ut-integer.cpp \
3858 common/asn1/asn1-ut-integer-decode.cpp \
3859 common/asn1/asn1-ut-null.cpp \
3860 common/asn1/asn1-ut-null-decode.cpp \
3861 common/asn1/asn1-ut-objid.cpp \
3862 common/asn1/asn1-ut-objid-decode.cpp \
3863 common/asn1/asn1-ut-octetstring.cpp \
3864 common/asn1/asn1-ut-octetstring-decode.cpp \
3865 common/asn1/asn1-ut-string.cpp \
3866 common/asn1/asn1-ut-string-decode.cpp \
3867 common/asn1/asn1-ut-time.cpp \
3868 common/asn1/asn1-ut-time-decode.cpp \
3869 common/crypto/digest-core.cpp \
3870 common/crypto/digest-builtin.cpp \
3871 common/crypto/key.cpp \
3872 common/crypto/rsa-asn1-decoder.cpp \
3873 common/crypto/rsa-core.cpp \
3874 common/crypto/rsa-init.cpp \
3875 common/crypto/rsa-sanity.cpp \
3876 common/crypto/pkcs7-asn1-decoder.cpp \
3877 common/crypto/pkcs7-core.cpp \
3878 common/crypto/pkcs7-init.cpp \
3879 common/crypto/pkcs7-sanity.cpp \
3880 common/crypto/pkcs7-verify.cpp \
3881 common/crypto/pkix-signature-builtin.cpp \
3882 common/crypto/pkix-signature-core.cpp \
3883 common/crypto/pkix-signature-rsa.cpp \
3884 common/crypto/pkix-util.cpp \
3885 common/crypto/pkix-verify.cpp \
3886 common/crypto/spc-asn1-decoder.cpp \
3887 common/crypto/spc-core.cpp \
3888 common/crypto/spc-init.cpp \
3889 common/crypto/spc-sanity.cpp \
3890 common/crypto/x509-asn1-decoder.cpp \
3891 common/crypto/x509-certpaths.cpp \
3892 common/crypto/x509-core.cpp \
3893 common/crypto/x509-init.cpp \
3894 common/crypto/x509-sanity.cpp \
3895 common/crypto/x509-verify.cpp \
3896 common/crypto/store.cpp \
3897 common/crypto/store-inmem.cpp \
3898 common/crypto/taf-asn1-decoder.cpp \
3899 common/crypto/taf-core.cpp \
3900 common/crypto/taf-init.cpp \
3901 common/crypto/taf-sanity.cpp \
3902 common/crypto/tsp-asn1-decoder.cpp \
3903 common/crypto/tsp-core.cpp \
3904 common/crypto/tsp-init.cpp \
3905 common/crypto/tsp-sanity.cpp \
3906 common/checksum/alt-md2.cpp \
3907 common/checksum/alt-sha1.cpp \
3908 common/checksum/alt-sha256.cpp \
3909 common/checksum/alt-sha512.cpp \
3910 common/checksum/alt-sha3.cpp \
3911 common/checksum/md2str.cpp \
3912 common/checksum/md4str.cpp \
3913 common/checksum/md5str.cpp \
3914 common/checksum/sha1str.cpp \
3915 common/checksum/sha224str.cpp \
3916 common/checksum/sha256str.cpp \
3917 common/checksum/sha384str.cpp \
3918 common/checksum/sha512str.cpp \
3919 common/checksum/sha512t224str.cpp \
3920 common/checksum/sha512t256str.cpp \
3921 common/err/errinfolog.cpp \
3922 common/math/bignum.cpp \
3923 common/misc/thread.cpp \
3924 common/string/base64.cpp \
3925 common/string/memchr.asm \
3926 common/string/mempcpy.asm \
3927 common/string/strpbrk.cpp \
3928 common/string/strstrip.cpp \
3929 common/string/RTStrPrintHexBytes.cpp \
3930 darwin/RTErrConvertFromDarwin.cpp \
3931 darwin/RTErrConvertFromDarwinIO.cpp \
3932 darwin/RTErrConvertFromDarwinKern.cpp \
3933 generic/RTAssertShouldPanic-generic.cpp \
3934 generic/RTFileReadAll-generic.cpp \
3935 generic/RTFileReadAllByHandle-generic.cpp \
3936 generic/RTFileReadAllByHandleEx-generic.cpp \
3937 generic/RTFileReadAllEx-generic.cpp \
3938 generic/RTFileReadAllFree-generic.cpp \
3939 generic/RTMpGetCoreCount-generic.cpp \
3940 generic/RTMpOnPair-generic.cpp \
3941 generic/RTThreadQueryTerminationStatus-stub-generic.cpp \
3942 generic/RTTimerCreate-generic.cpp \
3943 generic/memsafer-generic.cpp \
3944 generic/mppresent-generic.cpp \
3945 generic/timer-generic.cpp \
3946 r0drv/generic/mpnotification-r0drv-generic.cpp \
3947 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
3948 r0drv/darwin/alloc-r0drv-darwin.cpp \
3949 r0drv/darwin/assert-r0drv-darwin.cpp \
3950 r0drv/darwin/initterm-r0drv-darwin.cpp \
3951 r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp \
3952 r0drv/darwin/fileio-r0drv-darwin.cpp \
3953 r0drv/darwin/memobj-r0drv-darwin.cpp \
3954 r0drv/darwin/mp-r0drv-darwin.cpp \
3955 r0drv/darwin/memuserkernel-r0drv-darwin.cpp \
3956 r0drv/darwin/process-r0drv-darwin.cpp \
3957 r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
3958 r0drv/darwin/RTLogWriteStdOut-r0drv-darwin.cpp \
3959 r0drv/darwin/rtStrFormatKernelAddress-r0drv-darwin.cpp \
3960 r0drv/darwin/semevent-r0drv-darwin.cpp \
3961 r0drv/darwin/semeventmulti-r0drv-darwin.cpp \
3962 r0drv/darwin/semfastmutex-r0drv-darwin.cpp \
3963 r0drv/darwin/semmutex-r0drv-darwin.cpp \
3964 r0drv/darwin/spinlock-r0drv-darwin.cpp \
3965 r0drv/darwin/thread-r0drv-darwin.cpp \
3966 r0drv/darwin/thread2-r0drv-darwin.cpp \
3967 r0drv/darwin/threadpreempt-r0drv-darwin.cpp \
3968 r0drv/darwin/time-r0drv-darwin.cpp \
3969 r0drv/alloc-ef-r0drv.cpp \
3970 r0drv/memobj-r0drv.cpp \
3971 r0drv/powernotification-r0drv.c
3972# - The xnu memcpy implementation in osfmk/x86_64/bcopy.s returned 'void' rather than 'void *' for a long time, so use our own.
3973# - The memcmp and strlen implementations are still C implementations living in osfmk/x86_64/loose_ends.c, so use our asm code.
3974RuntimeR0Drv_SOURCES.darwin.amd64 = \
3975 common/string/memcpy.asm
3976# common/string/strlen.asm - try again later \
3977# common/string/memcmp.asm
3978
3979RuntimeR0Drv_SOURCES.os2 = \
3980 common/path/RTPathFilenameUtf16.cpp \
3981 common/string/RTUtf16Chr.cpp \
3982 common/string/RTUtf16CmpAscii.cpp \
3983 common/string/memchr.asm \
3984 common/string/memcmp.asm \
3985 common/string/memcpy.asm \
3986 common/string/mempcpy.asm \
3987 common/string/memmove.asm \
3988 common/string/memset.asm \
3989 common/string/strchr.asm \
3990 common/string/strcmp.asm \
3991 common/string/strcpy.asm \
3992 common/string/strlen.asm \
3993 common/string/strncmp.cpp \
3994 common/string/strpbrk.cpp \
3995 common/misc/thread.cpp \
3996 generic/RTAssertShouldPanic-generic.cpp \
3997 generic/RTLogWriteDebugger-generic.cpp \
3998 generic/RTLogWriteStdOut-stub-generic.cpp \
3999 generic/RTMpCpuId-generic.cpp \
4000 generic/RTMpCpuIdFromSetIndex-generic.cpp \
4001 generic/RTMpCpuIdToSetIndex-generic.cpp \
4002 generic/RTMpIsCpuPossible-generic.cpp \
4003 generic/RTMpGetCount-generic.cpp \
4004 generic/RTMpGetMaxCpuId-generic.cpp \
4005 generic/RTMpGetOnlineCount-generic.cpp \
4006 generic/RTMpGetOnlineSet-generic.cpp \
4007 generic/RTMpGetSet-generic.cpp \
4008 generic/RTMpIsCpuOnline-generic.cpp \
4009 generic/RTThreadQueryTerminationStatus-stub-generic.cpp \
4010 generic/RTTimerCreate-generic.cpp \
4011 generic/mppresent-generic.cpp \
4012 generic/rtStrFormatKernelAddress-generic.cpp \
4013 os2/RTErrConvertFromOS2.cpp \
4014 os2/rtSemWaitOs2ConvertTimeout.cpp \
4015 os2/sys0.asm \
4016 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
4017 r0drv/generic/RTMpOn-r0drv-generic.cpp \
4018 r0drv/generic/mpnotification-r0drv-generic.cpp \
4019 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
4020 r0drv/memobj-r0drv.cpp \
4021 r0drv/powernotification-r0drv.c \
4022 r0drv/os2/alloc-r0drv-os2.cpp \
4023 r0drv/os2/assert-r0drv-os2.cpp \
4024 r0drv/os2/assertA-r0drv-os2.asm \
4025 r0drv/os2/initterm-r0drv-os2.cpp \
4026 r0drv/os2/memobj-r0drv-os2.cpp \
4027 r0drv/os2/memuserkernel-r0drv-os2.cpp \
4028 r0drv/os2/os2imports.imp \
4029 r0drv/os2/process-r0drv-os2.cpp \
4030 r0drv/os2/RTR0AssertPanicSystem-r0drv-os2.asm \
4031 r0drv/os2/RTR0Os2DHQueryDOSVar.asm \
4032 r0drv/os2/RTR0Os2DHVMGlobalToProcess.asm \
4033 r0drv/os2/semevent-r0drv-os2.cpp \
4034 r0drv/os2/semeventmulti-r0drv-os2.cpp \
4035 r0drv/os2/semfastmutex-r0drv-os2.cpp \
4036 r0drv/os2/spinlock-r0drv-os2.cpp \
4037 r0drv/os2/thread-r0drv-os2.cpp \
4038 r0drv/os2/thread2-r0drv-os2.cpp \
4039 r0drv/os2/time-r0drv-os2.cpp \
4040 r0drv/os2/timer-r0drv-os2.cpp \
4041 r0drv/os2/timerA-r0drv-os2.asm
4042ifndef VBOX_USE_WATCOM_FOR_OS2
4043 RuntimeR0Drv_SOURCES.os2 += \
4044 common/math/gcc/adddi3.c \
4045 common/math/gcc/anddi3.c \
4046 common/math/gcc/ashldi3.c \
4047 common/math/gcc/ashrdi3.c \
4048 common/math/gcc/cmpdi2.c \
4049 common/math/gcc/divdi3.c \
4050 common/math/gcc/divmoddi4.c \
4051 common/math/gcc/iordi3.c \
4052 common/math/gcc/lshldi3.c \
4053 common/math/gcc/lshrdi3.c \
4054 common/math/gcc/moddi3.c \
4055 common/math/gcc/muldi3.c \
4056 common/math/gcc/negdi2.c \
4057 common/math/gcc/notdi2.c \
4058 common/math/gcc/qdivrem.c \
4059 common/math/gcc/subdi3.c \
4060 common/math/gcc/ucmpdi2.c \
4061 common/math/gcc/udivdi3.c \
4062 common/math/gcc/udivmoddi4.c \
4063 common/math/gcc/umoddi3.c \
4064 common/math/gcc/xordi3.c
4065else
4066 RuntimeR0Drv_SOURCES.os2 += \
4067 common/math/watcom/I8D-x86-32.asm \
4068 common/math/watcom/U8D-x86-32.asm \
4069 common/math/watcom/RTWatcomUInt64Div.c \
4070 common/math/watcom/U8LS-x86-32.asm \
4071 common/math/watcom/U8RS-x86-32.asm \
4072 common/math/watcom/U8M-I8M-x86-32.asm \
4073 common/string/watcom/bzero.asm \
4074 common/string/watcom/memchr.asm \
4075 common/string/watcom/memcmp.asm \
4076 common/string/watcom/memcpy.asm \
4077 common/string/watcom/memmove.asm \
4078 common/string/watcom/mempcpy.asm \
4079 common/string/watcom/memrchr.asm \
4080 common/string/watcom/memset.asm \
4081 common/string/watcom/strchr.asm \
4082 common/string/watcom/strcmp.asm \
4083 common/string/watcom/strcpy.asm \
4084 common/string/watcom/strlen.asm \
4085 common/string/watcom/strncmp.asm \
4086 common/string/watcom/strncpy.asm
4087endif
4088
4089RuntimeR0Drv_SOURCES.freebsd = \
4090 common/misc/thread.cpp \
4091 common/string/memchr.asm \
4092 common/string/memmove.asm \
4093 common/string/strpbrk.cpp \
4094 common/string/memcmp.asm \
4095 common/string/strchr.asm \
4096 generic/RTAssertShouldPanic-generic.cpp \
4097 generic/RTLogWriteDebugger-generic.cpp \
4098 generic/RTLogWriteStdOut-stub-generic.cpp \
4099 generic/RTMpOnPair-generic.cpp \
4100 generic/RTTimerCreate-generic.cpp \
4101 generic/mppresent-generic.cpp \
4102 generic/rtStrFormatKernelAddress-generic.cpp \
4103 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
4104 r0drv/generic/mpnotification-r0drv-generic.cpp \
4105 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
4106 r0drv/freebsd/alloc-r0drv-freebsd.c \
4107 r0drv/freebsd/assert-r0drv-freebsd.c \
4108 r0drv/freebsd/initterm-r0drv-freebsd.c \
4109 r0drv/freebsd/memobj-r0drv-freebsd.c \
4110 r0drv/freebsd/memuserkernel-r0drv-freebsd.c \
4111 r0drv/freebsd/process-r0drv-freebsd.c \
4112 r0drv/freebsd/semevent-r0drv-freebsd.c \
4113 r0drv/freebsd/semeventmulti-r0drv-freebsd.c \
4114 r0drv/freebsd/semfastmutex-r0drv-freebsd.c \
4115 r0drv/freebsd/semmutex-r0drv-freebsd.c \
4116 r0drv/freebsd/spinlock-r0drv-freebsd.c \
4117 r0drv/freebsd/thread-r0drv-freebsd.c \
4118 r0drv/freebsd/thread2-r0drv-freebsd.c \
4119 r0drv/freebsd/time-r0drv-freebsd.c \
4120 r0drv/freebsd/mp-r0drv-freebsd.c \
4121 generic/timer-generic.cpp \
4122 r0drv/alloc-ef-r0drv.cpp \
4123 r0drv/memobj-r0drv.cpp \
4124 r0drv/powernotification-r0drv.c
4125
4126RuntimeR0Drv_SOURCES.netbsd = \
4127 common/misc/thread.cpp \
4128 common/string/strpbrk.cpp \
4129 generic/RTAssertShouldPanic-generic.cpp \
4130 generic/RTLogWriteDebugger-generic.cpp \
4131 generic/RTThreadQueryTerminationStatus-stub-generic.cpp \
4132 generic/RTTimerCreate-generic.cpp \
4133 generic/mppresent-generic.cpp \
4134 generic/rtStrFormatKernelAddress-generic.cpp \
4135 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
4136 r0drv/generic/mpnotification-r0drv-generic.cpp \
4137 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
4138 r0drv/netbsd/RTLogWriteStdOut-r0drv-netbsd.c \
4139 r0drv/netbsd/alloc-r0drv-netbsd.c \
4140 r0drv/netbsd/assert-r0drv-netbsd.c \
4141 r0drv/netbsd/initterm-r0drv-netbsd.c \
4142 r0drv/netbsd/memobj-r0drv-netbsd.c \
4143 r0drv/netbsd/memuserkernel-r0drv-netbsd.c \
4144 r0drv/netbsd/process-r0drv-netbsd.c \
4145 r0drv/netbsd/semevent-r0drv-netbsd.c \
4146 r0drv/netbsd/semeventmulti-r0drv-netbsd.c \
4147 r0drv/netbsd/semfastmutex-r0drv-netbsd.c \
4148 r0drv/netbsd/spinlock-r0drv-netbsd.c \
4149 r0drv/netbsd/thread-r0drv-netbsd.c \
4150 r0drv/netbsd/thread2-r0drv-netbsd.c \
4151 r0drv/netbsd/time-r0drv-netbsd.c \
4152 r0drv/netbsd/mp-r0drv-netbsd.c \
4153 generic/timer-generic.cpp \
4154 r0drv/memobj-r0drv.cpp \
4155 r0drv/powernotification-r0drv.c
4156
4157RuntimeR0Drv_SOURCES.solaris = \
4158 common/misc/thread.cpp \
4159 common/string/memchr.asm \
4160 generic/RTAssertShouldPanic-generic.cpp \
4161 generic/RTLogWriteStdOut-stub-generic.cpp \
4162 generic/RTMpGetCoreCount-generic.cpp \
4163 generic/RTThreadQueryTerminationStatus-stub-generic.cpp \
4164 generic/RTTimerCreate-generic.cpp \
4165 generic/mppresent-generic.cpp \
4166 generic/rtStrFormatKernelAddress-generic.cpp \
4167 r0drv/memobj-r0drv.cpp \
4168 r0drv/mpnotification-r0drv.c \
4169 r0drv/powernotification-r0drv.c \
4170 r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \
4171 r0drv/solaris/RTMpPokeCpu-r0drv-solaris.c \
4172 r0drv/solaris/alloc-r0drv-solaris.c \
4173 r0drv/solaris/assert-r0drv-solaris.c \
4174 r0drv/solaris/dbgkrnlinfo-r0drv-solaris.c \
4175 r0drv/solaris/initterm-r0drv-solaris.c \
4176 r0drv/solaris/memuserkernel-r0drv-solaris.c \
4177 r0drv/solaris/mpnotification-r0drv-solaris.c \
4178 r0drv/solaris/memobj-r0drv-solaris.c \
4179 r0drv/solaris/mp-r0drv-solaris.c \
4180 r0drv/solaris/process-r0drv-solaris.c \
4181 r0drv/solaris/semevent-r0drv-solaris.c \
4182 r0drv/solaris/semeventmulti-r0drv-solaris.c \
4183 r0drv/solaris/semfastmutex-r0drv-solaris.c \
4184 r0drv/solaris/semmutex-r0drv-solaris.c \
4185 r0drv/solaris/spinlock-r0drv-solaris.c \
4186 r0drv/solaris/thread-r0drv-solaris.c \
4187 r0drv/solaris/thread2-r0drv-solaris.c \
4188 r0drv/solaris/threadctxhooks-r0drv-solaris.c \
4189 r0drv/solaris/time-r0drv-solaris.c \
4190 r0drv/solaris/timer-r0drv-solaris.c
4191
4192RuntimeR0Drv_SOURCES.haiku = \
4193 common/misc/thread.cpp \
4194 common/string/memchr.asm \
4195 common/string/memmove.asm \
4196 common/string/strpbrk.cpp \
4197 common/string/memcmp.asm \
4198 common/string/strchr.asm \
4199 generic/RTAssertShouldPanic-generic.cpp \
4200 generic/RTMpOnPair-generic.cpp \
4201 generic/RTThreadQueryTerminationStatus-stub-generic.cpp \
4202 generic/RTTimerCreate-generic.cpp \
4203 generic/mppresent-generic.cpp \
4204 generic/rtStrFormatKernelAddress-generic.cpp \
4205 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
4206 r0drv/generic/mpnotification-r0drv-generic.cpp \
4207 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
4208 r0drv/haiku/alloc-r0drv-haiku.c \
4209 r0drv/haiku/assert-r0drv-haiku.c \
4210 r0drv/haiku/initterm-r0drv-haiku.c \
4211 r0drv/haiku/memobj-r0drv-haiku.c \
4212 r0drv/haiku/mp-r0drv-haiku.c \
4213 r0drv/haiku/process-r0drv-haiku.c \
4214 r0drv/haiku/RTLogWriteDebugger-r0drv-haiku.c \
4215 r0drv/haiku/RTLogWriteStdOut-r0drv-haiku.c \
4216 r0drv/haiku/semevent-r0drv-haiku.c \
4217 r0drv/haiku/semeventmulti-r0drv-haiku.c \
4218 r0drv/haiku/semfastmutex-r0drv-haiku.c \
4219 r0drv/haiku/semmutex-r0drv-haiku.c \
4220 r0drv/haiku/spinlock-r0drv-haiku.c \
4221 r0drv/haiku/thread-r0drv-haiku.c \
4222 r0drv/haiku/thread2-r0drv-haiku.c \
4223 r0drv/haiku/time-r0drv-haiku.c \
4224 generic/timer-generic.cpp \
4225 r0drv/memobj-r0drv.cpp \
4226 r0drv/powernotification-r0drv.c
4227
4228## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here.
4229
4230RuntimeR0Drv_ORDERDEPS.freebsd = \
4231 $(PATH_STAGE)/gen-sys-hdrs/bus_if.h \
4232 $(PATH_STAGE)/gen-sys-hdrs/device_if.h
4233
4234
4235#
4236# RuntimeGuestR0 - Guest driver runtime.
4237#
4238# This is almost the same as the RuntimeR0Drv, the main difference is in the
4239# backdoor logging and the lack of sup.h (which should be made irrelevant even
4240# for RuntimeR0Drv).
4241#
4242# In addition we include 64-bit integer stuff, since older kernels doesn't
4243# export all of these and we happen to have all of it.
4244#
4245RuntimeGuestR0_TEMPLATE := VBoxGuestR0DrvLib
4246RuntimeGuestR0_EXTENDS = RuntimeR0Drv
4247RuntimeGuestR0_DEFS.win.x86 = $(RuntimeR0Drv_DEFS.win.x86) IPRT_TARGET_NT4 # The 32-bit version needs to work on NT4 too.
4248RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES))
4249RuntimeGuestR0_SOURCES += \
4250 VBox/logbackdoor.cpp
4251RuntimeGuestR0_SOURCES.win := \
4252 $(filter-out common/checksum/md% common/checksum/sha%, $(RuntimeR0Drv_SOURCES.win))
4253RuntimeGuestR0_SOURCES.win.x86 := \
4254 $(RuntimeR0Drv_SOURCES.win.x86) \
4255 common/compiler/vcc/x86-allshl.asm \
4256 common/compiler/vcc/x86-allshr.asm \
4257 common/compiler/vcc/x86-aullshr.asm \
4258 common/compiler/vcc/x86-allmul.asm \
4259 common/compiler/vcc/x86-alldiv.asm \
4260 common/compiler/vcc/x86-allrem.asm \
4261 common/compiler/vcc/x86-alldvrm.asm \
4262 common/compiler/vcc/x86-aulldiv.asm \
4263 common/compiler/vcc/x86-aullrem.asm \
4264 common/compiler/vcc/x86-aulldvrm.asm
4265
4266
4267
4268ifdef VBOX_WITH_RAW_MODE
4269 #
4270 # RuntimeRC - Raw-mode context library.
4271 #
4272 RuntimeRC_TEMPLATE = VBoxRc
4273 RuntimeRC_DEFS = IN_RT_RC RT_WITH_VBOX IN_SUP_RC IN_VMM_RC NOFILEID
4274 RuntimeRC_INCS = include
4275 RuntimeRC_SOURCES := \
4276 common/asm/ASMMemFirstMismatchingU8.asm \
4277 common/asm/ASMGetXcr0.asm \
4278 common/asm/ASMSetXcr0.asm \
4279 common/asm/ASMXSave.asm \
4280 common/asm/ASMXRstor.asm \
4281 common/asm/ASMFxSave.asm \
4282 common/asm/ASMFxRstor.asm \
4283 common/checksum/alt-md5.cpp \
4284 common/checksum/crc32.cpp \
4285 common/checksum/crc64.cpp \
4286 common/log/log.cpp \
4287 common/log/log-weak.cpp \
4288 common/log/log-weak-assert.cpp \
4289 common/log/log-weak-rel.cpp \
4290 common/log/logellipsis.cpp \
4291 common/log/logrel.cpp \
4292 common/log/logrelellipsis.cpp \
4293 common/log/logcom.cpp \
4294 common/log/logformat.cpp \
4295 common/log/tracebuf.cpp \
4296 common/log/tracedefault.cpp \
4297 common/log/RTLogCreateEx.cpp \
4298 common/misc/RTAssertMsg1Weak.cpp \
4299 common/misc/RTAssertMsg2.cpp \
4300 common/misc/RTAssertMsg2Add.cpp \
4301 common/misc/RTAssertMsg2AddWeak.cpp \
4302 common/misc/RTAssertMsg2AddWeakV.cpp \
4303 common/misc/RTAssertMsg2Weak.cpp \
4304 common/misc/RTAssertMsg2WeakV.cpp \
4305 common/misc/assert.cpp \
4306 common/misc/buildconfig.cpp \
4307 common/misc/sanity-c.c \
4308 common/misc/sanity-cpp.cpp \
4309 common/path/RTPathFilename.cpp \
4310 common/string/strformat.cpp \
4311 common/string/RTStrFormat.cpp \
4312 common/string/strformatnum.cpp \
4313 common/string/strformatrt.cpp \
4314 common/string/strformattype.cpp \
4315 common/string/strncmp.cpp \
4316 common/string/strpbrk.cpp \
4317 common/string/strprintf.cpp \
4318 common/string/strprintf-ellipsis.cpp \
4319 common/string/strprintf2.cpp \
4320 common/string/strprintf2-ellipsis.cpp \
4321 common/string/RTStrCmp.cpp \
4322 common/string/RTStrCopy.cpp \
4323 common/string/RTStrCopyEx.cpp \
4324 common/string/RTStrEnd.asm \
4325 common/string/RTStrICmpAscii.cpp \
4326 common/table/avllu32.cpp \
4327 common/table/avlou32.cpp \
4328 common/table/avlogcphys.cpp \
4329 common/table/avlogcptr.cpp \
4330 common/table/avlohcphys.cpp \
4331 common/table/avloioport.cpp \
4332 common/table/avlrogcphys.cpp \
4333 common/table/avlrogcptr.cpp \
4334 common/table/avlroioport.cpp \
4335 common/table/avlroogcptr.cpp \
4336 common/table/avlu32.cpp \
4337 common/time/timeprog.cpp \
4338 common/time/timesup.cpp \
4339 gc/initterm-gc.cpp \
4340 generic/RTAssertShouldPanic-generic.cpp \
4341 generic/rtStrFormatKernelAddress-generic.cpp \
4342 generic/errvars-generic.cpp \
4343 \
4344 $(RuntimeNoCrt_SOURCES)
4345
4346 #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
4347 # RuntimeRC_SOURCES += common/time/timesupA.asm
4348 #else
4349 RuntimeRC_SOURCES += common/time/timesupref.cpp
4350 #endif
4351
4352 RuntimeRC_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
4353
4354 ifeq ($(VBOX_LDR_FMT32),lx)
4355 RuntimeRC_SOURCES += os2/sys0.asm
4356 endif
4357
4358 if1of ($(KBUILD_TARGET), darwin solaris freebsd os2)
4359 RuntimeRC_SOURCES += \
4360 common/math/gcc/adddi3.c \
4361 common/math/gcc/anddi3.c \
4362 common/math/gcc/ashldi3.c \
4363 common/math/gcc/ashrdi3.c \
4364 common/math/gcc/cmpdi2.c \
4365 common/math/gcc/divdi3.c \
4366 common/math/gcc/divmoddi4.c \
4367 common/math/gcc/iordi3.c \
4368 common/math/gcc/lshldi3.c \
4369 common/math/gcc/lshrdi3.c \
4370 common/math/gcc/moddi3.c \
4371 common/math/gcc/muldi3.c \
4372 common/math/gcc/negdi2.c \
4373 common/math/gcc/notdi2.c \
4374 common/math/gcc/qdivrem.c \
4375 common/math/gcc/subdi3.c \
4376 common/math/gcc/ucmpdi2.c \
4377 common/math/gcc/udivdi3.c \
4378 common/math/gcc/udivmoddi4.c \
4379 common/math/gcc/umoddi3.c \
4380 common/math/gcc/xordi3.c
4381 endif
4382
4383
4384 #
4385 # RuntimeRCStub - Raw-mode context startup stub for Windows.
4386 #
4387 RuntimeRCStub_TEMPLATE = VBoxRc
4388 RuntimeRCStub_SOURCES.win = \
4389 nt/NtProcessStartup-stub.cpp
4390
4391
4392endif # VBOX_WITH_RAW_MODE
4393
4394
4395#
4396# Static library for new & delete for the electric fence.
4397#
4398RuntimeEFCPP_TEMPLATE := $(VBoxRT_TEMPLATE)
4399RuntimeEFCPP_SDKS := $(RuntimeR3_SDKS)
4400RuntimeEFCPP_SDKS.$(KBUILD_TARGET) := $(RuntimeR3_SDKS.$(KBUILD_TARGET))
4401RuntimeEFCPP_DEFS := $(RuntimeR3_DEFS)
4402RuntimeEFCPP_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
4403RuntimeEFCPP_INCS := $(RuntimeR3_INCS)
4404RuntimeEFCPP_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
4405RuntimeEFCPP_SOURCES := r3/alloc-ef-cpp.cpp
4406
4407
4408
4409#
4410# The NTDLL mini import library.
4411#
4412# Note! The reason for doing this is to avoid importing CRT symbols from the
4413# NTDLL. We do not wish to do this because:
4414# - Our compiler is usually a different one and we should use the
4415# matching CRT,
4416# - Older versions of NTDLL may not sport all the exports our w2k3 or
4417# later WINDDK ntdll.lib have and thus we may easily end up with
4418# images that does not load on older windows versions.
4419#
4420if1of (win, $(KBUILD_TARGET) $(KBUILD_HOST))
4421 RuntimeR3NtDll-amd64_TEMPLATE = VBoxR3Dll
4422 RuntimeR3NtDll-amd64_BLD_TRG_ARCH = amd64
4423 RuntimeR3NtDll-amd64_ARFLAGS = /NODEFAULTLIB /MACHINE:amd64
4424 RuntimeR3NtDll-amd64_SOURCES = \
4425 r3/win/ntdll-mini-implib.def
4426
4427 RuntimeR3NtDll-x86_TEMPLATE = VBoxR3Dll
4428 RuntimeR3NtDll-x86_BLD_TRG_ARCH = x86
4429 RuntimeR3NtDll-x86_ARFLAGS = /NODEFAULTLIB /MACHINE:x86
4430 RuntimeR3NtDll-x86_SOURCES = \
4431 r3/win/ntdll-mini-implib.def \
4432 $(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm
4433 RuntimeR3NtDll-x86_CLEAN = \
4434 $(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm
4435
4436 $$(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm: $(PATH_SUB_CURRENT)/r3/win/ntdll-mini-implib.def | $$(dir $$@)
4437 $(call MSG_GENERATE,,$@,$<)
4438 $(QUIET)$(APPEND) -nt "$@" \
4439 ';Autogenerated, do not edit' \
4440 '%include "iprt/asmdefs.mac"' \
4441 'BEGINCODE' \
4442 '%macro IMPLIB_EXPORT 1' \
4443 'global %1:function' \
4444 '%1: nop' \
4445 '%endm' \
4446 ''
4447 $(QUIET)$(SED) -e '1,/EXPORTS/d' \
4448 -e 's/^.*;;=[[:space:]]*\([^[:space:]]*\)[[:space:]]*$$/IMPLIB_EXPORT \1/' \
4449 $< --append $@
4450endif
4451
4452#
4453# Bag of tricks required for making VCC100 output binaries work on NT4, W2K
4454# early XP and early W2K3. Used by validation kit.
4455#
4456ifndef VBOX_WITH_NOCRT_STATIC
4457 RuntimeR3VccTricks_TEMPLATE = VBoxR3Static
4458 RuntimeR3VccTricks_DEFS = VCC_FAKES_TARGET_$(VBOX_VCC_TOOL_STEM) VCC_FAKES_TARGET=$(substr $(VBOX_VCC_TOOL_STEM),-3)
4459 RuntimeR3VccTricks_SOURCES = \
4460 r3/win/vcc-fakes-kernel32.cpp \
4461 r3/win/vcc-fakes-kernel32-A.asm \
4462 r3/win/vcc-fakes-shell32.cpp \
4463 r3/win/vcc-fakes-shell32-A.asm \
4464 r3/win/vcc-fakes-ntdll.cpp \
4465 r3/win/vcc-fakes-ntdll-A.asm
4466endif
4467
4468if defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" # Ugly hacks... :-)
4469 LIBRARIES += RuntimeR3VccTricks2
4470 RuntimeR3VccTricks2_TEMPLATE = VBoxR3Dll
4471 RuntimeR3VccTricks2_DEFS += $(RuntimeR3VccTricks_DEFS)
4472 RuntimeR3VccTricks2_SOURCES = $(RuntimeR3VccTricks_SOURCES)
4473 RuntimeR3VccTricks2_SOURCES += $(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib
4474 RuntimeR3VccTricks2_CLEAN = $(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib
4475 RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED =
4476
4477 $$(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib: \
4478 $$(PATH_TOOL_$$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \
4479 $$(PATH_TOOL_$$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
4480 $$(LIB_RUNTIME) \
4481 $(MAKEFILE) | $$(dir $$@)
4482 $(RM) -f -- "$@"
4483 # $(REDIRECT) -C $(dir $@) -- $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib \
4484 # $(PATH_TOOL_$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
4485 # $(foreach file, $(RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED), *$(file))
4486 $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib [email protected] $< \
4487 -MSVCR100.dll \
4488 $(addprefix $(RuntimeR3VccTricks2_0_OUTDIR)/, $(RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED)) \
4489 -chandler4gs.obj
4490 $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib -o=$@ \
4491 $(LIB_RUNTIME) \
4492 [email protected]
4493 $(RM) -f -- [email protected] $(addprefix $(RuntimeR3VccTricks2_0_OUTDIR)/, $(RuntimeR3VccTricks_VBOX_LIBCMT_NEEDED))
4494endif
4495
4496
4497#
4498# errmsg.cpp depends on a generated header.
4499#
4500common/err/errmsg.cpp_DEPS = \
4501 $(IPRT_OUT_DIR)/errmsgdata-all.h \
4502 $(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h \
4503 $(IPRT_OUT_DIR)/errmsgdata-only-defines.h
4504common/err/errmsg.cpp_INCS = $(IPRT_OUT_DIR)
4505
4506win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgwindata-only-defines.h
4507win/errmsgwin.cpp_INCS = $(IPRT_OUT_DIR)
4508
4509# Our COM errors only for R3 libraries on the host
4510define def_errmsgwin_deps
4511 $(lib)_common/err/errmsgxpcom.cpp_INCS = $(IPRT_OUT_DIR)
4512 $(lib)_common/err/errmsgxpcom.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
4513endef
4514$(foreach lib,RuntimeR3 RuntimeBldProg VBoxRT VBoxRT-x86,$(eval $(def_errmsgwin_deps)))
4515
4516
4517#
4518# Generate the status code data.
4519#
4520$(IPRT_OUT_DIR)/errmsgdata.h: \
4521 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsg.sed \
4522 $(PATH_ROOT)/include/iprt/err.h \
4523 $(PATH_ROOT)/include/VBox/err.h \
4524 | $$(dir $$@)
4525 $(call MSG_GENERATE,,$@,$(filter %.h,$^))
4526 $(QUIET)$(SED) -f $< --output "$@" $(filter %.h,$^)
4527
4528$(IPRT_OUT_DIR)/errmsgdata-all.h.ts +| $(IPRT_OUT_DIR)/errmsgdata-all.h: \
4529 $$(bldRTErrMsgSorter_1_TARGET)
4530 $(call MSG_GENERATE,,$@,$<)
4531 $(QUIET)"$<" --all "$(IPRT_OUT_DIR)/errmsgdata-all.h.ts"
4532 $(QUIET)$(CP) --changed -fv -- "$(IPRT_OUT_DIR)/errmsgdata-all.h.ts" "$(IPRT_OUT_DIR)/errmsgdata-all.h"
4533
4534$(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h.ts +| $(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h: \
4535 $$(bldRTErrMsgSorter_1_TARGET)
4536 $(call MSG_GENERATE,,$@,$<)
4537 $(QUIET)"$<" --no-full-msg "$(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h.ts"
4538 $(QUIET)$(CP) --changed -fv -- "$(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h.ts" "$(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h"
4539
4540$(IPRT_OUT_DIR)/errmsgdata-only-defines.h.ts +| $(IPRT_OUT_DIR)/errmsgdata-only-defines.h: \
4541 $$(bldRTErrMsgSorter_1_TARGET)
4542 $(call MSG_GENERATE,,$@,$<)
4543 $(QUIET)"$<" --only-defines "$(IPRT_OUT_DIR)/errmsgdata-only-defines.h.ts"
4544 $(QUIET)$(CP) --changed -fv -- "$(IPRT_OUT_DIR)/errmsgdata-only-defines.h.ts" "$(IPRT_OUT_DIR)/errmsgdata-only-defines.h"
4545
4546
4547$(IPRT_OUT_DIR)/errmsgwindata.h: \
4548 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsgcom.sed \
4549 $$(qwildcard ,$$(qaddsuffix ,/WinError.h,$$(SDK_$$(VBOX_WINPSDK)_INCS))) \
4550 | $$(dir $$@)
4551 $(call MSG_GENERATE,,$@,$(deps $@, 2))
4552 $(QUIET)$(SED) -f "$<" --output "$@" $(qdeps sh,$@,2)
4553
4554$(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts +| $(IPRT_OUT_DIR)/errmsgvboxcomdata.h: \
4555 $(VBOX_PATH_RUNTIME_SRC)/VBox/errmsgvboxcom.xsl \
4556 $(VBOX_XIDL_FILE_SRC) \
4557 | $$(dir $$@)
4558 $(call MSG_GENERATE,,$@,$(filter %.xidl,$^))
4559 $(QUIET)$(VBOX_XSLTPROC) -o $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts $< $(filter %.xidl,$^)
4560 $(QUIET)$(CP) --changed -fv -- $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
4561
4562$(IPRT_OUT_DIR)/errmsgwindata-only-defines.h.ts +| $(IPRT_OUT_DIR)/errmsgwindata-only-defines.h: \
4563 $$(bldRTErrMsgWinSorter_1_TARGET)
4564 $(call MSG_GENERATE,,$@,$<)
4565 $(QUIET)"$<" --only-defines "$(IPRT_OUT_DIR)/errmsgwindata-only-defines.h.ts"
4566 $(QUIET)$(CP) --changed -fv -- "$(IPRT_OUT_DIR)/errmsgwindata-only-defines.h.ts" "$(IPRT_OUT_DIR)/errmsgwindata-only-defines.h"
4567
4568
4569#
4570# Sorter for the IPRT status codes.
4571#
4572BLDPROGS += bldRTErrMsgSorter
4573bldRTErrMsgSorter_TEMPLATE = VBoxBldProg
4574bldRTErrMsgSorter_INCS = $(IPRT_OUT_DIR)
4575bldRTErrMsgSorter_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h
4576bldRTErrMsgSorter_SOURCES = common/err/errmsg-sorter.cpp
4577
4578#
4579# Sorter for the windows error codes.
4580#
4581BLDPROGS.win += bldRTErrMsgWinSorter
4582bldRTErrMsgWinSorter_TEMPLATE = VBoxBldProg
4583bldRTErrMsgWinSorter_INCS = $(IPRT_OUT_DIR)
4584bldRTErrMsgWinSorter_DEPS = \
4585 $(IPRT_OUT_DIR)/errmsgwindata.h \
4586 $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
4587bldRTErrMsgWinSorter_SOURCES = win/errmsgwin-sorter.cpp
4588
4589
4590
4591if "$(KBUILD_TARGET)" == "freebsd"
4592 #
4593 # FreeBSDGeneratedKernelHeaders - Generate some kernel interface headers.
4594 #
4595 # These are used by:
4596 # - The RTMp* API in IPRT.
4597 # - VBoxGuest
4598 #
4599 # Note! We cannot give a output path to the awk program, it will always
4600 # generate the header next to the source. So, we'll have to temporarily copy
4601 # the source file to the destination directory to work.
4602 #
4603 VBOX_AWK := /usr/bin/awk
4604 INSTALLS += FreeBSDGeneratedKernelHeaders
4605 FreeBSDGeneratedKernelHeaders_INST = gen-sys-hdrs/
4606 FreeBSDGeneratedKernelHeaders_SOURCES = \
4607 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h \
4608 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h \
4609 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h
4610 FreeBSDGeneratedKernelHeaders_CLEAN = $(FreeBSDGeneratedKernelHeaders_SOURCES)
4611
4612 $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h: $(VBOX_FREEBSD_SRC)/kern/bus_if.m | $$(dir $$@)
4613 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
4614 $(QUIET)$(CP) -f $< $(@D)/bus_if.m
4615 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/bus_if.m -h -p
4616 $(QUIET)$(RM) $(@D)/bus_if.m
4617
4618 $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h: $(VBOX_FREEBSD_SRC)/kern/device_if.m | $$(dir $$@)
4619 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
4620 $(QUIET)$(CP) -f $< $(@D)/device_if.m
4621 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/device_if.m -h -p
4622 $(QUIET)$(RM) $(@D)/device_if.m
4623
4624 $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h: $(VBOX_FREEBSD_SRC)/dev/pci/pci_if.m | $$(dir $$@)
4625 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
4626 $(QUIET)$(CP) -f $< $(@D)/pci_if.m
4627 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/pci_if.m -h -p
4628 $(QUIET)$(RM) $(@D)/pci_if.m
4629endif # FreeBSD
4630
4631
4632#
4633# Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
4634#
4635ldrELFRelocatable.cpp.o: ldrELF.o
4636ldrELFRelocatable.cpp.obj: ldrELF.obj
4637
4638
4639#
4640# Doxygen documentation.
4641#
4642IPRT_DOXYFILE_INPUT_DIRS = \
4643 $(PATH_ROOT)/include/iprt \
4644 $(PATH_ROOT)/include/iprt/cpp \
4645 $(PATH_ROOT)/include/iprt/linux \
4646 $(PATH_ROOT)/include/iprt/nocrt \
4647 $(PATH_ROOT)/include/iprt/nocrt/x86 \
4648 $(PATH_ROOT)/include/iprt/nocrt/amd64 \
4649 $(PATH_ROOT)/include/iprt/nocrt/compiler \
4650 $(VBOX_PATH_RUNTIME_SRC)/include/internal \
4651 $(VBOX_PATH_RUNTIME_SRC)/common/alloc \
4652 $(VBOX_PATH_RUNTIME_SRC)/common/asm \
4653 $(VBOX_PATH_RUNTIME_SRC)/common/checksum \
4654 $(VBOX_PATH_RUNTIME_SRC)/common/dbg \
4655 $(VBOX_PATH_RUNTIME_SRC)/common/err \
4656 $(VBOX_PATH_RUNTIME_SRC)/common/ldr \
4657 $(VBOX_PATH_RUNTIME_SRC)/common/log \
4658 $(VBOX_PATH_RUNTIME_SRC)/common/math \
4659 $(VBOX_PATH_RUNTIME_SRC)/common/math/amd64 \
4660 $(VBOX_PATH_RUNTIME_SRC)/common/math/gcc \
4661 $(VBOX_PATH_RUNTIME_SRC)/common/math/x86 \
4662 $(VBOX_PATH_RUNTIME_SRC)/common/misc \
4663 $(VBOX_PATH_RUNTIME_SRC)/common/path \
4664 $(VBOX_PATH_RUNTIME_SRC)/common/rand \
4665 $(VBOX_PATH_RUNTIME_SRC)/common/string \
4666 $(VBOX_PATH_RUNTIME_SRC)/common/table \
4667 $(VBOX_PATH_RUNTIME_SRC)/common/time \
4668 $(VBOX_PATH_RUNTIME_SRC)/VBox \
4669 $(foreach dir, $(VBOX_PATH_RUNTIME_SRC) $(VBOX_PATH_RUNTIME_SRC)/r3 $(VBOX_PATH_RUNTIME_SRC)/r0drv, \
4670 $(dir) \
4671 $(dir)/darwin \
4672 $(dir)/haiku \
4673 $(dir)/linux \
4674 $(dir)/nt \
4675 $(dir)/os2 \
4676 $(dir)/solaris \
4677 $(dir)/win \
4678 $(dir)/win32 \
4679 $(dir)/win64 \
4680 $(dir)/generic \
4681 )
4682
4683# These must come first in order to make things look nice.
4684IPRT_DOXYFILE_INPUT_FIRST = \
4685 $(PATH_ROOT)/include/iprt/cdefs.h \
4686 $(PATH_ROOT)/include/iprt/types.h \
4687 $(PATH_ROOT)/include/iprt/runtime.h \
4688 $(PATH_ROOT)/include/iprt/param.h \
4689 $(PATH_ROOT)/include/iprt/assert.h \
4690 $(PATH_ROOT)/include/iprt/asm.h
4691
4692IPRT_DOXYFILE_INPUT := \
4693 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(IPRT_DOXYFILE_INPUT_DIRS)))) ) \
4694 $(foreach dir, $(IPRT_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
4695IPRT_DOXYFILE_INPUT := \
4696 $(IPRT_DOXYFILE_INPUT_FIRST) \
4697 $(sort $(filter-out $(IPRT_DOXYFILE_INPUT_FIRST), $(IPRT_DOXYFILE_INPUT)))
4698
4699
4700IPRT_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/iprt
4701BLDDIRS += $(IPRT_DOXYFILE_OUTPUT)
4702
4703includedep $(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt.dep
4704
4705# Generate the Doxyfile
4706$(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt: \
4707 $(VBOX_PATH_RUNTIME_SRC)/Doxyfile \
4708 $(VBOX_PATH_RUNTIME_SRC)/Makefile.kmk \
4709 $(comp-vars IPRT_DOXYFILE_INPUT,DOXYGEN_IPRT_INPUT_PREV,FORCE) \
4710 $(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_IPRT_OUTPUT_PREV,FORCE) \
4711 | $$(dir $$@)
4712 $(QUIET)$(RM) -f $@ [email protected] [email protected]
4713 $(QUIET)$(CP) -f $(VBOX_PATH_RUNTIME_SRC)/Doxyfile [email protected]
4714 $(QUIET)$(APPEND) [email protected]
4715 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(IPRT_DOXYFILE_OUTPUT)"
4716 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(IPRT_DOXYFILE_OUTPUT)/errors"
4717 $(QUIET)$(APPEND) [email protected] 'INCLUDE_PATH = ' \
4718 '$(PATH_ROOT)/include' \
4719 '$(VBOX_PATH_RUNTIME_SRC)/include' \
4720 '$(VBOX_PATH_RUNTIME_SRC)/' \
4721 '$(VBOX_PATH_RUNTIME_SRC)/common/table'
4722 $(QUIET)$(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
4723 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
4724 $(QUIET)$(APPEND) [email protected] 'EXCLUDE = '\
4725 '$(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-flags.cpp' \
4726 '$(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-lower.cpp' \
4727 '$(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-upper.cpp' \
4728 $(QUIET)$(APPEND) [email protected]
4729 $(QUIET)$(APPEND) [email protected] 'INPUT = $(foreach x,$(IPRT_DOXYFILE_INPUT),\$(NLTAB)$(x))'
4730 $(QUIET)$(APPEND) [email protected]
4731 $(QUIET)$(MV) -f [email protected] $@
4732 $(QUIET)$(APPEND) [email protected] "DOXYGEN_IPRT_OUTPUT_PREV = $(IPRT_DOXYFILE_OUTPUT)"
4733 $(QUIET)$(APPEND) [email protected] "DOXYGEN_IPRT_INPUT_PREV = $(IPRT_DOXYFILE_INPUT)"
4734
4735# Do the actual job.
4736$(IPRT_DOXYFILE_OUTPUT)/docs.iprt: $(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt $$(IPRT_DOXYFILE_INPUT) \
4737 | $(IPRT_DOXYFILE_OUTPUT)/
4738 $(QUIET)$(RM) -f $@
4739 $(QUIET)$(RM) -Rf $(IPRT_DOXYFILE_OUTPUT)/html/
4740 $(VBOX_DOXYGEN) $(DOXYGEN_OPTS) $(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt
4741 $(SED) -e '/warning. Unexpected tag .dd. found/d' \
4742 -e '/warning. Unsupported xml.html tag .globalScope. found/d' \
4743 --output $(IPRT_DOXYFILE_OUTPUT)/errors2 \
4744 $(IPRT_DOXYFILE_OUTPUT)/errors
4745 $(CAT) $(IPRT_DOXYFILE_OUTPUT)/errors2
4746 $(SED) -e "/[^ ]/q 1" $(IPRT_DOXYFILE_OUTPUT)/errors2
4747 $(APPEND) $@
4748
4749# aliases
4750docs.iprt: $(IPRT_DOXYFILE_OUTPUT)/docs.iprt
4751if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
4752 docs: $(IPRT_DOXYFILE_OUTPUT)/docs.iprt
4753endif
4754
4755test-doxygen::
4756 @echo test-$(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_IPRT_OUTPUT_PREV,FORCE)
4757 @echo $(IPRT_DOXYFILE_OUTPUT)
4758 @echo $(DOXYGEN_IPRT_OUTPUT_PREV)
4759 @echo $(IPRT_DOXYFILE_INPUT)
4760
4761
4762#
4763# Test mangling.
4764#
4765if1of ($(LIBRARIES), RuntimeR3 RuntimeR0 RuntimeR0Drv RuntimeRC)
4766 test-mangling:: $(IPRT_OUT_DIR)/mangling.run
4767 OTHERS += $(IPRT_OUT_DIR)/mangling.run
4768 OTHER_CLEAN += $(IPRT_OUT_DIR)/mangling.run
4769 $(IPRT_OUT_DIR)/mangling.run: \
4770 $$(RuntimeR3_1_TARGET) \
4771 $$(RuntimeR0_1_TARGET) \
4772 $$(RuntimeR0Drv_1_TARGET) \
4773 $$(RuntimeRC_1_TARGET)
4774 if1of ($(KBUILD_TARGET), win os2)
4775 $(call MSG_L1,IPRT: skipped mangling test.)
4776 else
4777 # Generate a SED script from mangling.h that checks for known symbols.
4778 $(QUIET)$(SED) \
4779 -e '/^# *define.*RT_MANGLER/!d' \
4780 -e 's/^.*RT_MANGLER(\([^)][^)]*\)).*$(DOLLAR)/\/^\1$(DOLLAR)\/b ok/' \
4781 $(PATH_ROOT)/include/iprt/mangling.h \
4782 --output "$@"
4783 $(QUIET)$(APPEND) -n '$@' \
4784 ':bad' \
4785 's/^\(.*\)$(DOLLAR)/error: Missing # define \1 /' \
4786 ':bad-pad' \
4787 '/^.\{0,70\}$(DOLLAR)/ { s/$(DOLLAR)/ /; bbad-pad; }' \
4788 's/define \([^ ]*\) \([ ]*\)$(DOLLAR)/define \1 \2RT_MANGLER(\1)/' \
4789 'p' \
4790 $(if-expr !defined(IPRT_IGNORE_TEST_MANGLING),'q 1') \
4791 '' \
4792 ':ok' \
4793 'd'
4794 # Find the best way to generate a symbol list and subject it to mangling.h.
4795 if $(intersects $(KBUILD_TARGET), linux) && "$(VBOX_GCC_fvisibility-hidden)"
4796 $(call MSG_L1,IPRT: Testing mangling and visiblity for newer gcc...)
4797 $(QUIET)readelf -Ws $^ \
4798 | $(SED) \
4799 -e 's/[[:space:]]\+/ /g' \
4800 -e '/^ *[[:digit:]]\+:/!d' \
4801 -e 's/^ \+[[:digit:]]\+: \+[[:xdigit:]]\+ \+[[:digit:]]\+ \+//' \
4802 -e '/^SECTION/d' \
4803 -e '/^FILE/d' \
4804 -e 's/^[[:alpha:]]\+ \+//' \
4805 -e '/LOCAL/d' \
4806 -e 's/^[[:alpha:]]\+ \+//' \
4807 -e '/^HIDDEN [[:xdigit:]]\+ RT/bkeep-hidden' \
4808 -e '/^HIDDEN [[:xdigit:]]\+ g_[a-z0-9]*RT/bkeep-hidden' \
4809 -e '/^HIDDEN/d' \
4810 -e ':keep-hidden' \
4811 -e 's/^[[:alpha:]]\+ \+//' \
4812 -e '/^UND/d' \
4813 -e 's/^[[:digit:]]\+ \+//' \
4814 \
4815 -e '/^nocrt_/d' \
4816 -e '/^bzero/d' \
4817 -e '/^memchr/d' \
4818 -e '/^memcmp/d' \
4819 -e '/^memcpy/d' \
4820 -e '/^mempcpy/d' \
4821 -e '/^memmove/d' \
4822 -e '/^memset/d' \
4823 -e '/^strchr/d' \
4824 -e '/^strpbrk/d' \
4825 -e '/^_Z7strpbrk/d' \
4826 -e '/^strcmp/d' \
4827 -e '/^strcpy/d' \
4828 -e '/^strncpy/d' \
4829 -e '/^strlen/d' \
4830 -e '/^setjmp/d' \
4831 -e '/^longjmp/d' \
4832 -e '/^_Z[[:alpha:]]*[[:digit:]]\+RTC/d' \
4833 -e '/^_Z[[:alpha:]]*[[:digit:]]\+RTC/d' \
4834 \
4835 -e '/^_ZnwjPv/d' \
4836 -e '/^_ZnwmPv/d' \
4837 -e '/^_ZNSt[1-9]/d' \
4838 \
4839 -e '/^_ZN[a-zA-Z]*St[[:digit:]]*_*[lL]ist/d' \
4840 -e '/^_ZN[a-zA-Z]*[[:digit:]]*__gnu_cxx/d' \
4841 -e '/^_ZNSa.*ElementNode.*/d' \
4842 -e '/^_ZSt.*ElementNode.*/d' \
4843 \
4844 -e '/^_Z[[:digit:]]\+dbus/d' \
4845 -e '/^g_pfn_dbus/d' \
4846 -e '/^_Z13RTDBusLoadLibv/d' \
4847 \
4848 -e '/^g_[ac]VTG/d' \
4849 -e '/^g_VTGObjHeader/d' \
4850 -e '/^g_VTGProbeData/d' \
4851 -e '/^VTGProbeStub/d' \
4852 -e '/^g_achVTGStringTable/d' \
4853 -e '/^g_acVTGProbeEnabled/d' \
4854 \
4855 -e '/^VBoxHost_/d'\
4856 -e '/^VBoxGuest_/d'\
4857 | $(SED) -nf "$@"
4858 endif
4859 $(call MSG_L1,IPRT: Testing mangling using nm...)
4860 $(QUIET)$(VBOX_NM) $^ 2> /dev/null \
4861 | $(SED) -n \
4862 -e 's/^[0-9a-f][0-9a-f]* //' \
4863 -e '/^[TUDB] /!d' \
4864 -e 's/^. //' \
4865 $(if-expr "$(KBUILD_TARGET)" == "darwin" || "$(KBUILD_TARGET)" == "os2" || "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86", \
4866 -e 's/^_//',) \
4867 \
4868 -e '/^g_cchrt/d'\
4869 -e '/^g_crt/d'\
4870 -e '/^g_frt/d'\
4871 -e '/^g_offrt/d'\
4872 -e '/^g_pfnrt/d'\
4873 -e '/^g_rt/d'\
4874 -e '/^g_szrt/d'\
4875 -e '/^g_ProcessSelf/d'\
4876 -e '/^g_u64ProgramStart/d'\
4877 -e '/^g_enmProcessPriority/d'\
4878 -e '/^g_hDbgModStrCache/d'\
4879 -e '/^g_pfnR0Darwin/d'\
4880 -e '/^g_pDarwinLockGroup/d'\
4881 $(if-expr "$(KBUILD_TARGET)" == "solaris", \
4882 -e '/^g_kLdrRdrFileOps/d' \
4883 -e '/^g_pSUPGlobalInfoPage/d' \
4884 -e '/^g_Logger/d' \
4885 -e '/^g_RelLogger/d' \
4886 -e '/^g_VM/d',) \
4887 $(if-expr "$(KBUILD_TARGET)" == "linux", \
4888 -e '/^g_kLdrRdrFileOps/d',) \
4889 \
4890 -e '/^g_[ac]VTG/d' \
4891 -e '/^g_VTGObjHeader/d' \
4892 -e '/^g_VTGProbeData/d' \
4893 -e '/^VTGProbeStub/d' \
4894 -e '/^g_achVTGStringTable/d' \
4895 -e '/^g_acVTGProbeEnabled/d' \
4896 \
4897 -e '/^g_pfn_dbus/d' \
4898 -e '/^RTDBusLoadLib/d' \
4899 \
4900 -e '/^RT/p' \
4901 -e '/^g_/p' \
4902 | $(SED) -nf "$@"
4903 endif
4904endif
4905 $(QUIET)$(APPEND) -t $@
4906
4907if !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_VALIDATIONKIT) && !defined(VBOX_ONLY_DOCS)
4908 #
4909 # Windows build tool.
4910 #
4911 BLDPROGS.win += ntBldSymDb
4912 ntBldSymDb_TEMPLATE = VBoxAdvBldProg
4913 ntBldSymDb_INCS = .
4914 ntBldSymDb_SOURCES = r0drv/nt/ntBldSymDb.cpp
4915endif
4916
4917
4918#
4919# Generate the rules (we're the to sub-makefile).
4920#
4921include $(FILE_KBUILD_SUB_FOOTER)
4922
4923
4924#
4925# Aliases for code templates.
4926#
4927rsa-template.o rsa-template.obj: rsa-core.o rsa-asn1-decoder.o rsa-sanity.o rsa-init.o
4928spc-template.o spc-template.obj: spc-core.o spc-asn1-decoder.o spc-sanity.o spc-init.o
4929taf-template.o taf-template.obj: taf-core.o taf-asn1-decoder.o taf-sanity.o taf-init.o
4930tsp-template.o tsp-template.obj: tsp-core.o tsp-asn1-decoder.o tsp-sanity.o tsp-init.o
4931x509-template.o x509-template.obj: x509-core.o x509-asn1-decoder.o x509-sanity.o x509-init.o
4932pkcs7-template.o pkcs7-template.obj: pkcs7-core.o pkcs7-asn1-decoder.o pkcs7-sanity.o pkcs7-init.o
4933pkcs8-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