VirtualBox

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

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

IPRT: Sort IPRT status messages so we can look them up using binary searching. bugref:8489

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