VirtualBox

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

Last change on this file since 75410 was 75315, checked in by vboxsync, 6 years ago

IPRT/Makefile.kmk: Enable using RTTimeSet-os2.cpp. [2nd try]

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