VirtualBox

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

Last change on this file since 66595 was 66415, checked in by vboxsync, 8 years ago

IPRT: split %RKv formatting into separate function.

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