VirtualBox

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

Last change on this file since 37190 was 37171, checked in by vboxsync, 14 years ago

IPRT: Use the linux thread affinity code.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 73.5 KB
Line 
1# $Id: Makefile.kmk 37171 2011-05-20 17:15:27Z vboxsync $
2## @file
3# Sub-Makefile for the IPRT (IPRT).
4#
5
6#
7# Copyright (C) 2006-2011 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 RuntimeGuestR3Mini
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
42else ifdef VBOX_ONLY_TESTSUITE
43 #
44 # Only build the testsuite.
45 #
46 LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeR3 RuntimeR0
47 LIBRARIES.win += RuntimeR0Stub
48
49else ifdef VBOX_ONLY_DOCS
50 #
51 # Build docs only - need just regular R3 runtime.
52 #
53 LIBRARIES += RuntimeR3
54 DLLS += VBoxRT
55
56else ifdef VBOX_ONLY_EXTPACKS_USE_IMPLIBS
57 #
58 # Build docs only - need just regular R3 runtime.
59 #
60 LIBRARIES += RuntimeBldProg
61 LIBRARIES.win += RuntimeR0Stub RuntimeRCStub
62 include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
63
64else # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_TESTSUITE && !VBOX_ONLY_DOCS
65
66 #
67 # Normal build.
68 #
69 ifndef VBOX_ONLY_EXTPACKS
70 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
71 endif
72 include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
73
74 BLDPROGS += uniread
75 LIBRARIES += RuntimeR3 RuntimeBldProg RuntimeR0 RuntimeEFCPP RuntimeR3NoCRTGCC
76 LIBRARIES.win += RuntimeR0Stub
77 ifdef VBOX_WITH_RAW_MODE
78 LIBRARIES += RuntimeRC
79 LIBRARIES.win += RuntimeRCStub
80 endif
81 ifdef VBOX_WITH_VBOXDRV
82 LIBRARIES += RuntimeR0Drv
83 endif
84 ifdef VBOX_WITH_ADDITIONS
85 LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeGuestR3Mini
86 LIBRARIES.win.amd64 += RuntimeGuestR3-x86 RuntimeGuestR3Shared-x86
87 ifdef VBOX_WITH_ADDITION_DRIVERS
88 LIBRARIES += RuntimeGuestR0
89 endif
90 #LIBRARIES.os2 += RuntimeGuestR0OS2Warp3
91 LIBRARIES.win.x86 += RuntimeGuestR0NT4
92 endif # VBOX_WITH_ADDITIONS
93 LIBRARIES.l4 += RuntimeR3L4 RuntimeLnxHostR3
94 DLLS += VBoxRT
95endif
96
97
98# Always build the ntdll import libraries on windows.
99LIBRARIES.win += RuntimeR3NtDll-x86
100if1of (amd64, $(KBUILD_TARGET_ARCH) $(KBUILD_HOST_ARCH))
101 LIBRARIES.win += RuntimeR3NtDll-amd64
102endif
103
104
105# Always build the import library.
106IMPORT_LIBS += VBoxRTImp
107
108
109# Where the generated stuff goes.
110IPRT_OUT_DIR := $(PATH_TARGET)/Runtime
111BLDDIRS += $(IPRT_OUT_DIR)
112OTHER_CLEAN += \
113 $(IPRT_OUT_DIR)/errmsgdata.h \
114 $(IPRT_OUT_DIR)/errmsgcomdata.h \
115 $(IPRT_OUT_DIR)/errmsgvboxcomdata.h \
116 $(IPRT_OUT_DIR)/Doxyfile.iprt \
117 $(IPRT_OUT_DIR)/Doxyfile.iprt.dep \
118 $(IPRT_OUT_DIR)/docs.iprt
119
120
121#
122# Globals
123#
124VBOX_PATH_RUNTIME_SRC := $(PATH_SUB_CURRENT)
125
126
127#
128# Set the defines that buildconfig.cpp needs. Its used by several targets.
129#
130common/misc/buildconfig.cpp_DEFS = \
131 IPRT_BLDCFG_SCM_REV=$(VBOX_SVN_REV) \
132 IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
133 IPRT_BLDCFG_VERSION_MAJOR=$(VBOX_VERSION_MAJOR) \
134 IPRT_BLDCFG_VERSION_MINOR=$(VBOX_VERSION_MINOR) \
135 IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD) \
136 IPRT_BLDCFG_TARGET=\"$(KBUILD_TARGET)\" \
137 IPRT_BLDCFG_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\" \
138 IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\"
139
140#
141# Unicode Specification reader used to regenerate unidata.cpp.
142#
143uniread_TEMPLATE = VBOXBLDPROG
144uniread_SOURCES = common/string/uniread.cpp
145uniread_INCS = include
146
147#
148# Win64 assembly sources.
149#
150RuntimeWin64ASM_SOURCES = \
151 win/amd64/ASMAtomicBitClear.asm \
152 win/amd64/ASMAtomicBitTestAndToggle.asm \
153 win/amd64/ASMAtomicBitToggle.asm \
154 win/amd64/ASMAtomicReadU64.asm \
155 win/amd64/ASMAtomicXchgU16.asm \
156 win/amd64/ASMAtomicXchgU8.asm \
157 win/amd64/ASMBitFirstClear.asm \
158 win/amd64/ASMBitFirstSet.asm \
159 win/amd64/ASMGetCS.asm \
160 win/amd64/ASMGetDS.asm \
161 win/amd64/ASMGetES.asm \
162 win/amd64/ASMGetFlags.asm \
163 win/amd64/ASMGetFS.asm \
164 win/amd64/ASMGetGS.asm \
165 win/amd64/ASMGetIDTR.asm \
166 win/amd64/ASMGetGDTR.asm \
167 win/amd64/ASMGetTR.asm \
168 win/amd64/ASMGetSS.asm \
169 win/amd64/ASMProbeReadByte.asm \
170 win/amd64/ASMSetFlags.asm \
171 win/amd64/ASMGetDR0.asm \
172 win/amd64/ASMGetDR1.asm \
173 win/amd64/ASMGetDR2.asm \
174 win/amd64/ASMGetDR3.asm \
175 win/amd64/ASMGetDR6.asm \
176 win/amd64/ASMGetDR7.asm \
177 common/asm/ASMAtomicCmpXchgU8.asm \
178 common/asm/ASMMultU64ByU32DivByU32.asm \
179 common/asm/ASMNopPause.asm
180
181#
182# Win32 assembly sources.
183#
184RuntimeWin32ASM_SOURCES = \
185 common/asm/ASMAtomicCmpXchgU8.asm \
186 common/asm/ASMMultU64ByU32DivByU32.asm
187
188#
189# NoCRT sources (minus math stuff).
190#
191if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
192RuntimeNoCrt_SOURCES = \
193 common/misc/setjmp.asm \
194 common/string/memchr.asm \
195 common/string/memcmp.asm \
196 common/string/memcpy.asm \
197 common/string/mempcpy.asm \
198 common/string/memmove.asm \
199 common/string/memset.asm \
200 common/string/strchr.asm \
201 common/string/strcpy.asm \
202 common/string/strcmp.asm \
203 common/string/strlen.asm
204endif
205
206
207#
208# RuntimeR3 - Static Runtime for Ring-3 executables.
209#
210RuntimeR3_TEMPLATE = VBoxR3Static
211RuntimeR3_SDKS = VBOX_LIBXML2 VBOX_OPENSSL VBOX_BOOST ## @todo why is BOOST and XML2 here? r3/xml.cpp is not in this lib...
212RuntimeR3_SDKS.win = WINPSDK $(VBOX_WINDDK)
213RuntimeR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX RT_NO_GIP
214#RuntimeR3_DEFS += RTMEM_WRAP_TO_EF_APIS
215ifdef IPRT_WITH_KSTUFF
216 RuntimeR3_DEFS += LDR_WITH_KLDR
217endif
218ifdef VBOX_MAIN_RELEASE_LOG ## @todo (dmik): temporary, until RTThreadSelf/RTThreadAdopt are properly updated
219 RuntimeR3_DEFS += RTCRITSECT_STRICT
220endif
221ifdef IPRT_WITH_LZJB
222 RuntimeR3_DEFS += RTZIP_USE_LZJB
223endif
224ifdef IPRT_WITH_LZO
225 RuntimeR3_DEFS += RTZIP_USE_LZO
226endif
227ifn1of ($(KBUILD_TARGET), win)
228 RuntimeR3_DEFS += RT_WITH_ICONV_CACHE
229endif
230ifdef IPRT_WITH_FUTEX_BASED_SEMS
231 RuntimeR3_DEFS.linux += IPRT_WITH_FUTEX_BASED_SEMS
232endif
233RuntimeR3_INCS = \
234 include \
235 $(SDK_VBOX_ZLIB_INCS)
236RuntimeR3_INCS += \
237 $(PATH_ROOT)/src/libs/liblzf-3.4
238ifdef IPRT_WITH_KSTUFF
239 RuntimeR3_INCS += \
240 $(PATH_ROOT)/src/libs/kStuff/kStuff/include
241endif
242RuntimeR3_INCS.l4 = \
243 $(L4_INCDIR)
244
245# RuntimeR3_INCS.solaris = \
246# /usr/include
247
248RuntimeR3_SOURCES = \
249 common/alloc/alloc.cpp \
250 common/alloc/heapsimple.cpp \
251 common/alloc/heapoffset.cpp \
252 common/alloc/memcache.cpp \
253 common/alloc/memtracker.cpp \
254 common/checksum/adler32.cpp \
255 common/checksum/crc32.cpp \
256 common/checksum/crc64.cpp \
257 common/checksum/md5.cpp \
258 common/checksum/md5str.cpp \
259 common/checksum/ipv4.cpp \
260 common/checksum/ipv6.cpp \
261 common/checksum/manifest.cpp \
262 common/checksum/manifest2.cpp \
263 common/checksum/manifest3.cpp \
264 common/checksum/manifest-file.cpp \
265 common/checksum/RTSha1Digest.cpp \
266 common/checksum/sha1.cpp \
267 common/checksum/sha1str.cpp \
268 common/checksum/sha256.cpp \
269 common/checksum/sha256str.cpp \
270 common/checksum/sha512.cpp \
271 common/checksum/sha512str.cpp \
272 common/dbg/dbg.cpp \
273 common/dbg/dbgas.cpp \
274 common/dbg/dbgmod.cpp \
275 common/dbg/dbgmodcontainer.cpp \
276 common/dbg/dbgmodnm.cpp \
277 common/dvm/dvm.cpp \
278 common/dvm/dvmgpt.cpp \
279 common/dvm/dvmmbr.cpp \
280 common/err/errinfo.cpp \
281 common/err/errmsg.cpp \
282 common/err/RTErrConvertFromErrno.cpp \
283 common/err/RTErrConvertToErrno.cpp \
284 common/ldr/ldr.cpp \
285 common/ldr/ldrELF.cpp \
286 common/ldr/ldrEx.cpp \
287 common/ldr/ldrFile.cpp \
288 common/ldr/ldrNative.cpp \
289 common/ldr/ldrPE.cpp \
290 common/log/log.cpp \
291 common/log/logellipsis.cpp \
292 common/log/logrel.cpp \
293 common/log/logrelellipsis.cpp \
294 common/log/logcom.cpp \
295 common/log/logformat.cpp \
296 common/misc/RTAssertMsg1Weak.cpp \
297 common/misc/RTAssertMsg2.cpp \
298 common/misc/RTAssertMsg2Add.cpp \
299 common/misc/RTAssertMsg2AddWeak.cpp \
300 common/misc/RTAssertMsg2AddWeakV.cpp \
301 common/misc/RTAssertMsg2Weak.cpp \
302 common/misc/RTAssertMsg2WeakV.cpp \
303 common/misc/RTFileOpenF.cpp \
304 common/misc/RTFileOpenV.cpp \
305 common/misc/RTMemWipeThoroughly.cpp \
306 common/misc/assert.cpp \
307 common/misc/buildconfig.cpp \
308 common/misc/cidr.cpp \
309 common/misc/getopt.cpp \
310 common/misc/getoptargv.cpp \
311 common/misc/handle.cpp \
312 common/misc/handletable.cpp \
313 common/misc/handletablectx.cpp \
314 common/misc/handletablesimple.cpp \
315 common/misc/lockvalidator.cpp \
316 common/misc/message.cpp \
317 common/misc/once.cpp \
318 common/misc/req.cpp \
319 common/misc/sanity-c.c \
320 common/misc/sanity-cpp.cpp \
321 common/misc/semspingpong.cpp \
322 common/misc/sg.cpp \
323 common/misc/circbuf.cpp \
324 common/misc/thread.cpp \
325 common/misc/term.cpp \
326 common/path/rtPathRootSpecLen.cpp \
327 common/path/rtPathVolumeSpecLen.cpp \
328 common/path/RTPathAbsDup.cpp \
329 common/path/RTPathAbsEx.cpp \
330 common/path/RTPathAbsExDup.cpp \
331 common/path/RTPathAppend.cpp \
332 common/path/RTPathAppendEx.cpp \
333 common/path/RTPathChangeToDosSlashes.cpp \
334 common/path/RTPathChangeToUnixSlashes.cpp \
335 common/path/RTPathCopyComponents.cpp \
336 common/path/RTPathCountComponents.cpp \
337 common/path/RTPathExt.cpp \
338 common/path/RTPathFilename.cpp \
339 common/path/RTPathHaveExt.cpp \
340 common/path/RTPathHavePath.cpp \
341 common/path/RTPathJoin.cpp \
342 common/path/RTPathJoinA.cpp \
343 common/path/RTPathJoinEx.cpp \
344 common/path/RTPathParse.cpp \
345 common/path/RTPathRealDup.cpp \
346 common/path/RTPathStartsWithRoot.cpp \
347 common/path/RTPathStripExt.cpp \
348 common/path/RTPathStripFilename.cpp \
349 common/path/RTPathStripTrailingSlash.cpp \
350 common/path/RTPathTraverseList.cpp \
351 common/path/comparepaths.cpp \
352 common/rand/rand.cpp \
353 common/rand/randadv.cpp \
354 common/rand/randparkmiller.cpp \
355 common/sort/RTSortIsSorted.cpp \
356 common/sort/RTSortApvIsSorted.cpp \
357 common/sort/shellsort.cpp \
358 common/string/RTStrCat.cpp \
359 common/string/RTStrCatEx.cpp \
360 common/string/RTStrCatP.cpp \
361 common/string/RTStrCatPEx.cpp \
362 common/string/RTStrCmp.cpp \
363 common/string/RTStrConvertHexBytes.cpp \
364 common/string/RTStrCopy.cpp \
365 common/string/RTStrCopyEx.cpp \
366 common/string/RTStrCopyP.cpp \
367 common/string/RTStrCopyPEx.cpp \
368 common/string/RTStrNCmp.cpp \
369 common/string/RTStrNLen.cpp \
370 common/string/RTStrNLenEx.cpp \
371 common/string/RTStrPrintHexBytes.cpp \
372 common/string/RTStrStr.cpp \
373 common/string/base64.cpp \
374 common/string/simplepattern.cpp \
375 common/string/straprintf.cpp \
376 common/string/strformat.cpp \
377 common/string/strformatnum.cpp \
378 common/string/strformatrt.cpp \
379 common/string/strformattype.cpp \
380 common/string/stringalloc.cpp \
381 common/string/strprintf.cpp \
382 common/string/strspace.cpp \
383 common/string/strstrip.cpp \
384 common/string/strtonum.cpp \
385 common/string/strversion.cpp \
386 common/string/uni.cpp \
387 common/string/unidata.cpp \
388 common/string/utf-16.cpp \
389 common/string/utf-8.cpp \
390 common/string/utf-8-case.cpp \
391 common/string/ministring.cpp \
392 common/table/avlgcptr.cpp \
393 common/table/avlhcphys.cpp \
394 common/table/avlgcphys.cpp \
395 common/table/avllu32.cpp \
396 common/table/avlou32.cpp \
397 common/table/avlogcphys.cpp \
398 common/table/avlogcptr.cpp \
399 common/table/avlohcphys.cpp \
400 common/table/avloioport.cpp \
401 common/table/avlpv.cpp \
402 common/table/avlrgcptr.cpp \
403 common/table/avlrogcphys.cpp \
404 common/table/avlrogcptr.cpp \
405 common/table/avlroioport.cpp \
406 common/table/avlroogcptr.cpp \
407 common/table/avlrpv.cpp \
408 common/table/avlruintptr.cpp \
409 common/table/avlrfoff.cpp \
410 common/table/avlru64.cpp \
411 common/table/avlu32.cpp \
412 common/table/avluintptr.cpp \
413 common/table/avlul.cpp \
414 common/table/table.cpp \
415 common/time/time.cpp \
416 common/time/timeprog.cpp \
417 common/time/timesup.cpp \
418 common/vfs/vfsbase.cpp \
419 common/vfs/vfschain.cpp \
420 common/vfs/vfsiosmisc.cpp \
421 common/vfs/vfsmemory.cpp \
422 common/vfs/vfsmisc.cpp \
423 common/vfs/vfsstdfile.cpp \
424 common/zip/tar.cpp \
425 common/zip/tarcmd.cpp \
426 common/zip/tarvfs.cpp \
427 common/zip/gzipvfs.cpp \
428 common/zip/zip.cpp \
429 generic/critsect-generic.cpp \
430 generic/env-generic.cpp \
431 generic/RTDirCreateTemp-generic.cpp \
432 generic/RTDirCreateUniqueNumbered-generic.cpp \
433 generic/RTEnvDupEx-generic.cpp \
434 generic/RTFileCopy-generic.cpp \
435 generic/RTFileQuerySize-generic.cpp \
436 generic/RTFileReadAll-generic.cpp \
437 generic/RTFileReadAllEx-generic.cpp \
438 generic/RTFileReadAllByHandle-generic.cpp \
439 generic/RTFileReadAllByHandleEx-generic.cpp \
440 generic/RTFileReadAllFree-generic.cpp \
441 generic/RTLogWriteStdErr-generic.cpp \
442 generic/RTLogWriteStdOut-generic.cpp \
443 generic/RTLogWriteUser-generic.cpp \
444 generic/RTTimerLRCreate-generic.cpp \
445 generic/mempool-generic.cpp \
446 generic/semfastmutex-generic.cpp \
447 generic/semxroads-generic.cpp \
448 generic/spinlock-generic.cpp \
449 generic/strcache-stubs-generic.cpp \
450 generic/timerlr-generic.cpp \
451 r3/alloc-ef.cpp \
452 r3/alloc.cpp \
453 r3/dir.cpp \
454 r3/dir2.cpp \
455 r3/fileio.cpp \
456 r3/fs.cpp \
457 r3/init.cpp \
458 r3/isofs.cpp \
459 r3/path.cpp \
460 r3/process.cpp \
461 r3/socket.cpp \
462 r3/stream.cpp \
463 r3/test.cpp \
464 r3/testi.cpp \
465 r3/tcp.cpp \
466 r3/generic/semspinmutex-r3-generic.cpp
467
468#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
469# RuntimeR3_SOURCES += common/time/timesupA.asm
470#else
471 RuntimeR3_SOURCES += common/time/timesupref.cpp
472#endif
473
474RuntimeR3_SOURCES.x86 += \
475 generic/RTMpGetDescription-generic.cpp
476RuntimeR3_SOURCES.amd64 += \
477 generic/RTMpGetDescription-generic.cpp
478RuntimeR3_SOURCES.sparc32 += \
479 generic/RTMpGetDescription-generic-stub.cpp \
480 common/asm/asm-fake.cpp
481RuntimeR3_SOURCES.sparc64 += \
482 generic/RTMpGetDescription-generic-stub.cpp \
483 common/asm/asm-fake.cpp
484
485ifdef IPRT_WITH_LZJB
486 RuntimeR3_SOURCES += common/misc/lzjb.c
487endif
488
489# Some versions of GCC might require this.
490RuntimeR3_SOURCES.x86 += \
491 common/asm/ASMAtomicXchgU64.asm \
492 common/asm/ASMAtomicCmpXchgU64.asm \
493 common/asm/ASMAtomicCmpXchgExU64.asm \
494 common/asm/ASMAtomicReadU64.asm \
495 common/asm/ASMAtomicUoReadU64.asm
496
497ifdef IPRT_WITH_KSTUFF
498 RuntimeR3_SOURCES += \
499 common/ldr/ldrkStuff.cpp
500endif
501
502# VBox specific stuff.
503RuntimeR3_SOURCES += \
504 VBox/RTAssertShouldPanic-vbox.cpp \
505 VBox/log-vbox.cpp
506ifneq ($(KBUILD_TARGET),win)
507RuntimeR3_SOURCES += \
508 common/err/errmsgxpcom.cpp
509endif
510if1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd solaris)
511RuntimeR3_SOURCES += \
512 $(if $(VBOX_WITH_DBUS),VBox/dbus.cpp,)
513endif
514
515RuntimeR3_SOURCES.win = \
516 generic/RTDirExists-generic.cpp \
517 generic/RTDirQueryInfo-generic.cpp \
518 generic/RTDirSetTimes-generic.cpp \
519 generic/RTFileExists-generic.cpp \
520 generic/RTMpGetCurFrequency-generic.cpp \
521 generic/RTMpGetMaxFrequency-generic.cpp \
522 generic/RTRandAdvCreateSystemFaster-generic.cpp \
523 generic/RTRandAdvCreateSystemTruer-generic.cpp \
524 generic/RTSemEventWait-generic.cpp \
525 generic/RTSemEventMultiWait-2-ex-generic.cpp \
526 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
527 generic/RTSemMutexRequest-generic.cpp \
528 generic/RTSemMutexRequestDebug-generic.cpp \
529 generic/RTThreadSetAffinityToCpu-generic.cpp \
530 generic/mppresent-generic.cpp \
531 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
532 generic/uuid-generic.cpp \
533 generic/RTProcDaemonize-generic.cpp \
534 generic/RTProcIsRunningByName-generic.cpp \
535 generic/RTThreadGetNativeState-generic.cpp \
536 nt/RTErrConvertFromNtStatus.cpp \
537 r3/posix/env-posix.cpp \
538 r3/win/RTHandleGetStandard-win.cpp \
539 r3/win/RTSystemQueryOSInfo-win.cpp \
540 r3/win/RTSystemQueryDmiString-win.cpp \
541 r3/win/RTSystemQueryTotalRam-win.cpp \
542 r3/win/alloc-win.cpp \
543 r3/win/dir-win.cpp \
544 r3/win/fileio-win.cpp \
545 r3/win/fs-win.cpp \
546 r3/win/ldrNative-win.cpp \
547 r3/win/localipc-win.cpp \
548 r3/win/mp-win.cpp \
549 r3/win/path-win.cpp \
550 r3/win/pipe-win.cpp \
551 r3/win/poll-win.cpp \
552 r3/win/process-win.cpp \
553 r3/win/RTLogWriteDebugger-win.cpp \
554 r3/win/rtProcInitExePath-win.cpp \
555 r3/win/sched-win.cpp \
556 r3/win/semevent-win.cpp \
557 r3/win/semeventmulti-win.cpp \
558 r3/win/semmutex-win.cpp \
559 r3/win/symlink-win.cpp \
560 r3/win/rtFileNativeSetAttributes-win.cpp \
561 r3/win/thread-win.cpp \
562 r3/win/time-win.cpp \
563 r3/win/timer-win.cpp \
564 r3/win/tls-win.cpp \
565 r3/win/utf16locale-win.cpp \
566 r3/win/utf8-win.cpp \
567 r3/win/RTUuidCreate-win.cpp \
568 win/errmsgwin.cpp \
569 win/RTErrConvertFromWin32.cpp
570
571RuntimeR3_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
572RuntimeR3_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
573
574RuntimeR3_SOURCES.linux = \
575 generic/RTDirQueryInfo-generic.cpp \
576 generic/RTDirSetTimes-generic.cpp \
577 generic/RTFileMove-generic.cpp \
578 generic/RTLogWriteDebugger-generic.cpp \
579 generic/RTProcDaemonize-generic.cpp \
580 generic/RTSemEventMultiWait-2-ex-generic.cpp \
581 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
582 generic/RTTimeLocalNow-generic.cpp \
583 generic/RTTimerCreate-generic.cpp \
584 generic/RTThreadSetAffinityToCpu-generic.cpp \
585 generic/RTUuidCreate-generic.cpp \
586 generic/mppresent-generic.cpp \
587 generic/utf16locale-generic.cpp \
588 generic/uuid-generic.cpp \
589 r3/linux/RTThreadGetNativeState-linux.cpp \
590 r3/linux/mp-linux.cpp \
591 r3/linux/rtProcInitExePath-linux.cpp \
592 r3/linux/sched-linux.cpp \
593 r3/linux/sysfs.cpp \
594 r3/linux/time-linux.cpp \
595 r3/linux/thread-affinity-linux.cpp \
596 r3/linux/RTProcIsRunningByName-linux.cpp \
597 r3/linux/RTSystemQueryDmiString-linux.cpp \
598 r3/posix/RTFileQueryFsSizes-posix.cpp \
599 r3/posix/RTHandleGetStandard-posix.cpp \
600 r3/posix/RTMemProtect-posix.cpp \
601 r3/posix/RTPathUserHome-posix.cpp \
602 r3/posix/RTSystemQueryOSInfo-posix.cpp \
603 r3/posix/RTSystemQueryTotalRam-posix.cpp \
604 r3/posix/RTTimeNow-posix.cpp \
605 r3/posix/RTTimeSet-posix.cpp \
606 r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
607 r3/posix/dir-posix.cpp \
608 r3/posix/env-posix.cpp \
609 r3/posix/fileio-posix.cpp \
610 r3/posix/fileio2-posix.cpp \
611 r3/posix/filelock-posix.cpp \
612 r3/posix/fs-posix.cpp \
613 r3/posix/fs2-posix.cpp \
614 r3/posix/fs3-posix.cpp \
615 r3/posix/ldrNative-posix.cpp \
616 r3/posix/path-posix.cpp \
617 r3/posix/path2-posix.cpp \
618 r3/posix/pathhost-posix.cpp \
619 r3/posix/RTPathUserDocuments-posix.cpp \
620 r3/posix/pipe-posix.cpp \
621 r3/posix/poll-posix.cpp \
622 r3/posix/process-posix.cpp \
623 r3/posix/process-creation-posix.cpp \
624 r3/posix/rand-posix.cpp \
625 r3/posix/semrw-posix.cpp \
626 r3/posix/symlink-posix.cpp \
627 r3/posix/thread-posix.cpp \
628 r3/posix/timelocal-posix.cpp \
629 r3/posix/timer-posix.cpp \
630 r3/posix/tls-posix.cpp \
631 r3/posix/utf8-posix.cpp
632ifdef IPRT_WITH_FUTEX_BASED_SEMS
633 RuntimeR3_SOURCES.linux += \
634 r3/linux/semevent-linux.cpp \
635 r3/linux/semeventmulti-linux.cpp \
636 r3/linux/semmutex-linux.cpp
637else
638 RuntimeR3_SOURCES.linux.x86 += \
639 r3/posix/semevent-posix.cpp \
640 r3/posix/semeventmulti-posix.cpp \
641 r3/posix/semmutex-posix.cpp
642 RuntimeR3_SOURCES.linux.amd64 += \
643 r3/linux/semevent-linux.cpp \
644 r3/linux/semeventmulti-linux.cpp
645 ifdef RT_NEW_LINUX_MUTEX_CODE
646 RuntimeR3_SOURCES.linux.amd64 += \
647 r3/linux/semmutex-linux.cpp
648 else
649 RuntimeR3_SOURCES.linux.amd64 += \
650 r3/posix/semmutex-posix.cpp
651 endif
652endif
653
654RuntimeR3_SOURCES.os2 = \
655 generic/RTDirQueryInfo-generic.cpp \
656 generic/RTDirSetTimes-generic.cpp \
657 generic/RTFileMove-generic.cpp \
658 generic/RTLogWriteDebugger-generic.cpp \
659 generic/RTProcDaemonize-generic.cpp \
660 generic/RTRandAdvCreateSystemFaster-generic.cpp \
661 generic/RTRandAdvCreateSystemTruer-generic.cpp \
662 generic/RTSystemQueryDmiString-generic.cpp \
663 generic/RTTimeLocalNow-generic.cpp \
664 generic/RTTimerCreate-generic.cpp \
665 generic/RTThreadSetAffinityToCpu-generic.cpp \
666 generic/RTUuidCreate-generic.cpp \
667 generic/mppresent-generic.cpp \
668 generic/RTSemEventWait-generic.cpp \
669 generic/RTSemEventMultiWait-generic.cpp \
670 generic/RTSemMutexRequest-generic.cpp \
671 generic/RTSemMutexRequestDebug-generic.cpp \
672 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
673 generic/timer-generic.cpp \
674 generic/utf16locale-generic.cpp \
675 generic/uuid-generic.cpp \
676 generic/RTMpGetCurFrequency-generic.cpp \
677 generic/RTMpGetMaxFrequency-generic.cpp \
678 generic/RTProcIsRunningByName-generic.cpp \
679 generic/RTThreadGetNativeState-generic.cpp \
680 os2/RTErrConvertFromOS2.cpp \
681 r3/os2/filelock-os2.cpp \
682 r3/os2/mp-os2.cpp \
683 r3/os2/pipe-os2.cpp \
684 r3/os2/poll-os2.cpp \
685 r3/os2/rtProcInitExePath-os2.cpp \
686 r3/os2/sched-os2.cpp \
687 r3/os2/sems-os2.cpp \
688 r3/os2/thread-os2.cpp \
689 r3/os2/time-os2.cpp \
690 r3/posix/RTFileQueryFsSizes-posix.cpp \
691 r3/posix/RTHandleGetStandard-posix.cpp \
692 r3/posix/RTMemProtect-posix.cpp \
693 r3/posix/RTPathUserHome-posix.cpp \
694 r3/posix/RTSystemQueryOSInfo-posix.cpp \
695 r3/posix/RTTimeNow-posix.cpp \
696 r3/posix/RTTimeSet-posix.cpp \
697 r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
698 r3/posix/dir-posix.cpp \
699 r3/posix/env-posix.cpp \
700 r3/posix/fileio-posix.cpp \
701 r3/posix/fileio2-posix.cpp \
702 r3/posix/fs-posix.cpp \
703 r3/posix/fs2-posix.cpp \
704 r3/posix/fs3-posix.cpp \
705 r3/posix/ldrNative-posix.cpp \
706 r3/posix/path-posix.cpp \
707 r3/posix/path2-posix.cpp \
708 r3/posix/pathhost-posix.cpp \
709 r3/posix/RTPathUserDocuments-posix.cpp \
710 r3/posix/process-posix.cpp \
711 r3/posix/process-creation-posix.cpp \
712 r3/posix/symlink-posix.cpp \
713 r3/posix/timelocal-posix.cpp \
714 r3/posix/utf8-posix.cpp
715
716RuntimeR3_SOURCES.darwin = \
717 darwin/RTErrConvertFromDarwin.cpp \
718 darwin/RTErrConvertFromDarwinCOM.cpp \
719 darwin/RTErrConvertFromDarwinIO.cpp \
720 darwin/RTErrConvertFromDarwinKern.cpp \
721 generic/RTDirQueryInfo-generic.cpp \
722 generic/RTDirSetTimes-generic.cpp \
723 generic/RTFileMove-generic.cpp \
724 generic/RTLogWriteDebugger-generic.cpp \
725 generic/RTProcDaemonize-generic.cpp \
726 generic/RTThreadGetAffinity-stub-generic.cpp \
727 generic/RTThreadSetAffinity-stub-generic.cpp \
728 generic/RTThreadSetAffinityToCpu-generic.cpp \
729 generic/RTTimeLocalNow-generic.cpp \
730 generic/RTTimerCreate-generic.cpp \
731 generic/RTUuidCreate-generic.cpp \
732 generic/mppresent-generic.cpp \
733 generic/RTSemEventMultiWait-2-ex-generic.cpp \
734 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
735 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
736 generic/timer-generic.cpp \
737 generic/utf16locale-generic.cpp \
738 generic/uuid-generic.cpp\
739 generic/RTProcIsRunningByName-generic.cpp \
740 generic/RTThreadGetNativeState-generic.cpp \
741 r3/darwin/filelock-darwin.cpp \
742 r3/darwin/mp-darwin.cpp \
743 r3/darwin/pathhost-darwin.cpp \
744 r3/darwin/rtProcInitExePath-darwin.cpp \
745 r3/darwin/RTSystemQueryDmiString-darwin.cpp \
746 r3/darwin/sched-darwin.cpp \
747 r3/darwin/time-darwin.cpp \
748 r3/darwin/RTPathUserDocuments-darwin.cpp \
749 r3/posix/RTFileQueryFsSizes-posix.cpp \
750 r3/posix/RTHandleGetStandard-posix.cpp \
751 r3/posix/RTMemProtect-posix.cpp \
752 r3/posix/RTPathUserHome-posix.cpp \
753 r3/posix/RTSystemQueryOSInfo-posix.cpp \
754 r3/posix/RTSystemQueryTotalRam-posix.cpp \
755 r3/posix/RTTimeSet-posix.cpp \
756 r3/posix/dir-posix.cpp \
757 r3/posix/env-posix.cpp \
758 r3/posix/fileio-posix.cpp \
759 r3/posix/fileio2-posix.cpp \
760 r3/posix/fs-posix.cpp \
761 r3/posix/fs2-posix.cpp \
762 r3/posix/fs3-posix.cpp \
763 r3/posix/ldrNative-posix.cpp \
764 r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
765 r3/posix/path-posix.cpp \
766 r3/posix/path2-posix.cpp \
767 r3/posix/pipe-posix.cpp \
768 r3/posix/poll-posix.cpp \
769 r3/posix/process-posix.cpp \
770 r3/posix/process-creation-posix.cpp \
771 r3/posix/rand-posix.cpp \
772 r3/posix/semevent-posix.cpp \
773 r3/posix/semeventmulti-posix.cpp \
774 r3/posix/semmutex-posix.cpp \
775 r3/posix/symlink-posix.cpp \
776 r3/posix/thread-posix.cpp \
777 r3/posix/timelocal-posix.cpp \
778 r3/posix/tls-posix.cpp \
779 r3/posix/utf8-posix.cpp
780
781## @todo Make BSD sched, implement RTMP*.
782RuntimeR3_SOURCES.freebsd = \
783 generic/RTDirQueryInfo-generic.cpp \
784 generic/RTDirSetTimes-generic.cpp \
785 generic/RTFileMove-generic.cpp \
786 generic/RTLogWriteDebugger-generic.cpp \
787 generic/RTSemEventMultiWait-2-ex-generic.cpp \
788 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
789 generic/RTSystemQueryDmiString-generic.cpp \
790 generic/RTThreadGetAffinity-stub-generic.cpp \
791 generic/RTThreadSetAffinity-stub-generic.cpp \
792 generic/RTThreadSetAffinityToCpu-generic.cpp \
793 generic/RTTimeLocalNow-generic.cpp \
794 generic/RTTimerCreate-generic.cpp \
795 generic/RTUuidCreate-generic.cpp \
796 generic/mppresent-generic.cpp \
797 generic/sched-generic.cpp \
798 generic/utf16locale-generic.cpp \
799 generic/uuid-generic.cpp \
800 generic/RTMpCpuId-generic.cpp \
801 generic/RTProcDaemonize-generic.cpp \
802 generic/RTProcIsRunningByName-generic.cpp \
803 generic/RTThreadGetNativeState-generic.cpp \
804 r3/freebsd/mp-freebsd.cpp \
805 r3/freebsd/rtProcInitExePath-freebsd.cpp \
806 r3/posix/RTFileQueryFsSizes-posix.cpp \
807 r3/posix/RTHandleGetStandard-posix.cpp \
808 r3/posix/RTMemProtect-posix.cpp \
809 r3/posix/RTPathUserHome-posix.cpp \
810 r3/posix/RTSystemQueryOSInfo-posix.cpp \
811 r3/posix/RTSystemQueryTotalRam-posix.cpp \
812 r3/posix/RTTimeNow-posix.cpp \
813 r3/posix/RTTimeSet-posix.cpp \
814 r3/posix/dir-posix.cpp \
815 r3/posix/env-posix.cpp \
816 r3/posix/fileio-posix.cpp \
817 r3/posix/fileio2-posix.cpp \
818 r3/posix/filelock-posix.cpp \
819 r3/posix/fs-posix.cpp \
820 r3/posix/fs2-posix.cpp \
821 r3/posix/fs3-posix.cpp \
822 r3/posix/ldrNative-posix.cpp \
823 r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
824 r3/posix/path-posix.cpp \
825 r3/posix/path2-posix.cpp \
826 r3/posix/pathhost-posix.cpp \
827 r3/posix/RTPathUserDocuments-posix.cpp \
828 r3/posix/pipe-posix.cpp \
829 r3/posix/poll-posix.cpp \
830 r3/posix/process-posix.cpp \
831 r3/posix/process-creation-posix.cpp \
832 r3/posix/rand-posix.cpp \
833 r3/posix/semevent-posix.cpp \
834 r3/posix/semeventmulti-posix.cpp \
835 r3/posix/semmutex-posix.cpp \
836 r3/posix/semrw-posix.cpp \
837 r3/posix/symlink-posix.cpp \
838 r3/posix/thread-posix.cpp \
839 r3/posix/time-posix.cpp \
840 r3/posix/timelocal-posix.cpp \
841 r3/posix/timer-posix.cpp \
842 r3/posix/tls-posix.cpp \
843 r3/posix/utf8-posix.cpp
844
845RuntimeR3_SOURCES.solaris = \
846 generic/RTDirQueryInfo-generic.cpp \
847 generic/RTDirSetTimes-generic.cpp \
848 generic/RTFileMove-generic.cpp \
849 generic/RTLogWriteDebugger-generic.cpp \
850 generic/RTProcDaemonize-generic.cpp \
851 generic/RTProcIsRunningByName-generic.cpp \
852 generic/RTSemEventMultiWait-2-ex-generic.cpp \
853 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
854 generic/RTThreadSetAffinityToCpu-generic.cpp \
855 generic/RTTimeLocalNow-generic.cpp \
856 generic/RTTimerCreate-generic.cpp \
857 generic/RTUuidCreate-generic.cpp \
858 generic/sched-generic.cpp \
859 generic/utf16locale-generic.cpp \
860 generic/uuid-generic.cpp \
861 generic/RTThreadGetNativeState-generic.cpp \
862 r3/posix/RTFileQueryFsSizes-posix.cpp \
863 r3/posix/RTHandleGetStandard-posix.cpp \
864 r3/posix/RTMemProtect-posix.cpp \
865 r3/posix/RTPathUserHome-posix.cpp \
866 r3/posix/RTSystemQueryOSInfo-posix.cpp \
867 r3/posix/RTSystemQueryTotalRam-posix.cpp \
868 r3/posix/RTTimeNow-posix.cpp \
869 r3/posix/RTTimeSet-posix.cpp \
870 r3/posix/dir-posix.cpp \
871 r3/posix/env-posix.cpp \
872 r3/posix/fileio-posix.cpp \
873 r3/posix/fileio2-posix.cpp \
874 r3/posix/filelock-posix.cpp \
875 r3/posix/fs-posix.cpp \
876 r3/posix/fs2-posix.cpp \
877 r3/posix/fs3-posix.cpp \
878 r3/posix/ldrNative-posix.cpp \
879 r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
880 r3/posix/path-posix.cpp \
881 r3/posix/path2-posix.cpp \
882 r3/posix/pathhost-posix.cpp \
883 r3/posix/RTPathUserDocuments-posix.cpp \
884 r3/posix/pipe-posix.cpp \
885 r3/posix/poll-posix.cpp \
886 r3/posix/process-posix.cpp \
887 r3/posix/process-creation-posix.cpp \
888 r3/posix/rand-posix.cpp \
889 r3/posix/semevent-posix.cpp \
890 r3/posix/semeventmulti-posix.cpp \
891 r3/posix/semmutex-posix.cpp \
892 r3/posix/semrw-posix.cpp \
893 r3/posix/symlink-posix.cpp \
894 r3/posix/thread-posix.cpp \
895 r3/posix/time-posix.cpp \
896 r3/posix/timelocal-posix.cpp \
897 r3/posix/timer-posix.cpp \
898 r3/posix/tls-posix.cpp \
899 r3/posix/utf8-posix.cpp \
900 r3/solaris/mp-solaris.cpp \
901 r3/solaris/rtProcInitExePath-solaris.cpp \
902 r3/solaris/thread-affinity-solaris.cpp
903RuntimeR3_SOURCES.solaris.amd64 = \
904 r3/solaris/coredumper-solaris.cpp \
905 r3/solaris/RTSystemQueryDmiString-solaris.cpp
906RuntimeR3_SOURCES.solaris.x86 = \
907 r3/solaris/coredumper-solaris.cpp \
908 r3/solaris/RTSystemQueryDmiString-solaris.cpp
909RuntimeR3_SOURCES.solaris.sparc32 = \
910 generic/RTSystemQueryDmiString-generic.cpp
911RuntimeR3_SOURCES.solaris.sparc64 = \
912 generic/RTSystemQueryDmiString-generic.cpp
913
914## PORTME: Porters add their selection of platform specific files for Ring-3 here.
915
916
917#
918# L4 RuntimeR3 subtarget since L4 headers won't work with VBOXR3.
919#
920RuntimeR3L4_TEMPLATE = VBOXR3NP
921RuntimeR3L4_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF LDR_WITH_PE
922ifneq ($(KBUILD_TARGET_ARCH),amd64)
923RuntimeR3L4_DEFS += __PIC__
924endif
925RuntimeR3L4_INCS = \
926 include \
927 $(L4_INCDIR)
928
929RuntimeR3L4_SOURCES = \
930 generic/fs-stubs-generic.cpp \
931 generic/pathhost-generic.cpp \
932 generic/RTDirQueryInfo-generic.cpp \
933 generic/RTDirSetTimes-generic.cpp \
934 generic/RTFileMove-generic.cpp \
935 generic/RTLogWriteDebugger-generic.cpp \
936 generic/RTProcDaemonize-generic.cpp \
937 generic/RTSystemQueryOSInfo-generic.cpp \
938 generic/RTSystemQueryDmiString-generic.cpp \
939 generic/RTThreadGetAffinity-stub-generic.cpp \
940 generic/RTThreadSetAffinity-stub-generic.cpp \
941 generic/RTThreadSetAffinityToCpu-generic.cpp \
942 generic/RTTimeLocalNow-generic.cpp \
943 generic/RTUuidCreate-generic.cpp \
944 generic/mppresent-generic.cpp \
945 generic/sched-generic.cpp \
946 generic/RTSemEventWait-generic.cpp \
947 generic/RTSemEventMultiWait-generic.cpp \
948 generic/RTSemMutexRequest-generic.cpp \
949 generic/RTSemMutexRequestDebug-generic.cpp \
950 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
951 generic/utf16locale-generic.cpp \
952 generic/uuid-generic.cpp \
953 generic/RTProcIsRunningByName-generic.cpp \
954 generic/RTThreadGetNativeState-generic.cpp \
955 l4/l4-errno.cpp \
956 l4/rtProcInitExePath-l4.cpp \
957 l4/process-l4env.cpp \
958 l4/sems-l4env.cpp \
959 l4/thread-l4env.cpp \
960 l4/timer-l4env.cpp \
961 l4/utf8-l4env.cpp \
962 r3/posix/RTFileQueryFsSizes-posix.cpp \
963 r3/posix/RTMemProtect-posix.cpp \
964 r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
965 r3/posix/RTPathUserHome-posix.cpp \
966 r3/posix/RTTimeNow-posix.cpp \
967 r3/posix/RTTimeSet-posix.cpp \
968 r3/posix/dir-posix.cpp \
969 r3/posix/env-posix.cpp \
970 r3/posix/fileio-posix.cpp \
971 r3/posix/fileio2-posix.cpp \
972 r3/posix/filelock-posix.cpp \
973 r3/posix/ldrNative-posix.cpp \
974 r3/posix/path-posix.cpp \
975 r3/posix/path2-posix.cpp \
976 r3/posix/RTPathUserDocuments-posix.cpp \
977 r3/posix/rand-posix.cpp \
978 r3/posix/time-posix.cpp \
979 r3/posix/timelocal-posix.cpp
980
981
982#
983# RuntimeBldProg - Static Runtime for build programs.
984#
985# Note! This is a bit of hacky since kBuild doesn't support building libraries
986# for build programs.
987#
988RuntimeBldProg_TEMPLATE := VBOXBLDPROG
989RuntimeBldProg_EXTENDS := RuntimeR3
990RuntimeBldProg_BLD_TRG := $(KBUILD_HOST)
991RuntimeBldProg_BLD_TRG_ARCH := $(KBUILD_HOST_ARCH)
992RuntimeBldProg_BLD_TRG_CPU := $(KBUILD_HOST_CPU)
993
994
995#
996# RuntimeGuestR3 - Guest Additions Runtime (static/exe).
997# (The KBUILD_HOST inheritance here is for l4 cross building the linux
998# additions, while .x86 is for cross building x86 while targeting amd64.)
999#
1000RuntimeGuestR3_TEMPLATE := VBOXGUESTR3LIB
1001## @todo change this to EXTEND the RuntimeR3 target.
1002RuntimeGuestR3_SDKS.win := $(RuntimeR3_SDKS.win)
1003RuntimeGuestR3_DEFS := $(filter-out RTCRITSECT_STRICT RT_NO_GIP, $(RuntimeR3_DEFS))
1004RuntimeGuestR3_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
1005RuntimeGuestR3_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST))
1006RuntimeGuestR3_INCS := $(RuntimeR3_INCS)
1007RuntimeGuestR3_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
1008RuntimeGuestR3_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST))
1009RuntimeGuestR3_SOURCES := $(filter-out \
1010 common/time/timesupref.cpp \
1011 common/time/timesupA.asm \
1012 common/time/timesup.cpp \
1013 common/checksum/RTSha1Digest.cpp \
1014 common/checksum/sha% \
1015 generic/RTLogWriteUser-generic.cpp \
1016 , $(RuntimeR3_SOURCES))
1017RuntimeGuestR3_SOURCES += \
1018 common/time/timesysalias.cpp \
1019 VBox/logbackdoor.cpp
1020RuntimeGuestR3_SOURCES.$(KBUILD_TARGET) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
1021RuntimeGuestR3_SOURCES.$(KBUILD_HOST) := $(RuntimeR3_SOURCES.$(KBUILD_HOST))
1022RuntimeGuestR3_SOURCES.$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
1023RuntimeGuestR3_SOURCES.x86 := $(RuntimeR3_SOURCES.x86)
1024RuntimeGuestR3_SOURCES.amd64 := $(RuntimeR3_SOURCES.amd64)
1025RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
1026RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).x86 := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).x86)
1027RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).amd64:= $(RuntimeR3_SOURCES.$(KBUILD_TARGET).amd64)
1028RuntimeGuestR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH))
1029
1030
1031#
1032# RuntimeGuestR3-x86 - Same as RuntimeGuestR3, except that it's targeting x86.
1033#
1034RuntimeGuestR3-x86_EXTENDS := RuntimeGuestR3
1035RuntimeGuestR3-x86_BLD_TRG_ARCH := x86
1036
1037
1038#
1039# RuntimeGuestR3Shared - Guest Additions Runtime (static/dll).
1040#
1041RuntimeGuestR3Shared_TEMPLATE := VBOXGUESTR3DLL
1042RuntimeGuestR3Shared_EXTENDS := RuntimeGuestR3
1043RuntimeGuestR3Shared_INST = $(INST_ADDITIONS_LIB)
1044
1045
1046#
1047# RuntimeGuestR3Shared-x86 - Same as RuntimeGuestR3Shared, except that it's targeting x86.
1048#
1049RuntimeGuestR3Shared-x86_EXTENDS := RuntimeGuestR3Shared
1050RuntimeGuestR3Shared-x86_BLD_TRG_ARCH := x86
1051
1052
1053#
1054# RuntimeGuestR3Mini - Minimal Guest Additions Runtime which does not require
1055# initialization and can be linked into an .so. Intended
1056# for X11 drivers, GRADD and similar.
1057#
1058RuntimeGuestR3Mini_TEMPLATE := VBOXGUESTR3DLL
1059## @todo change this to EXTEND the RuntimeGuestR3 target.
1060RuntimeGuestR3Mini_INST := $(INST_ADDITIONS_LIB)
1061RuntimeGuestR3Mini_SDKS.win := $(RuntimeR3_SDKS.win)
1062RuntimeGuestR3Mini_DEFS := \
1063 $(filter-out RTCRITSECT_STRICT RT_NO_GIP RT_WITH_ICONV_CACHE, $(RuntimeR3_DEFS)) \
1064 RT_MINI
1065RuntimeGuestR3Mini_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
1066RuntimeGuestR3Mini_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST))
1067RuntimeGuestR3Mini_INCS := $(RuntimeR3_INCS)
1068RuntimeGuestR3Mini_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
1069RuntimeGuestR3Mini_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST))
1070RuntimeGuestR3Mini_SOURCES = \
1071 common/alloc/alloc.cpp \
1072 common/err/errmsg.cpp \
1073 common/err/RTErrConvertFromErrno.cpp \
1074 common/log/logformat.cpp \
1075 common/misc/RTAssertMsg1Weak.cpp \
1076 common/misc/RTAssertMsg2.cpp \
1077 common/misc/RTAssertMsg2Add.cpp \
1078 common/misc/RTAssertMsg2AddWeak.cpp \
1079 common/misc/RTAssertMsg2AddWeakV.cpp \
1080 common/misc/RTAssertMsg2Weak.cpp \
1081 common/misc/RTAssertMsg2WeakV.cpp \
1082 common/misc/assert.cpp \
1083 common/misc/buildconfig.cpp \
1084 common/misc/sanity-c.c \
1085 common/misc/sanity-cpp.cpp \
1086 common/path/rtPathVolumeSpecLen.cpp \
1087 common/path/RTPathAbsDup.cpp \
1088 common/path/RTPathAbsEx.cpp \
1089 common/path/RTPathAbsExDup.cpp \
1090 common/path/RTPathAppend.cpp \
1091 common/path/RTPathAppendEx.cpp \
1092 common/path/RTPathExt.cpp \
1093 common/path/RTPathFilename.cpp \
1094 common/path/RTPathHaveExt.cpp \
1095 common/path/RTPathHavePath.cpp \
1096 common/path/RTPathJoin.cpp \
1097 common/path/RTPathJoinA.cpp \
1098 common/path/RTPathParse.cpp \
1099 common/path/RTPathRealDup.cpp \
1100 common/path/RTPathStripExt.cpp \
1101 common/path/RTPathStripFilename.cpp \
1102 common/path/RTPathStripTrailingSlash.cpp \
1103 common/string/RTStrCat.cpp \
1104 common/string/RTStrCatEx.cpp \
1105 common/string/RTStrCatP.cpp \
1106 common/string/RTStrCatPEx.cpp \
1107 common/string/RTStrCmp.cpp \
1108 common/string/RTStrCopy.cpp \
1109 common/string/RTStrCopyEx.cpp \
1110 common/string/RTStrCopyP.cpp \
1111 common/string/RTStrCopyPEx.cpp \
1112 common/string/RTStrNCmp.cpp \
1113 common/string/RTStrNLen.cpp \
1114 common/string/RTStrNLenEx.cpp \
1115 common/string/RTStrStr.cpp \
1116 common/string/straprintf.cpp \
1117 common/string/strformat.cpp \
1118 common/string/strformatnum.cpp \
1119 common/string/strformatrt.cpp \
1120 common/string/strformattype.cpp \
1121 common/string/stringalloc.cpp \
1122 common/string/strprintf.cpp \
1123 common/string/strtonum.cpp \
1124 common/string/unidata.cpp \
1125 common/string/utf-8.cpp \
1126 common/string/utf-8-case.cpp \
1127 common/string/utf-16.cpp \
1128 common/table/avlpv.cpp \
1129 generic/critsect-generic.cpp \
1130 generic/pathhost-generic.cpp \
1131 generic/RTAssertShouldPanic-generic.cpp \
1132 r3/alloc.cpp \
1133 r3/alloc-ef.cpp \
1134 r3/fileio.cpp \
1135 r3/fs.cpp
1136RuntimeGuestR3Mini_SOURCES.freebsd = \
1137 r3/posix/RTMemProtect-posix.cpp \
1138 r3/posix/rtmempage-exec-mmap-posix.cpp \
1139 r3/posix/RTPathUserHome-posix.cpp \
1140 r3/posix/env-posix.cpp \
1141 r3/posix/fileio-posix.cpp \
1142 r3/posix/fileio2-posix.cpp \
1143 r3/posix/path-posix.cpp \
1144 r3/posix/path2-posix.cpp \
1145 r3/posix/utf8-posix.cpp \
1146 common/err/errmsgxpcom.cpp
1147RuntimeGuestR3Mini_SOURCES.linux = \
1148 r3/posix/RTMemProtect-posix.cpp \
1149 r3/posix/rtmempage-exec-mmap-posix.cpp \
1150 r3/posix/RTPathUserHome-posix.cpp \
1151 r3/posix/env-posix.cpp \
1152 r3/posix/fileio-posix.cpp \
1153 r3/posix/fileio2-posix.cpp \
1154 r3/posix/path-posix.cpp \
1155 r3/posix/path2-posix.cpp \
1156 r3/posix/utf8-posix.cpp \
1157 common/err/errmsgxpcom.cpp
1158RuntimeGuestR3Mini_SOURCES.solaris = \
1159 r3/posix/RTMemProtect-posix.cpp \
1160 r3/posix/rtmempage-exec-mmap-posix.cpp \
1161 r3/posix/RTPathUserHome-posix.cpp \
1162 r3/posix/env-posix.cpp \
1163 r3/posix/fileio-posix.cpp \
1164 r3/posix/fileio2-posix.cpp \
1165 r3/posix/path-posix.cpp \
1166 r3/posix/path2-posix.cpp \
1167 r3/posix/utf8-posix.cpp \
1168 common/err/errmsgxpcom.cpp
1169RuntimeGuestR3Mini_SOURCES.win = \
1170 r3/win/alloc-win.cpp \
1171 r3/win/fileio-win.cpp \
1172 r3/win/path-win.cpp \
1173 r3/win/utf8-win.cpp \
1174 win/errmsgwin.cpp \
1175 win/RTErrConvertFromWin32.cpp
1176
1177# VBox specific stuff.
1178RuntimeGuestR3Mini_SOURCES += \
1179 VBox/logbackdoor.cpp \
1180 VBox/logbackdoor-redirect.cpp
1181
1182
1183#
1184# RuntimeLnxHostR3 Linux host program runtime
1185# (Only used when building L4.)
1186#
1187RuntimeLnxHostR3_TEMPLATE = VBOXLNXHOSTR3LIB
1188RuntimeLnxHostR3_DEFS = IN_RT_R3 IN_SUP_R3 RT_WITH_VBOX RT_NO_GIP
1189RuntimeLnxHostR3_SOURCES = \
1190 $(RuntimeR3_SOURCES.linux.$(KBUILD_TARGET_ARCH)) \
1191 $(RuntimeR3_SOURCES.linux) \
1192 $(RuntimeR3_SOURCES)
1193RuntimeLnxHostR3_INCS = \
1194 $(RuntimeR3_INCS.linux.$(KBUILD_TARGET_ARCH)) \
1195 $(RuntimeR3_INCS.linux) \
1196 $(RuntimeR3_INCS)
1197
1198
1199#
1200# VBoxRT - Shared Object / DLL version.
1201#
1202VBoxRT_TEMPLATE = VBoxR3DllNoPic
1203VBoxRT_SDKS = VBOX_OPENSSL VBOX_LIBXML2 VBOX_BOOST
1204ifdef VBOX_WITH_LIBCURL
1205 VBoxRT_SDKS += VBOX_LIBCURL
1206endif
1207VBoxRT_SDKS.win = WINPSDK $(VBOX_WINDDK) VBOX_NTDLL
1208if1of ($(KBUILD_TARGET)$(VBOX_WITH_HARDENING), darwin win)
1209VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE)
1210endif
1211VBoxRT_DEFS = $(filter-out RT_NO_GIP,$(RuntimeR3_DEFS)) IN_SUP_R3 IN_SUP_R3
1212ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1213 VBoxRT_DEFS += RT_NO_GIP
1214endif
1215VBoxRT_DEFS.$(KBUILD_TYPE) = $(RuntimeR3_DEFS.$(KBUILD_TYPE))
1216VBoxRT_SOURCES = \
1217 VBox/VBoxRTDeps.cpp \
1218 r3/xml.cpp \
1219 $(filter-out common/checksum/crc32.cpp, $(RuntimeR3_SOURCES)) \
1220 common/checksum/crc32-zlib.cpp
1221ifdef VBOX_WITH_LIBCURL
1222 VBoxRT_SOURCES += common/misc/s3.cpp
1223endif
1224VBoxRT_SOURCES.$(KBUILD_TARGET) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
1225VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
1226VBoxRT_SOURCES.$(KBUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
1227VBoxRT_SOURCES.win += \
1228 r3/win/dllmain-win.cpp \
1229 r3/win/fileaio-win.cpp \
1230 $(VBoxRT_0_OUTDIR)/VBoxRT.def
1231VBoxRT_SOURCES.linux += \
1232 r3/linux/fileaio-linux.cpp
1233VBoxRT_SOURCES.solaris += \
1234 r3/solaris/fileaio-solaris.cpp
1235VBoxRT_SOURCES.darwin += \
1236 r3/posix/fileaio-posix.cpp
1237VBoxRT_SOURCES.freebsd += \
1238 r3/freebsd/fileaio-freebsd.cpp
1239VBoxRT_INCS = $(RuntimeR3_INCS)
1240VBoxRT_INCS.$(KBUILD_TARGET) = $(RuntimeR3_INCS.$(KBUILD_TARGET))
1241VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
1242VBoxRT_LIBS = \
1243 $(PATH_LIB)/VBox-liblzf$(VBOX_SUFF_LIB) \
1244 $(SDK_VBOX_ZLIB_LIBS)
1245if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1246VBoxRT_LIBS += \
1247 $(PATH_LIB)/SUPR3$(VBOX_SUFF_LIB)
1248endif
1249ifdef IPRT_WITH_KSTUFF
1250 VBoxRT_LIBS += \
1251 $(PATH_LIB)/VBox-kStuff$(VBOX_SUFF_LIB)
1252endif
1253ifndef SDK_VBOX_LIBXML2_LIBS
1254 VBoxRT_LIBS += \
1255 $(PATH_LIB)/VBox-libxml2$(VBOX_SUFF_LIB)
1256endif
1257ifndef SDK_VBOX_OPENSSL_LIBS
1258 VBoxRT_LIBS += \
1259 $(PATH_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB)
1260endif
1261ifdef IPRT_WITH_LZO
1262 VBoxRT_LIBS += lzo2
1263endif
1264VBoxRT_LIBS.linux = \
1265 crypt
1266VBoxRT_LIBS.darwin = \
1267 iconv
1268VBoxRT_LIBS.freebsd = \
1269 iconv \
1270 rt
1271VBoxRT_LIBS.solaris = \
1272 kstat \
1273 contract
1274ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)
1275 # SMBIOS not available on Solaris SPARC.
1276 VBoxRT_LIBS.solaris += smbios
1277endif
1278VBoxRT_LIBS.win = \
1279 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/vccomsup.lib \
1280 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/wbemuuid.lib
1281VBoxRT_LDFLAGS.darwin = -framework IOKit -framework CoreFoundation -framework CoreServices -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxRT.dylib
1282ifdef VBOX_USE_VCC80
1283VBoxRT_LDFLAGS.win = /MANIFEST
1284endif
1285VBoxRT_LDFLAGS.l4 = \
1286 -Wl,-whole-archive \
1287 $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB) \
1288 -Wl,-no-whole-archive
1289ifeq ($(KBUILD_TARGET),l4)
1290VBoxRT_LIBS += \
1291 $(L4_LIBDIR)/libl4sys.a \
1292 $(L4_LIBDIR)/libl4sys.p.a
1293endif
1294VBoxRT_LIBS.l4 = \
1295 $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB)
1296
1297if1of ($(DLLS), VBoxRT)
1298$$(VBoxRT_0_OUTDIR)/VBoxRT.def: \
1299 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-$$(if-expr $$(KBUILD_TARGET_ARCH) == amd64,win64,win32).def \
1300 $(PATH_SUB_CURRENT)/r3/win/$(if $(VBOX_OSE),VBoxRT-openssl-ose.def,VBoxRT-openssl.def)
1301 $(RM) -f -- $@
1302 $(REDIRECT) -wto $@ -- $(CAT_EXT) $^
1303endif
1304
1305
1306#
1307# HACK ALERT! Make testcase run during build on SELinux boxes.
1308# Create a dummy DLL that ensure that VBoxRT is installed
1309# during the DLL pass and cleaned up later.
1310#
1311ifeq ($(KBUILD_TARGET),linux)
1312 if1of (VBoxRT, $(DLLS))
1313 ifneq ($(wildcard /usr/bin/chcon),)
1314VBoxRT_NOINST = true
1315
1316DLLS += VBoxRTDummy
1317VBoxRTDummy_TEMPLATE = VBOXR3
1318VBoxRTDummy_NOINST = true
1319VBoxRTDummy_LIBS = $(PATH_BIN)/VBoxRT.so
1320VBoxRTDummy_CLEAN= $(PATH_BIN)/VBoxRT.so
1321BLDDIRS += $(PATH_BIN)
1322
1323$(PATH_BIN)/VBoxRT.so: $$(VBoxRT_1_TARGET) | $$(dir $$@)
1324 $(INSTALL) $< $@
1325 chcon -t texrel_shlib_t $@ || true
1326
1327VBoxRT:: VBoxRTDummy
1328 endif # chcon present.
1329 endif # building VBoxRT
1330endif # linux
1331
1332
1333#
1334# VBoxRTImp - Import library/hack.
1335#
1336ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
1337$(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def r3/win/VBoxRT-openssl-ose.def r3/win/VBoxRT-win64.def)
1338else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
1339$(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def r3/win/VBoxRT-openssl-ose.def r3/win/VBoxRT-win32.def)
1340else
1341$(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def r3/win/VBoxRT-openssl-ose.def)
1342endif
1343
1344
1345#
1346# RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
1347# This is used together with VBoxRT.
1348#
1349## @todo the *_alias.c stuff is busted, remove and use RT_WITH_NOCRT_ALIASES instead.
1350RuntimeR3NoCRTGCC_TEMPLATE = VBOXNOCRTGCC
1351RuntimeR3NoCRTGCC_LIBSUFF = $(VBOX_SUFF_LIB)
1352ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1353 RuntimeR3NoCRTGCC_DEFS += RT_NO_GIP
1354endif
1355RuntimeR3NoCRTGCC_INCS = include
1356RuntimeR3NoCRTGCC_SOURCES = \
1357 common/misc/sanity-cpp.cpp \
1358 common/misc/sanity-c.c \
1359 \
1360 $(RuntimeNoCrt_SOURCES)
1361
1362if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1363RuntimeR3NoCRTGCC_SOURCES += \
1364 common/math/ceill.asm \
1365 common/math/cosl.asm \
1366 common/math/fabs.asm \
1367 common/math/fabsf.asm \
1368 common/math/fabsl.asm \
1369 common/math/floor.asm \
1370 common/math/floorf.asm \
1371 common/math/floorl.asm \
1372 common/math/ldexpl.asm \
1373 common/math/llrint.asm \
1374 common/math/llrintf.asm \
1375 common/math/llrintl.asm \
1376 common/math/logl.asm \
1377 common/math/lrint.asm \
1378 common/math/lrintf.asm \
1379 common/math/lrintl.asm \
1380 common/math/remainder.asm \
1381 common/math/remainderf.asm \
1382 common/math/remainderl.asm \
1383 common/math/sinl.asm \
1384 common/math/tanl.asm \
1385 common/math/trunc.asm \
1386 common/math/truncf.asm \
1387 common/math/truncl.asm \
1388 \
1389 common/string/memchr_alias.c \
1390 common/string/memcmp_alias.c \
1391 common/string/memcpy_alias.c \
1392 common/string/memmove_alias.c \
1393 common/string/memset_alias.c \
1394 common/string/strchr_alias.c \
1395 common/string/strcmp_alias.c \
1396 common/string/strlen_alias.c
1397endif
1398
1399RuntimeR3NoCRTGCC_SOURCES.x86 = \
1400 common/math/x86/fenv-x86.c \
1401 common/math/gcc/adddi3.c \
1402 common/math/gcc/anddi3.c \
1403 common/math/gcc/ashldi3.c \
1404 common/math/gcc/ashrdi3.c \
1405 common/math/gcc/cmpdi2.c \
1406 common/math/gcc/divdi3.c \
1407 common/math/gcc/iordi3.c \
1408 common/math/gcc/lshldi3.c \
1409 common/math/gcc/lshrdi3.c \
1410 common/math/gcc/moddi3.c \
1411 common/math/gcc/muldi3.c \
1412 common/math/gcc/negdi2.c \
1413 common/math/gcc/notdi2.c \
1414 common/math/gcc/qdivrem.c \
1415 common/math/gcc/subdi3.c \
1416 common/math/gcc/ucmpdi2.c \
1417 common/math/gcc/udivdi3.c \
1418 common/math/gcc/umoddi3.c \
1419 common/math/gcc/xordi3.c
1420
1421
1422## @todo stop using the old memcpy.c and memset.c code.
1423
1424#
1425# RuntimeR0 - Ring-0 library for VMMR0.
1426#
1427RuntimeR0_TEMPLATE = VBoxR0
1428RuntimeR0_DEFS = IN_RT_R0 RT_WITH_VBOX
1429ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1430 RuntimeR0_DEFS += RT_NO_GIP
1431endif
1432RuntimeR0_INCS = include
1433RuntimeR0_SOURCES = \
1434 common/log/logellipsis.cpp \
1435 common/log/logrelellipsis.cpp \
1436 common/log/logcom.cpp \
1437 common/log/logformat.cpp \
1438 common/misc/RTAssertMsg1Weak.cpp \
1439 common/misc/RTAssertMsg2.cpp \
1440 common/misc/RTAssertMsg2Add.cpp \
1441 common/misc/RTAssertMsg2AddWeak.cpp \
1442 common/misc/RTAssertMsg2AddWeakV.cpp \
1443 common/misc/RTAssertMsg2Weak.cpp \
1444 common/misc/RTAssertMsg2WeakV.cpp \
1445 common/misc/buildconfig.cpp \
1446 common/misc/once.cpp \
1447 common/misc/sanity-c.c \
1448 common/misc/sanity-cpp.cpp \
1449 common/misc/term.cpp \
1450 common/string/strncmp.cpp \
1451 common/string/strpbrk.cpp \
1452 common/string/RTStrCat.cpp \
1453 common/string/RTStrCatEx.cpp \
1454 common/string/RTStrCatP.cpp \
1455 common/string/RTStrCatPEx.cpp \
1456 common/string/RTStrCopy.cpp \
1457 common/string/RTStrCopyEx.cpp \
1458 common/string/RTStrCopyP.cpp \
1459 common/string/RTStrCopyPEx.cpp \
1460 common/string/RTStrNLen.cpp \
1461 common/string/RTStrNLenEx.cpp \
1462 common/table/avlgcptr.cpp \
1463 common/table/avlhcphys.cpp \
1464 common/table/avllu32.cpp \
1465 common/table/avlogcphys.cpp \
1466 common/table/avlogcptr.cpp \
1467 common/table/avlohcphys.cpp \
1468 common/table/avloioport.cpp \
1469 common/table/avlpv.cpp \
1470 common/table/avlrogcphys.cpp \
1471 common/table/avlrogcptr.cpp \
1472 common/table/avlroioport.cpp \
1473 common/table/avlroogcptr.cpp \
1474 common/table/avlu32.cpp \
1475 common/table/avlou32.cpp \
1476 common/time/timesup.cpp \
1477 generic/RTAssertShouldPanic-generic.cpp \
1478 \
1479 $(RuntimeNoCrt_SOURCES)
1480
1481if1of ($(KBUILD_TARGET), darwin solaris freebsd)
1482RuntimeR0_SOURCES += \
1483 common/math/gcc/adddi3.c \
1484 common/math/gcc/anddi3.c \
1485 common/math/gcc/ashldi3.c \
1486 common/math/gcc/ashrdi3.c \
1487 common/math/gcc/cmpdi2.c \
1488 common/math/gcc/divdi3.c \
1489 common/math/gcc/iordi3.c \
1490 common/math/gcc/lshldi3.c \
1491 common/math/gcc/lshrdi3.c \
1492 common/math/gcc/moddi3.c \
1493 common/math/gcc/muldi3.c \
1494 common/math/gcc/negdi2.c \
1495 common/math/gcc/notdi2.c \
1496 common/math/gcc/qdivrem.c \
1497 common/math/gcc/subdi3.c \
1498 common/math/gcc/ucmpdi2.c \
1499 common/math/gcc/udivdi3.c \
1500 common/math/gcc/umoddi3.c \
1501 common/math/gcc/xordi3.c
1502endif
1503
1504#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
1505# RuntimeR0_SOURCES += common/time/timesupA.asm
1506#else
1507 RuntimeR0_SOURCES += common/time/timesupref.cpp
1508#endif
1509
1510RuntimeR0_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
1511RuntimeR0_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
1512RuntimeR0_SOURCES.win = \
1513 nt/NtProcessStartup-stub.cpp
1514
1515RuntimeR0_SOURCES.os2 = \
1516 os2/sys0.asm
1517
1518
1519#
1520# RuntimeR0Stub - Ring-0 context startup stub for Windows.
1521#
1522RuntimeR0Stub_TEMPLATE = VBoxR0
1523RuntimeR0Stub_SOURCES.win = \
1524 nt/NtProcessStartup-stub.cpp
1525
1526
1527#
1528# RuntimeR0Drv - Ring-0 library for host drivers.
1529#
1530RuntimeR0Drv_TEMPLATE = VBOXR0DRV
1531RuntimeR0Drv_SDKS.win = $(VBOX_WINDDK) WINPSDKINCS
1532RuntimeR0Drv_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS RT_NO_EXPORT_SYMBOL
1533RuntimeR0Drv_DEFS.win = IN_SUP_R0
1534RuntimeR0Drv_DEFS.linux = MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) IN_SUP_R0
1535
1536RuntimeR0Drv_INCS := $(PATH_SUB_CURRENT) include
1537RuntimeR0Drv_INCS.freebsd = \
1538 $(PATH_INS)/gen-sys-hdrs
1539RuntimeR0Drv_INCS.linux = \
1540 r0drv/linux
1541RuntimeR0Drv_INCS.solaris = \
1542 r0drv/solaris/vbi/i86pc \
1543 r0drv/solaris/vbi/i86pc/sys
1544
1545RuntimeR0Drv_SOURCES = \
1546 common/alloc/alloc.cpp \
1547 common/alloc/heapsimple.cpp \
1548 common/alloc/heapoffset.cpp \
1549 common/checksum/crc32.cpp \
1550 common/checksum/crc64.cpp \
1551 common/checksum/md5.cpp \
1552 common/checksum/ipv4.cpp \
1553 common/checksum/ipv6.cpp \
1554 common/log/log.cpp \
1555 common/log/logellipsis.cpp \
1556 common/log/logrel.cpp \
1557 common/log/logrelellipsis.cpp \
1558 common/log/logcom.cpp \
1559 common/log/logformat.cpp \
1560 common/misc/RTAssertMsg1Weak.cpp \
1561 common/misc/RTAssertMsg2.cpp \
1562 common/misc/RTAssertMsg2Add.cpp \
1563 common/misc/RTAssertMsg2AddWeak.cpp \
1564 common/misc/RTAssertMsg2AddWeakV.cpp \
1565 common/misc/RTAssertMsg2Weak.cpp \
1566 common/misc/RTAssertMsg2WeakV.cpp \
1567 common/misc/assert.cpp \
1568 common/misc/buildconfig.cpp \
1569 common/misc/handletable.cpp \
1570 common/misc/handletablectx.cpp \
1571 common/misc/handletablesimple.cpp \
1572 common/misc/once.cpp \
1573 common/misc/sanity-c.c \
1574 common/misc/sanity-cpp.cpp \
1575 common/misc/term.cpp \
1576 common/path/rtPathVolumeSpecLen.cpp \
1577 common/path/RTPathAbsDup.cpp \
1578 common/path/RTPathAbsEx.cpp \
1579 common/path/RTPathAbsExDup.cpp \
1580 common/path/RTPathAppend.cpp \
1581 common/path/RTPathAppendEx.cpp \
1582 common/path/RTPathExt.cpp \
1583 common/path/RTPathFilename.cpp \
1584 common/path/RTPathHaveExt.cpp \
1585 common/path/RTPathHavePath.cpp \
1586 common/path/RTPathParse.cpp \
1587 common/path/RTPathRealDup.cpp \
1588 common/path/RTPathStripExt.cpp \
1589 common/path/RTPathStripFilename.cpp \
1590 common/path/RTPathStripTrailingSlash.cpp \
1591 common/rand/rand.cpp \
1592 common/rand/randadv.cpp \
1593 common/rand/randparkmiller.cpp \
1594 common/string/RTStrCat.cpp \
1595 common/string/RTStrCatEx.cpp \
1596 common/string/RTStrCatP.cpp \
1597 common/string/RTStrCatPEx.cpp \
1598 common/string/RTStrCmp.cpp \
1599 common/string/RTStrCopy.cpp \
1600 common/string/RTStrCopyEx.cpp \
1601 common/string/RTStrCopyP.cpp \
1602 common/string/RTStrCopyPEx.cpp \
1603 common/string/RTStrNCmp.cpp \
1604 common/string/RTStrNLen.cpp \
1605 common/string/RTStrNLenEx.cpp \
1606 common/string/strformat.cpp \
1607 common/string/strformatnum.cpp \
1608 common/string/strformatrt.cpp \
1609 common/string/strformattype.cpp \
1610 common/string/strprintf.cpp \
1611 common/string/strtonum.cpp \
1612 common/string/stringalloc.cpp \
1613 common/string/utf-16.cpp \
1614 common/string/utf-8.cpp \
1615 common/table/avlpv.cpp \
1616 common/time/time.cpp \
1617 generic/RTLogWriteStdErr-stub-generic.cpp \
1618 generic/RTLogWriteUser-generic.cpp \
1619 generic/RTMpGetArraySize-generic.cpp \
1620 generic/RTRandAdvCreateSystemFaster-generic.cpp \
1621 generic/RTSemEventWait-2-ex-generic.cpp \
1622 generic/RTSemEventWaitNoResume-2-ex-generic.cpp \
1623 generic/RTSemEventMultiWait-2-ex-generic.cpp \
1624 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1625 generic/uuid-generic.cpp \
1626 r0drv/alloc-r0drv.cpp \
1627 r0drv/initterm-r0drv.cpp \
1628 r0drv/generic/semspinmutex-r0drv-generic.c \
1629 VBox/log-vbox.cpp \
1630
1631RuntimeR0Drv_SOURCES.linux = \
1632 common/misc/thread.cpp \
1633 common/string/strpbrk.cpp \
1634 common/err/RTErrConvertToErrno.cpp \
1635 common/err/RTErrConvertFromErrno.cpp \
1636 generic/RTAssertShouldPanic-generic.cpp \
1637 generic/RTLogWriteStdOut-stub-generic.cpp \
1638 generic/mppresent-generic.cpp \
1639 r0drv/linux/alloc-r0drv-linux.c \
1640 r0drv/linux/assert-r0drv-linux.c \
1641 r0drv/linux/initterm-r0drv-linux.c \
1642 r0drv/linux/memobj-r0drv-linux.c \
1643 r0drv/linux/memuserkernel-r0drv-linux.c \
1644 r0drv/linux/mp-r0drv-linux.c \
1645 r0drv/linux/mpnotification-r0drv-linux.c \
1646 r0drv/linux/process-r0drv-linux.c \
1647 r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \
1648 r0drv/linux/semevent-r0drv-linux.c \
1649 r0drv/linux/semeventmulti-r0drv-linux.c \
1650 r0drv/linux/semfastmutex-r0drv-linux.c \
1651 r0drv/linux/semmutex-r0drv-linux.c \
1652 r0drv/linux/spinlock-r0drv-linux.c \
1653 r0drv/linux/thread-r0drv-linux.c \
1654 r0drv/linux/thread2-r0drv-linux.c \
1655 r0drv/linux/time-r0drv-linux.c \
1656 r0drv/linux/timer-r0drv-linux.c \
1657 r0drv/memobj-r0drv.cpp \
1658 r0drv/mpnotification-r0drv.c \
1659 r0drv/powernotification-r0drv.c
1660
1661RuntimeR0Drv_SOURCES.win = \
1662 common/misc/thread.cpp \
1663 common/string/memcmp.asm \
1664 common/string/memchr.asm \
1665 common/string/memcpy.asm \
1666 common/string/memset.asm \
1667 common/string/memmove.asm \
1668 common/string/strlen.asm \
1669 common/string/strncmp.cpp \
1670 common/string/strpbrk.cpp \
1671 generic/RTAssertShouldPanic-generic.cpp \
1672 generic/RTLogWriteStdOut-stub-generic.cpp \
1673 generic/RTTimerCreate-generic.cpp \
1674 generic/mppresent-generic.cpp \
1675 nt/RTErrConvertFromNtStatus.cpp \
1676 r0drv/memobj-r0drv.cpp \
1677 r0drv/mpnotification-r0drv.c \
1678 r0drv/powernotification-r0drv.c \
1679 r0drv/nt/alloc-r0drv-nt.cpp \
1680 r0drv/nt/assert-r0drv-nt.cpp \
1681 r0drv/nt/initterm-r0drv-nt.cpp \
1682 r0drv/nt/memobj-r0drv-nt.cpp \
1683 r0drv/nt/memuserkernel-r0drv-nt.cpp \
1684 r0drv/nt/mp-r0drv-nt.cpp \
1685 r0drv/nt/mpnotification-r0drv-nt.cpp \
1686 r0drv/nt/process-r0drv-nt.cpp \
1687 r0drv/nt/RTLogWriteDebugger-r0drv-nt.cpp \
1688 r0drv/nt/semevent-r0drv-nt.cpp \
1689 r0drv/nt/semeventmulti-r0drv-nt.cpp \
1690 r0drv/nt/semfastmutex-r0drv-nt.cpp \
1691 r0drv/nt/semmutex-r0drv-nt.cpp \
1692 r0drv/nt/spinlock-r0drv-nt.cpp \
1693 r0drv/nt/thread-r0drv-nt.cpp \
1694 r0drv/nt/thread2-r0drv-nt.cpp \
1695 r0drv/nt/time-r0drv-nt.cpp \
1696 r0drv/nt/timer-r0drv-nt.cpp \
1697 r0drv/nt/RTTimerGetSystemGranularity-r0drv-nt.cpp
1698
1699RuntimeR0Drv_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
1700RuntimeR0Drv_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
1701
1702RuntimeR0Drv_SOURCES.darwin = \
1703 common/err/RTErrConvertFromErrno.cpp \
1704 common/misc/thread.cpp \
1705 common/string/memchr.asm \
1706 common/string/strpbrk.cpp \
1707 darwin/RTErrConvertFromDarwin.cpp \
1708 darwin/RTErrConvertFromDarwinIO.cpp \
1709 darwin/RTErrConvertFromDarwinKern.cpp \
1710 generic/RTAssertShouldPanic-generic.cpp \
1711 generic/RTTimerCreate-generic.cpp \
1712 generic/mppresent-generic.cpp \
1713 generic/timer-generic.cpp \
1714 r0drv/generic/mpnotification-r0drv-generic.cpp \
1715 r0drv/darwin/alloc-r0drv-darwin.cpp \
1716 r0drv/darwin/assert-r0drv-darwin.cpp \
1717 r0drv/darwin/initterm-r0drv-darwin.cpp \
1718 r0drv/darwin/memobj-r0drv-darwin.cpp \
1719 r0drv/darwin/mp-r0drv-darwin.cpp \
1720 r0drv/darwin/memuserkernel-r0drv-darwin.cpp \
1721 r0drv/darwin/process-r0drv-darwin.cpp \
1722 r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
1723 r0drv/darwin/RTLogWriteStdOut-r0drv-darwin.cpp \
1724 r0drv/darwin/semevent-r0drv-darwin.cpp \
1725 r0drv/darwin/semeventmulti-r0drv-darwin.cpp \
1726 r0drv/darwin/semfastmutex-r0drv-darwin.cpp \
1727 r0drv/darwin/semmutex-r0drv-darwin.cpp \
1728 r0drv/darwin/spinlock-r0drv-darwin.cpp \
1729 r0drv/darwin/thread-r0drv-darwin.cpp \
1730 r0drv/darwin/thread2-r0drv-darwin.cpp \
1731 r0drv/darwin/threadpreempt-r0drv-darwin.cpp \
1732 r0drv/darwin/time-r0drv-darwin.cpp \
1733 r0drv/memobj-r0drv.cpp \
1734 r0drv/powernotification-r0drv.c
1735
1736RuntimeR0Drv_SOURCES.os2 = \
1737 common/string/memchr.asm \
1738 common/string/memcmp.asm \
1739 common/string/memcpy.asm \
1740 common/string/mempcpy.asm \
1741 common/string/memmove.asm \
1742 common/string/memset.asm \
1743 common/string/strchr.asm \
1744 common/string/strcmp.asm \
1745 common/string/strcpy.asm \
1746 common/string/strlen.asm \
1747 \
1748 common/string/strncmp.cpp \
1749 common/string/strpbrk.cpp \
1750 \
1751 common/misc/thread.cpp \
1752 generic/RTAssertShouldPanic-generic.cpp \
1753 generic/RTLogWriteDebugger-generic.cpp \
1754 generic/RTLogWriteStdOut-stub-generic.cpp \
1755 generic/RTMpCpuId-generic.cpp \
1756 generic/RTMpCpuIdFromSetIndex-generic.cpp \
1757 generic/RTMpCpuIdToSetIndex-generic.cpp \
1758 generic/RTMpIsCpuPossible-generic.cpp \
1759 generic/RTMpGetCount-generic.cpp \
1760 generic/RTMpGetMaxCpuId-generic.cpp \
1761 generic/RTMpGetOnlineCount-generic.cpp \
1762 generic/RTMpGetOnlineSet-generic.cpp \
1763 generic/RTMpGetSet-generic.cpp \
1764 generic/RTMpIsCpuOnline-generic.cpp \
1765 generic/RTTimerCreate-generic.cpp \
1766 generic/mppresent-generic.cpp \
1767 os2/RTErrConvertFromOS2.cpp \
1768 os2/sys0.asm \
1769 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
1770 r0drv/generic/RTMpOn-r0drv-generic.cpp \
1771 r0drv/generic/mpnotification-r0drv-generic.cpp \
1772 r0drv/memobj-r0drv.cpp \
1773 r0drv/powernotification-r0drv.c \
1774 r0drv/os2/alloc-r0drv-os2.cpp \
1775 r0drv/os2/assert-r0drv-os2.cpp \
1776 r0drv/os2/assertA-r0drv-os2.asm \
1777 r0drv/os2/initterm-r0drv-os2.cpp \
1778 r0drv/os2/memobj-r0drv-os2.cpp \
1779 r0drv/os2/memuserkernel-r0drv-os2.cpp \
1780 r0drv/os2/os2imports.imp \
1781 r0drv/os2/process-r0drv-os2.cpp \
1782 r0drv/os2/RTR0AssertPanicSystem-r0drv-os2.asm \
1783 r0drv/os2/RTR0Os2DHQueryDOSVar.asm \
1784 r0drv/os2/RTR0Os2DHVMGlobalToProcess.asm \
1785 r0drv/os2/semevent-r0drv-os2.cpp \
1786 r0drv/os2/semeventmulti-r0drv-os2.cpp \
1787 r0drv/os2/semfastmutex-r0drv-os2.cpp \
1788 r0drv/os2/spinlock-r0drv-os2.cpp \
1789 r0drv/os2/thread-r0drv-os2.cpp \
1790 r0drv/os2/thread2-r0drv-os2.cpp \
1791 r0drv/os2/time-r0drv-os2.cpp \
1792 r0drv/os2/timer-r0drv-os2.cpp \
1793 r0drv/os2/timerA-r0drv-os2.asm
1794
1795RuntimeR0Drv_SOURCES.freebsd = \
1796 common/err/RTErrConvertFromErrno.cpp \
1797 common/err/RTErrConvertToErrno.cpp \
1798 common/misc/thread.cpp \
1799 common/string/memchr.asm \
1800 common/string/memmove.asm \
1801 common/string/strpbrk.cpp \
1802 common/string/memcmp.asm \
1803 common/string/strchr.asm \
1804 generic/RTAssertShouldPanic-generic.cpp \
1805 generic/RTLogWriteDebugger-generic.cpp \
1806 generic/RTLogWriteStdOut-stub-generic.cpp \
1807 generic/RTTimerCreate-generic.cpp \
1808 generic/mppresent-generic.cpp \
1809 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
1810 r0drv/generic/mpnotification-r0drv-generic.cpp \
1811 r0drv/freebsd/alloc-r0drv-freebsd.c \
1812 r0drv/freebsd/assert-r0drv-freebsd.c \
1813 r0drv/freebsd/initterm-r0drv-freebsd.c \
1814 r0drv/freebsd/memobj-r0drv-freebsd.c \
1815 r0drv/freebsd/memuserkernel-r0drv-freebsd.c \
1816 r0drv/freebsd/process-r0drv-freebsd.c \
1817 r0drv/freebsd/semevent-r0drv-freebsd.c \
1818 r0drv/freebsd/semeventmulti-r0drv-freebsd.c \
1819 r0drv/freebsd/semfastmutex-r0drv-freebsd.c \
1820 r0drv/freebsd/semmutex-r0drv-freebsd.c \
1821 r0drv/freebsd/spinlock-r0drv-freebsd.c \
1822 r0drv/freebsd/thread-r0drv-freebsd.c \
1823 r0drv/freebsd/thread2-r0drv-freebsd.c \
1824 r0drv/freebsd/time-r0drv-freebsd.c \
1825 r0drv/freebsd/mp-r0drv-freebsd.c \
1826 generic/timer-generic.cpp \
1827 r0drv/memobj-r0drv.cpp \
1828 r0drv/powernotification-r0drv.c
1829
1830RuntimeR0Drv_SOURCES.solaris = \
1831 common/err/RTErrConvertFromErrno.cpp \
1832 common/err/RTErrConvertToErrno.cpp \
1833 common/misc/thread.cpp \
1834 common/string/memchr.asm \
1835 generic/RTAssertShouldPanic-generic.cpp \
1836 generic/RTLogWriteStdOut-stub-generic.cpp \
1837 generic/RTTimerCreate-generic.cpp \
1838 generic/mppresent-generic.cpp \
1839 r0drv/memobj-r0drv.cpp \
1840 r0drv/mpnotification-r0drv.c \
1841 r0drv/powernotification-r0drv.c \
1842 r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \
1843 r0drv/solaris/assert-r0drv-solaris.c \
1844 r0drv/solaris/initterm-r0drv-solaris.c \
1845 r0drv/solaris/memuserkernel-r0drv-solaris.c \
1846 r0drv/solaris/semevent-r0drv-solaris.c \
1847 r0drv/solaris/semeventmulti-r0drv-solaris.c \
1848 r0drv/solaris/semfastmutex-r0drv-solaris.c \
1849 r0drv/solaris/semmutex-r0drv-solaris.c \
1850 r0drv/solaris/spinlock-r0drv-solaris.c
1851
1852 # VBI is now compiled into IPRT
1853 RuntimeR0Drv_SOURCES.solaris += \
1854 r0drv/solaris/vbi/RTMpPokeCpu-r0drv-solaris.c \
1855 r0drv/solaris/vbi/mpnotification-r0drv-solaris.c \
1856 r0drv/solaris/vbi/alloc-r0drv-solaris.c \
1857 r0drv/solaris/vbi/memobj-r0drv-solaris.c \
1858 r0drv/solaris/vbi/mp-r0drv-solaris.c \
1859 r0drv/solaris/vbi/process-r0drv-solaris.c \
1860 r0drv/solaris/vbi/thread-r0drv-solaris.c \
1861 r0drv/solaris/vbi/thread2-r0drv-solaris.c \
1862 r0drv/solaris/vbi/time-r0drv-solaris.c \
1863 r0drv/solaris/vbi/timer-r0drv-solaris.c \
1864 r0drv/solaris/vbi/i86pc/os/vbi.c
1865
1866
1867## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here.
1868
1869RuntimeR0Drv_ORDERDEPS.freebsd = \
1870 $(PATH_INS)/gen-sys-hdrs/bus_if.h \
1871 $(PATH_INS)/gen-sys-hdrs/device_if.h
1872
1873
1874#
1875# RuntimeGuestR0 - Guest driver runtime.
1876# This is almost the same as the RuntimeR0Drv, the main difference
1877# is in the backdoor logging and the lack of sup.h (which should be
1878# made irrelevant even for RuntimeR0Drv).
1879#
1880RuntimeGuestR0_TEMPLATE := VBOXGUESTR0LIB
1881RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES))
1882RuntimeGuestR0_SOURCES += \
1883 VBox/logbackdoor.cpp
1884RuntimeGuestR0_EXTENDS = RuntimeR0Drv
1885
1886
1887#
1888# RuntimeGuestR0NT4 - Win32 NT4 guest driver runtime.
1889#
1890RuntimeGuestR0NT4_EXTENDS = RuntimeGuestR0
1891RuntimeGuestR0NT4_EXTENDS_BY = appending
1892RuntimeGuestR0NT4_DEFS = IPRT_TARGET_NT4
1893
1894
1895ifdef VBOX_WITH_RAW_MODE
1896 #
1897 # RuntimeRC - Raw-mode context library.
1898 #
1899 RuntimeRC_TEMPLATE = VBoxRc
1900 RuntimeRC_DEFS = IN_RT_RC RT_WITH_VBOX
1901 RuntimeRC_INCS = include
1902 RuntimeRC_SOURCES = \
1903 common/checksum/crc32.cpp \
1904 common/checksum/crc64.cpp \
1905 common/checksum/md5.cpp \
1906 common/log/log.cpp \
1907 common/log/logellipsis.cpp \
1908 common/log/logrel.cpp \
1909 common/log/logrelellipsis.cpp \
1910 common/log/logcom.cpp \
1911 common/log/logformat.cpp \
1912 common/misc/RTAssertMsg1Weak.cpp \
1913 common/misc/RTAssertMsg2.cpp \
1914 common/misc/RTAssertMsg2Add.cpp \
1915 common/misc/RTAssertMsg2AddWeak.cpp \
1916 common/misc/RTAssertMsg2AddWeakV.cpp \
1917 common/misc/RTAssertMsg2Weak.cpp \
1918 common/misc/RTAssertMsg2WeakV.cpp \
1919 common/misc/assert.cpp \
1920 common/misc/buildconfig.cpp \
1921 common/misc/sanity-c.c \
1922 common/misc/sanity-cpp.cpp \
1923 common/string/strformat.cpp \
1924 common/string/strformatnum.cpp \
1925 common/string/strformatrt.cpp \
1926 common/string/strformattype.cpp \
1927 common/string/strncmp.cpp \
1928 common/string/strpbrk.cpp \
1929 common/string/strprintf.cpp \
1930 common/table/avllu32.cpp \
1931 common/table/avlou32.cpp \
1932 common/table/avlogcphys.cpp \
1933 common/table/avlogcptr.cpp \
1934 common/table/avlohcphys.cpp \
1935 common/table/avloioport.cpp \
1936 common/table/avlrogcphys.cpp \
1937 common/table/avlrogcptr.cpp \
1938 common/table/avlroioport.cpp \
1939 common/table/avlroogcptr.cpp \
1940 common/table/avlu32.cpp \
1941 common/time/timeprog.cpp \
1942 common/time/timesup.cpp \
1943 gc/initterm-gc.cpp \
1944 generic/RTAssertShouldPanic-generic.cpp \
1945 \
1946 $(RuntimeNoCrt_SOURCES)
1947
1948 #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
1949 # RuntimeRC_SOURCES += common/time/timesupA.asm
1950 #else
1951 RuntimeRC_SOURCES += common/time/timesupref.cpp
1952 #endif
1953
1954 RuntimeRC_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
1955
1956 ifeq ($(VBOX_LDR_FMT32),lx)
1957 RuntimeRC_SOURCES += os2/sys0.asm
1958 endif
1959
1960 if1of ($(KBUILD_TARGET), darwin solaris freebsd)
1961 RuntimeRC_SOURCES += \
1962 common/math/gcc/adddi3.c \
1963 common/math/gcc/anddi3.c \
1964 common/math/gcc/ashldi3.c \
1965 common/math/gcc/ashrdi3.c \
1966 common/math/gcc/cmpdi2.c \
1967 common/math/gcc/divdi3.c \
1968 common/math/gcc/iordi3.c \
1969 common/math/gcc/lshldi3.c \
1970 common/math/gcc/lshrdi3.c \
1971 common/math/gcc/moddi3.c \
1972 common/math/gcc/muldi3.c \
1973 common/math/gcc/negdi2.c \
1974 common/math/gcc/notdi2.c \
1975 common/math/gcc/qdivrem.c \
1976 common/math/gcc/subdi3.c \
1977 common/math/gcc/ucmpdi2.c \
1978 common/math/gcc/udivdi3.c \
1979 common/math/gcc/umoddi3.c \
1980 common/math/gcc/xordi3.c
1981 endif
1982
1983
1984 #
1985 # RuntimeRCStub - Raw-mode context startup stub for Windows.
1986 #
1987 RuntimeRCStub_TEMPLATE = VBoxRc
1988 RuntimeRCStub_SOURCES.win = \
1989 nt/NtProcessStartup-stub.cpp
1990
1991
1992endif # VBOX_WITH_RAW_MODE
1993
1994
1995#
1996# Static library for new & delete for the electric fence.
1997#
1998RuntimeEFCPP_TEMPLATE = $(VBoxRT_TEMPLATE)
1999RuntimeEFCPP_SDKS = $(RuntimeR3_SDKS)
2000RuntimeEFCPP_SDKS.$(KBUILD_TARGET) = $(RuntimeR3_SDKS.$(KBUILD_TARGET))
2001RuntimeEFCPP_DEFS = $(RuntimeR3_DEFS)
2002RuntimeEFCPP_DEFS.$(KBUILD_TARGET) = $(RuntimeR3_DEFS.$(KBUILD_TARGET))
2003RuntimeEFCPP_INCS = $(RuntimeR3_INCS)
2004RuntimeEFCPP_INCS.$(KBUILD_TARGET) = $(RuntimeR3_INCS.$(KBUILD_TARGET))
2005RuntimeEFCPP_SOURCES = r3/alloc-ef-cpp.cpp
2006
2007
2008
2009#
2010# The NTDLL mini import library.
2011#
2012# Note! The reason for doing this is to avoid importing CRT symbols from the
2013# NTDLL. We do not wish to do this because:
2014# - Our compiler is usually a different one and we should use the
2015# matching CRT,
2016# - Older versions of NTDLL may not sport all the exports our w2k3 or
2017# later WINDDK ntdll.lib have and thus we may easily end up with
2018# images that does not load on older windows versions.
2019#
2020RuntimeR3NtDll-amd64_TEMPLATE = VBoxR3Dll
2021RuntimeR3NtDll-amd64_BLD_TRG_ARCH = amd64
2022RuntimeR3NtDll-amd64_ARFLAGS = /NODEFAULTLIB /MACHINE:amd64
2023RuntimeR3NtDll-amd64_SOURCES = \
2024 r3/win/ntdll-mini-implib.c \
2025 r3/win/ntdll-mini-implib.def
2026
2027RuntimeR3NtDll-x86_EXTENDS = RuntimeR3NtDll-amd64
2028RuntimeR3NtDll-x86_BLD_TRG_ARCH = x86
2029RuntimeR3NtDll-x86_ARFLAGS = /NODEFAULTLIB /MACHINE:x86
2030
2031
2032#
2033# errmsg.cpp depends on a generated header.
2034#
2035common/err/errmsg.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h
2036common/err/errmsg.cpp_INCS = $(IPRT_OUT_DIR)
2037
2038win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgcomdata.h
2039win/errmsgwin.cpp_INCS = $(IPRT_OUT_DIR)
2040
2041# Our COM errors only for R3 libraries on the host
2042define def_errmsgwin_deps
2043 $(lib)_win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
2044 $(lib)_common/err/errmsgxpcom.cpp_INCS = $(IPRT_OUT_DIR)
2045 $(lib)_common/err/errmsgxpcom.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
2046endef
2047$(foreach lib,RuntimeR3 RuntimeBldProg VBoxRT RuntimeLnxHostR3,$(eval $(def_errmsgwin_deps)))
2048
2049
2050#
2051# Generate the status code data.
2052#
2053$(IPRT_OUT_DIR)/errmsgdata.h: \
2054 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsg.sed \
2055 $(PATH_ROOT)/include/iprt/err.h \
2056 $(PATH_ROOT)/include/VBox/err.h \
2057 | $$(dir $$@)
2058 $(call MSG_GENERATE,,$@,$(filter %.h,$^))
2059 $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
2060
2061## @todo r=bird: rename this to indicate that it's not only COM errors, but all win32/64 errors.
2062$(IPRT_OUT_DIR)/errmsgcomdata.h: \
2063 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsgcom.sed \
2064 $$(PATH_SDK_WINPSDK_INC)/WinError.h \
2065 | $$(dir $$@)
2066 $(call MSG_GENERATE,,$@,$(filter %.h,$^))
2067 $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
2068
2069$(IPRT_OUT_DIR)/errmsgvboxcomdata.h: \
2070 $(VBOX_PATH_RUNTIME_SRC)/VBox/errmsgvboxcom.xsl \
2071 $(VBOX_XIDL_FILE_SRC) \
2072 | $$(dir $$@)
2073 $(call MSG_GENERATE,,$@,$(filter %.xidl,$^))
2074 $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(filter %.xidl,$^)
2075
2076
2077if "$(KBUILD_TARGET)" == "freebsd"
2078#
2079# FreeBSDGeneratedKernelHeaders - Generate some kernel interface headers.
2080#
2081# These are used by:
2082# - The RTMp* API in IPRT.
2083# - VBoxGuest
2084#
2085# Note! We cannot give a output path to the awk program, it will always
2086# generate the header next to the source. So, we'll have to temporarily copy
2087# the source file to the destination directory to work.
2088#
2089VBOX_AWK := /usr/bin/awk
2090INSTALLS += FreeBSDGeneratedKernelHeaders
2091FreeBSDGeneratedKernelHeaders_INST = gen-sys-hdrs/
2092FreeBSDGeneratedKernelHeaders_SOURCES = \
2093 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h \
2094 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h \
2095 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h
2096FreeBSDGeneratedKernelHeaders_CLEAN = $(FreeBSDGeneratedKernelHeaders_SOURCES)
2097
2098$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h: $(VBOX_FREEBSD_SRC)/kern/bus_if.m | $$(dir $$@)
2099 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
2100 $(QUIET)$(CP) -f $< $(@D)/bus_if.m
2101 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/bus_if.m -h -p
2102 $(QUIET)$(RM) $(@D)/bus_if.m
2103
2104$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h: $(VBOX_FREEBSD_SRC)/kern/device_if.m | $$(dir $$@)
2105 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
2106 $(QUIET)$(CP) -f $< $(@D)/device_if.m
2107 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/device_if.m -h -p
2108 $(QUIET)$(RM) $(@D)/device_if.m
2109
2110$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h: $(VBOX_FREEBSD_SRC)/dev/pci/pci_if.m | $$(dir $$@)
2111 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
2112 $(QUIET)$(CP) -f $< $(@D)/pci_if.m
2113 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/pci_if.m -h -p
2114 $(QUIET)$(RM) $(@D)/pci_if.m
2115endif # FreeBSD
2116
2117
2118#
2119# Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
2120#
2121ldrELFRelocatable.cpp.o: ldrELF.o
2122ldrELFRelocatable.cpp.obj: ldrELF.obj
2123
2124
2125#
2126# Doxygen documentation.
2127#
2128IPRT_DOXYFILE_INPUT_DIRS = \
2129 $(PATH_ROOT)/include/iprt \
2130 $(PATH_ROOT)/include/iprt/cpp \
2131 $(PATH_ROOT)/include/iprt/linux \
2132 $(PATH_ROOT)/include/iprt/nocrt \
2133 $(PATH_ROOT)/include/iprt/nocrt/x86 \
2134 $(PATH_ROOT)/include/iprt/nocrt/amd64 \
2135 $(PATH_ROOT)/include/iprt/nocrt/compiler \
2136 $(VBOX_PATH_RUNTIME_SRC)/include/internal \
2137 $(VBOX_PATH_RUNTIME_SRC)/common/alloc \
2138 $(VBOX_PATH_RUNTIME_SRC)/common/asm \
2139 $(VBOX_PATH_RUNTIME_SRC)/common/checksum \
2140 $(VBOX_PATH_RUNTIME_SRC)/common/dbg \
2141 $(VBOX_PATH_RUNTIME_SRC)/common/err \
2142 $(VBOX_PATH_RUNTIME_SRC)/common/ldr \
2143 $(VBOX_PATH_RUNTIME_SRC)/common/log \
2144 $(VBOX_PATH_RUNTIME_SRC)/common/math \
2145 $(VBOX_PATH_RUNTIME_SRC)/common/math/amd64 \
2146 $(VBOX_PATH_RUNTIME_SRC)/common/math/gcc \
2147 $(VBOX_PATH_RUNTIME_SRC)/common/math/x86 \
2148 $(VBOX_PATH_RUNTIME_SRC)/common/misc \
2149 $(VBOX_PATH_RUNTIME_SRC)/common/path \
2150 $(VBOX_PATH_RUNTIME_SRC)/common/rand \
2151 $(VBOX_PATH_RUNTIME_SRC)/common/string \
2152 $(VBOX_PATH_RUNTIME_SRC)/common/table \
2153 $(VBOX_PATH_RUNTIME_SRC)/common/time \
2154 $(VBOX_PATH_RUNTIME_SRC)/VBox \
2155 $(foreach dir, $(VBOX_PATH_RUNTIME_SRC) $(VBOX_PATH_RUNTIME_SRC)/r3 $(VBOX_PATH_RUNTIME_SRC)/r0drv,\
2156 $(dir) \
2157 $(dir)/darwin \
2158 $(dir)/l4 \
2159 $(dir)/linux \
2160 $(dir)/nt \
2161 $(dir)/os2 \
2162 $(dir)/win \
2163 $(dir)/win32 \
2164 $(dir)/win64 \
2165 $(dir)/generic \
2166 )
2167
2168# These must come first in order to make things look nice.
2169IPRT_DOXYFILE_INPUT_FIRST =\
2170 $(PATH_ROOT)/include/iprt/cdefs.h \
2171 $(PATH_ROOT)/include/iprt/types.h \
2172 $(PATH_ROOT)/include/iprt/runtime.h \
2173 $(PATH_ROOT)/include/iprt/param.h \
2174 $(PATH_ROOT)/include/iprt/assert.h \
2175 $(PATH_ROOT)/include/iprt/asm.h \
2176
2177IPRT_DOXYFILE_INPUT := \
2178 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(IPRT_DOXYFILE_INPUT_DIRS)))) ) \
2179 $(foreach dir, $(IPRT_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
2180IPRT_DOXYFILE_INPUT := \
2181 $(IPRT_DOXYFILE_INPUT_FIRST) \
2182 $(filter-out $(IPRT_DOXYFILE_INPUT_FIRST), $(IPRT_DOXYFILE_INPUT))
2183
2184
2185IPRT_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/iprt
2186BLDDIRS += $(IPRT_DOXYFILE_OUTPUT)
2187
2188includedep $(IPRT_OUT_DIR)/Doxyfile.iprt.dep
2189
2190# Generate the Doxyfile
2191$(IPRT_OUT_DIR)/Doxyfile.iprt: \
2192 $(VBOX_PATH_RUNTIME_SRC)/Doxyfile \
2193 $(VBOX_PATH_RUNTIME_SRC)/Makefile.kmk \
2194 $(comp-vars IPRT_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
2195 $(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
2196 | $$(dir $$@)
2197 $(RM) -f $@ [email protected] [email protected]
2198 $(CP) -f $(VBOX_PATH_RUNTIME_SRC)/Doxyfile [email protected]
2199 $(APPEND) [email protected]
2200 $(APPEND) [email protected] "OUTPUT_DIRECTORY = $(IPRT_DOXYFILE_OUTPUT)"
2201 $(APPEND) [email protected] "WARN_LOGFILE = $(IPRT_DOXYFILE_OUTPUT)/errors"
2202 $(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include include . common/table"
2203 $(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
2204 $(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
2205 $(APPEND) [email protected]
2206 $(APPEND) [email protected] "INPUT = $(IPRT_DOXYFILE_INPUT)"
2207 $(APPEND) [email protected]
2208 $(MV) -f [email protected] $@
2209 @$(APPEND) [email protected] "DOXYGEN_OUTPUT_PREV = $(IPRT_DOXYFILE_OUTPUT)"
2210 @$(APPEND) [email protected] "DOXYGEN_INPUT_PREV = $(IPRT_DOXYFILE_INPUT)"
2211
2212# Do the actual job.
2213$(IPRT_OUT_DIR)/docs.iprt: $(IPRT_OUT_DIR)/Doxyfile.iprt $$(IPRT_DOXYFILE_INPUT) | $(IPRT_DOXYFILE_OUTPUT)/
2214 $(RM) -f $(wildcard $(IPRT_DOXYFILE_OUTPUT)/html/*) $(IPRT_OUT_DIR)/docs.iprt
2215 doxygen $(IPRT_OUT_DIR)/Doxyfile.iprt
2216 $(APPEND) $(IPRT_OUT_DIR)/docs.iprt
2217
2218# aliases
2219docs.iprt: $(IPRT_OUT_DIR)/docs.iprt
2220if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
2221docs: $(IPRT_OUT_DIR)/docs.iprt
2222endif
2223
2224test-doxygen::
2225 @echo test-$(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE)
2226 @echo $(IPRT_DOXYFILE_OUTPUT)
2227 @echo $(DOXYGEN_OUTPUT_PREV)
2228 @echo $(IPRT_DOXYFILE_INPUT)
2229
2230
2231#
2232# Test mangling.
2233#
2234if1of ($(LIBRARIES),RuntimeR3 RuntimeR0 RuntimeR0Drv RuntimeRC)
2235 test-mangling:: $(IPRT_OUT_DIR)/mangling.run
2236 OTHERS += $(IPRT_OUT_DIR)/mangling.run
2237 CLEANS += $(IPRT_OUT_DIR)/mangling.run
2238 $(IPRT_OUT_DIR)/mangling.run: \
2239 $$(RuntimeR3_1_TARGET) \
2240 $$(RuntimeR0_1_TARGET) \
2241 $$(RuntimeR0Drv_1_TARGET) \
2242 $$(RuntimeRC_1_TARGET)
2243 if1of ($(KBUILD_TARGET), win os2)
2244 $(call MSG_L1,IPRT: skipped mangling test.)
2245 else if $(intersects $(KBUILD_TARGET), linux) && "$(VBOX_GCC_fvisibility-hidden)"
2246 $(call MSG_L1,IPRT: Testing mangling and visiblity...)
2247 rcExit=0; \
2248 for fn in ` readelf -Ws $^ \
2249 | $(SED) \
2250 -e '/^ *[[:digit:]]\+:/!d' \
2251 -e 's/^ \+[[:digit:]]\+: \+[[:xdigit:]]\+ \+[[:digit:]]\+ \+//' \
2252 -e '/^SECTION/d' \
2253 -e '/^FILE/d' \
2254 -e 's/^[[:alpha:]]\+ \+//' \
2255 -e '/LOCAL/d' \
2256 -e 's/^[[:alpha:]]\+ \+//' \
2257 -e '/^HIDDEN/d' \
2258 -e 's/^[[:alpha:]]\+ \+//' \
2259 -e '/^UND/d' \
2260 -e 's/^[[:digit:]]\+ \+//' \
2261 \
2262 -e '/^nocrt_/d' \
2263 -e '/^memchr/d' \
2264 -e '/^memcmp/d' \
2265 -e '/^memcpy/d' \
2266 -e '/^mempcpy/d' \
2267 -e '/^memmove/d' \
2268 -e '/^memset/d' \
2269 -e '/^strchr/d' \
2270 -e '/^strpbrk/d' \
2271 -e '/^_Z7strpbrk/d' \
2272 -e '/^strcmp/d' \
2273 -e '/^strcpy/d' \
2274 -e '/^strlen/d' \
2275 -e '/^_Z[[:alpha:]]*[[:digit:]]\+RTC/d' \
2276 \
2277 -e '/^_ZNSt9bad_allocC1Ev/d' \
2278 -e '/^_ZNSt9exceptionC2Ev/d' \
2279 \
2280 -e '/^_Z[[:digit:]]\+dbus/d' \
2281 -e '/^_Z13RTDBusLoadLibv/d' \
2282 \
2283 -e '/^VBoxHost_/d'\
2284 -e '/^VBoxGuest_/d'\
2285 | sort -u \
2286 `; \
2287 do \
2288 if $(SED) -ne '/\# *define '"$${fn}"' /q 1' $(PATH_ROOT)/include/iprt/mangling.h; then \
2289 echo "mangling.h: Missing # define "$${fn}" RT_MANGLER("$${fn}")"; \
2290 rcExit=1;\
2291 fi \
2292 done; \
2293 exit $${rcExit}
2294 else
2295 $(call MSG_L1,IPRT: Testing mangling...)
2296 rcExit=0; \
2297 for fn in ` nm $^ \
2298 | $(SED) -n \
2299 -e 's/^[0-9a-f][0-9a-f]* //' \
2300 -e '/^[TUDB] /!d' \
2301 -e 's/^. //' \
2302 \
2303 -e '/^g_cchrt/d'\
2304 -e '/^g_frt/d'\
2305 -e '/^g_offrt/d'\
2306 -e '/^g_pfnrt/d'\
2307 -e '/^g_rt/d'\
2308 -e '/^g_szrt/d'\
2309 -e '/^g_ProcessSelf/d'\
2310 -e '/^g_u64ProgramStart/d'\
2311 -e '/^g_enmProcessPriority/d'\
2312 -e '/^g_hDbgModStrCache/d'\
2313 \
2314 -e '/^RTDBusLoadLib/d' \
2315 \
2316 -e '/^RT/p' \
2317 -e '/^g_/p' \
2318 | sort -u \
2319 `; \
2320 do \
2321 if $(SED) -ne '/\# *define '"$${fn}"' /q 1' $(PATH_ROOT)/include/iprt/mangling.h; then \
2322 echo "mangling.h: Missing # define "$${fn}" RT_MANGLER("$${fn}")"; \
2323 rcExit=1;\
2324 fi \
2325 done; \
2326 exit $${rcExit}
2327 endif
2328endif
2329 $(QUIET)$(APPEND) -t $@
2330
2331
2332#
2333# Generate the rules (we're the to sub-makefile).
2334#
2335include $(KBUILD_PATH)/subfooter.kmk
2336
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