VirtualBox

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

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

IPRT,SUPDrv,VBoxGuest: common/err/errinfo.cpp is now needed for kernel code due to log.cpp using it.

  • 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 69762 2017-11-19 16:12:34Z 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/RTDirSetTimes-generic.cpp \
796 generic/RTFileExists-generic.cpp \
797 generic/RTFileSetAllocationSize-generic.cpp \
798 generic/RTMpGetCurFrequency-generic.cpp \
799 generic/RTMpGetMaxFrequency-generic.cpp \
800 generic/RTPathAbs-generic.cpp \
801 generic/RTRandAdvCreateSystemFaster-generic.cpp \
802 generic/RTRandAdvCreateSystemTruer-generic.cpp \
803 generic/RTSemEventWait-generic.cpp \
804 generic/RTSemEventMultiWait-2-ex-generic.cpp \
805 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
806 generic/RTSemMutexRequest-generic.cpp \
807 generic/RTSemMutexRequestDebug-generic.cpp \
808 generic/RTThreadSetAffinityToCpu-generic.cpp \
809 generic/mppresent-generic-online.cpp \
810 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
811 generic/uuid-generic.cpp \
812 generic/RTProcDaemonize-generic.cpp \
813 generic/RTProcIsRunningByName-generic.cpp \
814 generic/RTThreadGetNativeState-generic.cpp \
815 nt/RTErrConvertFromNtStatus.cpp \
816 nt/RTNtPathExpand8dot3Path.cpp \
817 nt/RTNtPathFindPossible8dot3Name.cpp \
818 nt/fileioutils-nt.cpp \
819 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
820 r3/nt/dirrel-r3-nt.cpp \
821 r3/nt/fs-nt.cpp \
822 r3/nt/pathint-nt.cpp \
823 r3/nt/RTFileQueryFsSizes-nt.cpp \
824 r3/nt/RTPathQueryInfo-nt.cpp \
825 r3/nt/RTProcQueryParent-r3-nt.cpp \
826 r3/win/env-win.cpp \
827 r3/win/RTCrStoreCreateSnapshotById-win.cpp \
828 r3/win/RTHandleGetStandard-win.cpp \
829 r3/win/RTLocaleQueryNormalizedBaseLocaleName-win.cpp \
830 r3/win/RTLocaleQueryUserCountryCode-win.cpp \
831 r3/win/RTSystemQueryOSInfo-win.cpp \
832 r3/win/RTSystemShutdown-win.cpp \
833 r3/win/RTSystemQueryDmiString-win.cpp \
834 r3/win/RTSystemQueryTotalRam-win.cpp \
835 r3/win/RTTimeZoneGetCurrent-win.cpp \
836 r3/win/alloc-win.cpp \
837 r3/win/allocex-win.cpp \
838 r3/win/dir-win.cpp \
839 $(if-expr defined(VBOX_WITH_NT_DIRENUM),r3/nt/direnum-r3-nt.cpp,r3/win/direnum-win.cpp generic/RTDirQueryInfo-generic.cpp) \
840 r3/win/errvars-win.cpp \
841 r3/win/fileio-win.cpp \
842 r3/win/init-win.cpp \
843 r3/win/krnlmod-win.cpp \
844 r3/win/ldrNative-win.cpp \
845 r3/win/localipc-win.cpp \
846 r3/win/mp-win.cpp \
847 r3/win/path-win.cpp \
848 r3/win/pipe-win.cpp \
849 r3/win/process-win.cpp \
850 r3/win/RTLogWriteDebugger-win.cpp \
851 r3/win/rtProcInitExePath-win.cpp \
852 r3/win/sched-win.cpp \
853 r3/win/semevent-win.cpp \
854 r3/win/semeventmulti-win.cpp \
855 r3/win/semmutex-win.cpp \
856 r3/win/symlink-win.cpp \
857 r3/win/rtFileNativeSetAttributes-win.cpp \
858 r3/win/thread-win.cpp \
859 r3/win/thread2-win.cpp \
860 $(if-expr 1,r3/win/time-win.cpp,r3/nt/time-nt.cpp) \
861 r3/win/time2-win.cpp \
862 r3/win/timer-win.cpp \
863 r3/win/tls-win.cpp \
864 r3/win/utf16locale-win.cpp \
865 r3/win/utf8-win.cpp \
866 r3/win/RTUuidCreate-win.cpp \
867 win/errmsgwin.cpp \
868 win/RTErrConvertFromWin32.cpp \
869 common/string/mempcpy.asm
870
871RuntimeR3_SOURCES.win.amd64 := \
872 $(RuntimeWin64ASM_SOURCES) \
873 common/string/memrchr.asm
874RuntimeR3_SOURCES.win.x86 := \
875 $(RuntimeWin32ASM_SOURCES) \
876 common/string/memrchr.asm
877
878RuntimeR3_SOURCES.linux = \
879 generic/cdrom-generic.cpp \
880 generic/RTCrStoreCreateSnapshotById-generic.cpp \
881 generic/RTDirQueryInfo-generic.cpp \
882 generic/RTDirSetTimes-generic.cpp \
883 generic/RTFileMove-generic.cpp \
884 generic/RTLogWriteDebugger-generic.cpp \
885 generic/RTPathAbs-generic.cpp \
886 generic/RTPathGetCurrentOnDrive-generic.cpp \
887 generic/RTProcDaemonize-generic.cpp \
888 generic/RTSemEventMultiWait-2-ex-generic.cpp \
889 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
890 generic/RTTimeLocalNow-generic.cpp \
891 generic/RTTimerCreate-generic.cpp \
892 generic/RTThreadSetAffinityToCpu-generic.cpp \
893 generic/RTUuidCreate-generic.cpp \
894 generic/mppresent-generic.cpp \
895 generic/utf16locale-generic.cpp \
896 generic/uuid-generic.cpp \
897 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
898 r3/generic/RTLocaleQueryNormalizedBaseLocaleName-r3-generic.cpp \
899 r3/generic/RTLocaleQueryUserCountryCode-r3-generic.cpp \
900 r3/generic/RTTimeZoneGetCurrent-generic.cpp \
901 r3/generic/dirrel-r3-generic.cpp \
902 r3/posix/allocex-r3-posix.cpp \
903 r3/linux/RTThreadGetNativeState-linux.cpp \
904 r3/linux/krnlmod-linux.cpp \
905 r3/linux/mp-linux.cpp \
906 r3/linux/rtProcInitExePath-linux.cpp \
907 r3/linux/sched-linux.cpp \
908 r3/linux/sysfs.cpp \
909 r3/linux/time-linux.cpp \
910 r3/linux/thread-affinity-linux.cpp \
911 r3/linux/RTFileSetAllocationSize-linux.cpp \
912 r3/linux/RTProcIsRunningByName-linux.cpp \
913 r3/linux/RTSystemQueryDmiString-linux.cpp \
914 r3/linux/RTSystemShutdown-linux.cpp \
915 r3/posix/RTFileQueryFsSizes-posix.cpp \
916 r3/posix/RTHandleGetStandard-posix.cpp \
917 r3/posix/RTMemProtect-posix.cpp \
918 r3/posix/RTPathUserHome-posix.cpp \
919 r3/posix/RTSystemQueryOSInfo-posix.cpp \
920 r3/linux/systemmem-linux.cpp \
921 r3/posix/RTTimeNow-posix.cpp \
922 r3/posix/RTTimeSet-posix.cpp \
923 r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
924 r3/posix/dir-posix.cpp \
925 r3/posix/env-posix.cpp \
926 r3/posix/errvars-posix.cpp \
927 r3/posix/fileio-posix.cpp \
928 r3/posix/fileio2-posix.cpp \
929 r3/posix/filelock-posix.cpp \
930 r3/posix/fs-posix.cpp \
931 r3/posix/fs2-posix.cpp \
932 r3/posix/fs3-posix.cpp \
933 r3/posix/ldrNative-posix.cpp \
934 r3/posix/localipc-posix.cpp \
935 r3/posix/path-posix.cpp \
936 r3/posix/path2-posix.cpp \
937 r3/posix/pathhost-posix.cpp \
938 r3/posix/RTPathUserDocuments-posix.cpp \
939 r3/posix/pipe-posix.cpp \
940 r3/posix/process-posix.cpp \
941 r3/posix/process-creation-posix.cpp \
942 r3/posix/rand-posix.cpp \
943 r3/posix/semrw-posix.cpp \
944 r3/posix/symlink-posix.cpp \
945 r3/posix/thread-posix.cpp \
946 r3/posix/thread2-posix.cpp \
947 r3/posix/timelocal-posix.cpp \
948 r3/posix/timer-posix.cpp \
949 r3/posix/tls-posix.cpp \
950 r3/posix/utf8-posix.cpp
951ifdef IPRT_WITH_FUTEX_BASED_SEMS
952 RuntimeR3_SOURCES.linux += \
953 r3/linux/semevent-linux.cpp \
954 r3/linux/semeventmulti-linux.cpp \
955 r3/linux/semmutex-linux.cpp
956else
957 RuntimeR3_SOURCES.linux.x86 += \
958 r3/posix/semevent-posix.cpp \
959 r3/posix/semeventmulti-posix.cpp \
960 r3/posix/semmutex-posix.cpp
961 RuntimeR3_SOURCES.linux.amd64 += \
962 r3/linux/semevent-linux.cpp \
963 r3/linux/semeventmulti-linux.cpp
964 ifdef RT_NEW_LINUX_MUTEX_CODE
965 RuntimeR3_SOURCES.linux.amd64 += \
966 r3/linux/semmutex-linux.cpp
967 else
968 RuntimeR3_SOURCES.linux.amd64 += \
969 r3/posix/semmutex-posix.cpp
970 endif
971endif
972
973RuntimeR3_SOURCES.os2 = \
974 common/string/memrchr.asm \
975 generic/cdrom-generic.cpp \
976 generic/RTCrStoreCreateSnapshotById-generic.cpp \
977 generic/RTDirQueryInfo-generic.cpp \
978 generic/RTDirSetTimes-generic.cpp \
979 generic/RTFileMove-generic.cpp \
980 generic/RTFileSetAllocationSize-generic.cpp \
981 generic/RTLogWriteDebugger-generic.cpp \
982 generic/RTPathAbs-generic.cpp \
983 generic/RTPathGetCurrentOnDrive-generic.cpp \
984 generic/RTProcDaemonize-generic.cpp \
985 generic/RTRandAdvCreateSystemFaster-generic.cpp \
986 generic/RTRandAdvCreateSystemTruer-generic.cpp \
987 generic/RTSystemQueryDmiString-generic.cpp \
988 generic/RTSystemShutdown-generic.cpp \
989 generic/RTTimeLocalNow-generic.cpp \
990 generic/RTTimerCreate-generic.cpp \
991 generic/RTThreadSetAffinityToCpu-generic.cpp \
992 generic/RTUuidCreate-generic.cpp \
993 generic/mppresent-generic.cpp \
994 generic/RTSemEventWait-generic.cpp \
995 generic/RTSemEventMultiWait-generic.cpp \
996 generic/RTSemMutexRequest-generic.cpp \
997 generic/RTSemMutexRequestDebug-generic.cpp \
998 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
999 generic/timer-generic.cpp \
1000 generic/utf16locale-generic.cpp \
1001 generic/uuid-generic.cpp \
1002 generic/RTMpGetCoreCount-generic.cpp \
1003 generic/RTMpGetOnlineCoreCount-generic.cpp \
1004 generic/RTMpGetCurFrequency-generic.cpp \
1005 generic/RTMpGetMaxFrequency-generic.cpp \
1006 generic/RTProcIsRunningByName-generic.cpp \
1007 generic/RTThreadGetNativeState-generic.cpp \
1008 os2/RTErrConvertFromOS2.cpp \
1009 r3/generic/allocex-r3-generic.cpp \
1010 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
1011 r3/generic/RTLocaleQueryNormalizedBaseLocaleName-r3-generic.cpp \
1012 r3/generic/RTLocaleQueryUserCountryCode-r3-generic.cpp \
1013 r3/generic/RTTimeZoneGetCurrent-generic.cpp \
1014 r3/generic/dirrel-r3-generic.cpp \
1015 r3/os2/filelock-os2.cpp \
1016 r3/os2/mp-os2.cpp \
1017 r3/os2/pipe-os2.cpp \
1018 r3/os2/rtProcInitExePath-os2.cpp \
1019 r3/os2/sched-os2.cpp \
1020 r3/os2/sems-os2.cpp \
1021 r3/os2/systemmem-os2.cpp \
1022 r3/os2/thread-os2.cpp \
1023 r3/os2/time-os2.cpp \
1024 r3/posix/RTFileQueryFsSizes-posix.cpp \
1025 r3/posix/RTHandleGetStandard-posix.cpp \
1026 r3/posix/RTMemProtect-posix.cpp \
1027 r3/posix/RTPathUserHome-posix.cpp \
1028 r3/posix/RTSystemQueryOSInfo-posix.cpp \
1029 r3/posix/RTTimeNow-posix.cpp \
1030 r3/posix/RTTimeSet-posix.cpp \
1031 r3/posix/dir-posix.cpp \
1032 r3/posix/env-posix.cpp \
1033 r3/posix/errvars-posix.cpp \
1034 r3/posix/fileio-posix.cpp \
1035 r3/posix/fileio2-posix.cpp \
1036 r3/posix/fs-posix.cpp \
1037 r3/posix/fs2-posix.cpp \
1038 r3/posix/fs3-posix.cpp \
1039 r3/posix/ldrNative-posix.cpp \
1040 r3/posix/localipc-posix.cpp \
1041 r3/posix/path-posix.cpp \
1042 r3/posix/path2-posix.cpp \
1043 r3/posix/pathhost-posix.cpp \
1044 r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
1045 r3/posix/RTPathUserDocuments-posix.cpp \
1046 r3/posix/process-posix.cpp \
1047 r3/posix/process-creation-posix.cpp \
1048 r3/posix/symlink-posix.cpp \
1049 r3/posix/timelocal-posix.cpp \
1050 r3/posix/utf8-posix.cpp
1051
1052RuntimeR3_SOURCES.darwin = \
1053 darwin/RTErrConvertFromDarwin.cpp \
1054 darwin/RTErrConvertFromDarwinCOM.cpp \
1055 darwin/RTErrConvertFromDarwinIO.cpp \
1056 darwin/RTErrConvertFromDarwinKern.cpp \
1057 generic/cdrom-generic.cpp \
1058 generic/RTDirQueryInfo-generic.cpp \
1059 generic/RTDirSetTimes-generic.cpp \
1060 generic/RTFileMove-generic.cpp \
1061 generic/RTFileSetAllocationSize-generic.cpp \
1062 generic/RTLogWriteDebugger-generic.cpp \
1063 generic/RTPathAbs-generic.cpp \
1064 generic/RTPathGetCurrentOnDrive-generic.cpp \
1065 generic/RTProcDaemonize-generic.cpp \
1066 generic/RTThreadGetAffinity-stub-generic.cpp \
1067 generic/RTThreadSetAffinity-stub-generic.cpp \
1068 generic/RTThreadSetAffinityToCpu-generic.cpp \
1069 generic/RTTimeLocalNow-generic.cpp \
1070 generic/RTTimerCreate-generic.cpp \
1071 generic/RTUuidCreate-generic.cpp \
1072 generic/mppresent-generic.cpp \
1073 generic/RTSemEventMultiWait-2-ex-generic.cpp \
1074 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1075 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
1076 generic/RTSystemShutdown-generic.cpp \
1077 generic/timer-generic.cpp \
1078 generic/utf16locale-generic.cpp \
1079 generic/uuid-generic.cpp\
1080 generic/RTProcIsRunningByName-generic.cpp \
1081 generic/RTThreadGetNativeState-generic.cpp \
1082 r3/darwin/RTCrStoreCreateSnapshotById-darwin.cpp \
1083 r3/darwin/filelock-darwin.cpp \
1084 r3/darwin/krnlmod-darwin.cpp \
1085 r3/darwin/mp-darwin.cpp \
1086 r3/darwin/pathhost-darwin.cpp \
1087 r3/darwin/rtProcInitExePath-darwin.cpp \
1088 r3/darwin/RTSystemQueryDmiString-darwin.cpp \
1089 r3/darwin/sched-darwin.cpp \
1090 r3/darwin/systemmem-darwin.cpp \
1091 r3/darwin/time-darwin.cpp \
1092 r3/darwin/RTPathUserDocuments-darwin.cpp \
1093 r3/generic/allocex-r3-generic.cpp \
1094 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
1095 r3/generic/RTLocaleQueryNormalizedBaseLocaleName-r3-generic.cpp \
1096 r3/generic/RTLocaleQueryUserCountryCode-r3-generic.cpp \
1097 r3/generic/RTTimeZoneGetCurrent-generic.cpp \
1098 r3/generic/dirrel-r3-generic.cpp \
1099 r3/posix/RTFileQueryFsSizes-posix.cpp \
1100 r3/posix/RTHandleGetStandard-posix.cpp \
1101 r3/posix/RTMemProtect-posix.cpp \
1102 r3/posix/RTPathUserHome-posix.cpp \
1103 r3/posix/RTSystemQueryOSInfo-posix.cpp \
1104 r3/posix/RTTimeSet-posix.cpp \
1105 r3/posix/dir-posix.cpp \
1106 r3/posix/env-posix.cpp \
1107 r3/posix/errvars-posix.cpp \
1108 r3/posix/fileio-posix.cpp \
1109 r3/posix/fileio2-posix.cpp \
1110 r3/posix/fs-posix.cpp \
1111 r3/posix/fs2-posix.cpp \
1112 r3/posix/fs3-posix.cpp \
1113 r3/posix/ldrNative-posix.cpp \
1114 r3/posix/localipc-posix.cpp \
1115 r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
1116 r3/posix/path-posix.cpp \
1117 r3/posix/path2-posix.cpp \
1118 r3/posix/pipe-posix.cpp \
1119 r3/posix/process-posix.cpp \
1120 r3/posix/process-creation-posix.cpp \
1121 r3/posix/rand-posix.cpp \
1122 r3/posix/semevent-posix.cpp \
1123 r3/posix/semeventmulti-posix.cpp \
1124 r3/posix/semmutex-posix.cpp \
1125 r3/posix/symlink-posix.cpp \
1126 r3/posix/thread-posix.cpp \
1127 r3/posix/thread2-posix.cpp \
1128 r3/posix/timelocal-posix.cpp \
1129 r3/posix/tls-posix.cpp \
1130 r3/posix/utf8-posix.cpp
1131RuntimeR3_SOURCES.darwin.x86 += common/string/memrchr.asm
1132RuntimeR3_SOURCES.darwin.amd64 += common/string/memrchr.asm
1133
1134## @todo Make BSD sched, implement RTMP*.
1135RuntimeR3_SOURCES.freebsd = \
1136 generic/cdrom-generic.cpp \
1137 generic/RTCrStoreCreateSnapshotById-generic.cpp \
1138 generic/RTDirQueryInfo-generic.cpp \
1139 generic/RTDirSetTimes-generic.cpp \
1140 generic/RTFileMove-generic.cpp \
1141 generic/RTFileSetAllocationSize-generic.cpp \
1142 generic/RTLogWriteDebugger-generic.cpp \
1143 generic/RTPathAbs-generic.cpp \
1144 generic/RTPathGetCurrentOnDrive-generic.cpp \
1145 generic/RTSemEventMultiWait-2-ex-generic.cpp \
1146 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1147 generic/RTSystemQueryDmiString-generic.cpp \
1148 generic/RTSystemShutdown-generic.cpp \
1149 generic/RTThreadGetAffinity-stub-generic.cpp \
1150 generic/RTThreadSetAffinity-stub-generic.cpp \
1151 generic/RTThreadSetAffinityToCpu-generic.cpp \
1152 generic/RTTimeLocalNow-generic.cpp \
1153 generic/RTTimerCreate-generic.cpp \
1154 generic/RTUuidCreate-generic.cpp \
1155 generic/mppresent-generic.cpp \
1156 generic/sched-generic.cpp \
1157 generic/utf16locale-generic.cpp \
1158 generic/uuid-generic.cpp \
1159 generic/RTMpCpuId-generic.cpp \
1160 generic/RTMpGetCoreCount-generic.cpp \
1161 generic/RTMpGetOnlineCoreCount-generic.cpp \
1162 generic/RTProcDaemonize-generic.cpp \
1163 generic/RTProcIsRunningByName-generic.cpp \
1164 generic/RTThreadGetNativeState-generic.cpp \
1165 r3/freebsd/mp-freebsd.cpp \
1166 r3/freebsd/systemmem-freebsd.cpp \
1167 r3/freebsd/rtProcInitExePath-freebsd.cpp \
1168 r3/generic/allocex-r3-generic.cpp \
1169 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
1170 r3/generic/RTLocaleQueryNormalizedBaseLocaleName-r3-generic.cpp \
1171 r3/generic/RTLocaleQueryUserCountryCode-r3-generic.cpp \
1172 r3/generic/RTTimeZoneGetCurrent-generic.cpp \
1173 r3/generic/dirrel-r3-generic.cpp \
1174 r3/posix/RTFileQueryFsSizes-posix.cpp \
1175 r3/posix/RTHandleGetStandard-posix.cpp \
1176 r3/posix/RTMemProtect-posix.cpp \
1177 r3/posix/RTPathUserHome-posix.cpp \
1178 r3/posix/RTSystemQueryOSInfo-posix.cpp \
1179 r3/posix/RTTimeNow-posix.cpp \
1180 r3/posix/RTTimeSet-posix.cpp \
1181 r3/posix/dir-posix.cpp \
1182 r3/posix/env-posix.cpp \
1183 r3/posix/errvars-posix.cpp \
1184 r3/posix/fileio-posix.cpp \
1185 r3/posix/fileio2-posix.cpp \
1186 r3/posix/filelock-posix.cpp \
1187 r3/posix/fs-posix.cpp \
1188 r3/posix/fs2-posix.cpp \
1189 r3/posix/fs3-posix.cpp \
1190 r3/posix/ldrNative-posix.cpp \
1191 r3/posix/localipc-posix.cpp \
1192 r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
1193 r3/posix/path-posix.cpp \
1194 r3/posix/path2-posix.cpp \
1195 r3/posix/pathhost-posix.cpp \
1196 r3/posix/RTPathUserDocuments-posix.cpp \
1197 r3/posix/pipe-posix.cpp \
1198 r3/posix/process-posix.cpp \
1199 r3/posix/process-creation-posix.cpp \
1200 r3/posix/rand-posix.cpp \
1201 r3/posix/semevent-posix.cpp \
1202 r3/posix/semeventmulti-posix.cpp \
1203 r3/posix/semmutex-posix.cpp \
1204 r3/posix/semrw-posix.cpp \
1205 r3/posix/symlink-posix.cpp \
1206 r3/posix/thread-posix.cpp \
1207 r3/posix/thread2-posix.cpp \
1208 r3/posix/time-posix.cpp \
1209 r3/posix/timelocal-posix.cpp \
1210 r3/posix/timer-posix.cpp \
1211 r3/posix/tls-posix.cpp \
1212 r3/posix/utf8-posix.cpp
1213
1214RuntimeR3_SOURCES.netbsd = \
1215 generic/cdrom-generic.cpp \
1216 generic/RTDirQueryInfo-generic.cpp \
1217 generic/RTDirSetTimes-generic.cpp \
1218 generic/RTFileMove-generic.cpp \
1219 generic/RTLogWriteDebugger-generic.cpp \
1220 generic/RTPathAbs-generic.cpp \
1221 generic/RTSemEventMultiWait-2-ex-generic.cpp \
1222 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1223 generic/RTSystemQueryDmiString-generic.cpp \
1224 generic/RTSystemShutdown-generic.cpp \
1225 generic/RTThreadGetAffinity-stub-generic.cpp \
1226 generic/RTThreadSetAffinity-stub-generic.cpp \
1227 generic/RTThreadSetAffinityToCpu-generic.cpp \
1228 generic/RTTimeLocalNow-generic.cpp \
1229 generic/RTTimerCreate-generic.cpp \
1230 generic/RTUuidCreate-generic.cpp \
1231 generic/mppresent-generic.cpp \
1232 generic/sched-generic.cpp \
1233 generic/utf16locale-generic.cpp \
1234 generic/uuid-generic.cpp \
1235 generic/RTMpCpuId-generic.cpp \
1236 generic/RTMpGetCoreCount-generic.cpp \
1237 generic/RTMpGetOnlineCoreCount-generic.cpp \
1238 generic/RTProcDaemonize-generic.cpp \
1239 generic/RTProcIsRunningByName-generic.cpp \
1240 generic/RTThreadGetNativeState-generic.cpp \
1241 r3/netbsd/rtProcInitExePath-netbsd.cpp \
1242 r3/generic/allocex-r3-generic.cpp \
1243 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
1244 r3/generic/RTLocaleQueryNormalizedBaseLocaleName-r3-generic.cpp \
1245 r3/generic/RTLocaleQueryUserCountryCode-r3-generic.cpp \
1246 r3/generic/RTTimeZoneGetCurrent-generic.cpp \
1247 r3/generic/dirrel-r3-generic.cpp \
1248 r3/posix/RTFileQueryFsSizes-posix.cpp \
1249 r3/posix/RTHandleGetStandard-posix.cpp \
1250 r3/posix/RTMemProtect-posix.cpp \
1251 r3/posix/RTPathUserHome-posix.cpp \
1252 r3/posix/RTSystemQueryOSInfo-posix.cpp \
1253 r3/posix/RTSystemQueryTotalRam-posix.cpp \
1254 r3/posix/RTTimeNow-posix.cpp \
1255 r3/posix/RTTimeSet-posix.cpp \
1256 r3/posix/dir-posix.cpp \
1257 r3/posix/env-posix.cpp \
1258 r3/posix/errvars-posix.cpp \
1259 r3/posix/fileio-posix.cpp \
1260 r3/posix/fileio2-posix.cpp \
1261 r3/posix/filelock-posix.cpp \
1262 r3/posix/fs-posix.cpp \
1263 r3/posix/fs2-posix.cpp \
1264 r3/posix/fs3-posix.cpp \
1265 r3/posix/ldrNative-posix.cpp \
1266 r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
1267 r3/posix/path-posix.cpp \
1268 r3/posix/path2-posix.cpp \
1269 r3/posix/pathhost-posix.cpp \
1270 r3/posix/RTPathUserDocuments-posix.cpp \
1271 r3/posix/pipe-posix.cpp \
1272 r3/posix/process-posix.cpp \
1273 r3/posix/process-creation-posix.cpp \
1274 r3/posix/rand-posix.cpp \
1275 r3/posix/semevent-posix.cpp \
1276 r3/posix/semeventmulti-posix.cpp \
1277 r3/posix/semmutex-posix.cpp \
1278 r3/posix/semrw-posix.cpp \
1279 r3/posix/symlink-posix.cpp \
1280 r3/posix/thread-posix.cpp \
1281 r3/posix/thread2-posix.cpp \
1282 r3/posix/time-posix.cpp \
1283 r3/posix/timelocal-posix.cpp \
1284 r3/posix/timer-posix.cpp \
1285 r3/posix/tls-posix.cpp \
1286 r3/posix/utf8-posix.cpp
1287
1288RuntimeR3_SOURCES.solaris = \
1289 generic/cdrom-generic.cpp \
1290 generic/RTCrStoreCreateSnapshotById-generic.cpp \
1291 generic/RTDirQueryInfo-generic.cpp \
1292 generic/RTDirSetTimes-generic.cpp \
1293 generic/RTFileMove-generic.cpp \
1294 generic/RTLogWriteDebugger-generic.cpp \
1295 generic/RTPathAbs-generic.cpp \
1296 generic/RTPathGetCurrentOnDrive-generic.cpp \
1297 generic/RTProcDaemonize-generic.cpp \
1298 generic/RTProcIsRunningByName-generic.cpp \
1299 generic/RTSemEventMultiWait-2-ex-generic.cpp \
1300 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1301 generic/RTThreadSetAffinityToCpu-generic.cpp \
1302 generic/RTTimeLocalNow-generic.cpp \
1303 generic/RTTimerCreate-generic.cpp \
1304 generic/RTUuidCreate-generic.cpp \
1305 generic/sched-generic.cpp \
1306 generic/utf16locale-generic.cpp \
1307 generic/uuid-generic.cpp \
1308 generic/RTThreadGetNativeState-generic.cpp \
1309 r3/generic/allocex-r3-generic.cpp \
1310 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
1311 r3/generic/RTLocaleQueryNormalizedBaseLocaleName-r3-generic.cpp \
1312 r3/generic/RTLocaleQueryUserCountryCode-r3-generic.cpp \
1313 r3/generic/RTTimeZoneGetCurrent-generic.cpp \
1314 r3/generic/dirrel-r3-generic.cpp \
1315 r3/posix/RTFileQueryFsSizes-posix.cpp \
1316 r3/posix/RTFileSetAllocationSize-posix.cpp \
1317 r3/posix/RTHandleGetStandard-posix.cpp \
1318 r3/posix/RTMemProtect-posix.cpp \
1319 r3/posix/RTPathUserHome-posix.cpp \
1320 r3/posix/RTSystemQueryOSInfo-posix.cpp \
1321 r3/posix/RTTimeNow-posix.cpp \
1322 r3/posix/RTTimeSet-posix.cpp \
1323 r3/posix/dir-posix.cpp \
1324 r3/posix/env-posix.cpp \
1325 r3/posix/errvars-posix.cpp \
1326 r3/posix/fileio-posix.cpp \
1327 r3/posix/fileio2-posix.cpp \
1328 r3/posix/filelock-posix.cpp \
1329 r3/posix/fs-posix.cpp \
1330 r3/posix/fs2-posix.cpp \
1331 r3/posix/fs3-posix.cpp \
1332 r3/posix/ldrNative-posix.cpp \
1333 r3/posix/localipc-posix.cpp \
1334 r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
1335 r3/posix/path-posix.cpp \
1336 r3/posix/path2-posix.cpp \
1337 r3/posix/pathhost-posix.cpp \
1338 r3/posix/RTPathUserDocuments-posix.cpp \
1339 r3/posix/pipe-posix.cpp \
1340 r3/posix/process-posix.cpp \
1341 r3/posix/process-creation-posix.cpp \
1342 r3/posix/rand-posix.cpp \
1343 r3/posix/semevent-posix.cpp \
1344 r3/posix/semeventmulti-posix.cpp \
1345 r3/posix/semmutex-posix.cpp \
1346 r3/posix/semrw-posix.cpp \
1347 r3/posix/symlink-posix.cpp \
1348 r3/posix/thread-posix.cpp \
1349 r3/posix/thread2-posix.cpp \
1350 r3/posix/time-posix.cpp \
1351 r3/posix/timelocal-posix.cpp \
1352 r3/posix/timer-posix.cpp \
1353 r3/posix/tls-posix.cpp \
1354 r3/posix/utf8-posix.cpp \
1355 r3/solaris/krnlmod-solaris.cpp \
1356 r3/solaris/systemmem-solaris.cpp \
1357 r3/solaris/mp-solaris.cpp \
1358 r3/solaris/rtProcInitExePath-solaris.cpp \
1359 r3/solaris/RTSystemShutdown-solaris.cpp \
1360 r3/solaris/thread-affinity-solaris.cpp
1361RuntimeR3_SOURCES.solaris.amd64 = \
1362 common/string/memrchr.asm \
1363 r3/solaris/coredumper-solaris.cpp \
1364 r3/solaris/RTSystemQueryDmiString-solaris.cpp
1365RuntimeR3_SOURCES.solaris.x86 = \
1366 common/string/memrchr.asm \
1367 r3/solaris/coredumper-solaris.cpp \
1368 r3/solaris/RTSystemQueryDmiString-solaris.cpp
1369RuntimeR3_SOURCES.solaris.sparc32 = \
1370 generic/RTSystemQueryDmiString-generic.cpp
1371RuntimeR3_SOURCES.solaris.sparc64 = \
1372 generic/RTSystemQueryDmiString-generic.cpp
1373
1374RuntimeR3_SOURCES.haiku = \
1375 generic/RTCrStoreCreateSnapshotById-generic.cpp \
1376 generic/RTDirQueryInfo-generic.cpp \
1377 generic/RTDirSetTimes-generic.cpp \
1378 generic/RTFileMove-generic.cpp \
1379 generic/RTFileSetAllocationSize-generic.cpp \
1380 generic/RTLogWriteDebugger-generic.cpp \
1381 generic/RTPathAbs-generic.cpp \
1382 generic/RTPathGetCurrentOnDrive-generic.cpp \
1383 generic/RTProcDaemonize-generic.cpp \
1384 generic/RTTimeLocalNow-generic.cpp \
1385 generic/RTTimerCreate-generic.cpp \
1386 generic/RTUuidCreate-generic.cpp \
1387 generic/mppresent-generic.cpp \
1388 generic/RTSemEventMultiWait-2-ex-generic.cpp \
1389 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1390 generic/sched-generic.cpp \
1391 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
1392 generic/timer-generic.cpp \
1393 generic/utf16locale-generic.cpp \
1394 generic/uuid-generic.cpp\
1395 generic/RTProcIsRunningByName-generic.cpp \
1396 generic/RTThreadGetNativeState-generic.cpp \
1397 generic/RTMpGetCoreCount-generic.cpp \
1398 generic/RTMpGetOnlineCoreCount-generic.cpp \
1399 r3/haiku/rtProcInitExePath-haiku.cpp \
1400 r3/haiku/time-haiku.cpp \
1401 r3/generic/allocex-r3-generic.cpp \
1402 r3/generic/RTLocaleQueryLocaleName-r3-generic.cpp \
1403 r3/generic/RTLocaleQueryNormalizedBaseLocaleName-r3-generic.cpp \
1404 r3/generic/RTLocaleQueryUserCountryCode-r3-generic.cpp \
1405 r3/generic/RTTimeZoneGetCurrent-generic.cpp \
1406 r3/generic/dirrel-r3-generic.cpp \
1407 r3/posix/RTFileQueryFsSizes-posix.cpp \
1408 r3/posix/RTHandleGetStandard-posix.cpp \
1409 r3/posix/RTMemProtect-posix.cpp \
1410 r3/posix/RTPathUserHome-posix.cpp \
1411 r3/posix/RTSystemQueryOSInfo-posix.cpp \
1412 r3/posix/RTSystemQueryTotalRam-posix.cpp \
1413 r3/posix/RTTimeNow-posix.cpp \
1414 r3/posix/dir-posix.cpp \
1415 r3/posix/env-posix.cpp \
1416 r3/posix/errvars-posix.cpp \
1417 r3/posix/fileio-posix.cpp \
1418 r3/posix/fileio2-posix.cpp \
1419 r3/posix/filelock-posix.cpp \
1420 r3/posix/fs-posix.cpp \
1421 r3/posix/fs2-posix.cpp \
1422 r3/posix/fs3-posix.cpp \
1423 r3/posix/ldrNative-posix.cpp \
1424 r3/posix/localipc-posix.cpp \
1425 r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
1426 r3/posix/path-posix.cpp \
1427 r3/posix/path2-posix.cpp \
1428 r3/posix/pathhost-posix.cpp \
1429 r3/posix/pipe-posix.cpp \
1430 r3/posix/process-posix.cpp \
1431 r3/posix/process-creation-posix.cpp \
1432 r3/posix/rand-posix.cpp \
1433 r3/posix/semevent-posix.cpp \
1434 r3/posix/semeventmulti-posix.cpp \
1435 r3/posix/semmutex-posix.cpp \
1436 r3/posix/symlink-posix.cpp \
1437 r3/posix/thread-posix.cpp \
1438 r3/posix/thread2-posix.cpp \
1439 r3/posix/timelocal-posix.cpp \
1440 r3/posix/tls-posix.cpp \
1441 r3/posix/utf8-posix.cpp
1442RuntimeR3_SOURCES.haiku.x86 += common/string/memrchr.asm
1443RuntimeR3_SOURCES.haiku.amd64 += common/string/memrchr.asm
1444
1445## PORTME: Porters add their selection of platform specific files for Ring-3 here.
1446
1447
1448#
1449# Generate RTIsoMaker / VISO help text from the manpage xml.
1450#
1451ifn1of ($(KBUILD_TARGET), os2) # breaks validationkit, figure out later.
1452
1453 IPRT_XML_REFENTRY_FILES = \
1454 common/fs/isomakercmd-man.xml
1455
1456 #$(call KB_FN_DO_PASS0_ON_TARGET,RuntimeR3)
1457
1458 BLDDIRS += $(IPRT_OUT_DIR)/man/
1459 OTHER_CLEAN += \
1460 $(addprefix $(IPRT_OUT_DIR)/man/,$(IPRT_XML_REFENTRY_FILES)) \
1461 $(addprefix $(IPRT_OUT_DIR)/man/,$(patsubst %.xml,%.h,$(IPRT_XML_REFENTRY_FILES))) \
1462 $(addprefix $(IPRT_OUT_DIR)/man/,$(patsubst %.xml,%.h.ts,$(IPRT_XML_REFENTRY_FILES)))
1463
1464
1465 include $(PATH_ROOT)/doc/manual/Config.kmk
1466
1467 # Preprocess the xml files, applying remarks.
1468 $(foreach file,$(IPRT_XML_REFENTRY_FILES) \
1469 , $(evalcall2 def_vbox_refentry_preprocess_for_manpage,$(IPRT_OUT_DIR)/man,$(notdir $(file)),$(VBOX_PATH_RUNTIME_SRC)/$(file)))
1470
1471 # generate the header and add it as a dependency to the source using it.
1472 $(evalcall2 def_vbox_single_refentry_to_h,$(IPRT_OUT_DIR)/man/isomakercmd-man.h, $(IPRT_OUT_DIR)/man/isomakercmd-man.xml)
1473 common/fs/isomakercmd.cpp_DEPS = $(IPRT_OUT_DIR)/man/isomakercmd-man.h
1474 common/fs/isomakercmd.cpp_INCS = $(IPRT_OUT_DIR)/man/
1475
1476endif
1477
1478
1479
1480#
1481# RuntimeBldProg - Static Runtime for build programs.
1482#
1483# Note! This is a bit of hacky since kBuild doesn't support building libraries
1484# for build programs.
1485#
1486RuntimeBldProg_TEMPLATE := VBoxAdvBldProg
1487RuntimeBldProg_EXTENDS := RuntimeR3
1488RuntimeBldProg_BLD_TRG := $(KBUILD_HOST)
1489RuntimeBldProg_BLD_TRG_ARCH := $(KBUILD_HOST_ARCH)
1490RuntimeBldProg_BLD_TRG_CPU := $(KBUILD_HOST_CPU)
1491RuntimeBldProg_DEFS := $(filter-out IN_SUP_R3 IN_SUP, $(RuntimeR3_DEFS)) IPRT_WITHOUT_LDR_VERIFY RT_NO_GIP
1492RuntimeBldProg_SOURCES = $(filter-out \
1493 r3/xml.cpp \
1494 common/misc/buildconfig.cpp \
1495 common/zip/xarvfs.cpp \
1496 , $(RuntimeR3_SOURCES))
1497if "$(KBUILD_TARGET)" == "win" && "$(KBUILD_HOST)" != "win"
1498RuntimeBldProg_SOURCES += \
1499 common/err/errmsgxpcom.cpp
1500endif
1501
1502
1503
1504#
1505# RuntimeGuestR3 - Guest Additions Runtime (static/exe).
1506# (The KBUILD_HOST inheritance here is for cross building the linux
1507# additions, while .x86 is for cross building x86 while targeting amd64.)
1508#
1509RuntimeGuestR3_TEMPLATE := VBoxGuestR3Lib
1510## @todo change this to EXTEND the RuntimeR3 target.
1511RuntimeGuestR3_SDKS.win := $(RuntimeR3_SDKS.win)
1512RuntimeGuestR3_DEFS := $(filter-out RTCRITSECT_STRICT RT_NO_GIP IPRT_WITH_OPENSSL LDR_WITH_KLDR, $(RuntimeR3_DEFS))
1513RuntimeGuestR3_DEFS := $(filter-out IN_SUP_R3, $(RuntimeGuestR3_DEFS)) ## @todo r=andy Needed to make cross-building with RTLdr API work.
1514RuntimeGuestR3_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
1515RuntimeGuestR3_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST))
1516RuntimeGuestR3_INCS := $(RuntimeR3_INCS)
1517RuntimeGuestR3_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
1518RuntimeGuestR3_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST))
1519RuntimeGuestR3_SOURCES := $(filter-out \
1520 common/ldr/ldrkStuff.cpp \
1521 common/time/timesupref.cpp \
1522 common/time/timesupA.asm \
1523 common/time/timesup.cpp \
1524 common/zip/xarvfs.cpp \
1525 generic/RTLogWriteUser-generic.cpp \
1526 r3/xml.cpp \
1527 , $(RuntimeR3_SOURCES))
1528RuntimeGuestR3_SOURCES += \
1529 common/time/timesysalias.cpp \
1530 VBox/logbackdoor.cpp
1531RuntimeGuestR3_SOURCES.$(KBUILD_TARGET) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
1532RuntimeGuestR3_SOURCES.$(KBUILD_HOST) := $(RuntimeR3_SOURCES.$(KBUILD_HOST))
1533RuntimeGuestR3_SOURCES.$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
1534RuntimeGuestR3_SOURCES.x86 := $(RuntimeR3_SOURCES.x86)
1535RuntimeGuestR3_SOURCES.amd64 := $(RuntimeR3_SOURCES.amd64)
1536RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
1537RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).x86 := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).x86)
1538RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).amd64:= $(RuntimeR3_SOURCES.$(KBUILD_TARGET).amd64)
1539RuntimeGuestR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH))
1540RuntimeGuestR3_SOURCES.win.x86 += \
1541 r3/win/vcc100-kernel32-fakes.cpp \
1542 r3/win/vcc100-kernel32-fakesA.asm \
1543 r3/win/vcc100-ntdll-fakes.cpp \
1544 r3/win/vcc100-ntdll-fakesA.asm \
1545 r3/win/vcc100-ws2_32-fakes.cpp \
1546 r3/win/vcc100-ws2_32-fakesA.asm
1547
1548#
1549# RuntimeGuestR3-x86 - Same as RuntimeGuestR3, except that it's targeting x86.
1550#
1551RuntimeGuestR3-x86_EXTENDS := RuntimeGuestR3
1552RuntimeGuestR3-x86_BLD_TRG_ARCH := x86
1553
1554
1555#
1556# RuntimeGuestR3Shared - Guest Additions Runtime (static/dll).
1557#
1558RuntimeGuestR3Shared_TEMPLATE := VBoxGuestR3Dll
1559RuntimeGuestR3Shared_EXTENDS := RuntimeGuestR3
1560RuntimeGuestR3Shared_INST = $(INST_ADDITIONS_LIB)
1561
1562
1563#
1564# RuntimeGuestR3Shared-x86 - Same as RuntimeGuestR3Shared, except that it's targeting x86.
1565#
1566RuntimeGuestR3Shared-x86_EXTENDS := RuntimeGuestR3Shared
1567RuntimeGuestR3Shared-x86_BLD_TRG_ARCH := x86
1568
1569
1570#
1571# VBoxRT - Shared Object / DLL version.
1572#
1573VBoxRT_TEMPLATE = VBoxR3DllNoPic
1574VBoxRT_SDKS = VBOX_LIBXML2
1575ifdef VBOX_WITH_LIBCURL
1576 VBoxRT_SDKS += VBOX_LIBCURL
1577endif
1578VBoxRT_SDKS += VBOX_OPENSSL
1579VBoxRT_SDKS.win = $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
1580if1of ($(KBUILD_TARGET), win)
1581VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE) $(VBOX_INST_TOOLS)
1582else if1of ($(KBUILD_TARGET)$(VBOX_WITH_HARDENING), darwin win$(VBOX_WITH_HARDENING))
1583VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE)
1584endif
1585VBoxRT_DEFS := $(filter-out RT_NO_GIP, $(RuntimeR3_DEFS)) \
1586 IN_SUP_R3 IN_SUP_R3 IPRT_WITH_XAR \
1587 $(if-expr !defined(VBOX_WITH_ALT_HASH_CODE),IPRT_WITHOUT_SHA512T224 IPRT_WITHOUT_SHA512T256,)
1588ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1589 VBoxRT_DEFS += RT_NO_GIP
1590endif
1591ifdef VBOX_WITH_LIBCURL
1592 VBoxRT_DEFS += IPRT_WITH_HTTP
1593endif
1594ifdef RTALLOC_REPLACE_MALLOC
1595 VBoxRT_DEFS += RTALLOC_REPLACE_MALLOC
1596endif
1597ifdef VBOX_WITH_DTRACE_R3
1598 VBoxRT_DEFS += IPRT_WITH_DTRACE IPRT_DTRACE_INCLUDE=\"dtrace/iprt.h\"
1599endif
1600VBoxRT_DEFS.$(KBUILD_TYPE) := $(RuntimeR3_DEFS.$(KBUILD_TYPE))
1601VBoxRT_SOURCES := \
1602 VBox/VBoxRTDeps.cpp \
1603 $(filter-out common/checksum/crc32.cpp, \
1604 $(if-expr defined(VBOX_WITH_ALT_HASH_CODE), $(RuntimeR3_SOURCES), \
1605 $(patsubst common/checksum/alt-%,common/checksum/openssl-%,$(RuntimeR3_SOURCES)) ) ) \
1606 common/checksum/crc32-zlib.cpp \
1607 common/misc/aiomgr.cpp
1608ifneq ($(KBUILD_TARGET),win)
1609VBox/VBoxRTDeps.cpp_CXXFLAGS = -Wno-deprecated-declarations
1610endif
1611ifdef VBOX_WITH_LIBCURL
1612 VBoxRT_SOURCES += \
1613 common/misc/s3.cpp \
1614 generic/http-curl.cpp
1615endif
1616ifdef VBOX_WITH_DTRACE_R3
1617 VBoxRT_SOURCES += \
1618 iprt.d
1619endif
1620VBoxRT_SOURCES.$(KBUILD_TARGET) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
1621VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
1622VBoxRT_SOURCES.$(KBUILD_TARGET).x86 := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).x86)
1623VBoxRT_SOURCES.$(KBUILD_TARGET).amd64 := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).amd64)
1624VBoxRT_SOURCES.$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
1625VBoxRT_SOURCES.x86 := $(RuntimeR3_SOURCES.x86)
1626VBoxRT_SOURCES.amd64 := $(RuntimeR3_SOURCES.amd64)
1627VBoxRT_SOURCES.win += \
1628 r3/win/dllmain-win.cpp \
1629 r3/win/fileaio-win.cpp \
1630 $(VBoxRT_0_OUTDIR)/VBoxRT.def
1631VBoxRT_SOURCES.linux += \
1632 r3/linux/fileaio-linux.cpp
1633VBoxRT_SOURCES.solaris += \
1634 r3/solaris/fileaio-solaris.cpp
1635VBoxRT_SOURCES.darwin += \
1636 r3/posix/fileaio-posix.cpp
1637VBoxRT_SOURCES.freebsd += \
1638 r3/freebsd/fileaio-freebsd.cpp
1639VBoxRT_INCS := $(RuntimeR3_INCS)
1640VBoxRT_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
1641VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
1642VBoxRT_LIBS = \
1643 $(PATH_STAGE_LIB)/VBox-liblzf$(VBOX_SUFF_LIB)
1644if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1645VBoxRT_LIBS += \
1646 $(PATH_STAGE_LIB)/SUPR3$(VBOX_SUFF_LIB)
1647endif
1648ifdef IPRT_WITH_KSTUFF
1649 VBoxRT_LIBS += \
1650 $(PATH_STAGE_LIB)/VBox-kStuff$(VBOX_SUFF_LIB)
1651endif
1652ifndef SDK_VBOX_LIBXML2_LIBS
1653 VBoxRT_LIBS += \
1654 $(PATH_STAGE_LIB)/VBox-libxml2$(VBOX_SUFF_LIB)
1655endif
1656VBoxRT_LIBS += \
1657 $(SDK_VBOX_ZLIB_LIBS)
1658ifndef SDK_VBOX_OPENSSL_LIBS
1659 VBoxRT_LIBS += \
1660 $(PATH_STAGE_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB) \
1661 $(PATH_STAGE_LIB)/VBox-libssl$(VBOX_SUFF_LIB)
1662endif
1663ifdef IPRT_WITH_LZO
1664 VBoxRT_LIBS += lzo2
1665endif
1666ifdef RTALLOC_REPLACE_MALLOC
1667VBoxRT_LIBS += \
1668 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
1669endif
1670VBoxRT_LIBS.linux = \
1671 crypt
1672VBoxRT_LIBS.darwin = \
1673 iconv
1674VBoxRT_LIBS.freebsd = \
1675 iconv \
1676 rt
1677VBoxRT_LIBS.haiku = \
1678 iconv
1679VBoxRT_LIBS.solaris = \
1680 kstat \
1681 contract
1682ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)
1683 # SMBIOS not available on Solaris SPARC.
1684 VBoxRT_LIBS.solaris += smbios
1685endif
1686VBoxRT_LIBS.win = \
1687 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/vccomsup.lib \
1688 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/wbemuuid.lib \
1689 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
1690VBoxRT_LDFLAGS.darwin = \
1691 -framework IOKit \
1692 -framework CoreFoundation \
1693 -framework CoreServices \
1694 -framework Security \
1695 -framework SystemConfiguration \
1696 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxRT.dylib
1697VBoxRT_LDFLAGS.win = /MANIFEST \
1698 /delayload:gdi32.dll \
1699 /delayload:user32.dll \
1700 /delayload:shell32.dll \
1701 /delayload:ole32.dll \
1702 /delayload:oleaut32.dll \
1703 /delayload:advapi32.dll
1704
1705if1of ($(DLLS), VBoxRT)
1706VBoxRT_CLEAN += $(VBoxRT_0_OUTDIR)/VBoxRT.def
1707$$(VBoxRT_0_OUTDIR)/VBoxRT.def: \
1708 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-$$(if-expr $$(KBUILD_TARGET_ARCH) == amd64,win64,win32).def \
1709 $(if-expr defined(VBOX_WITH_OPENSSL_PRE_1_1)\
1710 ,$(PATH_SUB_CURRENT)/r3/win/VBoxRT-openssl-pre-1.1.def \
1711 ,$(PATH_SUB_CURRENT)/r3/win/VBoxRT-openssl-1.1plus.def )\
1712 $(if-expr "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" && defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES)\
1713 ,$(PATH_SUB_CURRENT)/r3/win/VBoxRT-msvcr100-win32.def ,) #$(PATH_SUB_CURRENT)/r3/win/VBoxRT-msvcp100-win32.def
1714 $(RM) -f -- $@
1715 $(REDIRECT) -wto $@ -- $(CAT_EXT) $^
1716endif
1717
1718if1of (VBoxRT,$(DLLS))
1719 $(call VBOX_SET_VER_INFO_DLL,VBoxRT,VirtualBox Runtime)
1720endif
1721
1722
1723if defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86"
1724 #
1725 # Hacks for running tests on NT 4. Really ugly!
1726 #
1727 # We put most of the CRT in VBoxRT because we cannot even load msvcr100.dll
1728 # or msvcp100.dll on NT4 because of kernel32.dll dependencies. More hacks
1729 # in RuntimeR3VccTricks.
1730 #
1731 TEMPLATE_VBoxR3RuntimeDllItself = xx
1732 TEMPLATE_VBoxR3RuntimeDllItself_EXTENDS = VBoxR3RuntimeDll
1733 TEMPLATE_VBoxR3RuntimeDllItself_LIBS.win.x86 = \
1734 $(filter-out $(PATH_STAGE_LIB)/RuntimeR3VccTricks%, $(TEMPLATE_VBoxR3RuntimeDll_LIBS.win.x86))
1735 TEMPLATE_VBoxR3RuntimeDllItself_SOURCES = \
1736 r3/win/vcc100-kernel32-fakes.cpp \
1737 r3/win/vcc100-kernel32-fakesA.asm \
1738 r3/win/vcc100-ws2_32-fakes.cpp \
1739 r3/win/vcc100-ws2_32-fakesA.asm \
1740 r3/win/vcc100-ntdll-fakes.cpp \
1741 r3/win/vcc100-ntdll-fakesA.asm \
1742 r3/win/vcc100-msvcrt-fakes.cpp
1743 VBoxRT_TEMPLATE = VBoxR3RuntimeDllItself
1744 VBoxRT_TEMPLATE.win.x86 = VBoxR3RuntimeDllItself
1745 VBoxRT_DEFS.win.x86 = $(TEMPLATE_VBoxR3RuntimeDll_DEFS.win.x86) _CRTIMP_PURE="__declspec(dllexport)"
1746 VBoxRT_LDFLAGS.win.x86 = /IGNORE:4049 /IGNORE:4217
1747 VBoxRT_LIBS.win.x86 = \
1748 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/oldnames.lib \
1749 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/libcmt.lib \
1750 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/libcpmt.lib
1751endif
1752
1753
1754#
1755# HACK ALERT! Make testcase run during build on SELinux boxes.
1756# Create a dummy DLL that ensure that VBoxRT is installed
1757# during the DLL pass and cleaned up later.
1758#
1759ifeq ($(KBUILD_TARGET),linux)
1760 if1of (VBoxRT, $(DLLS))
1761 ifneq ($(wildcard /usr/bin/chcon),)
1762VBoxRT_INSTTYPE = none
1763VBoxRT_DEBUG_INSTTYPE = both
1764
1765DLLS += VBoxRTDummy
1766VBoxRTDummy_TEMPLATE = VBoxR3Dll
1767VBoxRTDummy_INSTTYPE = none
1768VBoxRTDummy_LIBS = $(PATH_STAGE_BIN)/VBoxRT.so
1769VBoxRTDummy_CLEAN = $(PATH_STAGE_BIN)/VBoxRT.so
1770BLDDIRS += $(PATH_STAGE_BIN)
1771
1772$(PATH_STAGE_BIN)/VBoxRT.so: $$(VBoxRT_1_TARGET) | $$(dir $$@)
1773 $(INSTALL) $< $@
1774 chcon -t texrel_shlib_t $@ || true
1775
1776VBoxRT:: VBoxRTDummy
1777 endif # chcon present.
1778 endif # building VBoxRT
1779endif # linux
1780
1781
1782#
1783# VBoxRT-x86 - 32-bit version of VBoxRT
1784#
1785VBoxRT-x86_EXTENDS = VBoxRT
1786VBoxRT-x86_TEMPLATE = VBoxR3Dll-x86
1787VBoxRT-x86_INST.win = $(INST_DLL)x86/
1788VBoxRT-x86_SDKS = VBOX_LIBXML2
1789ifdef VBOX_WITH_LIBCURL
1790 VBoxRT-x86_SDKS += VBOX_LIBCURL-x86
1791endif
1792VBoxRT-x86_SDKS += VBOX_OPENSSL-x86
1793
1794VBoxRT-x86_LIBS = \
1795 $(PATH_STAGE_LIB)/VBox-liblzf-x86$(VBOX_SUFF_LIB)
1796if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1797VBoxRT-x86_LIBS += \
1798 $(PATH_STAGE_LIB)/SUPR3-x86$(VBOX_SUFF_LIB)
1799endif
1800ifdef IPRT_WITH_KSTUFF
1801 VBoxRT-x86_LIBS += \
1802 $(PATH_STAGE_LIB)/VBox-kStuff-x86$(VBOX_SUFF_LIB)
1803endif
1804ifndef SDK_VBOX_LIBXML2_LIBS
1805 VBoxRT-x86_LIBS += \
1806 $(PATH_STAGE_LIB)/VBox-libxml2-x86$(VBOX_SUFF_LIB)
1807endif
1808VBoxRT-x86_LIBS += \
1809 $(SDK_VBOX_ZLIB_LIBS-x86)
1810ifndef SDK_VBOX_OPENSSL_LIBS
1811 VBoxRT-x86_LIBS += \
1812 $(PATH_STAGE_LIB)/VBox-libcrypto-x86$(VBOX_SUFF_LIB) \
1813 $(PATH_STAGE_LIB)/VBox-libssl-x86$(VBOX_SUFF_LIB)
1814endif
1815ifdef IPRT_WITH_LZO
1816 VBoxRT-x86_LIBS += lzo2
1817endif
1818VBoxRT-x86_LIBS.linux = \
1819 crypt
1820VBoxRT-x86_LIBS.darwin = \
1821 iconv
1822VBoxRT-x86_LIBS.freebsd = \
1823 iconv \
1824 rt
1825VBoxRT-x86_LIBS.haiku = \
1826 iconv
1827VBoxRT-x86_LIBS.solaris = \
1828 kstat \
1829 contract
1830ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)
1831 # SMBIOS not available on Solaris SPARC.
1832 VBoxRT-x86_LIBS.solaris += smbios
1833endif
1834VBoxRT-x86_LIBS.win = \
1835 $(PATH_SDK_$(VBOX_WINDDK)_LIB.x86)/vccomsup.lib \
1836 $(PATH_SDK_$(VBOX_WINDDK)_LIB.x86)/wbemuuid.lib \
1837 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/delayimp.lib
1838
1839VBoxRT-x86_SOURCES.win = $(filter-out %.def %.rc,$(VBoxRT_SOURCES.win)) \
1840 $(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def
1841VBoxRT-x86_CLEAN += $(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def
1842if1of ($(DLLS), VBoxRT-x86)
1843$$(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def: \
1844 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-win32.def # Hopefully no need to export openssl here.
1845 $(RM) -f -- $@
1846 $(REDIRECT) -wto $@ -- $(CAT_EXT) $^
1847endif
1848
1849if1of (VBoxRT-x86,$(DLLS))
1850 $(call VBOX_SET_VER_INFO_DLL,VBoxRT-x86,VirtualBox 32-bit Runtime)
1851endif
1852
1853#
1854# VBoxRTImp - Import library/hack.
1855#
1856ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
1857$(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def r3/win/VBoxRT-win64.def)
1858else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
1859$(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def r3/win/VBoxRT-win32.def)
1860else
1861$(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def)
1862endif
1863
1864
1865#
1866# RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
1867# This is used together with VBoxRT.
1868#
1869## @todo the *_alias.c stuff is busted, remove and use RT_WITH_NOCRT_ALIASES instead.
1870RuntimeR3NoCRTGCC_TEMPLATE = VBoxNoCrtGccLib
1871RuntimeR3NoCRTGCC_LIBSUFF = $(VBOX_SUFF_LIB)
1872ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1873 RuntimeR3NoCRTGCC_DEFS += RT_NO_GIP
1874endif
1875RuntimeR3NoCRTGCC_INCS = include
1876RuntimeR3NoCRTGCC_SOURCES := \
1877 common/misc/sanity-cpp.cpp \
1878 common/misc/sanity-c.c \
1879 \
1880 $(RuntimeNoCrt_SOURCES)
1881
1882if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1883RuntimeR3NoCRTGCC_SOURCES += \
1884 common/math/ceill.asm \
1885 common/math/cosl.asm \
1886 common/math/fabs.asm \
1887 common/math/fabsf.asm \
1888 common/math/fabsl.asm \
1889 common/math/floor.asm \
1890 common/math/floorf.asm \
1891 common/math/floorl.asm \
1892 common/math/ldexpl.asm \
1893 common/math/llrint.asm \
1894 common/math/llrintf.asm \
1895 common/math/llrintl.asm \
1896 common/math/logl.asm \
1897 common/math/lrint.asm \
1898 common/math/lrintf.asm \
1899 common/math/lrintl.asm \
1900 common/math/remainder.asm \
1901 common/math/remainderf.asm \
1902 common/math/remainderl.asm \
1903 common/math/sinl.asm \
1904 common/math/tanl.asm \
1905 common/math/trunc.asm \
1906 common/math/truncf.asm \
1907 common/math/truncl.asm \
1908 \
1909 common/string/memchr_alias.c \
1910 common/string/memcmp_alias.c \
1911 common/string/memcpy_alias.c \
1912 common/string/memmove_alias.c \
1913 common/string/memset_alias.c \
1914 common/string/strchr_alias.c \
1915 common/string/strcmp_alias.c \
1916 common/string/strlen_alias.c
1917endif
1918
1919RuntimeR3NoCRTGCC_SOURCES.x86 = \
1920 common/math/x86/fenv-x86.c \
1921 common/math/gcc/adddi3.c \
1922 common/math/gcc/anddi3.c \
1923 common/math/gcc/ashldi3.c \
1924 common/math/gcc/ashrdi3.c \
1925 common/math/gcc/cmpdi2.c \
1926 common/math/gcc/divdi3.c \
1927 common/math/gcc/iordi3.c \
1928 common/math/gcc/lshldi3.c \
1929 common/math/gcc/lshrdi3.c \
1930 common/math/gcc/moddi3.c \
1931 common/math/gcc/muldi3.c \
1932 common/math/gcc/negdi2.c \
1933 common/math/gcc/notdi2.c \
1934 common/math/gcc/qdivrem.c \
1935 common/math/gcc/subdi3.c \
1936 common/math/gcc/ucmpdi2.c \
1937 common/math/gcc/udivdi3.c \
1938 common/math/gcc/udivmoddi4.c \
1939 common/math/gcc/umoddi3.c \
1940 common/math/gcc/xordi3.c
1941
1942
1943#
1944# RuntimeR0 - Ring-0 library for VMMR0.
1945#
1946RuntimeR0_TEMPLATE = VBoxR0
1947RuntimeR0_DEFS = IN_RT_R0 RT_WITH_VBOX NOFILEID
1948ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1949 RuntimeR0_DEFS += RT_NO_GIP
1950endif
1951if defined(VBOX_WITH_DTRACE_R0) && !defined(VBOX_ONLY_VALIDATIONKIT)
1952 RuntimeR0_DEFS += IPRT_WITH_DTRACE IPRT_DTRACE_PREFIX=VBOXVMM_ IPRT_DTRACE_INCLUDE=\"dtrace/VBoxVMM.h\"
1953endif
1954RuntimeR0_INCS = include
1955RuntimeR0_SOURCES := \
1956 $(if $(VBOX_ONLY_VALIDATIONKIT),,../VMM/VBoxVMM.d) \
1957 common/log/logellipsis.cpp \
1958 common/log/logrelellipsis.cpp \
1959 common/log/logcom.cpp \
1960 common/log/logformat.cpp \
1961 common/log/tracebuf.cpp \
1962 common/log/tracedefault.cpp \
1963 common/misc/RTAssertMsg1Weak.cpp \
1964 common/misc/RTAssertMsg2.cpp \
1965 common/misc/RTAssertMsg2Add.cpp \
1966 common/misc/RTAssertMsg2AddWeak.cpp \
1967 common/misc/RTAssertMsg2AddWeakV.cpp \
1968 common/misc/RTAssertMsg2Weak.cpp \
1969 common/misc/RTAssertMsg2WeakV.cpp \
1970 common/misc/buildconfig.cpp \
1971 common/misc/once.cpp \
1972 common/misc/sanity-c.c \
1973 common/misc/sanity-cpp.cpp \
1974 common/misc/term.cpp \
1975 common/path/RTPathFilename.cpp \
1976 common/string/strhash1.cpp \
1977 common/string/strncmp.cpp \
1978 common/string/strpbrk.cpp \
1979 common/string/RTStrCat.cpp \
1980 common/string/RTStrCatEx.cpp \
1981 common/string/RTStrCatP.cpp \
1982 common/string/RTStrCatPEx.cpp \
1983 common/string/RTStrCopy.cpp \
1984 common/string/RTStrCopyEx.cpp \
1985 common/string/RTStrCopyP.cpp \
1986 common/string/RTStrCopyPEx.cpp \
1987 common/string/RTStrCmp.cpp \
1988 common/string/RTStrICmpAscii.cpp \
1989 common/string/RTStrNLen.cpp \
1990 common/string/RTStrNLenEx.cpp \
1991 common/table/avlgcptr.cpp \
1992 common/table/avlhcphys.cpp \
1993 common/table/avllu32.cpp \
1994 common/table/avlogcphys.cpp \
1995 common/table/avlogcptr.cpp \
1996 common/table/avlohcphys.cpp \
1997 common/table/avloioport.cpp \
1998 common/table/avlpv.cpp \
1999 common/table/avlrogcphys.cpp \
2000 common/table/avlrogcptr.cpp \
2001 common/table/avlroioport.cpp \
2002 common/table/avlroogcptr.cpp \
2003 common/table/avlu32.cpp \
2004 common/table/avlou32.cpp \
2005 common/time/timesup.cpp \
2006 generic/RTAssertShouldPanic-generic.cpp \
2007 generic/critsect-generic.cpp \
2008 generic/critsectrw-generic.cpp \
2009 \
2010 $(RuntimeNoCrt_SOURCES)
2011
2012if1of ($(KBUILD_TARGET), darwin solaris freebsd os2)
2013RuntimeR0_SOURCES += \
2014 common/math/gcc/adddi3.c \
2015 common/math/gcc/anddi3.c \
2016 common/math/gcc/ashldi3.c \
2017 common/math/gcc/ashrdi3.c \
2018 common/math/gcc/cmpdi2.c \
2019 common/math/gcc/divdi3.c \
2020 common/math/gcc/iordi3.c \
2021 common/math/gcc/lshldi3.c \
2022 common/math/gcc/lshrdi3.c \
2023 common/math/gcc/moddi3.c \
2024 common/math/gcc/muldi3.c \
2025 common/math/gcc/negdi2.c \
2026 common/math/gcc/notdi2.c \
2027 common/math/gcc/qdivrem.c \
2028 common/math/gcc/subdi3.c \
2029 common/math/gcc/ucmpdi2.c \
2030 common/math/gcc/udivdi3.c \
2031 common/math/gcc/udivmoddi4.c \
2032 common/math/gcc/umoddi3.c \
2033 common/math/gcc/xordi3.c
2034endif
2035
2036RuntimeR0_SOURCES.x86 += \
2037 common/asm/ASMCpuIdExSlow.asm \
2038 common/asm/ASMAtomicUoAndU64.asm \
2039 common/asm/ASMAtomicUoAndU32.asm \
2040 common/asm/ASMAtomicUoDecU32.asm \
2041 common/asm/ASMAtomicUoIncU32.asm \
2042 common/asm/ASMAtomicUoOrU64.asm \
2043 common/asm/ASMAtomicUoOrU32.asm \
2044 common/asm/ASMMemFirstMismatchingU8.asm \
2045 common/asm/ASMGetXcr0.asm \
2046 common/asm/ASMSetXcr0.asm \
2047 common/asm/ASMXSave.asm \
2048 common/asm/ASMXRstor.asm \
2049 common/asm/ASMFxSave.asm \
2050 common/asm/ASMFxRstor.asm \
2051 common/asm/ASMRdMsrEx.asm \
2052 common/asm/ASMWrMsrEx.asm
2053RuntimeR0_SOURCES.amd64 += \
2054 common/asm/ASMCpuIdExSlow.asm \
2055 common/asm/ASMAtomicUoAndU64.asm \
2056 common/asm/ASMAtomicUoAndU32.asm \
2057 common/asm/ASMAtomicUoDecU32.asm \
2058 common/asm/ASMAtomicUoIncU32.asm \
2059 common/asm/ASMAtomicUoOrU64.asm \
2060 common/asm/ASMAtomicUoOrU32.asm \
2061 common/asm/ASMMemFirstMismatchingU8.asm \
2062 common/asm/ASMGetXcr0.asm \
2063 common/asm/ASMSetXcr0.asm \
2064 common/asm/ASMXSave.asm \
2065 common/asm/ASMXRstor.asm \
2066 common/asm/ASMFxSave.asm \
2067 common/asm/ASMFxRstor.asm \
2068 common/asm/ASMRdMsrEx.asm \
2069 common/asm/ASMWrMsrEx.asm
2070
2071#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
2072# RuntimeR0_SOURCES += common/time/timesupA.asm
2073#else
2074 RuntimeR0_SOURCES += common/time/timesupref.cpp
2075#endif
2076
2077RuntimeR0_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES)
2078RuntimeR0_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES)
2079RuntimeR0_SOURCES.win = \
2080 nt/NtProcessStartup-stub.cpp
2081
2082RuntimeR0_SOURCES.os2 = \
2083 os2/sys0.asm
2084
2085
2086#
2087# RuntimeR0Stub - Ring-0 context startup stub for Windows and Solaris.
2088#
2089RuntimeR0Stub_TEMPLATE = $(if-expr "$(KBUILD_TARGET)" == "solaris",VBoxR0DrvLib,VBoxR0)
2090RuntimeR0Stub_SOURCES.win = \
2091 nt/NtProcessStartup-stub.cpp
2092RuntimeR0Stub_SOURCES.solaris = \
2093 r0drv/solaris/modulestub-r0drv-solaris.c
2094
2095
2096#
2097# RuntimeR0Drv - Ring-0 library for host drivers.
2098#
2099RuntimeR0Drv_TEMPLATE = VBoxR0DrvLib
2100RuntimeR0Drv_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK) $(VBOX_WINPSDK)INCS VBOX_OPENSSL
2101RuntimeR0Drv_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS RT_NO_EXPORT_SYMBOL NOFILEID
2102RuntimeR0Drv_DEFS.win = IN_SUP_R0 LDR_ONLY_PE
2103
2104RuntimeR0Drv_INCS := $(PATH_SUB_CURRENT) include
2105RuntimeR0Drv_INCS.freebsd = \
2106 $(PATH_STAGE)/gen-sys-hdrs
2107RuntimeR0Drv_INCS.solaris = \
2108 r0drv/solaris/vbi/i86pc \
2109 r0drv/solaris/vbi/i86pc/sys
2110
2111RuntimeR0Drv_SOURCES = \
2112 common/alloc/alloc.cpp \
2113 common/alloc/heapsimple.cpp \
2114 common/alloc/heapoffset.cpp \
2115 common/checksum/alt-md5.cpp \
2116 common/checksum/crc32.cpp \
2117 common/checksum/crc64.cpp \
2118 common/checksum/ipv4.cpp \
2119 common/checksum/ipv6.cpp \
2120 common/err/RTErrConvertToErrno.cpp \
2121 common/err/RTErrConvertFromErrno.cpp \
2122 common/err/errinfo.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/errinfolog.cpp \
2342 common/path/RTPathChangeToUnixSlashes.cpp \
2343 common/math/bignum.cpp \
2344 common/misc/zero.asm \
2345 common/string/RTStrPrintHexBytes.cpp \
2346 common/string/RTUtf16Copy.cpp \
2347 common/string/RTUtf16CopyAscii.cpp \
2348 common/string/RTUtf16Cat.cpp \
2349 common/string/RTUtf16CatAscii.cpp \
2350 common/string/RTUtf16End.cpp \
2351 common/string/RTUtf16NLen.cpp \
2352 common/string/RTUtf16NLenEx.cpp \
2353 common/string/RTUtf16PrintHexBytes.cpp \
2354 common/string/strstrip.cpp \
2355 generic/memsafer-generic.cpp \
2356 common/misc/thread.cpp \
2357 common/string/memcmp.asm \
2358 common/string/memchr.asm \
2359 common/string/memcpy.asm \
2360 common/string/memset.asm \
2361 common/string/memmove.asm \
2362 common/string/strlen.asm \
2363 common/string/strncmp.cpp \
2364 common/string/strpbrk.cpp \
2365 generic/RTAssertShouldPanic-generic.cpp \
2366 generic/RTLogWriteStdOut-stub-generic.cpp \
2367 generic/RTTimerCreate-generic.cpp \
2368 generic/mppresent-generic-online.cpp \
2369 generic/RTMpGetCoreCount-generic.cpp \
2370 generic/rtStrFormatKernelAddress-generic.cpp \
2371 nt/RTErrConvertFromNtStatus.cpp \
2372 nt/RTNtPathExpand8dot3Path.cpp \
2373 nt/RTNtPathFindPossible8dot3Name.cpp \
2374 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
2375 r0drv/alloc-ef-r0drv.cpp \
2376 r0drv/memobj-r0drv.cpp \
2377 r0drv/mpnotification-r0drv.c \
2378 r0drv/powernotification-r0drv.c \
2379 r0drv/nt/alloc-r0drv-nt.cpp \
2380 r0drv/nt/assert-r0drv-nt.cpp \
2381 r0drv/nt/initterm-r0drv-nt.cpp \
2382 r0drv/nt/memobj-r0drv-nt.cpp \
2383 r0drv/nt/memuserkernel-r0drv-nt.cpp \
2384 r0drv/nt/mp-r0drv-nt.cpp \
2385 r0drv/nt/process-r0drv-nt.cpp \
2386 r0drv/nt/RTLogWriteDebugger-r0drv-nt.cpp \
2387 r0drv/nt/semevent-r0drv-nt.cpp \
2388 r0drv/nt/semeventmulti-r0drv-nt.cpp \
2389 r0drv/nt/semfastmutex-r0drv-nt.cpp \
2390 r0drv/nt/semmutex-r0drv-nt.cpp \
2391 r0drv/nt/spinlock-r0drv-nt.cpp \
2392 r0drv/nt/thread-r0drv-nt.cpp \
2393 r0drv/nt/thread2-r0drv-nt.cpp \
2394 r0drv/nt/time-r0drv-nt.cpp \
2395 r0drv/nt/timer-r0drv-nt.cpp \
2396 r0drv/nt/toxic-chkstk-r0drv-nt.asm \
2397 r0drv/nt/RTTimerGetSystemGranularity-r0drv-nt.cpp
2398
2399RuntimeR0Drv_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES)
2400RuntimeR0Drv_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES)
2401
2402RuntimeR0Drv_SOURCES.darwin = \
2403 common/misc/thread.cpp \
2404 common/string/memchr.asm \
2405 common/string/strpbrk.cpp \
2406 darwin/RTErrConvertFromDarwin.cpp \
2407 darwin/RTErrConvertFromDarwinIO.cpp \
2408 darwin/RTErrConvertFromDarwinKern.cpp \
2409 generic/RTAssertShouldPanic-generic.cpp \
2410 generic/RTTimerCreate-generic.cpp \
2411 generic/RTMpGetCoreCount-generic.cpp \
2412 generic/RTMpOnPair-generic.cpp \
2413 generic/mppresent-generic.cpp \
2414 generic/timer-generic.cpp \
2415 r0drv/generic/mpnotification-r0drv-generic.cpp \
2416 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
2417 r0drv/darwin/alloc-r0drv-darwin.cpp \
2418 r0drv/darwin/assert-r0drv-darwin.cpp \
2419 r0drv/darwin/initterm-r0drv-darwin.cpp \
2420 r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp \
2421 r0drv/darwin/memobj-r0drv-darwin.cpp \
2422 r0drv/darwin/mp-r0drv-darwin.cpp \
2423 r0drv/darwin/memuserkernel-r0drv-darwin.cpp \
2424 r0drv/darwin/process-r0drv-darwin.cpp \
2425 r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
2426 r0drv/darwin/RTLogWriteStdOut-r0drv-darwin.cpp \
2427 r0drv/darwin/rtStrFormatKernelAddress-r0drv-darwin.cpp \
2428 r0drv/darwin/semevent-r0drv-darwin.cpp \
2429 r0drv/darwin/semeventmulti-r0drv-darwin.cpp \
2430 r0drv/darwin/semfastmutex-r0drv-darwin.cpp \
2431 r0drv/darwin/semmutex-r0drv-darwin.cpp \
2432 r0drv/darwin/spinlock-r0drv-darwin.cpp \
2433 r0drv/darwin/thread-r0drv-darwin.cpp \
2434 r0drv/darwin/thread2-r0drv-darwin.cpp \
2435 r0drv/darwin/threadpreempt-r0drv-darwin.cpp \
2436 r0drv/darwin/time-r0drv-darwin.cpp \
2437 r0drv/alloc-ef-r0drv.cpp \
2438 r0drv/memobj-r0drv.cpp \
2439 r0drv/powernotification-r0drv.c
2440
2441RuntimeR0Drv_SOURCES.os2 = \
2442 common/string/memchr.asm \
2443 common/string/memcmp.asm \
2444 common/string/memcpy.asm \
2445 common/string/mempcpy.asm \
2446 common/string/memmove.asm \
2447 common/string/memset.asm \
2448 common/string/strchr.asm \
2449 common/string/strcmp.asm \
2450 common/string/strcpy.asm \
2451 common/string/strlen.asm \
2452 \
2453 common/string/strncmp.cpp \
2454 common/string/strpbrk.cpp \
2455 \
2456 common/misc/thread.cpp \
2457 generic/RTAssertShouldPanic-generic.cpp \
2458 generic/RTLogWriteDebugger-generic.cpp \
2459 generic/RTLogWriteStdOut-stub-generic.cpp \
2460 generic/RTMpCpuId-generic.cpp \
2461 generic/RTMpCpuIdFromSetIndex-generic.cpp \
2462 generic/RTMpCpuIdToSetIndex-generic.cpp \
2463 generic/RTMpIsCpuPossible-generic.cpp \
2464 generic/RTMpGetCount-generic.cpp \
2465 generic/RTMpGetMaxCpuId-generic.cpp \
2466 generic/RTMpGetOnlineCount-generic.cpp \
2467 generic/RTMpGetOnlineSet-generic.cpp \
2468 generic/RTMpGetSet-generic.cpp \
2469 generic/RTMpIsCpuOnline-generic.cpp \
2470 generic/RTTimerCreate-generic.cpp \
2471 generic/mppresent-generic.cpp \
2472 generic/rtStrFormatKernelAddress-generic.cpp \
2473 os2/RTErrConvertFromOS2.cpp \
2474 os2/rtSemWaitOs2ConvertTimeout.cpp \
2475 os2/sys0.asm \
2476 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
2477 r0drv/generic/RTMpOn-r0drv-generic.cpp \
2478 r0drv/generic/mpnotification-r0drv-generic.cpp \
2479 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
2480 r0drv/memobj-r0drv.cpp \
2481 r0drv/powernotification-r0drv.c \
2482 r0drv/os2/alloc-r0drv-os2.cpp \
2483 r0drv/os2/assert-r0drv-os2.cpp \
2484 r0drv/os2/assertA-r0drv-os2.asm \
2485 r0drv/os2/initterm-r0drv-os2.cpp \
2486 r0drv/os2/memobj-r0drv-os2.cpp \
2487 r0drv/os2/memuserkernel-r0drv-os2.cpp \
2488 r0drv/os2/os2imports.imp \
2489 r0drv/os2/process-r0drv-os2.cpp \
2490 r0drv/os2/RTR0AssertPanicSystem-r0drv-os2.asm \
2491 r0drv/os2/RTR0Os2DHQueryDOSVar.asm \
2492 r0drv/os2/RTR0Os2DHVMGlobalToProcess.asm \
2493 r0drv/os2/semevent-r0drv-os2.cpp \
2494 r0drv/os2/semeventmulti-r0drv-os2.cpp \
2495 r0drv/os2/semfastmutex-r0drv-os2.cpp \
2496 r0drv/os2/spinlock-r0drv-os2.cpp \
2497 r0drv/os2/thread-r0drv-os2.cpp \
2498 r0drv/os2/thread2-r0drv-os2.cpp \
2499 r0drv/os2/time-r0drv-os2.cpp \
2500 r0drv/os2/timer-r0drv-os2.cpp \
2501 r0drv/os2/timerA-r0drv-os2.asm \
2502 \
2503 common/math/gcc/adddi3.c \
2504 common/math/gcc/anddi3.c \
2505 common/math/gcc/ashldi3.c \
2506 common/math/gcc/ashrdi3.c \
2507 common/math/gcc/cmpdi2.c \
2508 common/math/gcc/divdi3.c \
2509 common/math/gcc/iordi3.c \
2510 common/math/gcc/lshldi3.c \
2511 common/math/gcc/lshrdi3.c \
2512 common/math/gcc/moddi3.c \
2513 common/math/gcc/muldi3.c \
2514 common/math/gcc/negdi2.c \
2515 common/math/gcc/notdi2.c \
2516 common/math/gcc/qdivrem.c \
2517 common/math/gcc/subdi3.c \
2518 common/math/gcc/ucmpdi2.c \
2519 common/math/gcc/udivdi3.c \
2520 common/math/gcc/udivmoddi4.c \
2521 common/math/gcc/umoddi3.c \
2522 common/math/gcc/xordi3.c
2523
2524RuntimeR0Drv_SOURCES.freebsd = \
2525 common/misc/thread.cpp \
2526 common/string/memchr.asm \
2527 common/string/memmove.asm \
2528 common/string/strpbrk.cpp \
2529 common/string/memcmp.asm \
2530 common/string/strchr.asm \
2531 generic/RTAssertShouldPanic-generic.cpp \
2532 generic/RTLogWriteDebugger-generic.cpp \
2533 generic/RTLogWriteStdOut-stub-generic.cpp \
2534 generic/RTMpOnPair-generic.cpp \
2535 generic/RTTimerCreate-generic.cpp \
2536 generic/mppresent-generic.cpp \
2537 generic/rtStrFormatKernelAddress-generic.cpp \
2538 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
2539 r0drv/generic/mpnotification-r0drv-generic.cpp \
2540 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
2541 r0drv/freebsd/alloc-r0drv-freebsd.c \
2542 r0drv/freebsd/assert-r0drv-freebsd.c \
2543 r0drv/freebsd/initterm-r0drv-freebsd.c \
2544 r0drv/freebsd/memobj-r0drv-freebsd.c \
2545 r0drv/freebsd/memuserkernel-r0drv-freebsd.c \
2546 r0drv/freebsd/process-r0drv-freebsd.c \
2547 r0drv/freebsd/semevent-r0drv-freebsd.c \
2548 r0drv/freebsd/semeventmulti-r0drv-freebsd.c \
2549 r0drv/freebsd/semfastmutex-r0drv-freebsd.c \
2550 r0drv/freebsd/semmutex-r0drv-freebsd.c \
2551 r0drv/freebsd/spinlock-r0drv-freebsd.c \
2552 r0drv/freebsd/thread-r0drv-freebsd.c \
2553 r0drv/freebsd/thread2-r0drv-freebsd.c \
2554 r0drv/freebsd/time-r0drv-freebsd.c \
2555 r0drv/freebsd/mp-r0drv-freebsd.c \
2556 generic/timer-generic.cpp \
2557 r0drv/alloc-ef-r0drv.cpp \
2558 r0drv/memobj-r0drv.cpp \
2559 r0drv/powernotification-r0drv.c
2560
2561RuntimeR0Drv_SOURCES.netbsd = \
2562 common/misc/thread.cpp \
2563 common/string/memchr.asm \
2564 common/string/memmove.asm \
2565 common/string/strpbrk.cpp \
2566 common/string/memcmp.asm \
2567 common/string/strchr.asm \
2568 generic/RTAssertShouldPanic-generic.cpp \
2569 generic/RTLogWriteDebugger-generic.cpp \
2570 generic/RTTimerCreate-generic.cpp \
2571 generic/mppresent-generic.cpp \
2572 generic/rtStrFormatKernelAddress-generic.cpp \
2573 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
2574 r0drv/generic/mpnotification-r0drv-generic.cpp \
2575 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
2576 r0drv/netbsd/RTLogWriteStdOut-r0drv-netbsd.c \
2577 r0drv/netbsd/alloc-r0drv-netbsd.c \
2578 r0drv/netbsd/assert-r0drv-netbsd.c \
2579 r0drv/netbsd/initterm-r0drv-netbsd.c \
2580 r0drv/netbsd/memobj-r0drv-netbsd.c \
2581 r0drv/netbsd/memuserkernel-r0drv-netbsd.c \
2582 r0drv/netbsd/process-r0drv-netbsd.c \
2583 r0drv/netbsd/semevent-r0drv-netbsd.c \
2584 r0drv/netbsd/semeventmulti-r0drv-netbsd.c \
2585 r0drv/netbsd/semfastmutex-r0drv-netbsd.c \
2586 r0drv/netbsd/spinlock-r0drv-netbsd.c \
2587 r0drv/netbsd/thread-r0drv-netbsd.c \
2588 r0drv/netbsd/thread2-r0drv-netbsd.c \
2589 r0drv/netbsd/time-r0drv-netbsd.c \
2590 r0drv/netbsd/mp-r0drv-netbsd.c \
2591 generic/timer-generic.cpp \
2592 r0drv/memobj-r0drv.cpp \
2593 r0drv/powernotification-r0drv.c
2594
2595RuntimeR0Drv_SOURCES.solaris = \
2596 common/misc/thread.cpp \
2597 common/string/memchr.asm \
2598 generic/RTAssertShouldPanic-generic.cpp \
2599 generic/RTLogWriteStdOut-stub-generic.cpp \
2600 generic/RTMpGetCoreCount-generic.cpp \
2601 generic/RTTimerCreate-generic.cpp \
2602 generic/mppresent-generic.cpp \
2603 generic/rtStrFormatKernelAddress-generic.cpp \
2604 r0drv/memobj-r0drv.cpp \
2605 r0drv/mpnotification-r0drv.c \
2606 r0drv/powernotification-r0drv.c \
2607 r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \
2608 r0drv/solaris/RTMpPokeCpu-r0drv-solaris.c \
2609 r0drv/solaris/alloc-r0drv-solaris.c \
2610 r0drv/solaris/assert-r0drv-solaris.c \
2611 r0drv/solaris/dbgkrnlinfo-r0drv-solaris.c \
2612 r0drv/solaris/initterm-r0drv-solaris.c \
2613 r0drv/solaris/memuserkernel-r0drv-solaris.c \
2614 r0drv/solaris/mpnotification-r0drv-solaris.c \
2615 r0drv/solaris/memobj-r0drv-solaris.c \
2616 r0drv/solaris/mp-r0drv-solaris.c \
2617 r0drv/solaris/process-r0drv-solaris.c \
2618 r0drv/solaris/semevent-r0drv-solaris.c \
2619 r0drv/solaris/semeventmulti-r0drv-solaris.c \
2620 r0drv/solaris/semfastmutex-r0drv-solaris.c \
2621 r0drv/solaris/semmutex-r0drv-solaris.c \
2622 r0drv/solaris/spinlock-r0drv-solaris.c \
2623 r0drv/solaris/thread-r0drv-solaris.c \
2624 r0drv/solaris/thread2-r0drv-solaris.c \
2625 r0drv/solaris/threadctxhooks-r0drv-solaris.c \
2626 r0drv/solaris/time-r0drv-solaris.c \
2627 r0drv/solaris/timer-r0drv-solaris.c
2628
2629RuntimeR0Drv_SOURCES.haiku = \
2630 common/misc/thread.cpp \
2631 common/string/memchr.asm \
2632 common/string/memmove.asm \
2633 common/string/strpbrk.cpp \
2634 common/string/memcmp.asm \
2635 common/string/strchr.asm \
2636 generic/RTAssertShouldPanic-generic.cpp \
2637 generic/RTMpOnPair-generic.cpp \
2638 generic/RTTimerCreate-generic.cpp \
2639 generic/mppresent-generic.cpp \
2640 generic/rtStrFormatKernelAddress-generic.cpp \
2641 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
2642 r0drv/generic/mpnotification-r0drv-generic.cpp \
2643 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
2644 r0drv/haiku/alloc-r0drv-haiku.c \
2645 r0drv/haiku/assert-r0drv-haiku.c \
2646 r0drv/haiku/initterm-r0drv-haiku.c \
2647 r0drv/haiku/memobj-r0drv-haiku.c \
2648 r0drv/haiku/mp-r0drv-haiku.c \
2649 r0drv/haiku/process-r0drv-haiku.c \
2650 r0drv/haiku/RTLogWriteDebugger-r0drv-haiku.c \
2651 r0drv/haiku/RTLogWriteStdOut-r0drv-haiku.c \
2652 r0drv/haiku/semevent-r0drv-haiku.c \
2653 r0drv/haiku/semeventmulti-r0drv-haiku.c \
2654 r0drv/haiku/semfastmutex-r0drv-haiku.c \
2655 r0drv/haiku/semmutex-r0drv-haiku.c \
2656 r0drv/haiku/spinlock-r0drv-haiku.c \
2657 r0drv/haiku/thread-r0drv-haiku.c \
2658 r0drv/haiku/thread2-r0drv-haiku.c \
2659 r0drv/haiku/time-r0drv-haiku.c \
2660 generic/timer-generic.cpp \
2661 r0drv/memobj-r0drv.cpp \
2662 r0drv/powernotification-r0drv.c
2663
2664## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here.
2665
2666RuntimeR0Drv_ORDERDEPS.freebsd = \
2667 $(PATH_STAGE)/gen-sys-hdrs/bus_if.h \
2668 $(PATH_STAGE)/gen-sys-hdrs/device_if.h
2669
2670
2671#
2672# RuntimeGuestR0 - Guest driver runtime.
2673# This is almost the same as the RuntimeR0Drv, the main difference
2674# is in the backdoor logging and the lack of sup.h (which should be
2675# made irrelevant even for RuntimeR0Drv).
2676#
2677RuntimeGuestR0_TEMPLATE := VBOXGUESTR0LIB
2678RuntimeGuestR0_EXTENDS = RuntimeR0Drv
2679RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES))
2680RuntimeGuestR0_SOURCES += \
2681 VBox/logbackdoor.cpp
2682RuntimeGuestR0_SOURCES.win := \
2683 $(filter-out common/checksum/md% common/checksum/sha%, $(RuntimeR0Drv_SOURCES.win))
2684
2685
2686#
2687# RuntimeGuestR0NT4 - Win32 NT4 guest driver runtime.
2688#
2689RuntimeGuestR0NT4_EXTENDS = RuntimeGuestR0
2690RuntimeGuestR0NT4_EXTENDS_BY = appending
2691RuntimeGuestR0NT4_DEFS = IPRT_TARGET_NT4
2692
2693
2694ifdef VBOX_WITH_RAW_MODE
2695 #
2696 # RuntimeRC - Raw-mode context library.
2697 #
2698 RuntimeRC_TEMPLATE = VBoxRc
2699 RuntimeRC_DEFS = IN_RT_RC RT_WITH_VBOX IN_SUP_RC IN_VMM_RC NOFILEID
2700 RuntimeRC_INCS = include
2701 RuntimeRC_SOURCES := \
2702 common/asm/ASMMemFirstMismatchingU8.asm \
2703 common/asm/ASMGetXcr0.asm \
2704 common/asm/ASMSetXcr0.asm \
2705 common/asm/ASMXSave.asm \
2706 common/asm/ASMXRstor.asm \
2707 common/asm/ASMFxSave.asm \
2708 common/asm/ASMFxRstor.asm \
2709 common/checksum/alt-md5.cpp \
2710 common/checksum/crc32.cpp \
2711 common/checksum/crc64.cpp \
2712 common/log/log.cpp \
2713 common/log/logellipsis.cpp \
2714 common/log/logrel.cpp \
2715 common/log/logrelellipsis.cpp \
2716 common/log/logcom.cpp \
2717 common/log/logformat.cpp \
2718 common/log/tracebuf.cpp \
2719 common/log/tracedefault.cpp \
2720 common/misc/RTAssertMsg1Weak.cpp \
2721 common/misc/RTAssertMsg2.cpp \
2722 common/misc/RTAssertMsg2Add.cpp \
2723 common/misc/RTAssertMsg2AddWeak.cpp \
2724 common/misc/RTAssertMsg2AddWeakV.cpp \
2725 common/misc/RTAssertMsg2Weak.cpp \
2726 common/misc/RTAssertMsg2WeakV.cpp \
2727 common/misc/assert.cpp \
2728 common/misc/buildconfig.cpp \
2729 common/misc/sanity-c.c \
2730 common/misc/sanity-cpp.cpp \
2731 common/path/RTPathFilename.cpp \
2732 common/string/strformat.cpp \
2733 common/string/strformatnum.cpp \
2734 common/string/strformatrt.cpp \
2735 common/string/strformattype.cpp \
2736 common/string/strncmp.cpp \
2737 common/string/strpbrk.cpp \
2738 common/string/strprintf.cpp \
2739 common/string/strprintf2.cpp \
2740 common/string/RTStrCmp.cpp \
2741 common/string/RTStrCopy.cpp \
2742 common/string/RTStrCopyEx.cpp \
2743 common/string/RTStrICmpAscii.cpp \
2744 common/table/avllu32.cpp \
2745 common/table/avlou32.cpp \
2746 common/table/avlogcphys.cpp \
2747 common/table/avlogcptr.cpp \
2748 common/table/avlohcphys.cpp \
2749 common/table/avloioport.cpp \
2750 common/table/avlrogcphys.cpp \
2751 common/table/avlrogcptr.cpp \
2752 common/table/avlroioport.cpp \
2753 common/table/avlroogcptr.cpp \
2754 common/table/avlu32.cpp \
2755 common/time/timeprog.cpp \
2756 common/time/timesup.cpp \
2757 gc/initterm-gc.cpp \
2758 generic/RTAssertShouldPanic-generic.cpp \
2759 generic/rtStrFormatKernelAddress-generic.cpp \
2760 generic/errvars-generic.cpp \
2761 \
2762 $(RuntimeNoCrt_SOURCES)
2763
2764 #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
2765 # RuntimeRC_SOURCES += common/time/timesupA.asm
2766 #else
2767 RuntimeRC_SOURCES += common/time/timesupref.cpp
2768 #endif
2769
2770 RuntimeRC_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
2771
2772 ifeq ($(VBOX_LDR_FMT32),lx)
2773 RuntimeRC_SOURCES += os2/sys0.asm
2774 endif
2775
2776 if1of ($(KBUILD_TARGET), darwin solaris freebsd os2)
2777 RuntimeRC_SOURCES += \
2778 common/math/gcc/adddi3.c \
2779 common/math/gcc/anddi3.c \
2780 common/math/gcc/ashldi3.c \
2781 common/math/gcc/ashrdi3.c \
2782 common/math/gcc/cmpdi2.c \
2783 common/math/gcc/divdi3.c \
2784 common/math/gcc/iordi3.c \
2785 common/math/gcc/lshldi3.c \
2786 common/math/gcc/lshrdi3.c \
2787 common/math/gcc/moddi3.c \
2788 common/math/gcc/muldi3.c \
2789 common/math/gcc/negdi2.c \
2790 common/math/gcc/notdi2.c \
2791 common/math/gcc/qdivrem.c \
2792 common/math/gcc/subdi3.c \
2793 common/math/gcc/ucmpdi2.c \
2794 common/math/gcc/udivdi3.c \
2795 common/math/gcc/udivmoddi4.c \
2796 common/math/gcc/umoddi3.c \
2797 common/math/gcc/xordi3.c
2798 endif
2799
2800
2801 #
2802 # RuntimeRCStub - Raw-mode context startup stub for Windows.
2803 #
2804 RuntimeRCStub_TEMPLATE = VBoxRc
2805 RuntimeRCStub_SOURCES.win = \
2806 nt/NtProcessStartup-stub.cpp
2807
2808
2809endif # VBOX_WITH_RAW_MODE
2810
2811
2812#
2813# Static library for new & delete for the electric fence.
2814#
2815RuntimeEFCPP_TEMPLATE := $(VBoxRT_TEMPLATE)
2816RuntimeEFCPP_SDKS := $(RuntimeR3_SDKS)
2817RuntimeEFCPP_SDKS.$(KBUILD_TARGET) := $(RuntimeR3_SDKS.$(KBUILD_TARGET))
2818RuntimeEFCPP_DEFS := $(RuntimeR3_DEFS)
2819RuntimeEFCPP_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
2820RuntimeEFCPP_INCS := $(RuntimeR3_INCS)
2821RuntimeEFCPP_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
2822RuntimeEFCPP_SOURCES := r3/alloc-ef-cpp.cpp
2823
2824
2825
2826#
2827# The NTDLL mini import library.
2828#
2829# Note! The reason for doing this is to avoid importing CRT symbols from the
2830# NTDLL. We do not wish to do this because:
2831# - Our compiler is usually a different one and we should use the
2832# matching CRT,
2833# - Older versions of NTDLL may not sport all the exports our w2k3 or
2834# later WINDDK ntdll.lib have and thus we may easily end up with
2835# images that does not load on older windows versions.
2836#
2837if1of (win,$(KBUILD_TARGET) $(KBUILD_HOST))
2838RuntimeR3NtDll-amd64_TEMPLATE = VBoxR3Dll
2839RuntimeR3NtDll-amd64_BLD_TRG_ARCH = amd64
2840RuntimeR3NtDll-amd64_ARFLAGS = /NODEFAULTLIB /MACHINE:amd64
2841RuntimeR3NtDll-amd64_SOURCES = \
2842 r3/win/ntdll-mini-implib.def
2843
2844RuntimeR3NtDll-x86_TEMPLATE = VBoxR3Dll
2845RuntimeR3NtDll-x86_BLD_TRG_ARCH = x86
2846RuntimeR3NtDll-x86_ARFLAGS = /NODEFAULTLIB /MACHINE:x86
2847RuntimeR3NtDll-x86_SOURCES = \
2848 r3/win/ntdll-mini-implib.def \
2849 $(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm
2850RuntimeR3NtDll-x86_CLEAN = \
2851 $(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm
2852
2853$$(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm: $(PATH_SUB_CURRENT)/r3/win/ntdll-mini-implib.def | $$(dir $$@)
2854 $(call MSG_GENERATE,,$@,$<)
2855 $(QUIET)$(APPEND) -nt "$@" \
2856 ';Autogenerated, do not edit' \
2857 '%include "iprt/asmdefs.mac"' \
2858 'BEGINCODE' \
2859 '%macro IMPLIB_EXPORT 1' \
2860 'global %1:function' \
2861 '%1: nop' \
2862 '%endm' \
2863 ''
2864 $(QUIET)$(SED) -e '1,/EXPORTS/d' \
2865 -e 's/^.*;;=[[:space:]]*\([^[:space:]]*\)[[:space:]]*$$/IMPLIB_EXPORT \1/' \
2866 $< --append $@
2867endif
2868
2869#
2870# Bag of tricks required for making VCC100 output binaries work on NT4, W2K
2871# early XP and early W2K3.
2872#
2873RuntimeR3VccTricks_TEMPLATE = VBoxR3Dll
2874RuntimeR3VccTricks_SOURCES = \
2875 r3/win/vcc100-kernel32-fakes.cpp \
2876 r3/win/vcc100-kernel32-fakesA.asm
2877
2878if defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" # Ugly hacks... :-)
2879LIBRARIES += RuntimeR3VccTricks2
2880RuntimeR3VccTricks2_TEMPLATE = VBoxR3Dll
2881RuntimeR3VccTricks2_SOURCES = $(RuntimeR3VccTricks_SOURCES)
2882RuntimeR3VccTricks2_SOURCES += $(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib
2883RuntimeR3VccTricks2_CLEAN = $(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib
2884RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED =
2885
2886$$(RuntimeR3VccTricks2_0_OUTDIR)/dynobjs.lib: \
2887 $$(PATH_TOOL_$$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \
2888 $$(PATH_TOOL_$$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
2889 $$(LIB_RUNTIME) \
2890 $(MAKEFILE) | $$(dir $$@)
2891 $(RM) -f -- "$@"
2892# $(REDIRECT) -C $(dir $@) -- $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib \
2893# $(PATH_TOOL_$(TEMPLATE_VBoxR3Dll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \
2894# $(foreach file, $(RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED), *$(file))
2895 $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib [email protected] $< \
2896 -MSVCR100.dll \
2897 $(addprefix $(RuntimeR3VccTricks2_0_OUTDIR)/, $(RuntimeR3VccTricks2_VBOX_LIBCMT_NEEDED)) \
2898 -chandler4gs.obj
2899 $(KBUILD_DEVTOOLS)/common/openwatcom/v1.9-r2/binnt/wlib -o=$@ \
2900 $(LIB_RUNTIME) \
2901 [email protected]
2902 $(RM) -f -- [email protected] $(addprefix $(RuntimeR3VccTricks2_0_OUTDIR)/, $(RuntimeR3VccTricks_VBOX_LIBCMT_NEEDED))
2903endif
2904
2905
2906#
2907# errmsg.cpp depends on a generated header.
2908#
2909common/err/errmsg.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h
2910common/err/errmsg.cpp_INCS = $(IPRT_OUT_DIR)
2911
2912win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgcomdata.h
2913win/errmsgwin.cpp_INCS = $(IPRT_OUT_DIR)
2914
2915# Our COM errors only for R3 libraries on the host
2916define def_errmsgwin_deps
2917 $(lib)_win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
2918 $(lib)_common/err/errmsgxpcom.cpp_INCS = $(IPRT_OUT_DIR)
2919 $(lib)_common/err/errmsgxpcom.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
2920endef
2921$(foreach lib,RuntimeR3 RuntimeBldProg VBoxRT VBoxRT-x86,$(eval $(def_errmsgwin_deps)))
2922
2923
2924#
2925# Generate the status code data.
2926#
2927$(IPRT_OUT_DIR)/errmsgdata.h: \
2928 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsg.sed \
2929 $(PATH_ROOT)/include/iprt/err.h \
2930 $(PATH_ROOT)/include/VBox/err.h \
2931 | $$(dir $$@)
2932 $(call MSG_GENERATE,,$@,$(filter %.h,$^))
2933 $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
2934
2935## @todo r=bird: rename this to indicate that it's not only COM errors, but all win32/64 errors.
2936$(IPRT_OUT_DIR)/errmsgcomdata.h: \
2937 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsgcom.sed \
2938 $$(PATH_SDK_$(VBOX_WINPSDK)_INC)/WinError.h \
2939 | $$(dir $$@)
2940 $(call MSG_GENERATE,,$@,$(filter %.h,$^))
2941 $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
2942
2943$(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts +| $(IPRT_OUT_DIR)/errmsgvboxcomdata.h: \
2944 $(VBOX_PATH_RUNTIME_SRC)/VBox/errmsgvboxcom.xsl \
2945 $(VBOX_XIDL_FILE_SRC) \
2946 | $$(dir $$@)
2947 $(call MSG_GENERATE,,$@,$(filter %.xidl,$^))
2948 $(QUIET)$(VBOX_XSLTPROC) -o $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts $< $(filter %.xidl,$^)
2949 $(QUIET)$(CP) --changed -fv $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
2950
2951
2952if "$(KBUILD_TARGET)" == "freebsd"
2953#
2954# FreeBSDGeneratedKernelHeaders - Generate some kernel interface headers.
2955#
2956# These are used by:
2957# - The RTMp* API in IPRT.
2958# - VBoxGuest
2959#
2960# Note! We cannot give a output path to the awk program, it will always
2961# generate the header next to the source. So, we'll have to temporarily copy
2962# the source file to the destination directory to work.
2963#
2964VBOX_AWK := /usr/bin/awk
2965INSTALLS += FreeBSDGeneratedKernelHeaders
2966FreeBSDGeneratedKernelHeaders_INST = gen-sys-hdrs/
2967FreeBSDGeneratedKernelHeaders_SOURCES = \
2968 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h \
2969 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h \
2970 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h
2971FreeBSDGeneratedKernelHeaders_CLEAN = $(FreeBSDGeneratedKernelHeaders_SOURCES)
2972
2973$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h: $(VBOX_FREEBSD_SRC)/kern/bus_if.m | $$(dir $$@)
2974 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
2975 $(QUIET)$(CP) -f $< $(@D)/bus_if.m
2976 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/bus_if.m -h -p
2977 $(QUIET)$(RM) $(@D)/bus_if.m
2978
2979$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h: $(VBOX_FREEBSD_SRC)/kern/device_if.m | $$(dir $$@)
2980 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
2981 $(QUIET)$(CP) -f $< $(@D)/device_if.m
2982 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/device_if.m -h -p
2983 $(QUIET)$(RM) $(@D)/device_if.m
2984
2985$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h: $(VBOX_FREEBSD_SRC)/dev/pci/pci_if.m | $$(dir $$@)
2986 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
2987 $(QUIET)$(CP) -f $< $(@D)/pci_if.m
2988 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/pci_if.m -h -p
2989 $(QUIET)$(RM) $(@D)/pci_if.m
2990endif # FreeBSD
2991
2992
2993#
2994# Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
2995#
2996ldrELFRelocatable.cpp.o: ldrELF.o
2997ldrELFRelocatable.cpp.obj: ldrELF.obj
2998
2999
3000#
3001# Doxygen documentation.
3002#
3003IPRT_DOXYFILE_INPUT_DIRS = \
3004 $(PATH_ROOT)/include/iprt \
3005 $(PATH_ROOT)/include/iprt/cpp \
3006 $(PATH_ROOT)/include/iprt/linux \
3007 $(PATH_ROOT)/include/iprt/nocrt \
3008 $(PATH_ROOT)/include/iprt/nocrt/x86 \
3009 $(PATH_ROOT)/include/iprt/nocrt/amd64 \
3010 $(PATH_ROOT)/include/iprt/nocrt/compiler \
3011 $(VBOX_PATH_RUNTIME_SRC)/include/internal \
3012 $(VBOX_PATH_RUNTIME_SRC)/common/alloc \
3013 $(VBOX_PATH_RUNTIME_SRC)/common/asm \
3014 $(VBOX_PATH_RUNTIME_SRC)/common/checksum \
3015 $(VBOX_PATH_RUNTIME_SRC)/common/dbg \
3016 $(VBOX_PATH_RUNTIME_SRC)/common/err \
3017 $(VBOX_PATH_RUNTIME_SRC)/common/ldr \
3018 $(VBOX_PATH_RUNTIME_SRC)/common/log \
3019 $(VBOX_PATH_RUNTIME_SRC)/common/math \
3020 $(VBOX_PATH_RUNTIME_SRC)/common/math/amd64 \
3021 $(VBOX_PATH_RUNTIME_SRC)/common/math/gcc \
3022 $(VBOX_PATH_RUNTIME_SRC)/common/math/x86 \
3023 $(VBOX_PATH_RUNTIME_SRC)/common/misc \
3024 $(VBOX_PATH_RUNTIME_SRC)/common/path \
3025 $(VBOX_PATH_RUNTIME_SRC)/common/rand \
3026 $(VBOX_PATH_RUNTIME_SRC)/common/string \
3027 $(VBOX_PATH_RUNTIME_SRC)/common/table \
3028 $(VBOX_PATH_RUNTIME_SRC)/common/time \
3029 $(VBOX_PATH_RUNTIME_SRC)/VBox \
3030 $(foreach dir, $(VBOX_PATH_RUNTIME_SRC) $(VBOX_PATH_RUNTIME_SRC)/r3 $(VBOX_PATH_RUNTIME_SRC)/r0drv,\
3031 $(dir) \
3032 $(dir)/darwin \
3033 $(dir)/haiku \
3034 $(dir)/linux \
3035 $(dir)/nt \
3036 $(dir)/os2 \
3037 $(dir)/solaris \
3038 $(dir)/win \
3039 $(dir)/win32 \
3040 $(dir)/win64 \
3041 $(dir)/generic \
3042 )
3043
3044# These must come first in order to make things look nice.
3045IPRT_DOXYFILE_INPUT_FIRST =\
3046 $(PATH_ROOT)/include/iprt/cdefs.h \
3047 $(PATH_ROOT)/include/iprt/types.h \
3048 $(PATH_ROOT)/include/iprt/runtime.h \
3049 $(PATH_ROOT)/include/iprt/param.h \
3050 $(PATH_ROOT)/include/iprt/assert.h \
3051 $(PATH_ROOT)/include/iprt/asm.h \
3052
3053IPRT_DOXYFILE_INPUT := \
3054 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(IPRT_DOXYFILE_INPUT_DIRS)))) ) \
3055 $(foreach dir, $(IPRT_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
3056IPRT_DOXYFILE_INPUT := \
3057 $(IPRT_DOXYFILE_INPUT_FIRST) \
3058 $(sort $(filter-out $(IPRT_DOXYFILE_INPUT_FIRST), $(IPRT_DOXYFILE_INPUT)))
3059
3060
3061IPRT_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/iprt
3062BLDDIRS += $(IPRT_DOXYFILE_OUTPUT)
3063
3064includedep $(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt.dep
3065
3066# Generate the Doxyfile
3067$(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt: \
3068 $(VBOX_PATH_RUNTIME_SRC)/Doxyfile \
3069 $(VBOX_PATH_RUNTIME_SRC)/Makefile.kmk \
3070 $(comp-vars IPRT_DOXYFILE_INPUT,DOXYGEN_IPRT_INPUT_PREV,FORCE) \
3071 $(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_IPRT_OUTPUT_PREV,FORCE) \
3072 | $$(dir $$@)
3073 $(QUIET)$(RM) -f $@ [email protected] [email protected]
3074 $(QUIET)$(CP) -f $(VBOX_PATH_RUNTIME_SRC)/Doxyfile [email protected]
3075 $(QUIET)$(APPEND) [email protected]
3076 $(QUIET)$(APPEND) [email protected] "OUTPUT_DIRECTORY = $(IPRT_DOXYFILE_OUTPUT)"
3077 $(QUIET)$(APPEND) [email protected] "WARN_LOGFILE = $(IPRT_DOXYFILE_OUTPUT)/errors"
3078 $(QUIET)$(APPEND) [email protected] 'INCLUDE_PATH = ' \
3079 '$(PATH_ROOT)/include' \
3080 '$(VBOX_PATH_RUNTIME_SRC)/include' \
3081 '$(VBOX_PATH_RUNTIME_SRC)/' \
3082 '$(VBOX_PATH_RUNTIME_SRC)/common/table'
3083 $(QUIET)$(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
3084 $(QUIET)$(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
3085 $(QUIET)$(APPEND) [email protected] 'EXCLUDE = '\
3086 '$(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-flags.cpp' \
3087 '$(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-lower.cpp' \
3088 '$(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-upper.cpp' \
3089 '$(VBOX_PATH_RUNTIME_SRC)/common/ldr/ldrkStuff.cpp'
3090 $(QUIET)$(APPEND) [email protected]
3091 $(QUIET)$(APPEND) [email protected] 'INPUT = $(foreach x,$(IPRT_DOXYFILE_INPUT),\$(NLTAB)$(x))'
3092 $(QUIET)$(APPEND) [email protected]
3093 $(QUIET)$(MV) -f [email protected] $@
3094 $(QUIET)$(APPEND) [email protected] "DOXYGEN_IPRT_OUTPUT_PREV = $(IPRT_DOXYFILE_OUTPUT)"
3095 $(QUIET)$(APPEND) [email protected] "DOXYGEN_IPRT_INPUT_PREV = $(IPRT_DOXYFILE_INPUT)"
3096
3097# Do the actual job.
3098$(IPRT_DOXYFILE_OUTPUT)/docs.iprt: $(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt $$(IPRT_DOXYFILE_INPUT) \
3099 | $(IPRT_DOXYFILE_OUTPUT)/
3100 $(QUIET)$(RM) -f $@
3101 $(QUIET)$(RM) -Rf $(IPRT_DOXYFILE_OUTPUT)/html/
3102 doxygen $(DOXYGEN_OPTS) $(IPRT_DOXYFILE_OUTPUT)/Doxyfile.iprt
3103 $(SED) \
3104 -e '/warning. Unexpected tag .dd. found/d' \
3105 -e '/warning. Unsupported xml.html tag .globalScope. found/d' \
3106 --output $(IPRT_DOXYFILE_OUTPUT)/errors2 \
3107 $(IPRT_DOXYFILE_OUTPUT)/errors
3108 $(CAT) $(IPRT_DOXYFILE_OUTPUT)/errors2
3109 $(SED) -e "/[^ ]/q 1" $(IPRT_DOXYFILE_OUTPUT)/errors2
3110 $(APPEND) $@
3111
3112# aliases
3113docs.iprt: $(IPRT_DOXYFILE_OUTPUT)/docs.iprt
3114if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
3115docs: $(IPRT_DOXYFILE_OUTPUT)/docs.iprt
3116endif
3117
3118test-doxygen::
3119 @echo test-$(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_IPRT_OUTPUT_PREV,FORCE)
3120 @echo $(IPRT_DOXYFILE_OUTPUT)
3121 @echo $(DOXYGEN_IPRT_OUTPUT_PREV)
3122 @echo $(IPRT_DOXYFILE_INPUT)
3123
3124
3125#
3126# Test mangling.
3127#
3128if1of ($(LIBRARIES),RuntimeR3 RuntimeR0 RuntimeR0Drv RuntimeRC)
3129 test-mangling:: $(IPRT_OUT_DIR)/mangling.run
3130 OTHERS += $(IPRT_OUT_DIR)/mangling.run
3131 CLEANS += $(IPRT_OUT_DIR)/mangling.run
3132 $(IPRT_OUT_DIR)/mangling.run: \
3133 $$(RuntimeR3_1_TARGET) \
3134 $$(RuntimeR0_1_TARGET) \
3135 $$(RuntimeR0Drv_1_TARGET) \
3136 $$(RuntimeRC_1_TARGET)
3137 if1of ($(KBUILD_TARGET), win os2)
3138 $(call MSG_L1,IPRT: skipped mangling test.)
3139 else
3140# Generate a SED script from mangling.h that checks for known symbols.
3141 $(QUIET)$(SED) \
3142 -e '/^# *define.*RT_MANGLER/!d' \
3143 -e 's/^.*RT_MANGLER(\([^)][^)]*\)).*$(DOLLAR)/\/^\1$(DOLLAR)\/b ok/' \
3144 $(PATH_ROOT)/include/iprt/mangling.h \
3145 --output "$@"
3146 $(QUIET)$(APPEND) -n '$@' \
3147 ':bad' \
3148 's/^\(.*\)$(DOLLAR)/error: Missing # define \1 /' \
3149 ':bad-pad' \
3150 '/^.\{0,70\}$(DOLLAR)/ { s/$(DOLLAR)/ /; bbad-pad; }' \
3151 's/define \([^ ]*\) \([ ]*\)$(DOLLAR)/define \1 \2RT_MANGLER(\1)/' \
3152 'p' \
3153 $(if-expr !defined(IPRT_IGNORE_TEST_MANGLING),'q 1') \
3154 '' \
3155 ':ok' \
3156 'd'
3157# Find the best way to generate a symbol list and subject it to mangling.h.
3158 if $(intersects $(KBUILD_TARGET), linux) && "$(VBOX_GCC_fvisibility-hidden)"
3159 $(call MSG_L1,IPRT: Testing mangling and visiblity for newer gcc...)
3160 $(QUIET)readelf -Ws $^ \
3161 | $(SED) \
3162 -e 's/[[:space:]]\+/ /g' \
3163 -e '/^ *[[:digit:]]\+:/!d' \
3164 -e 's/^ \+[[:digit:]]\+: \+[[:xdigit:]]\+ \+[[:digit:]]\+ \+//' \
3165 -e '/^SECTION/d' \
3166 -e '/^FILE/d' \
3167 -e 's/^[[:alpha:]]\+ \+//' \
3168 -e '/LOCAL/d' \
3169 -e 's/^[[:alpha:]]\+ \+//' \
3170 -e '/^HIDDEN [[:xdigit:]]\+ RT/bkeep-hidden' \
3171 -e '/^HIDDEN [[:xdigit:]]\+ g_[a-z0-9]*RT/bkeep-hidden' \
3172 -e '/^HIDDEN/d' \
3173 -e ':keep-hidden' \
3174 -e 's/^[[:alpha:]]\+ \+//' \
3175 -e '/^UND/d' \
3176 -e 's/^[[:digit:]]\+ \+//' \
3177 \
3178 -e '/^nocrt_/d' \
3179 -e '/^bzero/d' \
3180 -e '/^memchr/d' \
3181 -e '/^memcmp/d' \
3182 -e '/^memcpy/d' \
3183 -e '/^mempcpy/d' \
3184 -e '/^memmove/d' \
3185 -e '/^memset/d' \
3186 -e '/^strchr/d' \
3187 -e '/^strpbrk/d' \
3188 -e '/^_Z7strpbrk/d' \
3189 -e '/^strcmp/d' \
3190 -e '/^strcpy/d' \
3191 -e '/^strncpy/d' \
3192 -e '/^strlen/d' \
3193 -e '/^_Z[[:alpha:]]*[[:digit:]]\+RTC/d' \
3194 -e '/^_Z[[:alpha:]]*[[:digit:]]\+RTC/d' \
3195 \
3196 -e '/^_ZnwjPv/d' \
3197 -e '/^_ZnwmPv/d' \
3198 -e '/^_ZNSt9bad_allocC1Ev/d' \
3199 -e '/^_ZNSt9bad_allocC[12]ERKS_/d' \
3200 -e '/^_ZNSt9exceptionC2Ev/d' \
3201 -e '/^_ZNSt9exceptionC[12]ERKS_/d' \
3202 \
3203 -e '/^_ZN[a-zA-Z]*St[[:digit:]]*_*[lL]ist/d' \
3204 -e '/^_ZN[a-zA-Z]*[[:digit:]]*__gnu_cxx/d' \
3205 -e '/^_ZNSa.*ElementNode.*/d' \
3206 -e '/^_ZSt.*ElementNode.*/d' \
3207 \
3208 -e '/^_Z[[:digit:]]\+dbus/d' \
3209 -e '/^_Z13RTDBusLoadLibv/d' \
3210 \
3211 -e '/^g_[ac]VTG/d' \
3212 -e '/^g_VTGObjHeader/d' \
3213 -e '/^g_VTGProbeData/d' \
3214 -e '/^VTGProbeStub/d' \
3215 -e '/^g_achVTGStringTable/d' \
3216 -e '/^g_acVTGProbeEnabled/d' \
3217 \
3218 -e '/^VBoxHost_/d'\
3219 -e '/^VBoxGuest_/d'\
3220 | $(SED) -nf "$@"
3221 endif
3222 $(call MSG_L1,IPRT: Testing mangling using nm...)
3223 $(QUIET)$(VBOX_NM) $^ 2> /dev/null \
3224 | $(SED) -n \
3225 -e 's/^[0-9a-f][0-9a-f]* //' \
3226 -e '/^[TUDB] /!d' \
3227 -e 's/^. //' \
3228 $(if-expr "$(KBUILD_TARGET)" == "darwin" || "$(KBUILD_TARGET)" == "os2" || "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86", \
3229 -e 's/^_//',) \
3230 \
3231 -e '/^g_cchrt/d'\
3232 -e '/^g_frt/d'\
3233 -e '/^g_offrt/d'\
3234 -e '/^g_pfnrt/d'\
3235 -e '/^g_rt/d'\
3236 -e '/^g_szrt/d'\
3237 -e '/^g_ProcessSelf/d'\
3238 -e '/^g_u64ProgramStart/d'\
3239 -e '/^g_enmProcessPriority/d'\
3240 -e '/^g_hDbgModStrCache/d'\
3241 -e '/^g_pfnR0Darwin/d'\
3242 -e '/^g_pDarwinLockGroup/d'\
3243 $(if-expr "$(KBUILD_TARGET)" == "solaris", \
3244 -e '/^g_kLdrRdrFileOps/d' \
3245 -e '/^g_pSUPGlobalInfoPage/d' \
3246 -e '/^g_Logger/d' \
3247 -e '/^g_RelLogger/d' \
3248 -e '/^g_VM/d',) \
3249 $(if-expr "$(KBUILD_TARGET)" == "linux", \
3250 -e '/^g_kLdrRdrFileOps/d',) \
3251 \
3252 -e '/^g_[ac]VTG/d' \
3253 -e '/^g_VTGObjHeader/d' \
3254 -e '/^g_VTGProbeData/d' \
3255 -e '/^VTGProbeStub/d' \
3256 -e '/^g_achVTGStringTable/d' \
3257 -e '/^g_acVTGProbeEnabled/d' \
3258 \
3259 -e '/^RTDBusLoadLib/d' \
3260 \
3261 -e '/^RT/p' \
3262 -e '/^g_/p' \
3263 | $(SED) -nf "$@"
3264 endif
3265endif
3266 $(QUIET)$(APPEND) -t $@
3267
3268if !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_VALIDATIONKIT) && !defined(VBOX_ONLY_DOCS)
3269#
3270# Windows build tool.
3271#
3272BLDPROGS.win += ntBldSymDb
3273ntBldSymDb_TEMPLATE = VBoxAdvBldProg
3274ntBldSymDb_INCS = .
3275ntBldSymDb_SOURCES = r0drv/nt/ntBldSymDb.cpp
3276endif
3277
3278
3279#
3280# Generate the rules (we're the to sub-makefile).
3281#
3282include $(FILE_KBUILD_SUB_FOOTER)
3283
3284
3285#
3286# Aliases for code templates.
3287#
3288rsa-template.o rsa-template.obj: rsa-core.o rsa-asn1-decoder.o rsa-sanity.o rsa-init.o
3289spc-template.o spc-template.obj: spc-core.o spc-asn1-decoder.o spc-sanity.o spc-init.o
3290taf-template.o taf-template.obj: taf-core.o taf-asn1-decoder.o taf-sanity.o taf-init.o
3291tsp-template.o tsp-template.obj: tsp-core.o tsp-asn1-decoder.o tsp-sanity.o tsp-init.o
3292x509-template.o x509-template.obj: x509-core.o x509-asn1-decoder.o x509-sanity.o x509-init.o
3293pkcs7-template.o pkcs7-template.obj: pkcs7-core.o pkcs7-asn1-decoder.o pkcs7-sanity.o pkcs7-init.o
3294
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