VirtualBox

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

Last change on this file since 100192 was 100192, checked in by vboxsync, 18 months ago

*: Some of the easy build fixes for linux.arm64 not warranting their own commit, bugref:10457 [scm fix]

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

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