VirtualBox

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

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

Validation Kit/unit tests: Try building the testcases (unit tests) for IPRT when VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING is set. ​bugref:10195

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