VirtualBox

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

Last change on this file since 98032 was 97862, checked in by vboxsync, 2 years ago

IPRT/nocrt: Added a simple structured exception handling (SEH) testcase and did a basic implementation of _except_handler4 for 32-bit x86. bugref:10261 ticketref:21303

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