VirtualBox

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

Last change on this file since 53401 was 53278, checked in by vboxsync, 10 years ago

IPRT: Added experimental malloc replacement feature, add RTALLOC_REPLACE_MALLOC and VBOX_WITH_EF_WRAPS to LocalConfig.kmk (only tested on 64-bit darwin).

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