VirtualBox

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

Last change on this file since 77760 was 77632, checked in by vboxsync, 6 years ago

IPRT: Adding RTFileSgRead and RTFileSgWrite (for FsPerf). bugref:9172

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