VirtualBox

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

Last change on this file since 78059 was 78048, checked in by vboxsync, 6 years ago

IPRT: Working on new RTPathAbsEx implementation, temporarily called RTPathAbsExEx. This should fix most of the bugs in the current RTPathAbs/Ex code and do away with the fixed path buffer limitations. Also introduces a RTPATH_BIG_MAX, given that RTPATH_MAX is just a reasonable and not absolute MAX value. The new one is more or less absolute and must never be used for stack buffers. bugref:9172

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