VirtualBox

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

Last change on this file since 74882 was 74742, checked in by vboxsync, 6 years ago

IPRT: Dropped openssl from the static RuntimR3.lib/a build. bugref:9232

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