VirtualBox

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

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

Runtime/efi: Started implementing the functionality to parse, create and modify EFI signature databases, bugref:9580

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