VirtualBox

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

Last change on this file since 93483 was 93483, checked in by vboxsync, 3 years ago

IPRT: Added generic C implementation of ASMMultU64ByU32DivByU32 (sames as in asm-math.h, though almost inaccessible there). bugref:9898

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