VirtualBox

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

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

IPRT/env-generic.cpp: Refactored RTEnvCloneEx, rewriting the cloning of the default environment on windows to be more no-crt compatible and race free. Don't expose RTEnvGetExecEnvP on Windows, removing it from the stable function list. bugref:10261

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 148.7 KB
Line 
1# $Id: Makefile.kmk 95842 2022-07-26 21:11:14Z 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 r3/win/nocrt-startup-exe-win.cpp \
2310 r3/win/nocrt-alloc-win.cpp \
2311 r3/win/nocrt-streams-win.cpp
2312endif
2313
2314
2315#
2316# RuntimeGuestR3-x86 - Same as RuntimeGuestR3, except that it's targeting x86.
2317#
2318RuntimeGuestR3-x86_EXTENDS := RuntimeGuestR3
2319RuntimeGuestR3-x86_BLD_TRG_ARCH := x86
2320
2321
2322#
2323# RuntimeGuestR3Shared - Guest Additions Runtime (static/dll).
2324#
2325RuntimeGuestR3Shared_TEMPLATE := VBoxGuestR3Dll
2326RuntimeGuestR3Shared_EXTENDS := RuntimeGuestR3
2327RuntimeGuestR3Shared_INST = $(INST_ADDITIONS_LIB)
2328
2329
2330#
2331# RuntimeGuestR3Shared-x86 - Same as RuntimeGuestR3Shared, except that it's targeting x86.
2332#
2333RuntimeGuestR3Shared-x86_EXTENDS := RuntimeGuestR3Shared
2334RuntimeGuestR3Shared-x86_BLD_TRG_ARCH := x86
2335
2336
2337#
2338# VBoxRT - Shared Object / DLL version.
2339#
2340VBoxRT_TEMPLATE = VBoxR3DllNoPic
2341VBoxRT_SDKS = VBOX_LIBXML2
2342ifdef VBOX_WITH_LIBCURL
2343 VBoxRT_SDKS += VBOX_LIBCURL
2344endif
2345VBoxRT_SDKS += VBOX_OPENSSL
2346VBoxRT_SDKS.win = $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
2347if1of ($(KBUILD_TARGET), win)
2348VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE) $(VBOX_INST_TOOLS)
2349else if1of ($(KBUILD_TARGET)$(VBOX_WITH_HARDENING), darwin win$(VBOX_WITH_HARDENING))
2350VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE)
2351endif
2352VBoxRT_DEFS := $(filter-out RT_NO_GIP, $(RuntimeR3_DEFS)) \
2353 IPRT_WITH_OPENSSL \
2354 IPRT_WITH_XAR \
2355 IPRT_WITH_GHIDRA_DBG_MOD \
2356 $(if-expr !defined(VBOX_WITH_ALT_HASH_CODE),IPRT_WITHOUT_SHA512T224 IPRT_WITHOUT_SHA512T256,)
2357ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
2358 VBoxRT_DEFS += RT_NO_GIP
2359endif
2360ifdef VBOX_WITH_LIBCURL
2361 VBoxRT_DEFS += IPRT_WITH_HTTP
2362endif
2363ifdef RTALLOC_REPLACE_MALLOC
2364 VBoxRT_DEFS += RTALLOC_REPLACE_MALLOC
2365endif
2366if defined(VBOX_WITH_DTRACE_R3) && !defined(VBOX_ONLY_VALIDATIONKIT)
2367 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
2368 VBoxRT_DEFS += IPRT_WITH_DTRACE IPRT_DTRACE_INCLUDE="dtrace/iprt.h"
2369 else
2370 VBoxRT_DEFS += IPRT_WITH_DTRACE IPRT_DTRACE_INCLUDE=\"dtrace/iprt.h\"
2371 endif
2372endif
2373VBoxRT_DEFS.$(KBUILD_TYPE) := $(RuntimeR3_DEFS.$(KBUILD_TYPE))
2374VBoxRT_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
2375VBoxRT_SOURCES := \
2376 VBox/VBoxRTDeps.cpp \
2377 $(filter-out common/checksum/crc32.cpp, \
2378 $(if-expr defined(VBOX_WITH_ALT_HASH_CODE), $(RuntimeR3_SOURCES), \
2379 $(patsubst common/checksum/alt-%,common/checksum/openssl-%,$(RuntimeR3_SOURCES)) ) ) \
2380 common/checksum/crc32-zlib.cpp \
2381 common/dbg/dbgmodghidra.cpp \
2382 common/fuzz/fuzz.cpp \
2383 common/fuzz/fuzz-config.cpp \
2384 common/fuzz/fuzz-observer.cpp \
2385 common/fuzz/fuzz-target-recorder.cpp \
2386 common/fuzz/fuzzmastercmd.cpp \
2387 common/fuzz/fuzzclientcmd.cpp
2388ifneq ($(KBUILD_TARGET),win)
2389VBox/VBoxRTDeps.cpp_CXXFLAGS = -Wno-deprecated-declarations
2390endif
2391ifdef VBOX_WITH_LIBCURL
2392 VBoxRT_SOURCES += \
2393 common/misc/s3.cpp \
2394 generic/http-curl.cpp \
2395 common/rest/rest-primary-object-types.cpp \
2396 common/rest/rest-binary.cpp \
2397 common/rest/RTCRestAnyObject.cpp \
2398 common/rest/RTCRestArrayBase.cpp \
2399 common/rest/RTCRestClientApiBase.cpp \
2400 common/rest/RTCRestClientApiBaseOci.cpp \
2401 common/rest/RTCRestClientRequestBase.cpp \
2402 common/rest/RTCRestClientResponseBase.cpp \
2403 common/rest/RTCRestJsonPrimaryCursor.cpp \
2404 common/rest/RTCRestStringMapBase.cpp \
2405 common/rest/RTCRestOutputBase.cpp \
2406 common/rest/RTCRestOutputPrettyBase.cpp \
2407 common/rest/RTCRestOutputPrettyToString.cpp \
2408 common/rest/RTCRestOutputToString.cpp
2409endif
2410if defined(VBOX_WITH_DTRACE_R3) && !defined(VBOX_ONLY_VALIDATIONKIT)
2411 VBoxRT_SOURCES += \
2412 iprt.d
2413endif
2414VBoxRT_SOURCES.$(KBUILD_TARGET) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
2415VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
2416VBoxRT_SOURCES.$(KBUILD_TARGET).x86 := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).x86)
2417VBoxRT_SOURCES.$(KBUILD_TARGET).amd64 := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).amd64)
2418VBoxRT_SOURCES.$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
2419VBoxRT_SOURCES.x86 := $(RuntimeR3_SOURCES.x86)
2420VBoxRT_SOURCES.amd64 := $(RuntimeR3_SOURCES.amd64)
2421VBoxRT_SOURCES.win += \
2422 r3/win/dllmain-win.cpp \
2423 $(VBoxRT_0_OUTDIR)/VBoxRT.def
2424VBoxRT_CLEAN.win += \
2425 $(VBoxRT_0_OUTDIR)/VBoxRT.def
2426VBoxRT_INCS := $(RuntimeR3_INCS)
2427VBoxRT_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
2428VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
2429VBoxRT_LIBS = \
2430 $(SDK_VBOX_LZF_LIBS) \
2431 $(PATH_STAGE_LIB)/SUPR3$(VBOX_SUFF_LIB)
2432ifndef SDK_VBOX_LIBXML2_LIBS
2433 VBoxRT_LIBS += \
2434 $(PATH_STAGE_LIB)/VBox-libxml2$(VBOX_SUFF_LIB)
2435endif
2436VBoxRT_LIBS += \
2437 $(SDK_VBOX_ZLIB_LIBS)
2438ifndef SDK_VBOX_OPENSSL_LIBS
2439 VBoxRT_LIBS += \
2440 $(PATH_STAGE_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB) \
2441 $(PATH_STAGE_LIB)/VBox-libssl$(VBOX_SUFF_LIB)
2442endif
2443ifdef IPRT_WITH_LZO
2444 VBoxRT_LIBS += lzo2
2445endif
2446ifdef RTALLOC_REPLACE_MALLOC
2447VBoxRT_LIBS += \
2448 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
2449endif
2450VBoxRT_LIBS.darwin = \
2451 iconv
2452VBoxRT_LIBS.freebsd = \
2453 iconv \
2454 rt
2455VBoxRT_LIBS.haiku = \
2456 iconv
2457VBoxRT_LIBS.solaris = \
2458 kstat \
2459 contract
2460ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)
2461 # SMBIOS not available on Solaris SPARC.
2462 VBoxRT_LIBS.solaris += smbios
2463endif
2464VBoxRT_LIBS.win += \
2465 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/wbemuuid.lib \
2466 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
2467VBoxRT_LDFLAGS.darwin = \
2468 -framework IOKit \
2469 -framework CoreFoundation \
2470 -framework CoreServices \
2471 -framework Security \
2472 -framework SystemConfiguration \
2473 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxRT.dylib
2474VBoxRT_LDFLAGS.win = /MANIFEST \
2475 /delayload:user32.dll \
2476 /delayload:shell32.dll \
2477 /delayload:ole32.dll \
2478 /delayload:oleaut32.dll \
2479 /delayload:advapi32.dll
2480
2481if1of (VBoxRT,$(DLLS))
2482 $(call VBOX_SET_VER_INFO_DLL,VBoxRT,VirtualBox Runtime)
2483endif
2484
2485
2486if defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86"
2487 #
2488 # Hacks for running tests on NT 4. Really ugly!
2489 #
2490 # We put most of the CRT in VBoxRT because we cannot even load msvcr100.dll
2491 # or msvcp100.dll on NT4 because of kernel32.dll dependencies. More hacks
2492 # in RuntimeR3VccTricks.
2493 #
2494 TEMPLATE_VBoxR3RuntimeDllItself = xx
2495 TEMPLATE_VBoxR3RuntimeDllItself_EXTENDS = VBoxR3RuntimeDll
2496 TEMPLATE_VBoxR3RuntimeDllItself_LIBS.win.x86 = \
2497 $(filter-out $(PATH_STAGE_LIB)/RuntimeR3VccTricks%, $(TEMPLATE_VBoxR3RuntimeDll_LIBS.win.x86))
2498 TEMPLATE_VBoxR3RuntimeDllItself_DEFS += IN_RING3 VCC_FAKES_TARGET_$(VBOX_VCC_TOOL_STEM) VCC_FAKES_TARGET=$(substr $(VBOX_VCC_TOOL_STEM),-3)
2499 TEMPLATE_VBoxR3RuntimeDllItself_SOURCES = \
2500 r3/win/vcc-fakes-kernel32.cpp \
2501 r3/win/vcc-fakes-kernel32-A.asm \
2502 r3/win/vcc-fakes-ws2_32.cpp \
2503 r3/win/vcc-fakes-ws2_32-A.asm \
2504 r3/win/vcc-fakes-ntdll.cpp \
2505 r3/win/vcc-fakes-ntdll-A.asm \
2506 r3/win/vcc-fakes-msvcrt.cpp
2507 VBoxRT_TEMPLATE = VBoxR3RuntimeDllItself
2508 VBoxRT_TEMPLATE.win.x86 = VBoxR3RuntimeDllItself
2509 VBoxRT_DEFS.win.x86 = $(TEMPLATE_VBoxR3RuntimeDll_DEFS.win.x86) \
2510 _CRTIMP_PURE="__declspec(dllexport)" VCC_FAKES_TARGET_$(VBOX_VCC_TOOL_STEM) VCC_FAKES_TARGET=$(substr $(VBOX_VCC_TOOL_STEM),-3)
2511 VBoxRT_LDFLAGS.win.x86 = /IGNORE:4049 /IGNORE:4217
2512 VBoxRT_LIBS.win.x86 = \
2513 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/oldnames.lib \
2514 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/libcmt.lib \
2515 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/libcpmt.lib
2516endif
2517
2518
2519#
2520# HACK ALERT! Make testcase run during build on SELinux boxes.
2521# Create a dummy DLL that ensure that VBoxRT is installed
2522# during the DLL pass and cleaned up later.
2523#
2524ifeq ($(KBUILD_TARGET),linux)
2525 if1of (VBoxRT, $(DLLS))
2526 ifneq ($(wildcard /usr/bin/chcon),)
2527VBoxRT_INSTTYPE = none
2528VBoxRT_DEBUG_INSTTYPE = both
2529
2530VBoxRT-x86_INSTTYPE = $(NO_SUCH_VARIABLE)
2531
2532DLLS += VBoxRTDummy
2533VBoxRTDummy_TEMPLATE = VBoxR3Dll
2534VBoxRTDummy_INSTTYPE = none
2535VBoxRTDummy_LIBS = $(PATH_STAGE_BIN)/VBoxRT.so
2536VBoxRTDummy_CLEAN = $(PATH_STAGE_BIN)/VBoxRT.so
2537BLDDIRS += $(PATH_STAGE_BIN)
2538
2539$(PATH_STAGE_BIN)/VBoxRT.so: $$(VBoxRT_1_TARGET) | $$(dir $$@)
2540 $(INSTALL) $< $@
2541 chcon -t texrel_shlib_t $@ || true
2542
2543VBoxRT:: VBoxRTDummy
2544 endif # chcon present.
2545 endif # building VBoxRT
2546endif # linux
2547
2548if1of ($(DLLS), VBoxRT)
2549 # .def file for windows.
2550 $(call KB_FN_DO_PASS0_ON_TARGET,VBoxRT)
2551 $(VBoxRT_0_OUTDIR)/VBoxRT.def: \
2552 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-$$(if-expr $$(KBUILD_TARGET_ARCH) == amd64,win64,win32).def \
2553 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-openssl-3.0.def \
2554 $(if-expr "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" && defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES)\
2555 ,$(PATH_SUB_CURRENT)/r3/win/VBoxRT-msvcr100-win32.def ,) \
2556 | $$(dir $$@) #$(PATH_SUB_CURRENT)/r3/win/VBoxRT-msvcp100-win32.def
2557 $(RM) -f -- $@
2558 $(SED) --output "$@" \
2559 $(if-expr "$(KBUILD_TARGET_ARCH)" == "x86" ,-e "/not-x86/d", -e "/only-x86/d") \
2560 $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64",-e "/not-amd64/d",-e "/only-amd64/d") \
2561 $(if-expr "$(KBUILD_TARGET_ARCH)" == "arm64",-e "/not-arm64/d",-e "/only-arm64/d") \
2562 $(if-expr "$(substr $(if-expr $(KBUILD_TARGET) != 'win',$(VBOX_GCC_std), $(VBOX_VCC_std)),-2)" >= "17" \
2563 ,-e "/before-noexcept/d", -e "/after-noexcept/d") \
2564 $^
2565 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
2566 $(call KB_FN_AUTO_CMD_DEPS,$(VBoxRT_0_OUTDIR)/VBoxRT.def)
2567endif
2568
2569
2570#
2571# VBoxRT-x86 - 32-bit version of VBoxRT
2572#
2573VBoxRT-x86_EXTENDS = VBoxRT
2574VBoxRT-x86_TEMPLATE = VBoxR3Dll-x86
2575VBoxRT-x86_INST.win = $(INST_DLL)x86/
2576VBoxRT-x86_SDKS = VBOX_LIBXML2
2577ifdef VBOX_WITH_LIBCURL
2578 VBoxRT-x86_SDKS += VBOX_LIBCURL-x86
2579endif
2580VBoxRT-x86_SDKS += VBOX_OPENSSL-x86
2581
2582VBoxRT-x86_LIBS = \
2583 $(SDK_VBOX_LZF_LIBS-x86)
2584if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
2585VBoxRT-x86_LIBS += \
2586 $(PATH_STAGE_LIB)/SUPR3-x86$(VBOX_SUFF_LIB)
2587endif
2588ifndef SDK_VBOX_LIBXML2_LIBS
2589 VBoxRT-x86_LIBS += \
2590 $(PATH_STAGE_LIB)/VBox-libxml2-x86$(VBOX_SUFF_LIB)
2591endif
2592VBoxRT-x86_LIBS += \
2593 $(SDK_VBOX_ZLIB_LIBS-x86)
2594ifndef SDK_VBOX_OPENSSL_LIBS
2595 VBoxRT-x86_LIBS += \
2596 $(PATH_STAGE_LIB)/VBox-libcrypto-x86$(VBOX_SUFF_LIB) \
2597 $(PATH_STAGE_LIB)/VBox-libssl-x86$(VBOX_SUFF_LIB)
2598endif
2599ifdef IPRT_WITH_LZO
2600 VBoxRT-x86_LIBS += lzo2
2601endif
2602VBoxRT-x86_LIBS.darwin = \
2603 iconv
2604VBoxRT-x86_LIBS.freebsd = \
2605 iconv \
2606 rt
2607VBoxRT-x86_LIBS.haiku = \
2608 iconv
2609VBoxRT-x86_LIBS.solaris = \
2610 kstat \
2611 contract
2612ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)
2613 # SMBIOS not available on Solaris SPARC.
2614 VBoxRT-x86_LIBS.solaris += smbios
2615endif
2616VBoxRT-x86_LIBS.win += \
2617 $(PATH_SDK_$(VBOX_WINPSDK)_LIB.x86)/wbemuuid.lib \
2618 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/delayimp.lib
2619
2620VBoxRT-x86_SOURCES.win = $(filter-out %.def %.rc,$(VBoxRT_SOURCES.win)) \
2621 $(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def
2622VBoxRT-x86_CLEAN += $(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def
2623
2624if1of (VBoxRT-x86,$(DLLS))
2625 $(call VBOX_SET_VER_INFO_DLL,VBoxRT-x86,VirtualBox 32-bit Runtime)
2626endif
2627
2628if1of ($(DLLS), VBoxRT-x86)
2629 # .def file for windows.
2630 $(call KB_FN_DO_PASS0_ON_TARGET,VBoxRT-x86)
2631 $(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def: \
2632 $(VBOX_PATH_RUNTIME_SRC)/r3/win/VBoxRT-win32.def \
2633 | $$(dir $$@) # Hopefully no need to export openssl here.
2634 $(RM) -f -- $@
2635 $(SED) --output "$@" \
2636 -e "/not-x86/d" \
2637 -e "/only-amd64/d" \
2638 -e "/only-arm64/d" \
2639 $(if-expr "$(substr $(if-expr $(KBUILD_TARGET) != 'win',$(VBOX_GCC_std), $(VBOX_VCC_std)),-2)" >= "17" \
2640 ,-e "/before-noexcept/d", -e "/after-noexcept/d") \
2641 $(VBOX_PATH_RUNTIME_SRC)/r3/win/VBoxRT-win32.def
2642 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
2643 $(call KB_FN_AUTO_CMD_DEPS,$(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def)
2644endif
2645
2646#
2647# VBoxRTImp - Import library/hack.
2648#
2649ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
2650$(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def VBox/VBoxRTImp-vcc64.def r3/win/VBoxRT-win64.def)
2651else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
2652$(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def VBox/VBoxRTImp-vcc32.def r3/win/VBoxRT-win32.def)
2653else
2654$(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def VBox/VBoxRTImp-gcc.def)
2655endif
2656
2657
2658if1of ($(KBUILD_TARGET),win linux darwin) # remove later
2659if1of ($(KBUILD_TARGET_ARCH),x86 amd64) ## @todo bugref:9898
2660if1of (VBoxRT,$(DLLS))
2661 #
2662 # VBoxRTImpCheck - Import library check.
2663 #
2664 PROGRAMS += VBoxRTStableCheck
2665 VBoxRTStableCheck_TEMPLATE = VBOXR3TSTEXE
2666 VBoxRTStableCheck_SOURCES = \
2667 VBox/VBoxRTStableCheck.cpp \
2668 $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm
2669 VBoxRTStableCheck_LIBS = \
2670 $(LIB_RUNTIME)
2671 VBoxRTStableCheck_CLEAN = \
2672 $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm
2673 $(call KB_FN_DO_PASS0_ON_TARGET,VBoxRTStableCheck)
2674
2675 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
2676 $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: \
2677 $(PATH_SUB_CURRENT)/VBox/DefToAsmExterns.sed \
2678 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def \
2679 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-vcc64.def \
2680 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-win64.def \
2681 | $$(dir $$@)
2682 else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
2683 $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: \
2684 $(PATH_SUB_CURRENT)/VBox/DefToAsmExternsVcc32.sed \
2685 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def \
2686 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-vcc32.def \
2687 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-win32.def | $$(dir $$@)
2688 else
2689 $(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: \
2690 $(PATH_SUB_CURRENT)/VBox/DefToAsmExterns.sed \
2691 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def \
2692 $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-gcc.def | $$(dir $$@)
2693 endif
2694 $(APPEND) -tn "$@" '%include "iprt/asmdefs.mac"' ''
2695 $(SED) --append "$@" \
2696 -e "/not-$(KBUILD_TARGET)/d" \
2697 $(if-expr "$(KBUILD_TARGET)" == "linux" ,, -e "/only-linux/d") \
2698 $(if-expr "$(KBUILD_TARGET)" == "win" ,, -e "/only-win/d") \
2699 $(if-expr "$(KBUILD_TARGET)" == "darwin",, -e "/only-darwin/d") \
2700 $(if-expr "$(KBUILD_TARGET_ARCH)" == "x86" ,-e "/not-x86/d", -e "/only-x86/d") \
2701 $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64",-e "/not-amd64/d",-e "/only-amd64/d") \
2702 $(if-expr "$(KBUILD_TARGET_ARCH)" == "arm64",-e "/not-arm64/d",-e "/only-arm64/d") \
2703 $(if-expr "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "darwin.arm64",, -e "/only-darwin.arm64/d") \
2704 $(if-expr "$(substr $(if-expr $(KBUILD_TARGET) != 'win',$(VBOX_GCC_std), $(VBOX_VCC_std)),-2)" >= "17" \
2705 ,-e "/before-noexcept/d", -e "/after-noexcept/d") \
2706 -f "$<" $(filter %.def, $^)
2707 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
2708 $(call KB_FN_AUTO_CMD_DEPS,$(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm)
2709
2710endif
2711endif ## @todo bugref:9898
2712endif # remove later
2713
2714
2715#
2716# RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
2717# This is used together with VBoxRT.
2718#
2719## @todo the *_alias.c stuff is busted, remove and use RT_WITH_NOCRT_ALIASES instead.
2720RuntimeR3NoCRTGCC_TEMPLATE = VBoxNoCrtGccLib
2721RuntimeR3NoCRTGCC_LIBSUFF = $(VBOX_SUFF_LIB)
2722ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
2723 RuntimeR3NoCRTGCC_DEFS += RT_NO_GIP
2724endif
2725RuntimeR3NoCRTGCC_INCS = include
2726RuntimeR3NoCRTGCC_SOURCES := \
2727 common/misc/sanity-cpp.cpp \
2728 common/misc/sanity-c.c \
2729 \
2730 $(RuntimeNoCrt_SOURCES)
2731
2732if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
2733RuntimeR3NoCRTGCC_SOURCES += \
2734 common/math/ceill.asm \
2735 common/math/cosl.asm \
2736 common/math/fabs.asm \
2737 common/math/fabsf.asm \
2738 common/math/fabsl.asm \
2739 common/math/floor.asm \
2740 common/math/floorf.asm \
2741 common/math/floorl.asm \
2742 common/math/ldexpl.asm \
2743 common/math/llrint.asm \
2744 common/math/llrintf.asm \
2745 common/math/llrintl.asm \
2746 common/math/logl.asm \
2747 common/math/lrint.asm \
2748 common/math/lrintf.asm \
2749 common/math/lrintl.asm \
2750 common/math/remainder.asm \
2751 common/math/remainderf.asm \
2752 common/math/remainderl.asm \
2753 common/math/sinl.asm \
2754 common/math/tanl.asm \
2755 common/math/trunc.asm \
2756 common/math/truncf.asm \
2757 common/math/truncl.asm \
2758 \
2759 common/string/memchr_alias.c \
2760 common/string/memcmp_alias.c \
2761 common/string/memcpy_alias.c \
2762 common/string/memmove_alias.c \
2763 common/string/memset_alias.c \
2764 common/string/strchr_alias.c \
2765 common/string/strcmp_alias.c \
2766 common/string/strlen_alias.c
2767endif
2768
2769RuntimeR3NoCRTGCC_SOURCES.x86 = \
2770 common/math/x86/fenv-x86.c \
2771 common/math/gcc/adddi3.c \
2772 common/math/gcc/anddi3.c \
2773 common/math/gcc/ashldi3.c \
2774 common/math/gcc/ashrdi3.c \
2775 common/math/gcc/cmpdi2.c \
2776 common/math/gcc/divdi3.c \
2777 common/math/gcc/divmoddi4.c \
2778 common/math/gcc/iordi3.c \
2779 common/math/gcc/lshldi3.c \
2780 common/math/gcc/lshrdi3.c \
2781 common/math/gcc/moddi3.c \
2782 common/math/gcc/muldi3.c \
2783 common/math/gcc/negdi2.c \
2784 common/math/gcc/notdi2.c \
2785 common/math/gcc/qdivrem.c \
2786 common/math/gcc/subdi3.c \
2787 common/math/gcc/ucmpdi2.c \
2788 common/math/gcc/udivdi3.c \
2789 common/math/gcc/udivmoddi4.c \
2790 common/math/gcc/umoddi3.c \
2791 common/math/gcc/xordi3.c
2792
2793#
2794# RuntimeR3NoCRT - For windows applications w/o any runtime library.
2795# Experimental.
2796#
2797RuntimeR3NoCrt_TEMPLATE := VBoxR3StaticNoCrt
2798RuntimeR3NoCrt_INCS := include
2799RuntimeR3NoCrt_DEFS := \
2800 RT_NO_STRICT \
2801 IPRT_NO_ALLOCA_TROUBLE \
2802 IPRT_GETOPT_WITHOUT_NETWORK_ADDRESSES
2803RuntimeR3NoCrt_SOURCES := \
2804 common/string/straprintf.cpp \
2805 common/string/strformat.cpp \
2806 common/string/RTStrFormat.cpp \
2807 common/string/strformatnum.cpp \
2808 common/string/strformatrt.cpp \
2809 common/string/strformattype.cpp \
2810 common/string/strprintf.cpp \
2811 common/string/strprintf-ellipsis.cpp \
2812 common/string/strprintf2.cpp \
2813 common/string/strprintf2-ellipsis.cpp \
2814 common/string/stringalloc.cpp \
2815 common/string/strtonum.cpp \
2816 common/string/RTStrNLen.cpp \
2817 common/string/RTStrCmp.cpp \
2818 common/string/RTStrNCmp.cpp \
2819 common/string/RTStrICmpAscii.cpp \
2820 common/string/RTStrNICmpAscii.cpp \
2821 common/string/RTStrCopy.cpp \
2822 common/string/RTStrEnd.asm \
2823 common/string/RTUtf16Copy.cpp \
2824 common/string/utf-16.cpp \
2825 common/string/utf-8.cpp \
2826 common/path/RTPathFilename.cpp \
2827 common/misc/getopt.cpp \
2828 common/misc/getoptargv.cpp \
2829 common/misc/message.cpp \
2830 common/err/errmsg.cpp \
2831 generic/uuid-generic.cpp \
2832 generic/rtStrFormatKernelAddress-generic.cpp
2833
2834RuntimeR3NoCrt_SOURCES.x86 := \
2835 common/string/memcpy.asm \
2836 common/string/memchr.asm \
2837 common/string/memcmp.asm \
2838 common/string/memmove.asm \
2839 common/string/memset.asm \
2840 common/string/strlen.asm \
2841 common/string/strchr.asm \
2842 common/string/strcmp.asm \
2843 common/string/strncmp.asm
2844RuntimeR3NoCrt_SOURCES.amd64 := \
2845 common/string/memcpy.asm \
2846 common/string/memchr.asm \
2847 common/string/memcmp.asm \
2848 common/string/memmove.asm \
2849 common/string/memset.asm \
2850 common/string/strlen.asm \
2851 common/string/strchr.asm \
2852 common/string/strcmp.asm \
2853 common/string/strncmp.asm \
2854
2855RuntimeR3NoCrt_SOURCES.win := \
2856 r3/win/nocrt-startup-exe-win.cpp \
2857 r3/win/nocrt-alloc-win.cpp \
2858 r3/win/nocrt-streams-win.cpp \
2859 \
2860 win/errmsgwin.cpp
2861
2862#
2863# RuntimeR0 - Ring-0 library for VMMR0.
2864#
2865RuntimeR0_TEMPLATE = VBoxR0
2866RuntimeR0_DEFS = IN_RT_R0 RT_WITH_VBOX NOFILEID
2867ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
2868 RuntimeR0_DEFS += RT_NO_GIP
2869endif
2870if defined(VBOX_WITH_DTRACE_R0) && !defined(VBOX_ONLY_VALIDATIONKIT)
2871 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
2872 RuntimeR0_DEFS += IPRT_WITH_DTRACE IPRT_DTRACE_PREFIX=VBOXVMM_ IPRT_DTRACE_INCLUDE="dtrace/VBoxVMM.h"
2873 else
2874 RuntimeR0_DEFS += IPRT_WITH_DTRACE IPRT_DTRACE_PREFIX=VBOXVMM_ IPRT_DTRACE_INCLUDE=\"dtrace/VBoxVMM.h\"
2875 endif
2876endif
2877RuntimeR0_INCS = include
2878RuntimeR0_SOURCES := \
2879 $(if $(VBOX_ONLY_VALIDATIONKIT),,../VMM/VBoxVMM.d) \
2880 common/checksum/crc32c.cpp \
2881 common/log/logellipsis.cpp \
2882 common/log/logrelellipsis.cpp \
2883 common/log/logcom.cpp \
2884 common/log/logformat.cpp \
2885 common/log/tracebuf.cpp \
2886 common/log/tracedefault.cpp \
2887 common/log/RTLogCreateEx.cpp \
2888 common/log/RTLogSetR0ThreadNameF.cpp \
2889 common/misc/RTAssertMsg1Weak.cpp \
2890 common/misc/RTAssertMsg2.cpp \
2891 common/misc/RTAssertMsg2Add.cpp \
2892 common/misc/RTAssertMsg2AddWeak.cpp \
2893 common/misc/RTAssertMsg2AddWeakV.cpp \
2894 common/misc/RTAssertMsg2Weak.cpp \
2895 common/misc/RTAssertMsg2WeakV.cpp \
2896 common/misc/buildconfig.cpp \
2897 common/misc/once.cpp \
2898 common/misc/sanity-c.c \
2899 common/misc/sanity-cpp.cpp \
2900 common/misc/term.cpp \
2901 common/path/RTPathFilename.cpp \
2902 common/rand/rand.cpp \
2903 common/rand/randadv.cpp \
2904 common/rand/randparkmiller.cpp \
2905 common/string/strprintf-ellipsis.cpp \
2906 common/string/strprintf2-ellipsis.cpp \
2907 common/string/strhash1.cpp \
2908 common/string/strncmp.cpp \
2909 common/string/strpbrk.cpp \
2910 common/string/strtonum.cpp \
2911 common/string/RTStrCat.cpp \
2912 common/string/RTStrCatEx.cpp \
2913 common/string/RTStrCatP.cpp \
2914 common/string/RTStrCatPEx.cpp \
2915 common/string/RTStrCopyEx.cpp \
2916 common/string/RTStrCopyP.cpp \
2917 common/string/RTStrCopyPEx.cpp \
2918 common/string/RTStrCmp.cpp \
2919 common/string/RTStrICmpAscii.cpp \
2920 common/string/RTStrNICmpAscii.cpp \
2921 common/string/RTStrNLen.cpp \
2922 common/string/RTStrNLenEx.cpp \
2923 common/table/avlgcptr.cpp \
2924 common/table/avlhcphys.cpp \
2925 common/table/avllu32.cpp \
2926 common/table/avlogcphys.cpp \
2927 common/table/avlogcptr.cpp \
2928 common/table/avlohcphys.cpp \
2929 common/table/avloioport.cpp \
2930 common/table/avlpv.cpp \
2931 common/table/avlrogcphys.cpp \
2932 common/table/avlrogcptr.cpp \
2933 common/table/avlroioport.cpp \
2934 common/table/avlroogcptr.cpp \
2935 common/table/avlu32.cpp \
2936 common/table/avlou32.cpp \
2937 common/time/timesup.cpp \
2938 generic/RTAssertShouldPanic-generic.cpp \
2939 generic/critsect-generic.cpp \
2940 generic/critsectrw-generic.cpp \
2941 generic/RTRandAdvCreateSystemFaster-generic.cpp \
2942 generic/RTRandAdvCreateSystemTruer-generic.cpp \
2943 \
2944 $(RuntimeNoCrt_SOURCES)
2945
2946if1of ($(KBUILD_TARGET), darwin solaris freebsd os2)
2947RuntimeR0_SOURCES += \
2948 common/math/gcc/adddi3.c \
2949 common/math/gcc/anddi3.c \
2950 common/math/gcc/ashldi3.c \
2951 common/math/gcc/ashrdi3.c \
2952 common/math/gcc/cmpdi2.c \
2953 common/math/gcc/divdi3.c \
2954 common/math/gcc/divmoddi4.c \
2955 common/math/gcc/iordi3.c \
2956 common/math/gcc/lshldi3.c \
2957 common/math/gcc/lshrdi3.c \
2958 common/math/gcc/moddi3.c \
2959 common/math/gcc/muldi3.c \
2960 common/math/gcc/negdi2.c \
2961 common/math/gcc/notdi2.c \
2962 common/math/gcc/qdivrem.c \
2963 common/math/gcc/subdi3.c \
2964 common/math/gcc/ucmpdi2.c \
2965 common/math/gcc/udivdi3.c \
2966 common/math/gcc/udivmoddi4.c \
2967 common/math/gcc/umoddi3.c \
2968 common/math/gcc/xordi3.c
2969endif
2970
2971RuntimeR0_SOURCES.x86 += \
2972 common/asm/ASMCpuIdExSlow.asm \
2973 common/asm/ASMAtomicUoAndU64.asm \
2974 common/asm/ASMAtomicUoAndU32.asm \
2975 common/asm/ASMAtomicUoDecU32.asm \
2976 common/asm/ASMAtomicUoIncU32.asm \
2977 common/asm/ASMAtomicUoOrU64.asm \
2978 common/asm/ASMAtomicUoOrU32.asm \
2979 common/asm/ASMAtomicUoXorU32.asm \
2980 common/asm/ASMMemFirstMismatchingU8.asm \
2981 common/asm/ASMGetXcr0.asm \
2982 common/asm/ASMSetXcr0.asm \
2983 common/asm/ASMXSave.asm \
2984 common/asm/ASMXRstor.asm \
2985 common/asm/ASMFxSave.asm \
2986 common/asm/ASMFxRstor.asm \
2987 common/asm/ASMRdMsrEx.asm \
2988 common/asm/ASMWrMsrEx.asm \
2989 common/string/RTStrEnd.asm
2990RuntimeR0_SOURCES.amd64 += \
2991 common/asm/ASMCpuIdExSlow.asm \
2992 common/asm/ASMAtomicUoAndU64.asm \
2993 common/asm/ASMAtomicUoAndU32.asm \
2994 common/asm/ASMAtomicUoDecU32.asm \
2995 common/asm/ASMAtomicUoIncU32.asm \
2996 common/asm/ASMAtomicUoOrU64.asm \
2997 common/asm/ASMAtomicUoOrU32.asm \
2998 common/asm/ASMAtomicUoXorU32.asm \
2999 common/asm/ASMMemFirstMismatchingU8.asm \
3000 common/asm/ASMGetXcr0.asm \
3001 common/asm/ASMSetXcr0.asm \
3002 common/asm/ASMXSave.asm \
3003 common/asm/ASMXRstor.asm \
3004 common/asm/ASMFxSave.asm \
3005 common/asm/ASMFxRstor.asm \
3006 common/asm/ASMRdMsrEx.asm \
3007 common/asm/ASMWrMsrEx.asm \
3008 common/math/RTUInt128MulByU64Ex.asm \
3009 common/string/RTStrEnd.asm
3010RuntimeR0_SOURCES.arm32 += \
3011 common/string/RTStrEnd.cpp
3012RuntimeR0_SOURCES.arm64 += \
3013 common/string/RTStrEnd.cpp
3014RuntimeR0_SOURCES.sparc32 += \
3015 common/string/RTStrEnd.cpp
3016RuntimeR0_SOURCES.sparc64 += \
3017 common/string/RTStrEnd.cpp
3018
3019#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
3020# RuntimeR0_SOURCES += common/time/timesupA.asm
3021#else
3022 RuntimeR0_SOURCES += common/time/timesupref.cpp
3023#endif
3024
3025RuntimeR0_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES)
3026RuntimeR0_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES)
3027RuntimeR0_SOURCES.win = \
3028 nt/NtProcessStartup-stub.cpp
3029
3030RuntimeR0_SOURCES.os2 = \
3031 os2/sys0.asm
3032
3033
3034#
3035# RuntimeR0Stub - Ring-0 context startup stub for Windows and Solaris.
3036#
3037RuntimeR0Stub_TEMPLATE = $(if-expr "$(KBUILD_TARGET)" == "solaris",VBoxR0DrvLib,VBoxR0)
3038RuntimeR0Stub_SOURCES.win = \
3039 nt/NtProcessStartup-stub.cpp
3040RuntimeR0Stub_SOURCES.solaris = \
3041 r0drv/solaris/modulestub-r0drv-solaris.c
3042
3043
3044#
3045# RuntimeR0Drv - Ring-0 library for host drivers.
3046#
3047RuntimeR0Drv_TEMPLATE = VBoxR0DrvLib
3048RuntimeR0Drv_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK) $(VBOX_WINPSDK_INCS) VBOX_OPENSSL
3049RuntimeR0Drv_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS RT_NO_EXPORT_SYMBOL NOFILEID
3050RuntimeR0Drv_DEFS.win = IN_SUP_R0 LDR_ONLY_PE IPRT_WITHOUT_DIGEST_MD4
3051RuntimeR0Drv_DEFS.darwin= IN_SUP_R0 LDR_ONLY_MACHO IPRT_WITHOUT_DIGEST_MD4 IN_RING0_DRV_ON_DARWIN
3052if ($(VBOX_SOLARIS_11_UPDATE_VERSION) > 2 \
3053 || ($(VBOX_SOLARIS_11_UPDATE_VERSION) == 2 && $(VBOX_SOLARIS_11_BUILD_VERSION) >= 22))
3054RuntimeR0Drv_DEFS.solaris += VBOX_NEW_CRASH_DUMP_FORMAT
3055endif
3056
3057RuntimeR0Drv_INCS := $(PATH_SUB_CURRENT) include
3058RuntimeR0Drv_INCS.freebsd = \
3059 $(PATH_STAGE)/gen-sys-hdrs
3060RuntimeR0Drv_INCS.solaris = \
3061 r0drv/solaris/vbi/i86pc \
3062 r0drv/solaris/vbi/i86pc/sys
3063
3064RuntimeR0Drv_SOURCES = \
3065 common/alloc/alloc.cpp \
3066 common/alloc/heapsimple.cpp \
3067 common/alloc/heapoffset.cpp \
3068 common/checksum/alt-md5.cpp \
3069 common/checksum/crc32.cpp \
3070 common/checksum/crc64.cpp \
3071 common/checksum/ipv4.cpp \
3072 common/checksum/ipv6.cpp \
3073 common/err/RTErrConvertToErrno.cpp \
3074 common/err/RTErrConvertFromErrno.cpp \
3075 common/err/errinfo.cpp \
3076 common/log/log.cpp \
3077 common/log/logellipsis.cpp \
3078 common/log/logrel.cpp \
3079 common/log/logrelellipsis.cpp \
3080 common/log/logcom.cpp \
3081 common/log/logformat.cpp \
3082 common/log/tracebuf.cpp \
3083 common/log/tracedefault.cpp \
3084 common/log/RTLogCreateEx.cpp \
3085 common/misc/RTAssertMsg1Weak.cpp \
3086 common/misc/RTAssertMsg2.cpp \
3087 common/misc/RTAssertMsg2Add.cpp \
3088 common/misc/RTAssertMsg2AddWeak.cpp \
3089 common/misc/RTAssertMsg2AddWeakV.cpp \
3090 common/misc/RTAssertMsg2Weak.cpp \
3091 common/misc/RTAssertMsg2WeakV.cpp \
3092 common/misc/assert.cpp \
3093 common/misc/buildconfig.cpp \
3094 common/misc/handletable.cpp \
3095 common/misc/handletablectx.cpp \
3096 common/misc/handletablesimple.cpp \
3097 common/misc/once.cpp \
3098 common/misc/sanity-c.c \
3099 common/misc/sanity-cpp.cpp \
3100 common/misc/term.cpp \
3101 common/misc/RTMemWipeThoroughly.cpp \
3102 common/path/rtPathVolumeSpecLen.cpp \
3103 common/path/RTPathAbsDup.cpp \
3104 common/path/RTPathAbsEx.cpp \
3105 common/path/RTPathAbsExDup.cpp \
3106 common/path/RTPathAppend.cpp \
3107 common/path/RTPathAppendEx.cpp \
3108 common/path/RTPathExt.cpp \
3109 common/path/RTPathFilename.cpp \
3110 common/path/RTPathHasExt.cpp \
3111 common/path/RTPathHasPath.cpp \
3112 common/path/RTPathParseSimple.cpp \
3113 common/path/RTPathRealDup.cpp \
3114 common/path/RTPathStripExt.cpp \
3115 common/path/RTPathStripFilename.cpp \
3116 common/path/RTPathStripTrailingSlash.cpp \
3117 common/rand/rand.cpp \
3118 common/rand/randadv.cpp \
3119 common/rand/randparkmiller.cpp \
3120 common/string/RTStrCat.cpp \
3121 common/string/RTStrCatEx.cpp \
3122 common/string/RTStrCatP.cpp \
3123 common/string/RTStrCatPEx.cpp \
3124 common/string/RTStrCmp.cpp \
3125 common/string/RTStrCopy.cpp \
3126 common/string/RTStrCopyEx.cpp \
3127 common/string/RTStrCopyP.cpp \
3128 common/string/RTStrCopyPEx.cpp \
3129 common/string/RTStrICmpAscii.cpp \
3130 common/string/RTStrNICmpAscii.cpp \
3131 common/string/RTStrNCmp.cpp \
3132 common/string/RTStrNLen.cpp \
3133 common/string/RTStrNLenEx.cpp \
3134 common/string/RTUtf16ICmpAscii.cpp \
3135 common/string/RTUtf16NICmpAscii.cpp \
3136 common/string/straprintf.cpp \
3137 common/string/strformat.cpp \
3138 common/string/RTStrFormat.cpp \
3139 common/string/strformatnum.cpp \
3140 common/string/strformatrt.cpp \
3141 common/string/strformattype.cpp \
3142 common/string/strhash1.cpp \
3143 common/string/strprintf.cpp \
3144 common/string/strprintf-ellipsis.cpp \
3145 common/string/strprintf2.cpp \
3146 common/string/strprintf2-ellipsis.cpp \
3147 common/string/strtonum.cpp \
3148 common/string/stringalloc.cpp \
3149 common/string/unidata-flags.cpp \
3150 common/string/unidata-lower.cpp \
3151 common/string/unidata-upper.cpp \
3152 common/string/utf-8.cpp \
3153 common/string/utf-8-case.cpp \
3154 common/string/utf-8-case2.cpp \
3155 common/string/utf-16.cpp \
3156 common/string/utf-16-case.cpp \
3157 common/string/utf-16-latin-1.cpp \
3158 common/string/utf-16-printf.cpp \
3159 common/table/avlpv.cpp \
3160 common/table/avlu32.cpp \
3161 common/table/avllu32.cpp \
3162 common/time/time.cpp \
3163 generic/RTLogWriteStdErr-stub-generic.cpp \
3164 generic/RTLogWriteUser-generic.cpp \
3165 generic/RTMpGetArraySize-generic.cpp \
3166 generic/RTRandAdvCreateSystemFaster-generic.cpp \
3167 generic/RTSemEventWait-2-ex-generic.cpp \
3168 generic/RTSemEventWaitNoResume-2-ex-generic.cpp \
3169 generic/RTSemEventMultiWait-2-ex-generic.cpp \
3170 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
3171 generic/critsect-generic.cpp \
3172 generic/critsectrw-generic.cpp \
3173 generic/errvars-generic.cpp \
3174 generic/uuid-generic.cpp \
3175 r0drv/alloc-r0drv.cpp \
3176 r0drv/initterm-r0drv.cpp \
3177 r0drv/generic/semspinmutex-r0drv-generic.c \
3178 r0drv/RTR0DbgKrnlInfoGetSymbol.cpp \
3179 VBox/log-vbox.cpp \
3180
3181RuntimeR0Drv_SOURCES.amd64 = \
3182 common/asm/ASMCpuIdExSlow.asm \
3183 common/asm/ASMMemFirstMismatchingU8.asm \
3184 common/asm/ASMRdMsrEx.asm \
3185 common/asm/ASMWrMsrEx.asm \
3186 common/math/bignum-amd64-x86.asm \
3187 common/math/RTUInt128MulByU64.asm \
3188 common/math/RTUInt128MulByU64Ex.asm \
3189 common/string/RTStrEnd.asm
3190RuntimeR0Drv_SOURCES.x86 = \
3191 common/asm/ASMCpuIdExSlow.asm \
3192 common/asm/ASMMemFirstMismatchingU8.asm \
3193 common/asm/ASMRdMsrEx.asm \
3194 common/asm/ASMWrMsrEx.asm \
3195 common/math/bignum-amd64-x86.asm \
3196 common/string/RTStrEnd.asm
3197RuntimeR0Drv_SOURCES.arm32 += \
3198 common/string/RTStrEnd.cpp
3199RuntimeR0Drv_SOURCES.arm64 += \
3200 common/string/RTStrEnd.cpp
3201RuntimeR0Drv_SOURCES.sparc32 += \
3202 common/string/RTStrEnd.cpp
3203RuntimeR0Drv_SOURCES.sparc64 += \
3204 common/string/RTStrEnd.cpp
3205
3206RuntimeR0Drv_SOURCES.linux = \
3207 common/misc/thread.cpp \
3208 common/string/strpbrk.cpp \
3209 generic/RTAssertShouldPanic-generic.cpp \
3210 generic/RTLogWriteStdOut-stub-generic.cpp \
3211 generic/RTMpGetCoreCount-generic.cpp \
3212 generic/mppresent-generic.cpp \
3213 generic/rtStrFormatKernelAddress-generic.cpp \
3214 r0drv/linux/alloc-r0drv-linux.c \
3215 r0drv/linux/assert-r0drv-linux.c \
3216 r0drv/linux/initterm-r0drv-linux.c \
3217 r0drv/linux/memobj-r0drv-linux.c \
3218 r0drv/linux/memuserkernel-r0drv-linux.c \
3219 r0drv/linux/mp-r0drv-linux.c \
3220 r0drv/linux/mpnotification-r0drv-linux.c \
3221 r0drv/linux/process-r0drv-linux.c \
3222 r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \
3223 r0drv/linux/semevent-r0drv-linux.c \
3224 r0drv/linux/semeventmulti-r0drv-linux.c \
3225 r0drv/linux/semfastmutex-r0drv-linux.c \
3226 r0drv/linux/semmutex-r0drv-linux.c \
3227 r0drv/linux/spinlock-r0drv-linux.c \
3228 r0drv/linux/thread-r0drv-linux.c \
3229 r0drv/linux/thread2-r0drv-linux.c \
3230 r0drv/linux/threadctxhooks-r0drv-linux.c \
3231 r0drv/linux/time-r0drv-linux.c \
3232 r0drv/linux/timer-r0drv-linux.c \
3233 r0drv/memobj-r0drv.cpp \
3234 r0drv/mpnotification-r0drv.c \
3235 r0drv/powernotification-r0drv.c
3236
3237RuntimeR0Drv_SOURCES.win = \
3238 common/ldr/ldr.cpp \
3239 common/ldr/ldrEx.cpp \
3240 common/ldr/ldrPE.cpp \
3241 common/asn1/asn1-basics.cpp \
3242 common/asn1/asn1-dump.cpp \
3243 common/asn1/asn1-cursor.cpp \
3244 common/asn1/asn1-default-allocator.cpp \
3245 common/asn1/asn1-safer-allocator.cpp \
3246 common/asn1/asn1-encode.cpp \
3247 common/asn1/asn1-ut-bitstring.cpp \
3248 common/asn1/asn1-ut-bitstring-decode.cpp \
3249 common/asn1/asn1-ut-boolean.cpp \
3250 common/asn1/asn1-ut-boolean-decode.cpp \
3251 common/asn1/asn1-ut-core.cpp \
3252 common/asn1/asn1-ut-core-decode.cpp \
3253 common/asn1/asn1-ut-dyntype.cpp \
3254 common/asn1/asn1-ut-dyntype-decode.cpp \
3255 common/asn1/asn1-ut-integer.cpp \
3256 common/asn1/asn1-ut-integer-decode.cpp \
3257 common/asn1/asn1-ut-null.cpp \
3258 common/asn1/asn1-ut-null-decode.cpp \
3259 common/asn1/asn1-ut-objid.cpp \
3260 common/asn1/asn1-ut-objid-decode.cpp \
3261 common/asn1/asn1-ut-octetstring.cpp \
3262 common/asn1/asn1-ut-octetstring-decode.cpp \
3263 common/asn1/asn1-ut-string.cpp \
3264 common/asn1/asn1-ut-string-decode.cpp \
3265 common/asn1/asn1-ut-time.cpp \
3266 common/asn1/asn1-ut-time-decode.cpp \
3267 common/crypto/digest-core.cpp \
3268 common/crypto/digest-builtin.cpp \
3269 common/crypto/key.cpp \
3270 common/crypto/rsa-asn1-decoder.cpp \
3271 common/crypto/rsa-core.cpp \
3272 common/crypto/rsa-init.cpp \
3273 common/crypto/rsa-sanity.cpp \
3274 common/crypto/pkcs7-asn1-decoder.cpp \
3275 common/crypto/pkcs7-core.cpp \
3276 common/crypto/pkcs7-init.cpp \
3277 common/crypto/pkcs7-sanity.cpp \
3278 common/crypto/pkcs7-verify.cpp \
3279 common/crypto/pkix-signature-builtin.cpp \
3280 common/crypto/pkix-signature-core.cpp \
3281 common/crypto/pkix-signature-rsa.cpp \
3282 common/crypto/pkix-util.cpp \
3283 common/crypto/pkix-verify.cpp \
3284 common/crypto/spc-asn1-decoder.cpp \
3285 common/crypto/spc-core.cpp \
3286 common/crypto/spc-init.cpp \
3287 common/crypto/spc-sanity.cpp \
3288 common/crypto/x509-asn1-decoder.cpp \
3289 common/crypto/x509-certpaths.cpp \
3290 common/crypto/x509-core.cpp \
3291 common/crypto/x509-init.cpp \
3292 common/crypto/x509-sanity.cpp \
3293 common/crypto/x509-verify.cpp \
3294 common/crypto/store.cpp \
3295 common/crypto/store-inmem.cpp \
3296 common/crypto/taf-asn1-decoder.cpp \
3297 common/crypto/taf-core.cpp \
3298 common/crypto/taf-init.cpp \
3299 common/crypto/taf-sanity.cpp \
3300 common/crypto/tsp-asn1-decoder.cpp \
3301 common/crypto/tsp-core.cpp \
3302 common/crypto/tsp-init.cpp \
3303 common/crypto/tsp-sanity.cpp \
3304 common/checksum/alt-md2.cpp \
3305 common/checksum/alt-sha1.cpp \
3306 common/checksum/alt-sha256.cpp \
3307 common/checksum/alt-sha512.cpp \
3308 common/checksum/alt-sha3.cpp \
3309 common/checksum/md2str.cpp \
3310 common/checksum/md4str.cpp \
3311 common/checksum/md5str.cpp \
3312 common/checksum/sha1str.cpp \
3313 common/checksum/sha224str.cpp \
3314 common/checksum/sha256str.cpp \
3315 common/checksum/sha384str.cpp \
3316 common/checksum/sha512str.cpp \
3317 common/checksum/sha512t224str.cpp \
3318 common/checksum/sha512t256str.cpp \
3319 common/err/errinfolog.cpp \
3320 common/path/RTPathFilenameUtf16.cpp \
3321 common/path/RTPathChangeToUnixSlashes.cpp \
3322 common/math/bignum.cpp \
3323 common/misc/zero.asm \
3324 common/string/RTStrPrintHexBytes.cpp \
3325 common/string/RTUtf16Copy.cpp \
3326 common/string/RTUtf16CopyAscii.cpp \
3327 common/string/RTUtf16CopyEx.cpp \
3328 common/string/RTUtf16Cat.cpp \
3329 common/string/RTUtf16CatAscii.cpp \
3330 common/string/RTUtf16End.cpp \
3331 common/string/RTUtf16NLen.cpp \
3332 common/string/RTUtf16NLenEx.cpp \
3333 common/string/RTUtf16PrintHexBytes.cpp \
3334 common/string/strstrip.cpp \
3335 generic/memsafer-generic.cpp \
3336 common/misc/thread.cpp \
3337 common/string/memcmp.asm \
3338 common/string/memchr.asm \
3339 common/string/memcpy.asm \
3340 common/string/memset.asm \
3341 common/string/memmove.asm \
3342 common/string/strlen.asm \
3343 common/string/strncmp.cpp \
3344 common/string/strpbrk.cpp \
3345 generic/RTAssertShouldPanic-generic.cpp \
3346 generic/RTLogWriteStdOut-stub-generic.cpp \
3347 generic/RTMpGetCoreCount-generic.cpp \
3348 generic/RTTimerCreate-generic.cpp \
3349 generic/mppresent-generic-online.cpp \
3350 generic/rtStrFormatKernelAddress-generic.cpp \
3351 nt/RTErrConvertFromNtStatus.cpp \
3352 nt/RTNtPathExpand8dot3Path.cpp \
3353 nt/RTNtPathExpand8dot3PathA.cpp \
3354 nt/RTNtPathFindPossible8dot3Name.cpp \
3355 nt/semevent-nt.cpp \
3356 nt/RTSemEventGetResolution-nt.cpp \
3357 nt/semeventmulti-nt.cpp \
3358 nt/RTSemEventMultiGetResolution-nt.cpp \
3359 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
3360 r0drv/alloc-ef-r0drv.cpp \
3361 r0drv/memobj-r0drv.cpp \
3362 r0drv/mpnotification-r0drv.c \
3363 r0drv/powernotification-r0drv.c \
3364 r0drv/nt/alloc-r0drv-nt.cpp \
3365 r0drv/nt/assert-r0drv-nt.cpp \
3366 r0drv/nt/dbgkrnlinfo-r0drv-nt.cpp \
3367 r0drv/nt/initterm-r0drv-nt.cpp \
3368 r0drv/nt/memobj-r0drv-nt.cpp \
3369 r0drv/nt/memuserkernel-r0drv-nt.cpp \
3370 r0drv/nt/mp-r0drv-nt.cpp \
3371 r0drv/nt/process-r0drv-nt.cpp \
3372 r0drv/nt/RTLogWriteDebugger-r0drv-nt.cpp \
3373 r0drv/nt/semfastmutex-r0drv-nt.cpp \
3374 r0drv/nt/semmutex-r0drv-nt.cpp \
3375 r0drv/nt/spinlock-r0drv-nt.cpp \
3376 r0drv/nt/thread-r0drv-nt.cpp \
3377 r0drv/nt/thread2-r0drv-nt.cpp \
3378 r0drv/nt/time-r0drv-nt.cpp \
3379 r0drv/nt/timer-r0drv-nt.cpp \
3380 r0drv/nt/toxic-chkstk-r0drv-nt.asm \
3381 r0drv/nt/RTTimerGetSystemGranularity-r0drv-nt.cpp
3382
3383RuntimeR0Drv_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES)
3384RuntimeR0Drv_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES) \
3385 r0drv/nt/nt3fakes-stub-r0drv-nt.cpp \
3386 r0drv/nt/alloca-x86-r0drv-nt.asm
3387
3388
3389RuntimeR0Drv_SOURCES.darwin = \
3390 common/ldr/ldr.cpp \
3391 common/ldr/ldrEx.cpp \
3392 common/ldr/ldrMachO.cpp \
3393 common/ldr/ldrMemory.cpp \
3394 common/asn1/asn1-basics.cpp \
3395 common/asn1/asn1-dump.cpp \
3396 common/asn1/asn1-cursor.cpp \
3397 common/asn1/asn1-default-allocator.cpp \
3398 common/asn1/asn1-safer-allocator.cpp \
3399 common/asn1/asn1-encode.cpp \
3400 common/asn1/asn1-ut-bitstring.cpp \
3401 common/asn1/asn1-ut-bitstring-decode.cpp \
3402 common/asn1/asn1-ut-boolean.cpp \
3403 common/asn1/asn1-ut-boolean-decode.cpp \
3404 common/asn1/asn1-ut-core.cpp \
3405 common/asn1/asn1-ut-core-decode.cpp \
3406 common/asn1/asn1-ut-dyntype.cpp \
3407 common/asn1/asn1-ut-dyntype-decode.cpp \
3408 common/asn1/asn1-ut-integer.cpp \
3409 common/asn1/asn1-ut-integer-decode.cpp \
3410 common/asn1/asn1-ut-null.cpp \
3411 common/asn1/asn1-ut-null-decode.cpp \
3412 common/asn1/asn1-ut-objid.cpp \
3413 common/asn1/asn1-ut-objid-decode.cpp \
3414 common/asn1/asn1-ut-octetstring.cpp \
3415 common/asn1/asn1-ut-octetstring-decode.cpp \
3416 common/asn1/asn1-ut-string.cpp \
3417 common/asn1/asn1-ut-string-decode.cpp \
3418 common/asn1/asn1-ut-time.cpp \
3419 common/asn1/asn1-ut-time-decode.cpp \
3420 common/crypto/digest-core.cpp \
3421 common/crypto/digest-builtin.cpp \
3422 common/crypto/key.cpp \
3423 common/crypto/rsa-asn1-decoder.cpp \
3424 common/crypto/rsa-core.cpp \
3425 common/crypto/rsa-init.cpp \
3426 common/crypto/rsa-sanity.cpp \
3427 common/crypto/pkcs7-asn1-decoder.cpp \
3428 common/crypto/pkcs7-core.cpp \
3429 common/crypto/pkcs7-init.cpp \
3430 common/crypto/pkcs7-sanity.cpp \
3431 common/crypto/pkcs7-verify.cpp \
3432 common/crypto/pkix-signature-builtin.cpp \
3433 common/crypto/pkix-signature-core.cpp \
3434 common/crypto/pkix-signature-rsa.cpp \
3435 common/crypto/pkix-util.cpp \
3436 common/crypto/pkix-verify.cpp \
3437 common/crypto/spc-asn1-decoder.cpp \
3438 common/crypto/spc-core.cpp \
3439 common/crypto/spc-init.cpp \
3440 common/crypto/spc-sanity.cpp \
3441 common/crypto/x509-asn1-decoder.cpp \
3442 common/crypto/x509-certpaths.cpp \
3443 common/crypto/x509-core.cpp \
3444 common/crypto/x509-init.cpp \
3445 common/crypto/x509-sanity.cpp \
3446 common/crypto/x509-verify.cpp \
3447 common/crypto/store.cpp \
3448 common/crypto/store-inmem.cpp \
3449 common/crypto/taf-asn1-decoder.cpp \
3450 common/crypto/taf-core.cpp \
3451 common/crypto/taf-init.cpp \
3452 common/crypto/taf-sanity.cpp \
3453 common/crypto/tsp-asn1-decoder.cpp \
3454 common/crypto/tsp-core.cpp \
3455 common/crypto/tsp-init.cpp \
3456 common/crypto/tsp-sanity.cpp \
3457 common/checksum/alt-md2.cpp \
3458 common/checksum/alt-sha1.cpp \
3459 common/checksum/alt-sha256.cpp \
3460 common/checksum/alt-sha512.cpp \
3461 common/checksum/alt-sha3.cpp \
3462 common/checksum/md2str.cpp \
3463 common/checksum/md4str.cpp \
3464 common/checksum/md5str.cpp \
3465 common/checksum/sha1str.cpp \
3466 common/checksum/sha224str.cpp \
3467 common/checksum/sha256str.cpp \
3468 common/checksum/sha384str.cpp \
3469 common/checksum/sha512str.cpp \
3470 common/checksum/sha512t224str.cpp \
3471 common/checksum/sha512t256str.cpp \
3472 common/err/errinfolog.cpp \
3473 common/math/bignum.cpp \
3474 common/misc/thread.cpp \
3475 common/string/base64.cpp \
3476 common/string/memchr.asm \
3477 common/string/mempcpy.asm \
3478 common/string/strpbrk.cpp \
3479 common/string/strstrip.cpp \
3480 common/string/RTStrPrintHexBytes.cpp \
3481 darwin/RTErrConvertFromDarwin.cpp \
3482 darwin/RTErrConvertFromDarwinIO.cpp \
3483 darwin/RTErrConvertFromDarwinKern.cpp \
3484 generic/RTAssertShouldPanic-generic.cpp \
3485 generic/RTFileReadAll-generic.cpp \
3486 generic/RTFileReadAllByHandle-generic.cpp \
3487 generic/RTFileReadAllByHandleEx-generic.cpp \
3488 generic/RTFileReadAllEx-generic.cpp \
3489 generic/RTFileReadAllFree-generic.cpp \
3490 generic/RTMpGetCoreCount-generic.cpp \
3491 generic/RTMpOnPair-generic.cpp \
3492 generic/RTThreadQueryTerminationStatus-stub-generic.cpp \
3493 generic/RTTimerCreate-generic.cpp \
3494 generic/memsafer-generic.cpp \
3495 generic/mppresent-generic.cpp \
3496 generic/timer-generic.cpp \
3497 r0drv/generic/mpnotification-r0drv-generic.cpp \
3498 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
3499 r0drv/darwin/alloc-r0drv-darwin.cpp \
3500 r0drv/darwin/assert-r0drv-darwin.cpp \
3501 r0drv/darwin/initterm-r0drv-darwin.cpp \
3502 r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp \
3503 r0drv/darwin/fileio-r0drv-darwin.cpp \
3504 r0drv/darwin/memobj-r0drv-darwin.cpp \
3505 r0drv/darwin/mp-r0drv-darwin.cpp \
3506 r0drv/darwin/memuserkernel-r0drv-darwin.cpp \
3507 r0drv/darwin/process-r0drv-darwin.cpp \
3508 r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
3509 r0drv/darwin/RTLogWriteStdOut-r0drv-darwin.cpp \
3510 r0drv/darwin/rtStrFormatKernelAddress-r0drv-darwin.cpp \
3511 r0drv/darwin/semevent-r0drv-darwin.cpp \
3512 r0drv/darwin/semeventmulti-r0drv-darwin.cpp \
3513 r0drv/darwin/semfastmutex-r0drv-darwin.cpp \
3514 r0drv/darwin/semmutex-r0drv-darwin.cpp \
3515 r0drv/darwin/spinlock-r0drv-darwin.cpp \
3516 r0drv/darwin/thread-r0drv-darwin.cpp \
3517 r0drv/darwin/thread2-r0drv-darwin.cpp \
3518 r0drv/darwin/threadpreempt-r0drv-darwin.cpp \
3519 r0drv/darwin/time-r0drv-darwin.cpp \
3520 r0drv/alloc-ef-r0drv.cpp \
3521 r0drv/memobj-r0drv.cpp \
3522 r0drv/powernotification-r0drv.c
3523# - The xnu memcpy implementation in osfmk/x86_64/bcopy.s returned 'void' rather than 'void *' for a long time, so use our own.
3524# - The memcmp and strlen implementations are still C implementations living in osfmk/x86_64/loose_ends.c, so use our asm code.
3525RuntimeR0Drv_SOURCES.darwin.amd64 = \
3526 common/string/memcpy.asm
3527# common/string/strlen.asm - try again later \
3528# common/string/memcmp.asm
3529
3530RuntimeR0Drv_SOURCES.os2 = \
3531 common/path/RTPathFilenameUtf16.cpp \
3532 common/string/RTUtf16Chr.cpp \
3533 common/string/RTUtf16CmpAscii.cpp \
3534 common/string/memchr.asm \
3535 common/string/memcmp.asm \
3536 common/string/memcpy.asm \
3537 common/string/mempcpy.asm \
3538 common/string/memmove.asm \
3539 common/string/memset.asm \
3540 common/string/strchr.asm \
3541 common/string/strcmp.asm \
3542 common/string/strcpy.asm \
3543 common/string/strlen.asm \
3544 common/string/strncmp.cpp \
3545 common/string/strpbrk.cpp \
3546 common/misc/thread.cpp \
3547 generic/RTAssertShouldPanic-generic.cpp \
3548 generic/RTLogWriteDebugger-generic.cpp \
3549 generic/RTLogWriteStdOut-stub-generic.cpp \
3550 generic/RTMpCpuId-generic.cpp \
3551 generic/RTMpCpuIdFromSetIndex-generic.cpp \
3552 generic/RTMpCpuIdToSetIndex-generic.cpp \
3553 generic/RTMpIsCpuPossible-generic.cpp \
3554 generic/RTMpGetCount-generic.cpp \
3555 generic/RTMpGetMaxCpuId-generic.cpp \
3556 generic/RTMpGetOnlineCount-generic.cpp \
3557 generic/RTMpGetOnlineSet-generic.cpp \
3558 generic/RTMpGetSet-generic.cpp \
3559 generic/RTMpIsCpuOnline-generic.cpp \
3560 generic/RTThreadQueryTerminationStatus-stub-generic.cpp \
3561 generic/RTTimerCreate-generic.cpp \
3562 generic/mppresent-generic.cpp \
3563 generic/rtStrFormatKernelAddress-generic.cpp \
3564 os2/RTErrConvertFromOS2.cpp \
3565 os2/rtSemWaitOs2ConvertTimeout.cpp \
3566 os2/sys0.asm \
3567 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
3568 r0drv/generic/RTMpOn-r0drv-generic.cpp \
3569 r0drv/generic/mpnotification-r0drv-generic.cpp \
3570 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
3571 r0drv/memobj-r0drv.cpp \
3572 r0drv/powernotification-r0drv.c \
3573 r0drv/os2/alloc-r0drv-os2.cpp \
3574 r0drv/os2/assert-r0drv-os2.cpp \
3575 r0drv/os2/assertA-r0drv-os2.asm \
3576 r0drv/os2/initterm-r0drv-os2.cpp \
3577 r0drv/os2/memobj-r0drv-os2.cpp \
3578 r0drv/os2/memuserkernel-r0drv-os2.cpp \
3579 r0drv/os2/os2imports.imp \
3580 r0drv/os2/process-r0drv-os2.cpp \
3581 r0drv/os2/RTR0AssertPanicSystem-r0drv-os2.asm \
3582 r0drv/os2/RTR0Os2DHQueryDOSVar.asm \
3583 r0drv/os2/RTR0Os2DHVMGlobalToProcess.asm \
3584 r0drv/os2/semevent-r0drv-os2.cpp \
3585 r0drv/os2/semeventmulti-r0drv-os2.cpp \
3586 r0drv/os2/semfastmutex-r0drv-os2.cpp \
3587 r0drv/os2/spinlock-r0drv-os2.cpp \
3588 r0drv/os2/thread-r0drv-os2.cpp \
3589 r0drv/os2/thread2-r0drv-os2.cpp \
3590 r0drv/os2/time-r0drv-os2.cpp \
3591 r0drv/os2/timer-r0drv-os2.cpp \
3592 r0drv/os2/timerA-r0drv-os2.asm
3593ifndef VBOX_USE_WATCOM_FOR_OS2
3594 RuntimeR0Drv_SOURCES.os2 += \
3595 common/math/gcc/adddi3.c \
3596 common/math/gcc/anddi3.c \
3597 common/math/gcc/ashldi3.c \
3598 common/math/gcc/ashrdi3.c \
3599 common/math/gcc/cmpdi2.c \
3600 common/math/gcc/divdi3.c \
3601 common/math/gcc/divmoddi4.c \
3602 common/math/gcc/iordi3.c \
3603 common/math/gcc/lshldi3.c \
3604 common/math/gcc/lshrdi3.c \
3605 common/math/gcc/moddi3.c \
3606 common/math/gcc/muldi3.c \
3607 common/math/gcc/negdi2.c \
3608 common/math/gcc/notdi2.c \
3609 common/math/gcc/qdivrem.c \
3610 common/math/gcc/subdi3.c \
3611 common/math/gcc/ucmpdi2.c \
3612 common/math/gcc/udivdi3.c \
3613 common/math/gcc/udivmoddi4.c \
3614 common/math/gcc/umoddi3.c \
3615 common/math/gcc/xordi3.c
3616else
3617 RuntimeR0Drv_SOURCES.os2 += \
3618 common/math/watcom/I8D-x86-32.asm \
3619 common/math/watcom/U8D-x86-32.asm \
3620 common/math/watcom/RTWatcomUInt64Div.c \
3621 common/math/watcom/U8LS-x86-32.asm \
3622 common/math/watcom/U8RS-x86-32.asm \
3623 common/math/watcom/U8M-I8M-x86-32.asm \
3624 common/string/watcom/bzero.asm \
3625 common/string/watcom/memchr.asm \
3626 common/string/watcom/memcmp.asm \
3627 common/string/watcom/memcpy.asm \
3628 common/string/watcom/memmove.asm \
3629 common/string/watcom/mempcpy.asm \
3630 common/string/watcom/memrchr.asm \
3631 common/string/watcom/memset.asm \
3632 common/string/watcom/strchr.asm \
3633 common/string/watcom/strcmp.asm \
3634 common/string/watcom/strcpy.asm \
3635 common/string/watcom/strlen.asm \
3636 common/string/watcom/strncmp.asm \
3637 common/string/watcom/strncpy.asm
3638endif
3639
3640RuntimeR0Drv_SOURCES.freebsd = \
3641 common/misc/thread.cpp \
3642 common/string/memchr.asm \
3643 common/string/memmove.asm \
3644 common/string/strpbrk.cpp \
3645 common/string/memcmp.asm \
3646 common/string/strchr.asm \
3647 generic/RTAssertShouldPanic-generic.cpp \
3648 generic/RTLogWriteDebugger-generic.cpp \
3649 generic/RTLogWriteStdOut-stub-generic.cpp \
3650 generic/RTMpOnPair-generic.cpp \
3651 generic/RTTimerCreate-generic.cpp \
3652 generic/mppresent-generic.cpp \
3653 generic/rtStrFormatKernelAddress-generic.cpp \
3654 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
3655 r0drv/generic/mpnotification-r0drv-generic.cpp \
3656 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
3657 r0drv/freebsd/alloc-r0drv-freebsd.c \
3658 r0drv/freebsd/assert-r0drv-freebsd.c \
3659 r0drv/freebsd/initterm-r0drv-freebsd.c \
3660 r0drv/freebsd/memobj-r0drv-freebsd.c \
3661 r0drv/freebsd/memuserkernel-r0drv-freebsd.c \
3662 r0drv/freebsd/process-r0drv-freebsd.c \
3663 r0drv/freebsd/semevent-r0drv-freebsd.c \
3664 r0drv/freebsd/semeventmulti-r0drv-freebsd.c \
3665 r0drv/freebsd/semfastmutex-r0drv-freebsd.c \
3666 r0drv/freebsd/semmutex-r0drv-freebsd.c \
3667 r0drv/freebsd/spinlock-r0drv-freebsd.c \
3668 r0drv/freebsd/thread-r0drv-freebsd.c \
3669 r0drv/freebsd/thread2-r0drv-freebsd.c \
3670 r0drv/freebsd/time-r0drv-freebsd.c \
3671 r0drv/freebsd/mp-r0drv-freebsd.c \
3672 generic/timer-generic.cpp \
3673 r0drv/alloc-ef-r0drv.cpp \
3674 r0drv/memobj-r0drv.cpp \
3675 r0drv/powernotification-r0drv.c
3676
3677RuntimeR0Drv_SOURCES.netbsd = \
3678 common/misc/thread.cpp \
3679 common/string/strpbrk.cpp \
3680 generic/RTAssertShouldPanic-generic.cpp \
3681 generic/RTLogWriteDebugger-generic.cpp \
3682 generic/RTThreadQueryTerminationStatus-stub-generic.cpp \
3683 generic/RTTimerCreate-generic.cpp \
3684 generic/mppresent-generic.cpp \
3685 generic/rtStrFormatKernelAddress-generic.cpp \
3686 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
3687 r0drv/generic/mpnotification-r0drv-generic.cpp \
3688 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
3689 r0drv/netbsd/RTLogWriteStdOut-r0drv-netbsd.c \
3690 r0drv/netbsd/alloc-r0drv-netbsd.c \
3691 r0drv/netbsd/assert-r0drv-netbsd.c \
3692 r0drv/netbsd/initterm-r0drv-netbsd.c \
3693 r0drv/netbsd/memobj-r0drv-netbsd.c \
3694 r0drv/netbsd/memuserkernel-r0drv-netbsd.c \
3695 r0drv/netbsd/process-r0drv-netbsd.c \
3696 r0drv/netbsd/semevent-r0drv-netbsd.c \
3697 r0drv/netbsd/semeventmulti-r0drv-netbsd.c \
3698 r0drv/netbsd/semfastmutex-r0drv-netbsd.c \
3699 r0drv/netbsd/spinlock-r0drv-netbsd.c \
3700 r0drv/netbsd/thread-r0drv-netbsd.c \
3701 r0drv/netbsd/thread2-r0drv-netbsd.c \
3702 r0drv/netbsd/time-r0drv-netbsd.c \
3703 r0drv/netbsd/mp-r0drv-netbsd.c \
3704 generic/timer-generic.cpp \
3705 r0drv/memobj-r0drv.cpp \
3706 r0drv/powernotification-r0drv.c
3707
3708RuntimeR0Drv_SOURCES.solaris = \
3709 common/misc/thread.cpp \
3710 common/string/memchr.asm \
3711 generic/RTAssertShouldPanic-generic.cpp \
3712 generic/RTLogWriteStdOut-stub-generic.cpp \
3713 generic/RTMpGetCoreCount-generic.cpp \
3714 generic/RTThreadQueryTerminationStatus-stub-generic.cpp \
3715 generic/RTTimerCreate-generic.cpp \
3716 generic/mppresent-generic.cpp \
3717 generic/rtStrFormatKernelAddress-generic.cpp \
3718 r0drv/memobj-r0drv.cpp \
3719 r0drv/mpnotification-r0drv.c \
3720 r0drv/powernotification-r0drv.c \
3721 r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \
3722 r0drv/solaris/RTMpPokeCpu-r0drv-solaris.c \
3723 r0drv/solaris/alloc-r0drv-solaris.c \
3724 r0drv/solaris/assert-r0drv-solaris.c \
3725 r0drv/solaris/dbgkrnlinfo-r0drv-solaris.c \
3726 r0drv/solaris/initterm-r0drv-solaris.c \
3727 r0drv/solaris/memuserkernel-r0drv-solaris.c \
3728 r0drv/solaris/mpnotification-r0drv-solaris.c \
3729 r0drv/solaris/memobj-r0drv-solaris.c \
3730 r0drv/solaris/mp-r0drv-solaris.c \
3731 r0drv/solaris/process-r0drv-solaris.c \
3732 r0drv/solaris/semevent-r0drv-solaris.c \
3733 r0drv/solaris/semeventmulti-r0drv-solaris.c \
3734 r0drv/solaris/semfastmutex-r0drv-solaris.c \
3735 r0drv/solaris/semmutex-r0drv-solaris.c \
3736 r0drv/solaris/spinlock-r0drv-solaris.c \
3737 r0drv/solaris/thread-r0drv-solaris.c \
3738 r0drv/solaris/thread2-r0drv-solaris.c \
3739 r0drv/solaris/threadctxhooks-r0drv-solaris.c \
3740 r0drv/solaris/time-r0drv-solaris.c \
3741 r0drv/solaris/timer-r0drv-solaris.c
3742
3743RuntimeR0Drv_SOURCES.haiku = \
3744 common/misc/thread.cpp \
3745 common/string/memchr.asm \
3746 common/string/memmove.asm \
3747 common/string/strpbrk.cpp \
3748 common/string/memcmp.asm \
3749 common/string/strchr.asm \
3750 generic/RTAssertShouldPanic-generic.cpp \
3751 generic/RTMpOnPair-generic.cpp \
3752 generic/RTThreadQueryTerminationStatus-stub-generic.cpp \
3753 generic/RTTimerCreate-generic.cpp \
3754 generic/mppresent-generic.cpp \
3755 generic/rtStrFormatKernelAddress-generic.cpp \
3756 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
3757 r0drv/generic/mpnotification-r0drv-generic.cpp \
3758 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
3759 r0drv/haiku/alloc-r0drv-haiku.c \
3760 r0drv/haiku/assert-r0drv-haiku.c \
3761 r0drv/haiku/initterm-r0drv-haiku.c \
3762 r0drv/haiku/memobj-r0drv-haiku.c \
3763 r0drv/haiku/mp-r0drv-haiku.c \
3764 r0drv/haiku/process-r0drv-haiku.c \
3765 r0drv/haiku/RTLogWriteDebugger-r0drv-haiku.c \
3766 r0drv/haiku/RTLogWriteStdOut-r0drv-haiku.c \
3767 r0drv/haiku/semevent-r0drv-haiku.c \
3768 r0drv/haiku/semeventmulti-r0drv-haiku.c \
3769 r0drv/haiku/semfastmutex-r0drv-haiku.c \
3770 r0drv/haiku/semmutex-r0drv-haiku.c \
3771 r0drv/haiku/spinlock-r0drv-haiku.c \
3772 r0drv/haiku/thread-r0drv-haiku.c \
3773 r0drv/haiku/thread2-r0drv-haiku.c \
3774 r0drv/haiku/time-r0drv-haiku.c \
3775 generic/timer-generic.cpp \
3776 r0drv/memobj-r0drv.cpp \
3777 r0drv/powernotification-r0drv.c
3778
3779## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here.
3780
3781RuntimeR0Drv_ORDERDEPS.freebsd = \
3782 $(PATH_STAGE)/gen-sys-hdrs/bus_if.h \
3783 $(PATH_STAGE)/gen-sys-hdrs/device_if.h
3784
3785
3786#
3787# RuntimeGuestR0 - Guest driver runtime.
3788# This is almost the same as the RuntimeR0Drv, the main difference
3789# is in the backdoor logging and the lack of sup.h (which should be
3790# made irrelevant even for RuntimeR0Drv).
3791#
3792RuntimeGuestR0_TEMPLATE := VBOXGUESTR0LIB
3793RuntimeGuestR0_EXTENDS = RuntimeR0Drv
3794RuntimeGuestR0_DEFS.win.x86 = $(RuntimeR0Drv_DEFS.win.x86) IPRT_TARGET_NT4 # The 32-bit version needs to work on NT4 too.
3795RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES))
3796RuntimeGuestR0_SOURCES += \
3797 VBox/logbackdoor.cpp
3798RuntimeGuestR0_SOURCES.win := \
3799 $(filter-out common/checksum/md% common/checksum/sha%, $(RuntimeR0Drv_SOURCES.win))
3800
3801
3802ifdef VBOX_WITH_RAW_MODE
3803 #
3804 # RuntimeRC - Raw-mode context library.
3805 #
3806 RuntimeRC_TEMPLATE = VBoxRc
3807 RuntimeRC_DEFS = IN_RT_RC RT_WITH_VBOX IN_SUP_RC IN_VMM_RC NOFILEID
3808 RuntimeRC_INCS = include
3809 RuntimeRC_SOURCES := \
3810 common/asm/ASMMemFirstMismatchingU8.asm \
3811 common/asm/ASMGetXcr0.asm \
3812 common/asm/ASMSetXcr0.asm \
3813 common/asm/ASMXSave.asm \
3814 common/asm/ASMXRstor.asm \
3815 common/asm/ASMFxSave.asm \
3816 common/asm/ASMFxRstor.asm \
3817 common/checksum/alt-md5.cpp \
3818 common/checksum/crc32.cpp \
3819 common/checksum/crc64.cpp \
3820 common/log/log.cpp \
3821 common/log/logellipsis.cpp \
3822 common/log/logrel.cpp \
3823 common/log/logrelellipsis.cpp \
3824 common/log/logcom.cpp \
3825 common/log/logformat.cpp \
3826 common/log/tracebuf.cpp \
3827 common/log/tracedefault.cpp \
3828 common/log/RTLogCreateEx.cpp \
3829 common/misc/RTAssertMsg1Weak.cpp \
3830 common/misc/RTAssertMsg2.cpp \
3831 common/misc/RTAssertMsg2Add.cpp \
3832 common/misc/RTAssertMsg2AddWeak.cpp \
3833 common/misc/RTAssertMsg2AddWeakV.cpp \
3834 common/misc/RTAssertMsg2Weak.cpp \
3835 common/misc/RTAssertMsg2WeakV.cpp \
3836 common/misc/assert.cpp \
3837 common/misc/buildconfig.cpp \
3838 common/misc/sanity-c.c \
3839 common/misc/sanity-cpp.cpp \
3840 common/path/RTPathFilename.cpp \
3841 common/string/strformat.cpp \
3842 common/string/RTStrFormat.cpp \
3843 common/string/strformatnum.cpp \
3844 common/string/strformatrt.cpp \
3845 common/string/strformattype.cpp \
3846 common/string/strncmp.cpp \
3847 common/string/strpbrk.cpp \
3848 common/string/strprintf.cpp \
3849 common/string/strprintf-ellipsis.cpp \
3850 common/string/strprintf2.cpp \
3851 common/string/strprintf2-ellipsis.cpp \
3852 common/string/RTStrCmp.cpp \
3853 common/string/RTStrCopy.cpp \
3854 common/string/RTStrCopyEx.cpp \
3855 common/string/RTStrEnd.asm \
3856 common/string/RTStrICmpAscii.cpp \
3857 common/table/avllu32.cpp \
3858 common/table/avlou32.cpp \
3859 common/table/avlogcphys.cpp \
3860 common/table/avlogcptr.cpp \
3861 common/table/avlohcphys.cpp \
3862 common/table/avloioport.cpp \
3863 common/table/avlrogcphys.cpp \
3864 common/table/avlrogcptr.cpp \
3865 common/table/avlroioport.cpp \
3866 common/table/avlroogcptr.cpp \
3867 common/table/avlu32.cpp \
3868 common/time/timeprog.cpp \
3869 common/time/timesup.cpp \
3870 gc/initterm-gc.cpp \
3871 generic/RTAssertShouldPanic-generic.cpp \
3872 generic/rtStrFormatKernelAddress-generic.cpp \
3873 generic/errvars-generic.cpp \
3874 \
3875 $(RuntimeNoCrt_SOURCES)
3876
3877 #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
3878 # RuntimeRC_SOURCES += common/time/timesupA.asm
3879 #else
3880 RuntimeRC_SOURCES += common/time/timesupref.cpp
3881 #endif
3882
3883 RuntimeRC_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
3884
3885 ifeq ($(VBOX_LDR_FMT32),lx)
3886 RuntimeRC_SOURCES += os2/sys0.asm
3887 endif
3888
3889 if1of ($(KBUILD_TARGET), darwin solaris freebsd os2)
3890 RuntimeRC_SOURCES += \
3891 common/math/gcc/adddi3.c \
3892 common/math/gcc/anddi3.c \
3893 common/math/gcc/ashldi3.c \
3894 common/math/gcc/ashrdi3.c \
3895 common/math/gcc/cmpdi2.c \
3896 common/math/gcc/divdi3.c \
3897 common/math/gcc/divmoddi4.c \
3898 common/math/gcc/iordi3.c \
3899 common/math/gcc/lshldi3.c \
3900 common/math/gcc/lshrdi3.c \
3901 common/math/gcc/moddi3.c \
3902 common/math/gcc/muldi3.c \
3903 common/math/gcc/negdi2.c \
3904 common/math/gcc/notdi2.c \
3905 common/math/gcc/qdivrem.c \
3906 common/math/gcc/subdi3.c \
3907 common/math/gcc/ucmpdi2.c \
3908 common/math/gcc/udivdi3.c \
3909 common/math/gcc/udivmoddi4.c \
3910 common/math/gcc/umoddi3.c \
3911 common/math/gcc/xordi3.c
3912 endif
3913
3914
3915 #
3916 # RuntimeRCStub - Raw-mode context startup stub for Windows.
3917 #
3918 RuntimeRCStub_TEMPLATE = VBoxRc
3919 RuntimeRCStub_SOURCES.win = \
3920 nt/NtProcessStartup-stub.cpp
3921
3922
3923endif # VBOX_WITH_RAW_MODE
3924
3925
3926#
3927# Static library for new & delete for the electric fence.
3928#
3929RuntimeEFCPP_TEMPLATE := $(VBoxRT_TEMPLATE)
3930RuntimeEFCPP_SDKS := $(RuntimeR3_SDKS)
3931RuntimeEFCPP_SDKS.$(KBUILD_TARGET) := $(RuntimeR3_SDKS.$(KBUILD_TARGET))
3932RuntimeEFCPP_DEFS := $(RuntimeR3_DEFS)
3933RuntimeEFCPP_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
3934RuntimeEFCPP_INCS := $(RuntimeR3_INCS)
3935RuntimeEFCPP_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
3936RuntimeEFCPP_SOURCES := r3/alloc-ef-cpp.cpp
3937
3938
3939
3940#
3941# The NTDLL mini import library.
3942#
3943# Note! The reason for doing this is to avoid importing CRT symbols from the
3944# NTDLL. We do not wish to do this because:
3945# - Our compiler is usually a different one and we should use the
3946# matching CRT,
3947# - Older versions of NTDLL may not sport all the exports our w2k3 or
3948# later WINDDK ntdll.lib have and thus we may easily end up with
3949# images that does not load on older windows versions.
3950#
3951if1of (win,$(KBUILD_TARGET) $(KBUILD_HOST))
3952RuntimeR3NtDll-amd64_TEMPLATE = VBoxR3Dll
3953RuntimeR3NtDll-amd64_BLD_TRG_ARCH = amd64
3954RuntimeR3NtDll-amd64_ARFLAGS = /NODEFAULTLIB /MACHINE:amd64
3955RuntimeR3NtDll-amd64_SOURCES = \
3956 r3/win/ntdll-mini-implib.def
3957
3958RuntimeR3NtDll-x86_TEMPLATE = VBoxR3Dll
3959RuntimeR3NtDll-x86_BLD_TRG_ARCH = x86
3960RuntimeR3NtDll-x86_ARFLAGS = /NODEFAULTLIB /MACHINE:x86
3961RuntimeR3NtDll-x86_SOURCES = \
3962 r3/win/ntdll-mini-implib.def \
3963 $(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm
3964RuntimeR3NtDll-x86_CLEAN = \
3965 $(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm
3966
3967$$(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm: $(PATH_SUB_CURRENT)/r3/win/ntdll-mini-implib.def | $$(dir $$@)
3968 $(call MSG_GENERATE,,$@,$<)
3969 $(QUIET)$(APPEND) -nt "$@" \
3970 ';Autogenerated, do not edit' \
3971 '%include "iprt/asmdefs.mac"' \
3972 'BEGINCODE' \
3973 '%macro IMPLIB_EXPORT 1' \
3974 'global %1:function' \
3975 '%1: nop' \
3976 '%endm' \
3977 ''
3978 $(QUIET)$(SED) -e '1,/EXPORTS/d' \
3979 -e 's/^.*;;=[[:space:]]*\([^[:space:]]*\)[[:space:]]*$$/IMPLIB_EXPORT \1/' \
3980 $< --append $@
3981endif
3982
3983#
3984# Bag of tricks required for making VCC100 output binaries work on NT4, W2K
3985# early XP and early W2K3. Used by validation kit.
3986#
3987RuntimeR3VccTricks_TEMPLATE = VBoxR3Static
3988RuntimeR3VccTricks_DEFS = VCC_FAKES_TARGET_$(VBOX_VCC_TOOL_STEM) VCC_FAKES_TARGET=$(substr $(VBOX_VCC_TOOL_STEM),-3)
3989RuntimeR3VccTricks_SOURCES = \
3990 r3/win/vcc-fakes-kernel32.cpp \
3991 r3/win/vcc-fakes-kernel32-A.asm \
3992 r3/win/vcc-fakes-shell32.cpp \
3993 r3/win/vcc-fakes-shell32-A.asm \
3994 r3/win/vcc-fakes-ntdll.cpp \
3995 r3/win/vcc-fakes-ntdll-A.asm
3996
3997if defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" # Ugly hacks... :-)
3998LIBRARIES += RuntimeR3VccTricks2
3999RuntimeR3VccTricks2_TEMPLATE = VBoxR3Dll
4000RuntimeR3VccTricks2_DEFS += $(RuntimeR3VccTricks_DEFS)
4001RuntimeR3VccTricks2_SOURCES = $(RuntimeR3VccTricks_SOURCES)
4002RuntimeR3VccTricks2_SOURCES += $(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib
4003RuntimeR3VccTricks2_CLEAN = $(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib
4004RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED =
4005
4006$$(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib: \
4007 $$(PATH_TOOL_$$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \
4008 $$(PATH_TOOL_$$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
4009 $$(LIB_RUNTIME) \
4010 $(MAKEFILE) | $$(dir $$@)
4011 $(RM) -f -- "$@"
4012# $(REDIRECT) -C $(dir $@) -- $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib \
4013# $(PATH_TOOL_$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
4014# $(foreach file, $(RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED), *$(file))
4015 $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib [email protected] $< \
4016 -MSVCR100.dll \
4017 $(addprefix $(RuntimeR3VccTricks2_0_OUTDIR)/, $(RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED)) \
4018 -chandler4gs.obj
4019 $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib -o=$@ \
4020 $(LIB_RUNTIME) \
4021 [email protected]
4022 $(RM) -f -- [email protected] $(addprefix $(RuntimeR3VccTricks2_0_OUTDIR)/, $(RuntimeR3VccTricks_VBOX_LIBCMT_NEEDED))
4023endif
4024
4025
4026#
4027# errmsg.cpp depends on a generated header.
4028#
4029common/err/errmsg.cpp_DEPS = \
4030 $(IPRT_OUT_DIR)/errmsgdata-all.h \
4031 $(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h \
4032 $(IPRT_OUT_DIR)/errmsgdata-only-defines.h
4033common/err/errmsg.cpp_INCS = $(IPRT_OUT_DIR)
4034
4035win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgwindata-all.h $(IPRT_OUT_DIR)/errmsgwindata-only-defines.h
4036win/errmsgwin.cpp_INCS = $(IPRT_OUT_DIR)
4037
4038# Our COM errors only for R3 libraries on the host
4039define def_errmsgwin_deps
4040 $(lib)_common/err/errmsgxpcom.cpp_INCS = $(IPRT_OUT_DIR)
4041 $(lib)_common/err/errmsgxpcom.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
4042endef
4043$(foreach lib,RuntimeR3 RuntimeBldProg VBoxRT VBoxRT-x86,$(eval $(def_errmsgwin_deps)))
4044
4045
4046#
4047# Generate the status code data.
4048#
4049$(IPRT_OUT_DIR)/errmsgdata.h: \
4050 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsg.sed \
4051 $(PATH_ROOT)/include/iprt/err.h \
4052 $(PATH_ROOT)/include/VBox/err.h \
4053 | $$(dir $$@)
4054 $(call MSG_GENERATE,,$@,$(filter %.h,$^))
4055 $(QUIET)$(SED) -f $< --output "$@" $(filter %.h,$^)
4056
4057$(IPRT_OUT_DIR)/errmsgdata-all.h.ts +| $(IPRT_OUT_DIR)/errmsgdata-all.h: \
4058 $$(bldRTErrMsgSorter_1_TARGET)
4059 $(call MSG_GENERATE,,$@,$<)
4060 $(QUIET)"$<" --all "$(IPRT_OUT_DIR)/errmsgdata-all.h.ts"
4061 $(QUIET)$(CP) --changed -fv -- "$(IPRT_OUT_DIR)/errmsgdata-all.h.ts" "$(IPRT_OUT_DIR)/errmsgdata-all.h"
4062
4063$(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h.ts +| $(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h: \
4064 $$(bldRTErrMsgSorter_1_TARGET)
4065 $(call MSG_GENERATE,,$@,$<)
4066 $(QUIET)"$<" --no-full-msg "$(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h.ts"
4067 $(QUIET)$(CP) --changed -fv -- "$(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h.ts" "$(IPRT_OUT_DIR)/errmsgdata-no-full-msg.h"
4068
4069$(IPRT_OUT_DIR)/errmsgdata-only-defines.h.ts +| $(IPRT_OUT_DIR)/errmsgdata-only-defines.h: \
4070 $$(bldRTErrMsgSorter_1_TARGET)
4071 $(call MSG_GENERATE,,$@,$<)
4072 $(QUIET)"$<" --only-defines "$(IPRT_OUT_DIR)/errmsgdata-only-defines.h.ts"
4073 $(QUIET)$(CP) --changed -fv -- "$(IPRT_OUT_DIR)/errmsgdata-only-defines.h.ts" "$(IPRT_OUT_DIR)/errmsgdata-only-defines.h"
4074
4075
4076$(IPRT_OUT_DIR)/errmsgwindata.h: \
4077 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsgcom.sed \
4078 $$(qwildcard ,$$(qaddsuffix ,/WinError.h,$$(SDK_$$(VBOX_WINPSDK)_INCS))) \
4079 | $$(dir $$@)
4080 $(call MSG_GENERATE,,$@,$(deps $@, 2))
4081 $(QUIET)$(SED) -f "$<" --output "$@" $(qdeps sh,$@,2)
4082
4083$(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts +| $(IPRT_OUT_DIR)/errmsgvboxcomdata.h: \
4084 $(VBOX_PATH_RUNTIME_SRC)/VBox/errmsgvboxcom.xsl \
4085 $(VBOX_XIDL_FILE_SRC) \
4086 | $$(dir $$@)
4087 $(call MSG_GENERATE,,$@,$(filter %.xidl,$^))
4088 $(QUIET)$(VBOX_XSLTPROC) -o $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts $< $(filter %.xidl,$^)
4089 $(QUIET)$(CP) --changed -fv -- $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
4090
4091$(IPRT_OUT_DIR)/errmsgwindata-all.h.ts +| $(IPRT_OUT_DIR)/errmsgwindata-all.h: \
4092 $$(bldRTErrMsgWinSorter_1_TARGET)
4093 $(call MSG_GENERATE,,$@,$<)
4094 $(QUIET)"$<" --all "$(IPRT_OUT_DIR)/errmsgwindata-all.h.ts"
4095 $(QUIET)$(CP) --changed -fv -- "$(IPRT_OUT_DIR)/errmsgwindata-all.h.ts" "$(IPRT_OUT_DIR)/errmsgwindata-all.h"
4096
4097$(IPRT_OUT_DIR)/errmsgwindata-only-defines.h.ts +| $(IPRT_OUT_DIR)/errmsgwindata-only-defines.h: \
4098 $$(bldRTErrMsgWinSorter_1_TARGET)
4099 $(call MSG_GENERATE,,$@,$<)
4100 $(QUIET)"$<" --only-defines "$(IPRT_OUT_DIR)/errmsgwindata-only-defines.h.ts"
4101 $(QUIET)$(CP) --changed -fv -- "$(IPRT_OUT_DIR)/errmsgwindata-only-defines.h.ts" "$(IPRT_OUT_DIR)/errmsgwindata-only-defines.h"
4102
4103
4104#
4105# Sorter for the IPRT status codes.
4106#
4107BLDPROGS += bldRTErrMsgSorter
4108bldRTErrMsgSorter_TEMPLATE = VBoxBldProg
4109bldRTErrMsgSorter_INCS = $(IPRT_OUT_DIR)
4110bldRTErrMsgSorter_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h
4111bldRTErrMsgSorter_SOURCES = common/err/errmsg-sorter.cpp
4112
4113#
4114# Sorter for the windows error codes.
4115#
4116BLDPROGS.win += bldRTErrMsgWinSorter
4117bldRTErrMsgWinSorter_TEMPLATE = VBoxBldProg
4118bldRTErrMsgWinSorter_INCS = $(IPRT_OUT_DIR)
4119bldRTErrMsgWinSorter_DEPS = \
4120 $(IPRT_OUT_DIR)/errmsgwindata.h \
4121 $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
4122bldRTErrMsgWinSorter_SOURCES = win/errmsgwin-sorter.cpp
4123
4124
4125
4126if "$(KBUILD_TARGET)" == "freebsd"
4127#
4128# FreeBSDGeneratedKernelHeaders - Generate some kernel interface headers.
4129#
4130# These are used by:
4131# - The RTMp* API in IPRT.
4132# - VBoxGuest
4133#
4134# Note! We cannot give a output path to the awk program, it will always
4135# generate the header next to the source. So, we'll have to temporarily copy
4136# the source file to the destination directory to work.
4137#
4138VBOX_AWK := /usr/bin/awk
4139INSTALLS += FreeBSDGeneratedKernelHeaders
4140FreeBSDGeneratedKernelHeaders_INST = gen-sys-hdrs/
4141FreeBSDGeneratedKernelHeaders_SOURCES = \
4142 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h \
4143 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h \
4144 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h
4145FreeBSDGeneratedKernelHeaders_CLEAN = $(FreeBSDGeneratedKernelHeaders_SOURCES)
4146
4147$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h: $(VBOX_FREEBSD_SRC)/kern/bus_if.m | $$(dir $$@)
4148 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
4149 $(QUIET)$(CP) -f $< $(@D)/bus_if.m
4150 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/bus_if.m -h -p
4151 $(QUIET)$(RM) $(@D)/bus_if.m
4152
4153$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h: $(VBOX_FREEBSD_SRC)/kern/device_if.m | $$(dir $$@)
4154 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
4155 $(QUIET)$(CP) -f $< $(@D)/device_if.m
4156 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/device_if.m -h -p
4157 $(QUIET)$(RM) $(@D)/device_if.m
4158
4159$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h: $(VBOX_FREEBSD_SRC)/dev/pci/pci_if.m | $$(dir $$@)
4160 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
4161 $(QUIET)$(CP) -f $< $(@D)/pci_if.m
4162 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/pci_if.m -h -p
4163 $(QUIET)$(RM) $(@D)/pci_if.m
4164endif # FreeBSD
4165
4166
4167#
4168# Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
4169#
4170ldrELFRelocatable.cpp.o: ldrELF.o
4171ldrELFRelocatable.cpp.obj: ldrELF.obj
4172
4173
4174#
4175# Doxygen documentation.
4176#
4177IPRT_DOXYFILE_INPUT_DIRS = \
4178 $(PATH_ROOT)/include/iprt \
4179 $(PATH_ROOT)/include/iprt/cpp \
4180 $(PATH_ROOT)/include/iprt/linux \
4181 $(PATH_ROOT)/include/iprt/nocrt \
4182 $(PATH_ROOT)/include/iprt/nocrt/x86 \
4183 $(PATH_ROOT)/include/iprt/nocrt/amd64 \
4184 $(PATH_ROOT)/include/iprt/nocrt/compiler \
4185 $(VBOX_PATH_RUNTIME_SRC)/include/internal \
4186 $(VBOX_PATH_RUNTIME_SRC)/common/alloc \
4187 $(VBOX_PATH_RUNTIME_SRC)/common/asm \
4188 $(VBOX_PATH_RUNTIME_SRC)/common/checksum \
4189 $(VBOX_PATH_RUNTIME_SRC)/common/dbg \
4190 $(VBOX_PATH_RUNTIME_SRC)/common/err \
4191 $(VBOX_PATH_RUNTIME_SRC)/common/ldr \
4192 $(VBOX_PATH_RUNTIME_SRC)/common/log \
4193 $(VBOX_PATH_RUNTIME_SRC)/common/math \
4194 $(VBOX_PATH_RUNTIME_SRC)/common/math/amd64 \
4195 $(VBOX_PATH_RUNTIME_SRC)/common/math/gcc \
4196 $(VBOX_PATH_RUNTIME_SRC)/common/math/x86 \
4197 $(VBOX_PATH_RUNTIME_SRC)/common/misc \
4198 $(VBOX_PATH_RUNTIME_SRC)/common/path \
4199 $(VBOX_PATH_RUNTIME_SRC)/common/rand \
4200 $(VBOX_PATH_RUNTIME_SRC)/common/string \
4201 $(VBOX_PATH_RUNTIME_SRC)/common/table \
4202 $(VBOX_PATH_RUNTIME_SRC)/common/time \
4203 $(VBOX_PATH_RUNTIME_SRC)/VBox \
4204 $(foreach dir, $(VBOX_PATH_RUNTIME_SRC) $(VBOX_PATH_RUNTIME_SRC)/r3 $(VBOX_PATH_RUNTIME_SRC)/r0drv,\
4205 $(dir) \
4206 $(dir)/darwin \
4207 $(dir)/haiku \
4208 $(dir)/linux \
4209 $(dir)/nt \
4210 $(dir)/os2 \
4211 $(dir)/solaris \
4212 $(dir)/win \
4213 $(dir)/win32 \
4214 $(dir)/win64 \
4215 $(dir)/generic \
4216 )
4217
4218# These must come first in order to make things look nice.
4219IPRT_DOXYFILE_INPUT_FIRST =\
4220 $(PATH_ROOT)/include/iprt/cdefs.h \
4221 $(PATH_ROOT)/include/iprt/types.h \
4222 $(PATH_ROOT)/include/iprt/runtime.h \
4223 $(PATH_ROOT)/include/iprt/param.h \
4224 $(PATH_ROOT)/include/iprt/assert.h \
4225 $(PATH_ROOT)/include/iprt/asm.h \
4226
4227IPRT_DOXYFILE_INPUT := \
4228 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(IPRT_DOXYFILE_INPUT_DIRS)))) ) \
4229 $(foreach dir, $(IPRT_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
4230IPRT_DOXYFILE_INPUT := \
4231 $(IPRT_DOXYFILE_INPUT_FIRST) \
4232 $(sort $(filter-out $(IPRT_DOXYFILE_INPUT_FIRST), $(IPRT_DOXYFILE_INPUT)))
4233
4234
4235IPRT_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/iprt
4236BLDDIRS += $(IPRT_DOXYFILE_OUTPUT)
4237
4238includedep $(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt.dep
4239
4240# Generate the Doxyfile
4241$(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt: \
4242 $(VBOX_PATH_RUNTIME_SRC)/Doxyfile \
4243 $(VBOX_PATH_RUNTIME_SRC)/Makefile.kmk \
4244 $(comp-vars IPRT_DOXYFILE_INPUT,DOXYGEN_IPRT_INPUT_PREV,FORCE) \
4245 $(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_IPRT_OUTPUT_PREV,FORCE) \
4246 | $$(dir $$@)
4247 $(QUIET)$(RM) -f $@ [email protected] [email protected]
4248 $(QUIET)$(CP) -f $(VBOX_PATH_RUNTIME_SRC)/Doxyfile [email protected]
4249 $(QUIET)$(APPEND) [email protected]
4250 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(IPRT_DOXYFILE_OUTPUT)"
4251 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(IPRT_DOXYFILE_OUTPUT)/errors"
4252 $(QUIET)$(APPEND) [email protected] 'INCLUDE_PATH = ' \
4253 '$(PATH_ROOT)/include' \
4254 '$(VBOX_PATH_RUNTIME_SRC)/include' \
4255 '$(VBOX_PATH_RUNTIME_SRC)/' \
4256 '$(VBOX_PATH_RUNTIME_SRC)/common/table'
4257 $(QUIET)$(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
4258 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
4259 $(QUIET)$(APPEND) [email protected] 'EXCLUDE = '\
4260 '$(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-flags.cpp' \
4261 '$(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-lower.cpp' \
4262 '$(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-upper.cpp' \
4263 $(QUIET)$(APPEND) [email protected]
4264 $(QUIET)$(APPEND) [email protected] 'INPUT = $(foreach x,$(IPRT_DOXYFILE_INPUT),\$(NLTAB)$(x))'
4265 $(QUIET)$(APPEND) [email protected]
4266 $(QUIET)$(MV) -f [email protected] $@
4267 $(QUIET)$(APPEND) [email protected] "DOXYGEN_IPRT_OUTPUT_PREV = $(IPRT_DOXYFILE_OUTPUT)"
4268 $(QUIET)$(APPEND) [email protected] "DOXYGEN_IPRT_INPUT_PREV = $(IPRT_DOXYFILE_INPUT)"
4269
4270# Do the actual job.
4271$(IPRT_DOXYFILE_OUTPUT)/docs.iprt: $(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt $$(IPRT_DOXYFILE_INPUT) \
4272 | $(IPRT_DOXYFILE_OUTPUT)/
4273 $(QUIET)$(RM) -f $@
4274 $(QUIET)$(RM) -Rf $(IPRT_DOXYFILE_OUTPUT)/html/
4275 doxygen $(DOXYGEN_OPTS) $(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt
4276 $(SED) -e '/warning. Unexpected tag .dd. found/d' \
4277 -e '/warning. Unsupported xml.html tag .globalScope. found/d' \
4278 --output $(IPRT_DOXYFILE_OUTPUT)/errors2 \
4279 $(IPRT_DOXYFILE_OUTPUT)/errors
4280 $(CAT) $(IPRT_DOXYFILE_OUTPUT)/errors2
4281 $(SED) -e "/[^ ]/q 1" $(IPRT_DOXYFILE_OUTPUT)/errors2
4282 $(APPEND) $@
4283
4284# aliases
4285docs.iprt: $(IPRT_DOXYFILE_OUTPUT)/docs.iprt
4286if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
4287docs: $(IPRT_DOXYFILE_OUTPUT)/docs.iprt
4288endif
4289
4290test-doxygen::
4291 @echo test-$(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_IPRT_OUTPUT_PREV,FORCE)
4292 @echo $(IPRT_DOXYFILE_OUTPUT)
4293 @echo $(DOXYGEN_IPRT_OUTPUT_PREV)
4294 @echo $(IPRT_DOXYFILE_INPUT)
4295
4296
4297#
4298# Test mangling.
4299#
4300if1of ($(LIBRARIES),RuntimeR3 RuntimeR0 RuntimeR0Drv RuntimeRC)
4301 test-mangling:: $(IPRT_OUT_DIR)/mangling.run
4302 OTHERS += $(IPRT_OUT_DIR)/mangling.run
4303 OTHER_CLEAN += $(IPRT_OUT_DIR)/mangling.run
4304 $(IPRT_OUT_DIR)/mangling.run: \
4305 $$(RuntimeR3_1_TARGET) \
4306 $$(RuntimeR0_1_TARGET) \
4307 $$(RuntimeR0Drv_1_TARGET) \
4308 $$(RuntimeRC_1_TARGET)
4309 if1of ($(KBUILD_TARGET), win os2)
4310 $(call MSG_L1,IPRT: skipped mangling test.)
4311 else
4312# Generate a SED script from mangling.h that checks for known symbols.
4313 $(QUIET)$(SED) \
4314 -e '/^# *define.*RT_MANGLER/!d' \
4315 -e 's/^.*RT_MANGLER(\([^)][^)]*\)).*$(DOLLAR)/\/^\1$(DOLLAR)\/b ok/' \
4316 $(PATH_ROOT)/include/iprt/mangling.h \
4317 --output "$@"
4318 $(QUIET)$(APPEND) -n '$@' \
4319 ':bad' \
4320 's/^\(.*\)$(DOLLAR)/error: Missing # define \1 /' \
4321 ':bad-pad' \
4322 '/^.\{0,70\}$(DOLLAR)/ { s/$(DOLLAR)/ /; bbad-pad; }' \
4323 's/define \([^ ]*\) \([ ]*\)$(DOLLAR)/define \1 \2RT_MANGLER(\1)/' \
4324 'p' \
4325 $(if-expr !defined(IPRT_IGNORE_TEST_MANGLING),'q 1') \
4326 '' \
4327 ':ok' \
4328 'd'
4329# Find the best way to generate a symbol list and subject it to mangling.h.
4330 if $(intersects $(KBUILD_TARGET), linux) && "$(VBOX_GCC_fvisibility-hidden)"
4331 $(call MSG_L1,IPRT: Testing mangling and visiblity for newer gcc...)
4332 $(QUIET)readelf -Ws $^ \
4333 | $(SED) \
4334 -e 's/[[:space:]]\+/ /g' \
4335 -e '/^ *[[:digit:]]\+:/!d' \
4336 -e 's/^ \+[[:digit:]]\+: \+[[:xdigit:]]\+ \+[[:digit:]]\+ \+//' \
4337 -e '/^SECTION/d' \
4338 -e '/^FILE/d' \
4339 -e 's/^[[:alpha:]]\+ \+//' \
4340 -e '/LOCAL/d' \
4341 -e 's/^[[:alpha:]]\+ \+//' \
4342 -e '/^HIDDEN [[:xdigit:]]\+ RT/bkeep-hidden' \
4343 -e '/^HIDDEN [[:xdigit:]]\+ g_[a-z0-9]*RT/bkeep-hidden' \
4344 -e '/^HIDDEN/d' \
4345 -e ':keep-hidden' \
4346 -e 's/^[[:alpha:]]\+ \+//' \
4347 -e '/^UND/d' \
4348 -e 's/^[[:digit:]]\+ \+//' \
4349 \
4350 -e '/^nocrt_/d' \
4351 -e '/^bzero/d' \
4352 -e '/^memchr/d' \
4353 -e '/^memcmp/d' \
4354 -e '/^memcpy/d' \
4355 -e '/^mempcpy/d' \
4356 -e '/^memmove/d' \
4357 -e '/^memset/d' \
4358 -e '/^strchr/d' \
4359 -e '/^strpbrk/d' \
4360 -e '/^_Z7strpbrk/d' \
4361 -e '/^strcmp/d' \
4362 -e '/^strcpy/d' \
4363 -e '/^strncpy/d' \
4364 -e '/^strlen/d' \
4365 -e '/^_Z[[:alpha:]]*[[:digit:]]\+RTC/d' \
4366 -e '/^_Z[[:alpha:]]*[[:digit:]]\+RTC/d' \
4367 \
4368 -e '/^_ZnwjPv/d' \
4369 -e '/^_ZnwmPv/d' \
4370 -e '/^_ZNSt9bad_allocC1Ev/d' \
4371 -e '/^_ZNSt9bad_allocC[12]ERKS_/d' \
4372 -e '/^_ZNSt9exceptionC[12]Ev/d' \
4373 -e '/^_ZNSt9exceptionC[12]ERKS_/d' \
4374 \
4375 -e '/^_ZN[a-zA-Z]*St[[:digit:]]*_*[lL]ist/d' \
4376 -e '/^_ZN[a-zA-Z]*[[:digit:]]*__gnu_cxx/d' \
4377 -e '/^_ZNSa.*ElementNode.*/d' \
4378 -e '/^_ZSt.*ElementNode.*/d' \
4379 \
4380 -e '/^_Z[[:digit:]]\+dbus/d' \
4381 -e '/^_Z13RTDBusLoadLibv/d' \
4382 \
4383 -e '/^g_[ac]VTG/d' \
4384 -e '/^g_VTGObjHeader/d' \
4385 -e '/^g_VTGProbeData/d' \
4386 -e '/^VTGProbeStub/d' \
4387 -e '/^g_achVTGStringTable/d' \
4388 -e '/^g_acVTGProbeEnabled/d' \
4389 \
4390 -e '/^VBoxHost_/d'\
4391 -e '/^VBoxGuest_/d'\
4392 | $(SED) -nf "$@"
4393 endif
4394 $(call MSG_L1,IPRT: Testing mangling using nm...)
4395 $(QUIET)$(VBOX_NM) $^ 2> /dev/null \
4396 | $(SED) -n \
4397 -e 's/^[0-9a-f][0-9a-f]* //' \
4398 -e '/^[TUDB] /!d' \
4399 -e 's/^. //' \
4400 $(if-expr "$(KBUILD_TARGET)" == "darwin" || "$(KBUILD_TARGET)" == "os2" || "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86", \
4401 -e 's/^_//',) \
4402 \
4403 -e '/^g_cchrt/d'\
4404 -e '/^g_frt/d'\
4405 -e '/^g_offrt/d'\
4406 -e '/^g_pfnrt/d'\
4407 -e '/^g_rt/d'\
4408 -e '/^g_szrt/d'\
4409 -e '/^g_ProcessSelf/d'\
4410 -e '/^g_u64ProgramStart/d'\
4411 -e '/^g_enmProcessPriority/d'\
4412 -e '/^g_hDbgModStrCache/d'\
4413 -e '/^g_pfnR0Darwin/d'\
4414 -e '/^g_pDarwinLockGroup/d'\
4415 $(if-expr "$(KBUILD_TARGET)" == "solaris", \
4416 -e '/^g_kLdrRdrFileOps/d' \
4417 -e '/^g_pSUPGlobalInfoPage/d' \
4418 -e '/^g_Logger/d' \
4419 -e '/^g_RelLogger/d' \
4420 -e '/^g_VM/d',) \
4421 $(if-expr "$(KBUILD_TARGET)" == "linux", \
4422 -e '/^g_kLdrRdrFileOps/d',) \
4423 \
4424 -e '/^g_[ac]VTG/d' \
4425 -e '/^g_VTGObjHeader/d' \
4426 -e '/^g_VTGProbeData/d' \
4427 -e '/^VTGProbeStub/d' \
4428 -e '/^g_achVTGStringTable/d' \
4429 -e '/^g_acVTGProbeEnabled/d' \
4430 \
4431 -e '/^RTDBusLoadLib/d' \
4432 \
4433 -e '/^RT/p' \
4434 -e '/^g_/p' \
4435 | $(SED) -nf "$@"
4436 endif
4437endif
4438 $(QUIET)$(APPEND) -t $@
4439
4440if !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_VALIDATIONKIT) && !defined(VBOX_ONLY_DOCS)
4441#
4442# Windows build tool.
4443#
4444BLDPROGS.win += ntBldSymDb
4445ntBldSymDb_TEMPLATE = VBoxAdvBldProg
4446ntBldSymDb_INCS = .
4447ntBldSymDb_SOURCES = r0drv/nt/ntBldSymDb.cpp
4448endif
4449
4450
4451#
4452# Generate the rules (we're the to sub-makefile).
4453#
4454include $(FILE_KBUILD_SUB_FOOTER)
4455
4456
4457#
4458# Aliases for code templates.
4459#
4460rsa-template.o rsa-template.obj: rsa-core.o rsa-asn1-decoder.o rsa-sanity.o rsa-init.o
4461spc-template.o spc-template.obj: spc-core.o spc-asn1-decoder.o spc-sanity.o spc-init.o
4462taf-template.o taf-template.obj: taf-core.o taf-asn1-decoder.o taf-sanity.o taf-init.o
4463tsp-template.o tsp-template.obj: tsp-core.o tsp-asn1-decoder.o tsp-sanity.o tsp-init.o
4464x509-template.o x509-template.obj: x509-core.o x509-asn1-decoder.o x509-sanity.o x509-init.o
4465pkcs7-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