VirtualBox

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

Last change on this file since 68116 was 68113, checked in by vboxsync, 7 years ago

Added RTTimeZoneGetCurrent for getting TZ.

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