VirtualBox

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

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

IPRT: Added electric fence allocator for ASN.1.

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