VirtualBox

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

Last change on this file since 83998 was 83991, checked in by vboxsync, 5 years ago

IPRT,VBoxAddInstallNt3x.cpp: Split out the IPRT bits from VBoxAddInstallNt3x.cpp and move template to /Config.kmk.

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