VirtualBox

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

Last change on this file since 87004 was 87004, checked in by vboxsync, 4 years ago

Shared Clipboard/Transfers: Initial commit for HTTP server. Work in progress. bugref:9874

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