VirtualBox

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

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

iprt/RTExprEval: Early code for a 'simple' expression evaluator a la /bin/expr and such. bugref:9781

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