VirtualBox

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

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

*.kmk: Introducing VBOX_WITH_R0_MODULES and VBOX_WITH_HWVIRT for helping with bugref:9898 and bugref:9044 (apple stuff at least).

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