VirtualBox

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

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

Runtime: Windows build fixes and updated .def file in preparation for openssl-3.0.1 switch, bugref:10128

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