VirtualBox

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

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

IPRT/r0drv: Added RTMpOnPair and RTMpOnPairIsConcurrentExecSupported, currently generic wrappers around RTMpOnAll but this will change where possible.

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