VirtualBox

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

Last change on this file since 100310 was 100307, checked in by vboxsync, 17 months ago

Runtime,Additions,HostDrivers: Provide API to query the host page size and associated parameters for architectures where the used page size can vary (like on linux.arm64 depending on the kernel config), bugref:10476

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