VirtualBox

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

Last change on this file since 68996 was 68995, checked in by vboxsync, 7 years ago

Runtime/r0drv/darwin: Don't obfuscate R0 pointers, kernel addresses are logged to the kernel log only root has access to

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