VirtualBox

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

Last change on this file since 68246 was 68244, checked in by vboxsync, 7 years ago

IPRT: Add RTAvlU32 to RuntimeR0Drv.

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