VirtualBox

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

Last change on this file since 52553 was 52443, checked in by vboxsync, 10 years ago

Runtime: added ASMMultU32ByU32DivByU32() and fixed early clobber operands in ASMMultU64ByU32DivByU32

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