VirtualBox

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

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

Some fixes for windows cross build using wine.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 88.7 KB
Line 
1# $Id: Makefile.kmk 53492 2014-12-09 15:24:06Z 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))
1223if "$(KBUILD_TARGET)" == "win" && "$(KBUILD_HOST)" != "win"
1224RuntimeBldProg_SOURCES += \
1225 common/err/errmsgxpcom.cpp
1226endif
1227
1228
1229
1230#
1231# RuntimeGuestR3 - Guest Additions Runtime (static/exe).
1232# (The KBUILD_HOST inheritance here is for cross building the linux
1233# additions, while .x86 is for cross building x86 while targeting amd64.)
1234#
1235RuntimeGuestR3_TEMPLATE := VBoxGuestR3Lib
1236## @todo change this to EXTEND the RuntimeR3 target.
1237RuntimeGuestR3_SDKS.win := $(RuntimeR3_SDKS.win)
1238RuntimeGuestR3_DEFS := $(filter-out RTCRITSECT_STRICT RT_NO_GIP IPRT_WITH_OPENSSL, $(RuntimeR3_DEFS))
1239RuntimeGuestR3_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
1240RuntimeGuestR3_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST))
1241RuntimeGuestR3_INCS := $(RuntimeR3_INCS)
1242RuntimeGuestR3_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
1243RuntimeGuestR3_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST))
1244RuntimeGuestR3_SOURCES := $(filter-out \
1245 common/time/timesupref.cpp \
1246 common/time/timesupA.asm \
1247 common/time/timesup.cpp \
1248 common/checksum/x509.cpp \
1249 generic/RTLogWriteUser-generic.cpp \
1250 r3/xml.cpp \
1251 common/zip/xarvfs.cpp \
1252 , $(RuntimeR3_SOURCES))
1253RuntimeGuestR3_SOURCES += \
1254 common/time/timesysalias.cpp \
1255 VBox/logbackdoor.cpp
1256RuntimeGuestR3_SOURCES.$(KBUILD_TARGET) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
1257RuntimeGuestR3_SOURCES.$(KBUILD_HOST) := $(RuntimeR3_SOURCES.$(KBUILD_HOST))
1258RuntimeGuestR3_SOURCES.$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
1259RuntimeGuestR3_SOURCES.x86 := $(RuntimeR3_SOURCES.x86)
1260RuntimeGuestR3_SOURCES.amd64 := $(RuntimeR3_SOURCES.amd64)
1261RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
1262RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).x86 := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).x86)
1263RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).amd64:= $(RuntimeR3_SOURCES.$(KBUILD_TARGET).amd64)
1264RuntimeGuestR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH))
1265RuntimeGuestR3_SOURCES.win.x86 += \
1266 r3/win/vcc100-kernel32-fakes.cpp \
1267 r3/win/vcc100-kernel32-fakesA.asm
1268
1269#
1270# RuntimeGuestR3-x86 - Same as RuntimeGuestR3, except that it's targeting x86.
1271#
1272RuntimeGuestR3-x86_EXTENDS := RuntimeGuestR3
1273RuntimeGuestR3-x86_BLD_TRG_ARCH := x86
1274
1275
1276#
1277# RuntimeGuestR3Shared - Guest Additions Runtime (static/dll).
1278#
1279RuntimeGuestR3Shared_TEMPLATE := VBoxGuestR3Dll
1280RuntimeGuestR3Shared_EXTENDS := RuntimeGuestR3
1281RuntimeGuestR3Shared_INST = $(INST_ADDITIONS_LIB)
1282
1283
1284#
1285# RuntimeGuestR3Shared-x86 - Same as RuntimeGuestR3Shared, except that it's targeting x86.
1286#
1287RuntimeGuestR3Shared-x86_EXTENDS := RuntimeGuestR3Shared
1288RuntimeGuestR3Shared-x86_BLD_TRG_ARCH := x86
1289
1290
1291#
1292# VBoxRT - Shared Object / DLL version.
1293#
1294VBoxRT_TEMPLATE = VBoxR3DllNoPic
1295VBoxRT_SDKS = VBOX_LIBXML2
1296ifdef VBOX_WITH_LIBCURL
1297 VBoxRT_SDKS += VBOX_LIBCURL
1298endif
1299VBoxRT_SDKS += VBOX_OPENSSL
1300VBoxRT_SDKS.win = $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
1301if1of ($(KBUILD_TARGET)$(VBOX_WITH_HARDENING), darwin win$(VBOX_WITH_HARDENING))
1302VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE)
1303endif
1304VBoxRT_DEFS := $(filter-out RT_NO_GIP, $(RuntimeR3_DEFS)) \
1305 IN_SUP_R3 IN_SUP_R3 IPRT_WITH_XAR \
1306 $(if-expr !defined(VBOX_WITH_ALT_HASH_CODE),IPRT_WITHOUT_SHA512T224 IPRT_WITHOUT_SHA512T256,)
1307ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1308 VBoxRT_DEFS += RT_NO_GIP
1309endif
1310ifdef VBOX_WITH_LIBCURL
1311 VBoxRT_DEFS += IPRT_WITH_HTTP
1312endif
1313ifdef RTALLOC_REPLACE_MALLOC
1314 VBoxRT_DEFS += RTALLOC_REPLACE_MALLOC
1315endif
1316VBoxRT_DEFS.$(KBUILD_TYPE) := $(RuntimeR3_DEFS.$(KBUILD_TYPE))
1317VBoxRT_SOURCES := \
1318 VBox/VBoxRTDeps.cpp \
1319 $(filter-out common/checksum/crc32.cpp, \
1320 $(if-expr defined(VBOX_WITH_ALT_HASH_CODE), $(RuntimeR3_SOURCES), \
1321 $(patsubst common/checksum/alt-%,common/checksum/openssl-%,$(RuntimeR3_SOURCES)) ) ) \
1322 common/checksum/crc32-zlib.cpp \
1323 common/misc/aiomgr.cpp
1324ifdef VBOX_WITH_LIBCURL
1325 VBoxRT_SOURCES += common/misc/s3.cpp
1326 VBoxRT_SOURCES += common/misc/http.cpp
1327endif
1328VBoxRT_SOURCES.$(KBUILD_TARGET) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
1329VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
1330VBoxRT_SOURCES.$(KBUILD_TARGET).x86 := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).x86)
1331VBoxRT_SOURCES.$(KBUILD_TARGET).amd64 := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).amd64)
1332VBoxRT_SOURCES.$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
1333VBoxRT_SOURCES.x86 := $(RuntimeR3_SOURCES.x86)
1334VBoxRT_SOURCES.amd64 := $(RuntimeR3_SOURCES.amd64)
1335VBoxRT_SOURCES.win += \
1336 r3/win/dllmain-win.cpp \
1337 r3/win/fileaio-win.cpp \
1338 $(VBoxRT_0_OUTDIR)/VBoxRT.def
1339VBoxRT_SOURCES.linux += \
1340 r3/linux/fileaio-linux.cpp
1341VBoxRT_SOURCES.solaris += \
1342 r3/solaris/fileaio-solaris.cpp
1343VBoxRT_SOURCES.darwin += \
1344 r3/posix/fileaio-posix.cpp
1345VBoxRT_SOURCES.freebsd += \
1346 r3/freebsd/fileaio-freebsd.cpp
1347VBoxRT_INCS := $(RuntimeR3_INCS)
1348VBoxRT_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
1349VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
1350VBoxRT_LIBS = \
1351 $(PATH_STAGE_LIB)/VBox-liblzf$(VBOX_SUFF_LIB)
1352if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1353VBoxRT_LIBS += \
1354 $(PATH_STAGE_LIB)/SUPR3$(VBOX_SUFF_LIB)
1355endif
1356ifdef IPRT_WITH_KSTUFF
1357 VBoxRT_LIBS += \
1358 $(PATH_STAGE_LIB)/VBox-kStuff$(VBOX_SUFF_LIB)
1359endif
1360ifndef SDK_VBOX_LIBXML2_LIBS
1361 VBoxRT_LIBS += \
1362 $(PATH_STAGE_LIB)/VBox-libxml2$(VBOX_SUFF_LIB)
1363endif
1364VBoxRT_LIBS += \
1365 $(SDK_VBOX_ZLIB_LIBS)
1366ifndef SDK_VBOX_OPENSSL_LIBS
1367 VBoxRT_LIBS += \
1368 $(PATH_STAGE_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB) \
1369 $(PATH_STAGE_LIB)/VBox-libssl$(VBOX_SUFF_LIB)
1370endif
1371ifdef IPRT_WITH_LZO
1372 VBoxRT_LIBS += lzo2
1373endif
1374ifdef RTALLOC_REPLACE_MALLOC
1375VBoxRT_LIBS += \
1376 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB)
1377endif
1378VBoxRT_LIBS.linux = \
1379 crypt
1380VBoxRT_LIBS.darwin = \
1381 iconv
1382VBoxRT_LIBS.freebsd = \
1383 iconv \
1384 rt
1385VBoxRT_LIBS.haiku = \
1386 iconv
1387VBoxRT_LIBS.solaris = \
1388 kstat \
1389 contract
1390ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)
1391 # SMBIOS not available on Solaris SPARC.
1392 VBoxRT_LIBS.solaris += smbios
1393endif
1394VBoxRT_LIBS.win = \
1395 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/vccomsup.lib \
1396 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/wbemuuid.lib \
1397 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
1398VBoxRT_LDFLAGS.darwin = -framework IOKit -framework CoreFoundation -framework CoreServices -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxRT.dylib
1399VBoxRT_LDFLAGS.win = /MANIFEST \
1400 /delayload:gdi32.dll \
1401 /delayload:user32.dll \
1402 /delayload:shell32.dll \
1403 /delayload:ole32.dll \
1404 /delayload:oleaut32.dll \
1405 /delayload:advapi32.dll
1406
1407if1of ($(DLLS), VBoxRT)
1408$$(VBoxRT_0_OUTDIR)/VBoxRT.def: \
1409 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-$$(if-expr $$(KBUILD_TARGET_ARCH) == amd64,win64,win32).def \
1410 $(PATH_SUB_CURRENT)/r3/win/$(if $(VBOX_OSE),VBoxRT-openssl-ose.def,VBoxRT-openssl.def)
1411 $(RM) -f -- $@
1412 $(REDIRECT) -wto $@ -- $(CAT_EXT) $^
1413endif
1414
1415
1416#
1417# HACK ALERT! Make testcase run during build on SELinux boxes.
1418# Create a dummy DLL that ensure that VBoxRT is installed
1419# during the DLL pass and cleaned up later.
1420#
1421ifeq ($(KBUILD_TARGET),linux)
1422 if1of (VBoxRT, $(DLLS))
1423 ifneq ($(wildcard /usr/bin/chcon),)
1424VBoxRT_INSTTYPE = none
1425VBoxRT_DEBUG_INSTTYPE = both
1426
1427DLLS += VBoxRTDummy
1428VBoxRTDummy_TEMPLATE = VBoxR3Dll
1429VBoxRTDummy_INSTTYPE = none
1430VBoxRTDummy_LIBS = $(PATH_STAGE_BIN)/VBoxRT.so
1431VBoxRTDummy_CLEAN = $(PATH_STAGE_BIN)/VBoxRT.so
1432BLDDIRS += $(PATH_STAGE_BIN)
1433
1434$(PATH_STAGE_BIN)/VBoxRT.so: $$(VBoxRT_1_TARGET) | $$(dir $$@)
1435 $(INSTALL) $< $@
1436 chcon -t texrel_shlib_t $@ || true
1437
1438VBoxRT:: VBoxRTDummy
1439 endif # chcon present.
1440 endif # building VBoxRT
1441endif # linux
1442
1443
1444#
1445# VBoxRT-x86 - 32-bit version of VBoxRT
1446#
1447VBoxRT-x86_EXTENDS = VBoxRT
1448VBoxRT-x86_TEMPLATE = VBoxR3Dll-x86
1449VBoxRT-x86_INST.win = $(INST_DLL)x86/
1450VBoxRT-x86_SDKS = VBOX_LIBXML2
1451ifdef VBOX_WITH_LIBCURL
1452 VBoxRT-x86_SDKS += VBOX_LIBCURL-x86
1453endif
1454VBoxRT-x86_SDKS += VBOX_OPENSSL-x86
1455
1456VBoxRT-x86_LIBS = \
1457 $(PATH_STAGE_LIB)/VBox-liblzf-x86$(VBOX_SUFF_LIB)
1458if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1459VBoxRT-x86_LIBS += \
1460 $(PATH_STAGE_LIB)/SUPR3-x86$(VBOX_SUFF_LIB)
1461endif
1462ifdef IPRT_WITH_KSTUFF
1463 VBoxRT-x86_LIBS += \
1464 $(PATH_STAGE_LIB)/VBox-kStuff-x86$(VBOX_SUFF_LIB)
1465endif
1466ifndef SDK_VBOX_LIBXML2_LIBS
1467 VBoxRT-x86_LIBS += \
1468 $(PATH_STAGE_LIB)/VBox-libxml2-x86$(VBOX_SUFF_LIB)
1469endif
1470VBoxRT-x86_LIBS += \
1471 $(SDK_VBOX_ZLIB_LIBS-x86)
1472ifndef SDK_VBOX_OPENSSL_LIBS
1473 VBoxRT-x86_LIBS += \
1474 $(PATH_STAGE_LIB)/VBox-libcrypto-x86$(VBOX_SUFF_LIB) \
1475 $(PATH_STAGE_LIB)/VBox-libssl-x86$(VBOX_SUFF_LIB)
1476endif
1477ifdef IPRT_WITH_LZO
1478 VBoxRT-x86_LIBS += lzo2
1479endif
1480VBoxRT-x86_LIBS.linux = \
1481 crypt
1482VBoxRT-x86_LIBS.darwin = \
1483 iconv
1484VBoxRT-x86_LIBS.freebsd = \
1485 iconv \
1486 rt
1487VBoxRT-x86_LIBS.haiku = \
1488 iconv
1489VBoxRT-x86_LIBS.solaris = \
1490 kstat \
1491 contract
1492ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)
1493 # SMBIOS not available on Solaris SPARC.
1494 VBoxRT-x86_LIBS.solaris += smbios
1495endif
1496VBoxRT-x86_LIBS.win = \
1497 $(PATH_SDK_$(VBOX_WINDDK)_LIB.x86)/vccomsup.lib \
1498 $(PATH_SDK_$(VBOX_WINDDK)_LIB.x86)/wbemuuid.lib \
1499 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/delayimp.lib
1500
1501VBoxRT-x86_SOURCES.win = $(filter-out %.def,$(VBoxRT_SOURCES.win)) \
1502 $(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def
1503if1of ($(DLLS), VBoxRT-x86)
1504$$(VBoxRT-x86_0_OUTDIR)/VBoxRT-x86.def: \
1505 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-win32.def \
1506 $(PATH_SUB_CURRENT)/r3/win/$(if $(VBOX_OSE),VBoxRT-openssl-ose.def,VBoxRT-openssl.def)
1507 $(RM) -f -- $@
1508 $(REDIRECT) -wto $@ -- $(CAT_EXT) $^
1509endif
1510
1511#
1512# VBoxRTImp - Import library/hack.
1513#
1514ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
1515$(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def r3/win/VBoxRT-openssl-ose.def r3/win/VBoxRT-win64.def)
1516else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
1517$(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def r3/win/VBoxRT-openssl-ose.def r3/win/VBoxRT-win32.def)
1518else
1519$(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def r3/win/VBoxRT-openssl-ose.def)
1520endif
1521
1522
1523#
1524# RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
1525# This is used together with VBoxRT.
1526#
1527## @todo the *_alias.c stuff is busted, remove and use RT_WITH_NOCRT_ALIASES instead.
1528RuntimeR3NoCRTGCC_TEMPLATE = VBoxNoCrtGccLib
1529RuntimeR3NoCRTGCC_LIBSUFF = $(VBOX_SUFF_LIB)
1530ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1531 RuntimeR3NoCRTGCC_DEFS += RT_NO_GIP
1532endif
1533RuntimeR3NoCRTGCC_INCS = include
1534RuntimeR3NoCRTGCC_SOURCES := \
1535 common/misc/sanity-cpp.cpp \
1536 common/misc/sanity-c.c \
1537 \
1538 $(RuntimeNoCrt_SOURCES)
1539
1540if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1541RuntimeR3NoCRTGCC_SOURCES += \
1542 common/math/ceill.asm \
1543 common/math/cosl.asm \
1544 common/math/fabs.asm \
1545 common/math/fabsf.asm \
1546 common/math/fabsl.asm \
1547 common/math/floor.asm \
1548 common/math/floorf.asm \
1549 common/math/floorl.asm \
1550 common/math/ldexpl.asm \
1551 common/math/llrint.asm \
1552 common/math/llrintf.asm \
1553 common/math/llrintl.asm \
1554 common/math/logl.asm \
1555 common/math/lrint.asm \
1556 common/math/lrintf.asm \
1557 common/math/lrintl.asm \
1558 common/math/remainder.asm \
1559 common/math/remainderf.asm \
1560 common/math/remainderl.asm \
1561 common/math/sinl.asm \
1562 common/math/tanl.asm \
1563 common/math/trunc.asm \
1564 common/math/truncf.asm \
1565 common/math/truncl.asm \
1566 \
1567 common/string/memchr_alias.c \
1568 common/string/memcmp_alias.c \
1569 common/string/memcpy_alias.c \
1570 common/string/memmove_alias.c \
1571 common/string/memset_alias.c \
1572 common/string/strchr_alias.c \
1573 common/string/strcmp_alias.c \
1574 common/string/strlen_alias.c
1575endif
1576
1577RuntimeR3NoCRTGCC_SOURCES.x86 = \
1578 common/math/x86/fenv-x86.c \
1579 common/math/gcc/adddi3.c \
1580 common/math/gcc/anddi3.c \
1581 common/math/gcc/ashldi3.c \
1582 common/math/gcc/ashrdi3.c \
1583 common/math/gcc/cmpdi2.c \
1584 common/math/gcc/divdi3.c \
1585 common/math/gcc/iordi3.c \
1586 common/math/gcc/lshldi3.c \
1587 common/math/gcc/lshrdi3.c \
1588 common/math/gcc/moddi3.c \
1589 common/math/gcc/muldi3.c \
1590 common/math/gcc/negdi2.c \
1591 common/math/gcc/notdi2.c \
1592 common/math/gcc/qdivrem.c \
1593 common/math/gcc/subdi3.c \
1594 common/math/gcc/ucmpdi2.c \
1595 common/math/gcc/udivdi3.c \
1596 common/math/gcc/umoddi3.c \
1597 common/math/gcc/xordi3.c
1598
1599
1600#
1601# RuntimeR0 - Ring-0 library for VMMR0.
1602#
1603RuntimeR0_TEMPLATE = VBoxR0
1604RuntimeR0_DEFS = IN_RT_R0 RT_WITH_VBOX
1605ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1606 RuntimeR0_DEFS += RT_NO_GIP
1607endif
1608RuntimeR0_INCS = include
1609RuntimeR0_SOURCES := \
1610 common/log/logellipsis.cpp \
1611 common/log/logrelellipsis.cpp \
1612 common/log/logcom.cpp \
1613 common/log/logformat.cpp \
1614 common/log/tracebuf.cpp \
1615 common/log/tracedefault.cpp \
1616 common/misc/RTAssertMsg1Weak.cpp \
1617 common/misc/RTAssertMsg2.cpp \
1618 common/misc/RTAssertMsg2Add.cpp \
1619 common/misc/RTAssertMsg2AddWeak.cpp \
1620 common/misc/RTAssertMsg2AddWeakV.cpp \
1621 common/misc/RTAssertMsg2Weak.cpp \
1622 common/misc/RTAssertMsg2WeakV.cpp \
1623 common/misc/buildconfig.cpp \
1624 common/misc/once.cpp \
1625 common/misc/sanity-c.c \
1626 common/misc/sanity-cpp.cpp \
1627 common/misc/term.cpp \
1628 common/path/RTPathFilename.cpp \
1629 common/string/strhash1.cpp \
1630 common/string/strncmp.cpp \
1631 common/string/strpbrk.cpp \
1632 common/string/RTStrCat.cpp \
1633 common/string/RTStrCatEx.cpp \
1634 common/string/RTStrCatP.cpp \
1635 common/string/RTStrCatPEx.cpp \
1636 common/string/RTStrCopy.cpp \
1637 common/string/RTStrCopyEx.cpp \
1638 common/string/RTStrCopyP.cpp \
1639 common/string/RTStrCopyPEx.cpp \
1640 common/string/RTStrNLen.cpp \
1641 common/string/RTStrNLenEx.cpp \
1642 common/table/avlgcptr.cpp \
1643 common/table/avlhcphys.cpp \
1644 common/table/avllu32.cpp \
1645 common/table/avlogcphys.cpp \
1646 common/table/avlogcptr.cpp \
1647 common/table/avlohcphys.cpp \
1648 common/table/avloioport.cpp \
1649 common/table/avlpv.cpp \
1650 common/table/avlrogcphys.cpp \
1651 common/table/avlrogcptr.cpp \
1652 common/table/avlroioport.cpp \
1653 common/table/avlroogcptr.cpp \
1654 common/table/avlu32.cpp \
1655 common/table/avlou32.cpp \
1656 common/time/timesup.cpp \
1657 generic/RTAssertShouldPanic-generic.cpp \
1658 generic/critsect-generic.cpp \
1659 \
1660 $(RuntimeNoCrt_SOURCES)
1661
1662if1of ($(KBUILD_TARGET), darwin solaris freebsd)
1663RuntimeR0_SOURCES += \
1664 common/math/gcc/adddi3.c \
1665 common/math/gcc/anddi3.c \
1666 common/math/gcc/ashldi3.c \
1667 common/math/gcc/ashrdi3.c \
1668 common/math/gcc/cmpdi2.c \
1669 common/math/gcc/divdi3.c \
1670 common/math/gcc/iordi3.c \
1671 common/math/gcc/lshldi3.c \
1672 common/math/gcc/lshrdi3.c \
1673 common/math/gcc/moddi3.c \
1674 common/math/gcc/muldi3.c \
1675 common/math/gcc/negdi2.c \
1676 common/math/gcc/notdi2.c \
1677 common/math/gcc/qdivrem.c \
1678 common/math/gcc/subdi3.c \
1679 common/math/gcc/ucmpdi2.c \
1680 common/math/gcc/udivdi3.c \
1681 common/math/gcc/umoddi3.c \
1682 common/math/gcc/xordi3.c
1683endif
1684
1685RuntimeR0_SOURCES.x86 += \
1686 common/asm/ASMCpuIdExSlow.asm \
1687 common/asm/ASMAtomicUoAndU64.asm \
1688 common/asm/ASMAtomicUoAndU32.asm \
1689 common/asm/ASMAtomicUoDecU32.asm \
1690 common/asm/ASMAtomicUoIncU32.asm \
1691 common/asm/ASMAtomicUoOrU64.asm \
1692 common/asm/ASMAtomicUoOrU32.asm \
1693 common/asm/ASMRdMsrEx.asm \
1694 common/asm/ASMWrMsrEx.asm
1695RuntimeR0_SOURCES.amd64 += \
1696 common/asm/ASMCpuIdExSlow.asm \
1697 common/asm/ASMAtomicUoAndU64.asm \
1698 common/asm/ASMAtomicUoAndU32.asm \
1699 common/asm/ASMAtomicUoDecU32.asm \
1700 common/asm/ASMAtomicUoIncU32.asm \
1701 common/asm/ASMAtomicUoOrU64.asm \
1702 common/asm/ASMAtomicUoOrU32.asm \
1703 common/asm/ASMRdMsrEx.asm \
1704 common/asm/ASMWrMsrEx.asm
1705
1706#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
1707# RuntimeR0_SOURCES += common/time/timesupA.asm
1708#else
1709 RuntimeR0_SOURCES += common/time/timesupref.cpp
1710#endif
1711
1712RuntimeR0_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES)
1713RuntimeR0_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES)
1714RuntimeR0_SOURCES.win = \
1715 nt/NtProcessStartup-stub.cpp
1716
1717RuntimeR0_SOURCES.os2 = \
1718 os2/sys0.asm
1719
1720
1721#
1722# RuntimeR0Stub - Ring-0 context startup stub for Windows and Solaris.
1723#
1724RuntimeR0Stub_TEMPLATE = $(if-expr "$(KBUILD_TARGET)" == "solaris",VBoxR0DrvLib,VBoxR0)
1725RuntimeR0Stub_SOURCES.win = \
1726 nt/NtProcessStartup-stub.cpp
1727RuntimeR0Stub_SOURCES.solaris = \
1728 r0drv/solaris/modulestub-r0drv-solaris.c
1729
1730
1731#
1732# RuntimeR0Drv - Ring-0 library for host drivers.
1733#
1734RuntimeR0Drv_TEMPLATE = VBoxR0DrvLib
1735RuntimeR0Drv_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK) $(VBOX_WINPSDK)INCS VBOX_OPENSSL
1736RuntimeR0Drv_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS RT_NO_EXPORT_SYMBOL
1737RuntimeR0Drv_DEFS.win = IN_SUP_R0 LDR_ONLY_PE
1738RuntimeR0Drv_DEFS.linux = MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) IN_SUP_R0
1739
1740RuntimeR0Drv_INCS := $(PATH_SUB_CURRENT) include
1741RuntimeR0Drv_INCS.freebsd = \
1742 $(PATH_STAGE)/gen-sys-hdrs
1743RuntimeR0Drv_INCS.linux = \
1744 r0drv/linux
1745RuntimeR0Drv_INCS.solaris = \
1746 r0drv/solaris/vbi/i86pc \
1747 r0drv/solaris/vbi/i86pc/sys
1748
1749RuntimeR0Drv_SOURCES = \
1750 common/alloc/alloc.cpp \
1751 common/alloc/heapsimple.cpp \
1752 common/alloc/heapoffset.cpp \
1753 common/checksum/alt-md5.cpp \
1754 common/checksum/crc32.cpp \
1755 common/checksum/crc64.cpp \
1756 common/checksum/ipv4.cpp \
1757 common/checksum/ipv6.cpp \
1758 common/err/RTErrConvertToErrno.cpp \
1759 common/err/RTErrConvertFromErrno.cpp \
1760 common/log/log.cpp \
1761 common/log/logellipsis.cpp \
1762 common/log/logrel.cpp \
1763 common/log/logrelellipsis.cpp \
1764 common/log/logcom.cpp \
1765 common/log/logformat.cpp \
1766 common/log/tracebuf.cpp \
1767 common/log/tracedefault.cpp \
1768 common/misc/RTAssertMsg1Weak.cpp \
1769 common/misc/RTAssertMsg2.cpp \
1770 common/misc/RTAssertMsg2Add.cpp \
1771 common/misc/RTAssertMsg2AddWeak.cpp \
1772 common/misc/RTAssertMsg2AddWeakV.cpp \
1773 common/misc/RTAssertMsg2Weak.cpp \
1774 common/misc/RTAssertMsg2WeakV.cpp \
1775 common/misc/assert.cpp \
1776 common/misc/buildconfig.cpp \
1777 common/misc/handletable.cpp \
1778 common/misc/handletablectx.cpp \
1779 common/misc/handletablesimple.cpp \
1780 common/misc/once.cpp \
1781 common/misc/sanity-c.c \
1782 common/misc/sanity-cpp.cpp \
1783 common/misc/term.cpp \
1784 common/misc/RTMemWipeThoroughly.cpp \
1785 common/path/rtPathVolumeSpecLen.cpp \
1786 common/path/RTPathAbsDup.cpp \
1787 common/path/RTPathAbsEx.cpp \
1788 common/path/RTPathAbsExDup.cpp \
1789 common/path/RTPathAppend.cpp \
1790 common/path/RTPathAppendEx.cpp \
1791 common/path/RTPathExt.cpp \
1792 common/path/RTPathFilename.cpp \
1793 common/path/RTPathHasExt.cpp \
1794 common/path/RTPathHasPath.cpp \
1795 common/path/RTPathParseSimple.cpp \
1796 common/path/RTPathRealDup.cpp \
1797 common/path/RTPathStripExt.cpp \
1798 common/path/RTPathStripFilename.cpp \
1799 common/path/RTPathStripTrailingSlash.cpp \
1800 common/rand/rand.cpp \
1801 common/rand/randadv.cpp \
1802 common/rand/randparkmiller.cpp \
1803 common/string/RTStrCat.cpp \
1804 common/string/RTStrCatEx.cpp \
1805 common/string/RTStrCatP.cpp \
1806 common/string/RTStrCatPEx.cpp \
1807 common/string/RTStrCmp.cpp \
1808 common/string/RTStrCopy.cpp \
1809 common/string/RTStrCopyEx.cpp \
1810 common/string/RTStrCopyP.cpp \
1811 common/string/RTStrCopyPEx.cpp \
1812 common/string/RTStrNCmp.cpp \
1813 common/string/RTStrNLen.cpp \
1814 common/string/RTStrNLenEx.cpp \
1815 common/string/straprintf.cpp \
1816 common/string/strformat.cpp \
1817 common/string/strformatnum.cpp \
1818 common/string/strformatrt.cpp \
1819 common/string/strformattype.cpp \
1820 common/string/strhash1.cpp \
1821 common/string/strprintf.cpp \
1822 common/string/strtonum.cpp \
1823 common/string/stringalloc.cpp \
1824 common/string/unidata-flags.cpp \
1825 common/string/unidata-lower.cpp \
1826 common/string/unidata-upper.cpp \
1827 common/string/utf-8.cpp \
1828 common/string/utf-8-case.cpp \
1829 common/string/utf-8-case2.cpp \
1830 common/string/utf-16.cpp \
1831 common/string/utf-16-case.cpp \
1832 common/string/utf-16-latin-1.cpp \
1833 common/table/avlpv.cpp \
1834 common/time/time.cpp \
1835 generic/RTLogWriteStdErr-stub-generic.cpp \
1836 generic/RTLogWriteUser-generic.cpp \
1837 generic/RTMpGetArraySize-generic.cpp \
1838 generic/RTRandAdvCreateSystemFaster-generic.cpp \
1839 generic/RTSemEventWait-2-ex-generic.cpp \
1840 generic/RTSemEventWaitNoResume-2-ex-generic.cpp \
1841 generic/RTSemEventMultiWait-2-ex-generic.cpp \
1842 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1843 generic/critsect-generic.cpp \
1844 generic/errvars-generic.cpp \
1845 generic/uuid-generic.cpp \
1846 r0drv/alloc-r0drv.cpp \
1847 r0drv/initterm-r0drv.cpp \
1848 r0drv/generic/semspinmutex-r0drv-generic.c \
1849 VBox/log-vbox.cpp \
1850
1851RuntimeR0Drv_SOURCES.amd64 = \
1852 common/asm/ASMRdMsrEx.asm \
1853 common/asm/ASMWrMsrEx.asm \
1854 common/math/bignum-amd64-x86.asm \
1855 common/math/RTUInt128MulByU64.asm
1856RuntimeR0Drv_SOURCES.x86 = \
1857 common/asm/ASMRdMsrEx.asm \
1858 common/asm/ASMWrMsrEx.asm \
1859 common/math/bignum-amd64-x86.asm
1860
1861
1862RuntimeR0Drv_SOURCES.linux = \
1863 common/misc/thread.cpp \
1864 common/string/strpbrk.cpp \
1865 generic/RTAssertShouldPanic-generic.cpp \
1866 generic/RTLogWriteStdOut-stub-generic.cpp \
1867 generic/RTMpGetCoreCount-generic.cpp \
1868 generic/mppresent-generic.cpp \
1869 r0drv/linux/alloc-r0drv-linux.c \
1870 r0drv/linux/assert-r0drv-linux.c \
1871 r0drv/linux/initterm-r0drv-linux.c \
1872 r0drv/linux/memobj-r0drv-linux.c \
1873 r0drv/linux/memuserkernel-r0drv-linux.c \
1874 r0drv/linux/mp-r0drv-linux.c \
1875 r0drv/linux/mpnotification-r0drv-linux.c \
1876 r0drv/linux/process-r0drv-linux.c \
1877 r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \
1878 r0drv/linux/semevent-r0drv-linux.c \
1879 r0drv/linux/semeventmulti-r0drv-linux.c \
1880 r0drv/linux/semfastmutex-r0drv-linux.c \
1881 r0drv/linux/semmutex-r0drv-linux.c \
1882 r0drv/linux/spinlock-r0drv-linux.c \
1883 r0drv/linux/thread-r0drv-linux.c \
1884 r0drv/linux/thread2-r0drv-linux.c \
1885 r0drv/linux/threadctxhooks-r0drv-linux.c \
1886 r0drv/linux/time-r0drv-linux.c \
1887 r0drv/linux/timer-r0drv-linux.c \
1888 r0drv/memobj-r0drv.cpp \
1889 r0drv/mpnotification-r0drv.c \
1890 r0drv/powernotification-r0drv.c
1891
1892RuntimeR0Drv_SOURCES.win = \
1893 common/ldr/ldr.cpp \
1894 common/ldr/ldrEx.cpp \
1895 common/ldr/ldrPE.cpp \
1896 common/asn1/asn1-basics.cpp \
1897 common/asn1/asn1-dump.cpp \
1898 common/asn1/asn1-cursor.cpp \
1899 common/asn1/asn1-default-allocator.cpp \
1900 common/asn1/asn1-encode.cpp \
1901 common/asn1/asn1-ut-bitstring.cpp \
1902 common/asn1/asn1-ut-bitstring-decode.cpp \
1903 common/asn1/asn1-ut-boolean.cpp \
1904 common/asn1/asn1-ut-boolean-decode.cpp \
1905 common/asn1/asn1-ut-core.cpp \
1906 common/asn1/asn1-ut-core-decode.cpp \
1907 common/asn1/asn1-ut-dyntype.cpp \
1908 common/asn1/asn1-ut-dyntype-decode.cpp \
1909 common/asn1/asn1-ut-integer.cpp \
1910 common/asn1/asn1-ut-integer-decode.cpp \
1911 common/asn1/asn1-ut-null.cpp \
1912 common/asn1/asn1-ut-null-decode.cpp \
1913 common/asn1/asn1-ut-objid.cpp \
1914 common/asn1/asn1-ut-objid-decode.cpp \
1915 common/asn1/asn1-ut-octetstring.cpp \
1916 common/asn1/asn1-ut-octetstring-decode.cpp \
1917 common/asn1/asn1-ut-string.cpp \
1918 common/asn1/asn1-ut-string-decode.cpp \
1919 common/asn1/asn1-ut-time.cpp \
1920 common/asn1/asn1-ut-time-decode.cpp \
1921 common/crypto/digest-core.cpp \
1922 common/crypto/digest-builtin.cpp \
1923 common/crypto/rsa-asn1-decoder.cpp \
1924 common/crypto/rsa-core.cpp \
1925 common/crypto/rsa-init.cpp \
1926 common/crypto/rsa-sanity.cpp \
1927 common/crypto/pkcs7-asn1-decoder.cpp \
1928 common/crypto/pkcs7-core.cpp \
1929 common/crypto/pkcs7-init.cpp \
1930 common/crypto/pkcs7-sanity.cpp \
1931 common/crypto/pkcs7-verify.cpp \
1932 common/crypto/pkix-signature-builtin.cpp \
1933 common/crypto/pkix-signature-core.cpp \
1934 common/crypto/pkix-signature-rsa.cpp \
1935 common/crypto/pkix-util.cpp \
1936 common/crypto/pkix-verify.cpp \
1937 common/crypto/spc-asn1-decoder.cpp \
1938 common/crypto/spc-core.cpp \
1939 common/crypto/spc-init.cpp \
1940 common/crypto/spc-sanity.cpp \
1941 common/crypto/x509-asn1-decoder.cpp \
1942 common/crypto/x509-certpaths.cpp \
1943 common/crypto/x509-core.cpp \
1944 common/crypto/x509-init.cpp \
1945 common/crypto/x509-sanity.cpp \
1946 common/crypto/x509-verify.cpp \
1947 common/crypto/store.cpp \
1948 common/crypto/store-inmem.cpp \
1949 common/crypto/taf-asn1-decoder.cpp \
1950 common/crypto/taf-core.cpp \
1951 common/crypto/taf-init.cpp \
1952 common/crypto/taf-sanity.cpp \
1953 common/crypto/tsp-asn1-decoder.cpp \
1954 common/crypto/tsp-core.cpp \
1955 common/crypto/tsp-init.cpp \
1956 common/crypto/tsp-sanity.cpp \
1957 common/checksum/alt-md2.cpp \
1958 common/checksum/alt-sha1.cpp \
1959 common/checksum/alt-sha256.cpp \
1960 common/checksum/alt-sha512.cpp \
1961 common/checksum/md2str.cpp \
1962 common/checksum/md5str.cpp \
1963 common/checksum/sha1str.cpp \
1964 common/checksum/sha224str.cpp \
1965 common/checksum/sha256str.cpp \
1966 common/checksum/sha384str.cpp \
1967 common/checksum/sha512str.cpp \
1968 common/checksum/sha512t224str.cpp \
1969 common/checksum/sha512t256str.cpp \
1970 common/err/errinfo.cpp \
1971 common/path/RTPathChangeToUnixSlashes.cpp \
1972 common/math/bignum.cpp \
1973 common/misc/zero.asm \
1974 common/string/RTStrPrintHexBytes.cpp \
1975 common/string/RTUtf16Copy.cpp \
1976 common/string/RTUtf16CopyAscii.cpp \
1977 common/string/RTUtf16Cat.cpp \
1978 common/string/RTUtf16CatAscii.cpp \
1979 common/string/RTUtf16End.cpp \
1980 common/string/RTUtf16NLen.cpp \
1981 common/string/RTUtf16NLenEx.cpp \
1982 common/string/RTUtf16PrintHexBytes.cpp \
1983 common/string/strstrip.cpp \
1984 generic/memsafer-generic.cpp \
1985 \
1986 common/misc/thread.cpp \
1987 common/string/memcmp.asm \
1988 common/string/memchr.asm \
1989 common/string/memcpy.asm \
1990 common/string/memset.asm \
1991 common/string/memmove.asm \
1992 common/string/strlen.asm \
1993 common/string/strncmp.cpp \
1994 common/string/strpbrk.cpp \
1995 generic/RTAssertShouldPanic-generic.cpp \
1996 generic/RTLogWriteStdOut-stub-generic.cpp \
1997 generic/RTTimerCreate-generic.cpp \
1998 generic/mppresent-generic.cpp \
1999 generic/RTMpGetCoreCount-generic.cpp \
2000 nt/RTErrConvertFromNtStatus.cpp \
2001 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
2002 r0drv/memobj-r0drv.cpp \
2003 r0drv/mpnotification-r0drv.c \
2004 r0drv/powernotification-r0drv.c \
2005 r0drv/nt/alloc-r0drv-nt.cpp \
2006 r0drv/nt/assert-r0drv-nt.cpp \
2007 r0drv/nt/initterm-r0drv-nt.cpp \
2008 r0drv/nt/memobj-r0drv-nt.cpp \
2009 r0drv/nt/memuserkernel-r0drv-nt.cpp \
2010 r0drv/nt/mp-r0drv-nt.cpp \
2011 r0drv/nt/mpnotification-r0drv-nt.cpp \
2012 r0drv/nt/process-r0drv-nt.cpp \
2013 r0drv/nt/RTLogWriteDebugger-r0drv-nt.cpp \
2014 r0drv/nt/semevent-r0drv-nt.cpp \
2015 r0drv/nt/semeventmulti-r0drv-nt.cpp \
2016 r0drv/nt/semfastmutex-r0drv-nt.cpp \
2017 r0drv/nt/semmutex-r0drv-nt.cpp \
2018 r0drv/nt/spinlock-r0drv-nt.cpp \
2019 r0drv/nt/thread-r0drv-nt.cpp \
2020 r0drv/nt/thread2-r0drv-nt.cpp \
2021 r0drv/nt/time-r0drv-nt.cpp \
2022 r0drv/nt/timer-r0drv-nt.cpp \
2023 r0drv/nt/toxic-chkstk-r0drv-nt.asm \
2024 r0drv/nt/RTTimerGetSystemGranularity-r0drv-nt.cpp
2025
2026RuntimeR0Drv_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES)
2027RuntimeR0Drv_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES)
2028
2029RuntimeR0Drv_SOURCES.darwin = \
2030 common/misc/thread.cpp \
2031 common/string/memchr.asm \
2032 common/string/strpbrk.cpp \
2033 darwin/RTErrConvertFromDarwin.cpp \
2034 darwin/RTErrConvertFromDarwinIO.cpp \
2035 darwin/RTErrConvertFromDarwinKern.cpp \
2036 generic/RTAssertShouldPanic-generic.cpp \
2037 generic/RTTimerCreate-generic.cpp \
2038 generic/RTMpGetCoreCount-generic.cpp \
2039 generic/mppresent-generic.cpp \
2040 generic/timer-generic.cpp \
2041 r0drv/generic/mpnotification-r0drv-generic.cpp \
2042 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
2043 r0drv/darwin/alloc-r0drv-darwin.cpp \
2044 r0drv/darwin/assert-r0drv-darwin.cpp \
2045 r0drv/darwin/initterm-r0drv-darwin.cpp \
2046 r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp \
2047 r0drv/darwin/memobj-r0drv-darwin.cpp \
2048 r0drv/darwin/mp-r0drv-darwin.cpp \
2049 r0drv/darwin/memuserkernel-r0drv-darwin.cpp \
2050 r0drv/darwin/process-r0drv-darwin.cpp \
2051 r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
2052 r0drv/darwin/RTLogWriteStdOut-r0drv-darwin.cpp \
2053 r0drv/darwin/semevent-r0drv-darwin.cpp \
2054 r0drv/darwin/semeventmulti-r0drv-darwin.cpp \
2055 r0drv/darwin/semfastmutex-r0drv-darwin.cpp \
2056 r0drv/darwin/semmutex-r0drv-darwin.cpp \
2057 r0drv/darwin/spinlock-r0drv-darwin.cpp \
2058 r0drv/darwin/thread-r0drv-darwin.cpp \
2059 r0drv/darwin/thread2-r0drv-darwin.cpp \
2060 r0drv/darwin/threadpreempt-r0drv-darwin.cpp \
2061 r0drv/darwin/time-r0drv-darwin.cpp \
2062 r0drv/memobj-r0drv.cpp \
2063 r0drv/powernotification-r0drv.c
2064
2065RuntimeR0Drv_SOURCES.os2 = \
2066 common/string/memchr.asm \
2067 common/string/memcmp.asm \
2068 common/string/memcpy.asm \
2069 common/string/mempcpy.asm \
2070 common/string/memmove.asm \
2071 common/string/memset.asm \
2072 common/string/strchr.asm \
2073 common/string/strcmp.asm \
2074 common/string/strcpy.asm \
2075 common/string/strlen.asm \
2076 \
2077 common/string/strncmp.cpp \
2078 common/string/strpbrk.cpp \
2079 \
2080 common/misc/thread.cpp \
2081 generic/RTAssertShouldPanic-generic.cpp \
2082 generic/RTLogWriteDebugger-generic.cpp \
2083 generic/RTLogWriteStdOut-stub-generic.cpp \
2084 generic/RTMpCpuId-generic.cpp \
2085 generic/RTMpCpuIdFromSetIndex-generic.cpp \
2086 generic/RTMpCpuIdToSetIndex-generic.cpp \
2087 generic/RTMpIsCpuPossible-generic.cpp \
2088 generic/RTMpGetCount-generic.cpp \
2089 generic/RTMpGetMaxCpuId-generic.cpp \
2090 generic/RTMpGetOnlineCount-generic.cpp \
2091 generic/RTMpGetOnlineSet-generic.cpp \
2092 generic/RTMpGetSet-generic.cpp \
2093 generic/RTMpIsCpuOnline-generic.cpp \
2094 generic/RTTimerCreate-generic.cpp \
2095 generic/mppresent-generic.cpp \
2096 os2/RTErrConvertFromOS2.cpp \
2097 os2/rtSemWaitOs2ConvertTimeout.cpp \
2098 os2/sys0.asm \
2099 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
2100 r0drv/generic/RTMpOn-r0drv-generic.cpp \
2101 r0drv/generic/mpnotification-r0drv-generic.cpp \
2102 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
2103 r0drv/memobj-r0drv.cpp \
2104 r0drv/powernotification-r0drv.c \
2105 r0drv/os2/alloc-r0drv-os2.cpp \
2106 r0drv/os2/assert-r0drv-os2.cpp \
2107 r0drv/os2/assertA-r0drv-os2.asm \
2108 r0drv/os2/initterm-r0drv-os2.cpp \
2109 r0drv/os2/memobj-r0drv-os2.cpp \
2110 r0drv/os2/memuserkernel-r0drv-os2.cpp \
2111 r0drv/os2/os2imports.imp \
2112 r0drv/os2/process-r0drv-os2.cpp \
2113 r0drv/os2/RTR0AssertPanicSystem-r0drv-os2.asm \
2114 r0drv/os2/RTR0Os2DHQueryDOSVar.asm \
2115 r0drv/os2/RTR0Os2DHVMGlobalToProcess.asm \
2116 r0drv/os2/semevent-r0drv-os2.cpp \
2117 r0drv/os2/semeventmulti-r0drv-os2.cpp \
2118 r0drv/os2/semfastmutex-r0drv-os2.cpp \
2119 r0drv/os2/spinlock-r0drv-os2.cpp \
2120 r0drv/os2/thread-r0drv-os2.cpp \
2121 r0drv/os2/thread2-r0drv-os2.cpp \
2122 r0drv/os2/time-r0drv-os2.cpp \
2123 r0drv/os2/timer-r0drv-os2.cpp \
2124 r0drv/os2/timerA-r0drv-os2.asm
2125
2126RuntimeR0Drv_SOURCES.freebsd = \
2127 common/misc/thread.cpp \
2128 common/string/memchr.asm \
2129 common/string/memmove.asm \
2130 common/string/strpbrk.cpp \
2131 common/string/memcmp.asm \
2132 common/string/strchr.asm \
2133 generic/RTAssertShouldPanic-generic.cpp \
2134 generic/RTLogWriteDebugger-generic.cpp \
2135 generic/RTLogWriteStdOut-stub-generic.cpp \
2136 generic/RTTimerCreate-generic.cpp \
2137 generic/mppresent-generic.cpp \
2138 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
2139 r0drv/generic/mpnotification-r0drv-generic.cpp \
2140 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
2141 r0drv/freebsd/alloc-r0drv-freebsd.c \
2142 r0drv/freebsd/assert-r0drv-freebsd.c \
2143 r0drv/freebsd/initterm-r0drv-freebsd.c \
2144 r0drv/freebsd/memobj-r0drv-freebsd.c \
2145 r0drv/freebsd/memuserkernel-r0drv-freebsd.c \
2146 r0drv/freebsd/process-r0drv-freebsd.c \
2147 r0drv/freebsd/semevent-r0drv-freebsd.c \
2148 r0drv/freebsd/semeventmulti-r0drv-freebsd.c \
2149 r0drv/freebsd/semfastmutex-r0drv-freebsd.c \
2150 r0drv/freebsd/semmutex-r0drv-freebsd.c \
2151 r0drv/freebsd/spinlock-r0drv-freebsd.c \
2152 r0drv/freebsd/thread-r0drv-freebsd.c \
2153 r0drv/freebsd/thread2-r0drv-freebsd.c \
2154 r0drv/freebsd/time-r0drv-freebsd.c \
2155 r0drv/freebsd/mp-r0drv-freebsd.c \
2156 generic/timer-generic.cpp \
2157 r0drv/memobj-r0drv.cpp \
2158 r0drv/powernotification-r0drv.c
2159
2160RuntimeR0Drv_SOURCES.solaris = \
2161 common/misc/thread.cpp \
2162 common/string/memchr.asm \
2163 generic/RTAssertShouldPanic-generic.cpp \
2164 generic/RTLogWriteStdOut-stub-generic.cpp \
2165 generic/RTMpGetCoreCount-generic.cpp \
2166 generic/RTTimerCreate-generic.cpp \
2167 generic/mppresent-generic.cpp \
2168 r0drv/memobj-r0drv.cpp \
2169 r0drv/mpnotification-r0drv.c \
2170 r0drv/powernotification-r0drv.c \
2171 r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \
2172 r0drv/solaris/RTMpPokeCpu-r0drv-solaris.c \
2173 r0drv/solaris/alloc-r0drv-solaris.c \
2174 r0drv/solaris/assert-r0drv-solaris.c \
2175 r0drv/solaris/dbgkrnlinfo-r0drv-solaris.c \
2176 r0drv/solaris/initterm-r0drv-solaris.c \
2177 r0drv/solaris/memuserkernel-r0drv-solaris.c \
2178 r0drv/solaris/mpnotification-r0drv-solaris.c \
2179 r0drv/solaris/memobj-r0drv-solaris.c \
2180 r0drv/solaris/mp-r0drv-solaris.c \
2181 r0drv/solaris/process-r0drv-solaris.c \
2182 r0drv/solaris/semevent-r0drv-solaris.c \
2183 r0drv/solaris/semeventmulti-r0drv-solaris.c \
2184 r0drv/solaris/semfastmutex-r0drv-solaris.c \
2185 r0drv/solaris/semmutex-r0drv-solaris.c \
2186 r0drv/solaris/spinlock-r0drv-solaris.c \
2187 r0drv/solaris/thread-r0drv-solaris.c \
2188 r0drv/solaris/thread2-r0drv-solaris.c \
2189 r0drv/solaris/threadctxhooks-r0drv-solaris.c \
2190 r0drv/solaris/time-r0drv-solaris.c \
2191 r0drv/solaris/timer-r0drv-solaris.c
2192
2193RuntimeR0Drv_SOURCES.haiku = \
2194 common/misc/thread.cpp \
2195 common/string/memchr.asm \
2196 common/string/memmove.asm \
2197 common/string/strpbrk.cpp \
2198 common/string/memcmp.asm \
2199 common/string/strchr.asm \
2200 generic/RTAssertShouldPanic-generic.cpp \
2201 generic/RTTimerCreate-generic.cpp \
2202 generic/mppresent-generic.cpp \
2203 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
2204 r0drv/generic/mpnotification-r0drv-generic.cpp \
2205 r0drv/generic/threadctxhooks-r0drv-generic.cpp \
2206 r0drv/haiku/alloc-r0drv-haiku.c \
2207 r0drv/haiku/assert-r0drv-haiku.c \
2208 r0drv/haiku/initterm-r0drv-haiku.c \
2209 r0drv/haiku/memobj-r0drv-haiku.c \
2210 r0drv/haiku/mp-r0drv-haiku.c \
2211 r0drv/haiku/process-r0drv-haiku.c \
2212 r0drv/haiku/RTLogWriteDebugger-r0drv-haiku.c \
2213 r0drv/haiku/RTLogWriteStdOut-r0drv-haiku.c \
2214 r0drv/haiku/semevent-r0drv-haiku.c \
2215 r0drv/haiku/semeventmulti-r0drv-haiku.c \
2216 r0drv/haiku/semfastmutex-r0drv-haiku.c \
2217 r0drv/haiku/semmutex-r0drv-haiku.c \
2218 r0drv/haiku/spinlock-r0drv-haiku.c \
2219 r0drv/haiku/thread-r0drv-haiku.c \
2220 r0drv/haiku/thread2-r0drv-haiku.c \
2221 r0drv/haiku/time-r0drv-haiku.c \
2222 generic/timer-generic.cpp \
2223 r0drv/memobj-r0drv.cpp \
2224 r0drv/powernotification-r0drv.c
2225
2226## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here.
2227
2228RuntimeR0Drv_ORDERDEPS.freebsd = \
2229 $(PATH_STAGE)/gen-sys-hdrs/bus_if.h \
2230 $(PATH_STAGE)/gen-sys-hdrs/device_if.h
2231
2232
2233#
2234# RuntimeGuestR0 - Guest driver runtime.
2235# This is almost the same as the RuntimeR0Drv, the main difference
2236# is in the backdoor logging and the lack of sup.h (which should be
2237# made irrelevant even for RuntimeR0Drv).
2238#
2239RuntimeGuestR0_TEMPLATE := VBOXGUESTR0LIB
2240RuntimeGuestR0_EXTENDS = RuntimeR0Drv
2241RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES))
2242RuntimeGuestR0_SOURCES += \
2243 VBox/logbackdoor.cpp
2244RuntimeGuestR0_SOURCES.win := \
2245 $(filter-out common/checksum/md% common/checksum/sha%, $(RuntimeR0Drv_SOURCES.win))
2246
2247
2248#
2249# RuntimeGuestR0NT4 - Win32 NT4 guest driver runtime.
2250#
2251RuntimeGuestR0NT4_EXTENDS = RuntimeGuestR0
2252RuntimeGuestR0NT4_EXTENDS_BY = appending
2253RuntimeGuestR0NT4_DEFS = IPRT_TARGET_NT4
2254
2255
2256ifdef VBOX_WITH_RAW_MODE
2257 #
2258 # RuntimeRC - Raw-mode context library.
2259 #
2260 RuntimeRC_TEMPLATE = VBoxRc
2261 RuntimeRC_DEFS = IN_RT_RC RT_WITH_VBOX
2262 RuntimeRC_INCS = include
2263 RuntimeRC_SOURCES := \
2264 common/checksum/alt-md5.cpp \
2265 common/checksum/crc32.cpp \
2266 common/checksum/crc64.cpp \
2267 common/log/log.cpp \
2268 common/log/logellipsis.cpp \
2269 common/log/logrel.cpp \
2270 common/log/logrelellipsis.cpp \
2271 common/log/logcom.cpp \
2272 common/log/logformat.cpp \
2273 common/log/tracebuf.cpp \
2274 common/log/tracedefault.cpp \
2275 common/misc/RTAssertMsg1Weak.cpp \
2276 common/misc/RTAssertMsg2.cpp \
2277 common/misc/RTAssertMsg2Add.cpp \
2278 common/misc/RTAssertMsg2AddWeak.cpp \
2279 common/misc/RTAssertMsg2AddWeakV.cpp \
2280 common/misc/RTAssertMsg2Weak.cpp \
2281 common/misc/RTAssertMsg2WeakV.cpp \
2282 common/misc/assert.cpp \
2283 common/misc/buildconfig.cpp \
2284 common/misc/sanity-c.c \
2285 common/misc/sanity-cpp.cpp \
2286 common/path/RTPathFilename.cpp \
2287 common/string/strformat.cpp \
2288 common/string/strformatnum.cpp \
2289 common/string/strformatrt.cpp \
2290 common/string/strformattype.cpp \
2291 common/string/strncmp.cpp \
2292 common/string/strpbrk.cpp \
2293 common/string/strprintf.cpp \
2294 common/string/RTStrCopy.cpp \
2295 common/string/RTStrCopyEx.cpp \
2296 common/table/avllu32.cpp \
2297 common/table/avlou32.cpp \
2298 common/table/avlogcphys.cpp \
2299 common/table/avlogcptr.cpp \
2300 common/table/avlohcphys.cpp \
2301 common/table/avloioport.cpp \
2302 common/table/avlrogcphys.cpp \
2303 common/table/avlrogcptr.cpp \
2304 common/table/avlroioport.cpp \
2305 common/table/avlroogcptr.cpp \
2306 common/table/avlu32.cpp \
2307 common/time/timeprog.cpp \
2308 common/time/timesup.cpp \
2309 gc/initterm-gc.cpp \
2310 generic/RTAssertShouldPanic-generic.cpp \
2311 generic/errvars-generic.cpp \
2312 \
2313 $(RuntimeNoCrt_SOURCES)
2314
2315 #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
2316 # RuntimeRC_SOURCES += common/time/timesupA.asm
2317 #else
2318 RuntimeRC_SOURCES += common/time/timesupref.cpp
2319 #endif
2320
2321 RuntimeRC_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
2322
2323 ifeq ($(VBOX_LDR_FMT32),lx)
2324 RuntimeRC_SOURCES += os2/sys0.asm
2325 endif
2326
2327 if1of ($(KBUILD_TARGET), darwin solaris freebsd)
2328 RuntimeRC_SOURCES += \
2329 common/math/gcc/adddi3.c \
2330 common/math/gcc/anddi3.c \
2331 common/math/gcc/ashldi3.c \
2332 common/math/gcc/ashrdi3.c \
2333 common/math/gcc/cmpdi2.c \
2334 common/math/gcc/divdi3.c \
2335 common/math/gcc/iordi3.c \
2336 common/math/gcc/lshldi3.c \
2337 common/math/gcc/lshrdi3.c \
2338 common/math/gcc/moddi3.c \
2339 common/math/gcc/muldi3.c \
2340 common/math/gcc/negdi2.c \
2341 common/math/gcc/notdi2.c \
2342 common/math/gcc/qdivrem.c \
2343 common/math/gcc/subdi3.c \
2344 common/math/gcc/ucmpdi2.c \
2345 common/math/gcc/udivdi3.c \
2346 common/math/gcc/umoddi3.c \
2347 common/math/gcc/xordi3.c
2348 endif
2349
2350
2351 #
2352 # RuntimeRCStub - Raw-mode context startup stub for Windows.
2353 #
2354 RuntimeRCStub_TEMPLATE = VBoxRc
2355 RuntimeRCStub_SOURCES.win = \
2356 nt/NtProcessStartup-stub.cpp
2357
2358
2359endif # VBOX_WITH_RAW_MODE
2360
2361
2362#
2363# Static library for new & delete for the electric fence.
2364#
2365RuntimeEFCPP_TEMPLATE := $(VBoxRT_TEMPLATE)
2366RuntimeEFCPP_SDKS := $(RuntimeR3_SDKS)
2367RuntimeEFCPP_SDKS.$(KBUILD_TARGET) := $(RuntimeR3_SDKS.$(KBUILD_TARGET))
2368RuntimeEFCPP_DEFS := $(RuntimeR3_DEFS)
2369RuntimeEFCPP_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
2370RuntimeEFCPP_INCS := $(RuntimeR3_INCS)
2371RuntimeEFCPP_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
2372RuntimeEFCPP_SOURCES := r3/alloc-ef-cpp.cpp
2373
2374
2375
2376#
2377# The NTDLL mini import library.
2378#
2379# Note! The reason for doing this is to avoid importing CRT symbols from the
2380# NTDLL. We do not wish to do this because:
2381# - Our compiler is usually a different one and we should use the
2382# matching CRT,
2383# - Older versions of NTDLL may not sport all the exports our w2k3 or
2384# later WINDDK ntdll.lib have and thus we may easily end up with
2385# images that does not load on older windows versions.
2386#
2387if1of (win,$(KBUILD_TARGET) $(KBUILD_HOST))
2388RuntimeR3NtDll-amd64_TEMPLATE = VBoxR3Dll
2389RuntimeR3NtDll-amd64_BLD_TRG_ARCH = amd64
2390RuntimeR3NtDll-amd64_ARFLAGS = /NODEFAULTLIB /MACHINE:amd64
2391RuntimeR3NtDll-amd64_SOURCES = \
2392 r3/win/ntdll-mini-implib.def
2393
2394RuntimeR3NtDll-x86_TEMPLATE = VBoxR3Dll
2395RuntimeR3NtDll-x86_BLD_TRG_ARCH = x86
2396RuntimeR3NtDll-x86_ARFLAGS = /NODEFAULTLIB /MACHINE:x86
2397RuntimeR3NtDll-x86_SOURCES = \
2398 r3/win/ntdll-mini-implib.def \
2399 $(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm
2400RuntimeR3NtDll-x86_CLEAN = \
2401 $(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm
2402
2403$$(RuntimeR3NtDll-x86_0_OUTDIR)/ntdll-mini-implib.asm: $(PATH_SUB_CURRENT)/r3/win/ntdll-mini-implib.def | $$(dir $$@)
2404 $(call MSG_GENERATE,,$@,$<)
2405 $(QUIET)$(APPEND) -nt "$@" \
2406 ';Autogenerated, do not edit' \
2407 '%include "iprt/asmdefs.mac"' \
2408 'BEGINCODE' \
2409 '%macro IMPLIB_EXPORT 1' \
2410 'global %1:function' \
2411 '%1: nop' \
2412 '%endm' \
2413 ''
2414 $(QUIET)$(SED) -e '1,/EXPORTS/d' \
2415 -e 's/^.*;;=[[:space:]]*\([^[:space:]]*\)[[:space:]]*$$/IMPLIB_EXPORT \1/' \
2416 $< --append $@
2417endif
2418
2419#
2420# Bag of tricks required for making VCC100 output binaries work on NT4, W2K
2421# early XP and early W2K3.
2422#
2423RuntimeR3VccTricks_TEMPLATE = VBoxR3Dll
2424RuntimeR3VccTricks_SOURCES = \
2425 r3/win/vcc100-kernel32-fakes.cpp \
2426 r3/win/vcc100-kernel32-fakesA.asm
2427
2428
2429#
2430# errmsg.cpp depends on a generated header.
2431#
2432common/err/errmsg.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h
2433common/err/errmsg.cpp_INCS = $(IPRT_OUT_DIR)
2434
2435win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgcomdata.h
2436win/errmsgwin.cpp_INCS = $(IPRT_OUT_DIR)
2437
2438# Our COM errors only for R3 libraries on the host
2439define def_errmsgwin_deps
2440 $(lib)_win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
2441 $(lib)_common/err/errmsgxpcom.cpp_INCS = $(IPRT_OUT_DIR)
2442 $(lib)_common/err/errmsgxpcom.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
2443endef
2444$(foreach lib,RuntimeR3 RuntimeBldProg VBoxRT VBoxRT-x86,$(eval $(def_errmsgwin_deps)))
2445
2446
2447#
2448# Generate the status code data.
2449#
2450$(IPRT_OUT_DIR)/errmsgdata.h: \
2451 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsg.sed \
2452 $(PATH_ROOT)/include/iprt/err.h \
2453 $(PATH_ROOT)/include/VBox/err.h \
2454 | $$(dir $$@)
2455 $(call MSG_GENERATE,,$@,$(filter %.h,$^))
2456 $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
2457
2458## @todo r=bird: rename this to indicate that it's not only COM errors, but all win32/64 errors.
2459$(IPRT_OUT_DIR)/errmsgcomdata.h: \
2460 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsgcom.sed \
2461 $$(PATH_SDK_$(VBOX_WINPSDK)_INC)/WinError.h \
2462 | $$(dir $$@)
2463 $(call MSG_GENERATE,,$@,$(filter %.h,$^))
2464 $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
2465
2466$(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts +| $(IPRT_OUT_DIR)/errmsgvboxcomdata.h: \
2467 $(VBOX_PATH_RUNTIME_SRC)/VBox/errmsgvboxcom.xsl \
2468 $(VBOX_XIDL_FILE_SRC) \
2469 | $$(dir $$@)
2470 $(call MSG_GENERATE,,$@,$(filter %.xidl,$^))
2471 $(QUIET)$(VBOX_XSLTPROC) -o $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts $< $(filter %.xidl,$^)
2472 $(QUIET)$(CP) --changed -fv $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
2473
2474
2475if "$(KBUILD_TARGET)" == "freebsd"
2476#
2477# FreeBSDGeneratedKernelHeaders - Generate some kernel interface headers.
2478#
2479# These are used by:
2480# - The RTMp* API in IPRT.
2481# - VBoxGuest
2482#
2483# Note! We cannot give a output path to the awk program, it will always
2484# generate the header next to the source. So, we'll have to temporarily copy
2485# the source file to the destination directory to work.
2486#
2487VBOX_AWK := /usr/bin/awk
2488INSTALLS += FreeBSDGeneratedKernelHeaders
2489FreeBSDGeneratedKernelHeaders_INST = gen-sys-hdrs/
2490FreeBSDGeneratedKernelHeaders_SOURCES = \
2491 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h \
2492 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h \
2493 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h
2494FreeBSDGeneratedKernelHeaders_CLEAN = $(FreeBSDGeneratedKernelHeaders_SOURCES)
2495
2496$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h: $(VBOX_FREEBSD_SRC)/kern/bus_if.m | $$(dir $$@)
2497 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
2498 $(QUIET)$(CP) -f $< $(@D)/bus_if.m
2499 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/bus_if.m -h -p
2500 $(QUIET)$(RM) $(@D)/bus_if.m
2501
2502$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h: $(VBOX_FREEBSD_SRC)/kern/device_if.m | $$(dir $$@)
2503 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
2504 $(QUIET)$(CP) -f $< $(@D)/device_if.m
2505 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/device_if.m -h -p
2506 $(QUIET)$(RM) $(@D)/device_if.m
2507
2508$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h: $(VBOX_FREEBSD_SRC)/dev/pci/pci_if.m | $$(dir $$@)
2509 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
2510 $(QUIET)$(CP) -f $< $(@D)/pci_if.m
2511 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/pci_if.m -h -p
2512 $(QUIET)$(RM) $(@D)/pci_if.m
2513endif # FreeBSD
2514
2515
2516#
2517# Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
2518#
2519ldrELFRelocatable.cpp.o: ldrELF.o
2520ldrELFRelocatable.cpp.obj: ldrELF.obj
2521
2522
2523#
2524# Doxygen documentation.
2525#
2526IPRT_DOXYFILE_INPUT_DIRS = \
2527 $(PATH_ROOT)/include/iprt \
2528 $(PATH_ROOT)/include/iprt/cpp \
2529 $(PATH_ROOT)/include/iprt/linux \
2530 $(PATH_ROOT)/include/iprt/nocrt \
2531 $(PATH_ROOT)/include/iprt/nocrt/x86 \
2532 $(PATH_ROOT)/include/iprt/nocrt/amd64 \
2533 $(PATH_ROOT)/include/iprt/nocrt/compiler \
2534 $(VBOX_PATH_RUNTIME_SRC)/include/internal \
2535 $(VBOX_PATH_RUNTIME_SRC)/common/alloc \
2536 $(VBOX_PATH_RUNTIME_SRC)/common/asm \
2537 $(VBOX_PATH_RUNTIME_SRC)/common/checksum \
2538 $(VBOX_PATH_RUNTIME_SRC)/common/dbg \
2539 $(VBOX_PATH_RUNTIME_SRC)/common/err \
2540 $(VBOX_PATH_RUNTIME_SRC)/common/ldr \
2541 $(VBOX_PATH_RUNTIME_SRC)/common/log \
2542 $(VBOX_PATH_RUNTIME_SRC)/common/math \
2543 $(VBOX_PATH_RUNTIME_SRC)/common/math/amd64 \
2544 $(VBOX_PATH_RUNTIME_SRC)/common/math/gcc \
2545 $(VBOX_PATH_RUNTIME_SRC)/common/math/x86 \
2546 $(VBOX_PATH_RUNTIME_SRC)/common/misc \
2547 $(VBOX_PATH_RUNTIME_SRC)/common/path \
2548 $(VBOX_PATH_RUNTIME_SRC)/common/rand \
2549 $(VBOX_PATH_RUNTIME_SRC)/common/string \
2550 $(VBOX_PATH_RUNTIME_SRC)/common/table \
2551 $(VBOX_PATH_RUNTIME_SRC)/common/time \
2552 $(VBOX_PATH_RUNTIME_SRC)/VBox \
2553 $(foreach dir, $(VBOX_PATH_RUNTIME_SRC) $(VBOX_PATH_RUNTIME_SRC)/r3 $(VBOX_PATH_RUNTIME_SRC)/r0drv,\
2554 $(dir) \
2555 $(dir)/darwin \
2556 $(dir)/haiku \
2557 $(dir)/linux \
2558 $(dir)/nt \
2559 $(dir)/os2 \
2560 $(dir)/solaris \
2561 $(dir)/win \
2562 $(dir)/win32 \
2563 $(dir)/win64 \
2564 $(dir)/generic \
2565 )
2566
2567# These must come first in order to make things look nice.
2568IPRT_DOXYFILE_INPUT_FIRST =\
2569 $(PATH_ROOT)/include/iprt/cdefs.h \
2570 $(PATH_ROOT)/include/iprt/types.h \
2571 $(PATH_ROOT)/include/iprt/runtime.h \
2572 $(PATH_ROOT)/include/iprt/param.h \
2573 $(PATH_ROOT)/include/iprt/assert.h \
2574 $(PATH_ROOT)/include/iprt/asm.h \
2575
2576IPRT_DOXYFILE_INPUT := \
2577 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(IPRT_DOXYFILE_INPUT_DIRS)))) ) \
2578 $(foreach dir, $(IPRT_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
2579IPRT_DOXYFILE_INPUT := \
2580 $(IPRT_DOXYFILE_INPUT_FIRST) \
2581 $(filter-out $(IPRT_DOXYFILE_INPUT_FIRST), $(IPRT_DOXYFILE_INPUT))
2582
2583
2584IPRT_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/iprt
2585BLDDIRS += $(IPRT_DOXYFILE_OUTPUT)
2586
2587includedep $(IPRT_OUT_DIR)/Doxyfile.iprt.dep
2588
2589# Generate the Doxyfile
2590$(IPRT_OUT_DIR)/Doxyfile.iprt: \
2591 $(VBOX_PATH_RUNTIME_SRC)/Doxyfile \
2592 $(VBOX_PATH_RUNTIME_SRC)/Makefile.kmk \
2593 $(comp-vars IPRT_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
2594 $(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
2595 | $$(dir $$@)
2596 $(RM) -f $@ [email protected] [email protected]
2597 $(CP) -f $(VBOX_PATH_RUNTIME_SRC)/Doxyfile [email protected]
2598 $(APPEND) [email protected]
2599 $(APPEND) [email protected] "OUTPUT_DIRECTORY = $(IPRT_DOXYFILE_OUTPUT)"
2600 $(APPEND) [email protected] "WARN_LOGFILE = $(IPRT_DOXYFILE_OUTPUT)/errors"
2601 $(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include include . common/table"
2602 $(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
2603 $(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
2604 $(APPEND) [email protected]
2605 $(APPEND) [email protected] "INPUT = $(IPRT_DOXYFILE_INPUT)"
2606 $(APPEND) [email protected]
2607 $(MV) -f [email protected] $@
2608 @$(APPEND) [email protected] "DOXYGEN_OUTPUT_PREV = $(IPRT_DOXYFILE_OUTPUT)"
2609 @$(APPEND) [email protected] "DOXYGEN_INPUT_PREV = $(IPRT_DOXYFILE_INPUT)"
2610
2611# Do the actual job.
2612$(IPRT_OUT_DIR)/docs.iprt: $(IPRT_OUT_DIR)/Doxyfile.iprt $$(IPRT_DOXYFILE_INPUT) | $(IPRT_DOXYFILE_OUTPUT)/
2613 $(RM) -f $(wildcard $(IPRT_DOXYFILE_OUTPUT)/html/*) $(IPRT_OUT_DIR)/docs.iprt
2614 doxygen $(IPRT_OUT_DIR)/Doxyfile.iprt
2615 $(APPEND) $(IPRT_OUT_DIR)/docs.iprt
2616
2617# aliases
2618docs.iprt: $(IPRT_OUT_DIR)/docs.iprt
2619if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
2620docs: $(IPRT_OUT_DIR)/docs.iprt
2621endif
2622
2623test-doxygen::
2624 @echo test-$(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE)
2625 @echo $(IPRT_DOXYFILE_OUTPUT)
2626 @echo $(DOXYGEN_OUTPUT_PREV)
2627 @echo $(IPRT_DOXYFILE_INPUT)
2628
2629
2630#
2631# Test mangling.
2632#
2633if1of ($(LIBRARIES),RuntimeR3 RuntimeR0 RuntimeR0Drv RuntimeRC)
2634 test-mangling:: $(IPRT_OUT_DIR)/mangling.run
2635 OTHERS += $(IPRT_OUT_DIR)/mangling.run
2636 CLEANS += $(IPRT_OUT_DIR)/mangling.run
2637 $(IPRT_OUT_DIR)/mangling.run: \
2638 $$(RuntimeR3_1_TARGET) \
2639 $$(RuntimeR0_1_TARGET) \
2640 $$(RuntimeR0Drv_1_TARGET) \
2641 $$(RuntimeRC_1_TARGET)
2642 if1of ($(KBUILD_TARGET), win os2)
2643 $(call MSG_L1,IPRT: skipped mangling test.)
2644 else
2645# Generate a SED script from mangling.h that checks for known symbols.
2646 $(QUIET)$(SED) \
2647 -e '/# *define.*RT_MANGLER/!d' \
2648 -e 's/^.*RT_MANGLER(\([^)][^)]*\)).*$(DOLLAR)/\/^\1$(DOLLAR)\/b ok/' \
2649 $(PATH_ROOT)/include/iprt/mangling.h \
2650 --output "$@"
2651 $(QUIET)$(APPEND) -n '$@' \
2652 ':bad' \
2653 's/^\(.*\)$(DOLLAR)/error: Missing # define \1 /' \
2654 ':bad-pad' \
2655 '/^.\{0,70\}$(DOLLAR)/ { s/$(DOLLAR)/ /; bbad-pad; }' \
2656 's/define \([^ ]*\) \([ ]*\)$(DOLLAR)/define \1 \2RT_MANGLER(\1)/' \
2657 'p' \
2658 $(if-expr !defined(IPRT_IGNORE_TEST_MANGLING),'q 1') \
2659 '' \
2660 ':ok' \
2661 'd'
2662# Find the best way to generate a symbol list and subject it to mangling.h.
2663 if $(intersects $(KBUILD_TARGET), linux) && "$(VBOX_GCC_fvisibility-hidden)"
2664 $(call MSG_L1,IPRT: Testing mangling and visiblity for newer gcc...)
2665 $(QUIET)readelf -Ws $^ \
2666 | $(SED) \
2667 -e 's/[[:space:]]\+/ /g' \
2668 -e '/^ *[[:digit:]]\+:/!d' \
2669 -e 's/^ \+[[:digit:]]\+: \+[[:xdigit:]]\+ \+[[:digit:]]\+ \+//' \
2670 -e '/^SECTION/d' \
2671 -e '/^FILE/d' \
2672 -e 's/^[[:alpha:]]\+ \+//' \
2673 -e '/LOCAL/d' \
2674 -e 's/^[[:alpha:]]\+ \+//' \
2675 -e '/^HIDDEN [[:xdigit:]]\+ RT/bkeep-hidden' \
2676 -e '/^HIDDEN [[:xdigit:]]\+ g_[a-z0-9]*RT/bkeep-hidden' \
2677 -e '/^HIDDEN/d' \
2678 -e ':keep-hidden' \
2679 -e 's/^[[:alpha:]]\+ \+//' \
2680 -e '/^UND/d' \
2681 -e 's/^[[:digit:]]\+ \+//' \
2682 \
2683 -e '/^nocrt_/d' \
2684 -e '/^memchr/d' \
2685 -e '/^memcmp/d' \
2686 -e '/^memcpy/d' \
2687 -e '/^mempcpy/d' \
2688 -e '/^memmove/d' \
2689 -e '/^memset/d' \
2690 -e '/^strchr/d' \
2691 -e '/^strpbrk/d' \
2692 -e '/^_Z7strpbrk/d' \
2693 -e '/^strcmp/d' \
2694 -e '/^strcpy/d' \
2695 -e '/^strncpy/d' \
2696 -e '/^strlen/d' \
2697 -e '/^_Z[[:alpha:]]*[[:digit:]]\+RTC/d' \
2698 -e '/^_Z[[:alpha:]]*[[:digit:]]\+RTC/d' \
2699 \
2700 -e '/^_ZnwjPv/d' \
2701 -e '/^_ZnwmPv/d' \
2702 -e '/^_ZNSt9bad_allocC1Ev/d' \
2703 -e '/^_ZNSt9exceptionC2Ev/d' \
2704 -e '/^_ZNSt9exceptionC[12]ERKS_/d' \
2705 \
2706 -e '/^_ZN[a-zA-Z]*St[[:digit:]]*_*[lL]ist/d' \
2707 -e '/^_ZN[a-zA-Z]*[[:digit:]]*__gnu_cxx/d' \
2708 -e '/^_ZNSa.*ElementNode.*/d' \
2709 -e '/^_ZSt.*ElementNode.*/d' \
2710 \
2711 -e '/^_Z[[:digit:]]\+dbus/d' \
2712 -e '/^_Z13RTDBusLoadLibv/d' \
2713 \
2714 -e '/^VBoxHost_/d'\
2715 -e '/^VBoxGuest_/d'\
2716 | $(SED) -nf "$@"
2717 endif
2718 $(call MSG_L1,IPRT: Testing mangling using nm...)
2719 $(QUIET)nm $^ 2> /dev/null \
2720 | $(SED) -n \
2721 -e 's/^[0-9a-f][0-9a-f]* //' \
2722 -e '/^[TUDB] /!d' \
2723 -e 's/^. //' \
2724 $(if-expr "$(KBUILD_TARGET)" == "darwin" || "$(KBUILD_TARGET)" == "os2" || "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86", \
2725 -e 's/^_//',) \
2726 \
2727 -e '/^g_cchrt/d'\
2728 -e '/^g_frt/d'\
2729 -e '/^g_offrt/d'\
2730 -e '/^g_pfnrt/d'\
2731 -e '/^g_rt/d'\
2732 -e '/^g_szrt/d'\
2733 -e '/^g_ProcessSelf/d'\
2734 -e '/^g_u64ProgramStart/d'\
2735 -e '/^g_enmProcessPriority/d'\
2736 -e '/^g_hDbgModStrCache/d'\
2737 -e '/^g_pfnR0Darwin/d'\
2738 -e '/^g_pDarwinLockGroup/d'\
2739 \
2740 -e '/^RTDBusLoadLib/d' \
2741 \
2742 -e '/^RT/p' \
2743 -e '/^g_/p' \
2744 | $(SED) -nf "$@"
2745 endif
2746endif
2747 $(QUIET)$(APPEND) -t $@
2748
2749if !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_VALIDATIONKIT) && !defined(VBOX_ONLY_DOCS)
2750#
2751# Windows build tool.
2752#
2753BLDPROGS.win += ntBldSymDb
2754ntBldSymDb_TEMPLATE = VBoxAdvBldProg
2755ntBldSymDb_INCS = .
2756ntBldSymDb_SOURCES = r0drv/nt/ntBldSymDb.cpp
2757endif
2758
2759#
2760# Generate the rules (we're the to sub-makefile).
2761#
2762include $(FILE_KBUILD_SUB_FOOTER)
2763
2764
2765#
2766# Aliases for code templates.
2767#
2768rsa-template.o rsa-template.obj: rsa-core.o rsa-asn1-decoder.o rsa-sanity.o rsa-init.o
2769spc-template.o spc-template.obj: spc-core.o spc-asn1-decoder.o spc-sanity.o spc-init.o
2770taf-template.o taf-template.obj: taf-core.o taf-asn1-decoder.o taf-sanity.o taf-init.o
2771tsp-template.o tsp-template.obj: tsp-core.o tsp-asn1-decoder.o tsp-sanity.o tsp-init.o
2772x509-template.o x509-template.obj: x509-core.o x509-asn1-decoder.o x509-sanity.o x509-init.o
2773pkcs7-template.o pkcs7-template.obj: pkcs7-core.o pkcs7-asn1-decoder.o pkcs7-sanity.o pkcs7-init.o
2774
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