VirtualBox

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

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

IPRT/r3/nt&win: Precision time APIs for NT (not enabled).

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