VirtualBox

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

Last change on this file since 74157 was 74142, checked in by vboxsync, 6 years ago

IPRT/rest: Split up RTCRestBinaryString into a core RTCRestBinary type and two client side descenants for flexible handling of parameters and responses (still not tested). bugref:9167

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