VirtualBox

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

Last change on this file since 88311 was 88215, checked in by vboxsync, 4 years ago

Solaris-specific changes needed for building VBox on Solaris 11.4.
ticketref:9956

/Config.kmk,tools/Makefile.kmk: The Solaris package FMRI changed in
Solaris 11.4 so further care is needed when parsing the 'pkg contents -o
pkg.fmri' output. Some further simplification done as well as only the
Solaris 11 update and build number are needed for feature checking
elsewhere.

Additions/solaris/DRM: In Solaris 11 FCS <sys/queue.h> was taken from
FreeBSD and added to the OS. VirtualBox copied this file to
Additions/solaris/DRM/include and it is included by
Additions/solaris/DRM/include/drmP.h. Solaris 11.4 modified <sys/modctl.h>
to include <sys/queue.h> and drmP.h includes <sys/modctl.h> so thus
drmP.h shouldn't include queue.h on Solaris 11.4 FCS and later.

Additions/solaris/SharedFolders,Runtime/r0drv/solaris: Solaris 11.4
removed the 'alignment' argument from the VM map_addr() and
choose_addr() routines so we now leverage RTR0DbgKrnlInfoQuerySymbol()
at module initialization to determine which version of these functions
needs to be invoked.

Runtime/r0drv/solaris: In Solaris 11.4 the VM seg_ops getpolicy()
routine changed its return value and added an extra argument but since
we don't need to do anything for this and Solaris 10 and 11 both check
for a non-NULL s_ops->getpolicy() entry or else for s_ops->capable()
before calling getpolicy() we just set the s_SegVBoxOps getpolicy()
entry to NULL. Solaris 11.4 also added an extra argument to the VM
seg_ops dump() routine but there aren't any checks made before calling
it. Since we don't do anything with dump() we just use #ifdefs to get
the correct prototype at build-time.

Additions/x11/vboxvideo: The Xorg vboxvideo_drv.so shared object on
Solaris 11.4 has an undefined weak symbol reference to assert_c99
which needs to be added to the undefined_xorg file.

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