VirtualBox

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

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

IPRT/Makefile.kmk: Quoting tweak. bugref:8489

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