VirtualBox

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

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

/Config.kmk, libs/Makefile.kmk, Runtime/Makefile.kmk, torage/testcase/Makefile.kmk: Turn liblzf into a proper SDK (very much like ylib), in preparation for optionally using the system-provided library. Also some zlib variable cleanups.

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