VirtualBox

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

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

Runtime/RTFuzzCfg: Initial implementation of API for configuring a fuzzing context. The config and input corpus is stored in a single tarball to keep things easy to pass around

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