VirtualBox

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

Last change on this file since 95848 was 95848, checked in by vboxsync, 2 years ago

IPRT/nocrt-streams-win.cpp: Build kludge for VBoxAddInstallNt3x. Will improve/eliminate when switching on VBOX_WITH_NOCRT_STATIC. bugref:10261

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