VirtualBox

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

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

iprt: Started on RTDirRel for NT.

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