VirtualBox

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

Last change on this file since 55863 was 55794, checked in by vboxsync, 9 years ago

Runtime: Replaced .rc file.

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