VirtualBox

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

最後變更 在這個檔案從27302是 27302,由 vboxsync 提交於 15 年 前

IPRT: RIP RTCache*, RTMemCache* is way better...

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 60.3 KB
 
1# $Id: Makefile.kmk 27302 2010-03-11 20:11:17Z vboxsync $
2## @file
3# Sub-Makefile for the IPRT (IPRT).
4#
5
6#
7# Copyright (C) 2006-2010 Sun Microsystems, Inc.
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.alldomusa.eu.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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
27# Clara, CA 95054 USA or visit http://www.sun.com if you need
28# additional information or have any questions.
29#
30
31SUB_DEPTH = ../../..
32include $(KBUILD_PATH)/subheader.kmk
33
34ifdef VBOX_ONLY_ADDITIONS
35 #
36 # Only build the additions, sort out the legacy names first.
37 #
38 LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeGuestR3Mini
39 ifdef VBOX_WITH_ADDITION_DRIVERS
40 LIBRARIES += RuntimeGuestR0
41 #LIBRARIES.os2 += RuntimeGuestR0OS2Warp3
42 LIBRARIES.win.x86 += RuntimeGuestR0NT4
43 endif
44
45else ifdef VBOX_ONLY_TESTSUITE
46 #
47 # Only build the testsuite.
48 #
49 LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeR3 RuntimeR0
50 LIBRARIES.win += RuntimeR0Stub
51
52else ifdef VBOX_ONLY_DOCS
53 #
54 # Build docs only - need just regular R3 runtime.
55 #
56 LIBRARIES += RuntimeR3
57 DLLS += VBoxRT
58
59else # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_TESTSUITE && !VBOX_ONLY_DOCS
60
61 #
62 # Normal build.
63 #
64 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
65
66 BLDPROGS += uniread
67 LIBRARIES += RuntimeR3 RuntimeR0 RuntimeEFCPP RuntimeR3NoCRTGCC
68 LIBRARIES.win += RuntimeR0Stub
69 ifdef VBOX_WITH_RAW_MODE
70 LIBRARIES += RuntimeRC
71 LIBRARIES.win += RuntimeRCStub
72 endif
73 ifdef VBOX_WITH_VBOXDRV
74 LIBRARIES += RuntimeR0Drv
75 endif
76 ifdef VBOX_WITH_ADDITIONS
77 LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeGuestR3Mini
78 ifdef VBOX_WITH_ADDITION_DRIVERS
79 LIBRARIES += RuntimeGuestR0
80 endif
81 #LIBRARIES.os2 += RuntimeGuestR0OS2Warp3
82 LIBRARIES.win.x86 += RuntimeGuestR0NT4
83 endif # VBOX_WITH_ADDITIONS
84 LIBRARIES.l4 += RuntimeR3L4 RuntimeLnxHostR3
85 DLLS += VBoxRT
86endif
87
88# Where the generated stuff goes.
89IPRT_OUT_DIR := $(PATH_TARGET)/Runtime
90BLDDIRS += $(IPRT_OUT_DIR)
91OTHER_CLEAN += \
92 $(IPRT_OUT_DIR)/errmsgdata.h \
93 $(IPRT_OUT_DIR)/errmsgcomdata.h \
94 $(IPRT_OUT_DIR)/errmsgvboxcomdata.h \
95 $(IPRT_OUT_DIR)/Doxyfile.iprt \
96 $(IPRT_OUT_DIR)/Doxyfile.iprt.dep \
97 $(IPRT_OUT_DIR)/docs.iprt
98
99
100#
101# Globals
102#
103VBOX_PATH_RUNTIME_SRC := $(PATH_SUB_CURRENT)
104
105
106#
107# Set the defines that buildconfig.cpp needs. Its used by several targets.
108#
109common/misc/buildconfig.cpp_DEFS = \
110 IPRT_BLDCFG_SCM_REV=$(VBOX_SVN_REV) \
111 IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
112 IPRT_BLDCFG_VERSION_MAJOR=$(VBOX_VERSION_MAJOR) \
113 IPRT_BLDCFG_VERSION_MINOR=$(VBOX_VERSION_MINOR) \
114 IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD)
115
116#
117# Unicode Specification reader used to regenerate unidata.cpp.
118#
119uniread_TEMPLATE = VBOXBLDPROG
120uniread_SOURCES = common/string/uniread.cpp
121uniread_INCS = include
122
123#
124# Win64 assembly sources.
125#
126RuntimeWin64ASM_SOURCES = \
127 win/amd64/ASMAtomicBitClear.asm \
128 win/amd64/ASMAtomicBitTestAndToggle.asm \
129 win/amd64/ASMAtomicBitToggle.asm \
130 win/amd64/ASMAtomicReadU64.asm \
131 win/amd64/ASMAtomicXchgU16.asm \
132 win/amd64/ASMAtomicXchgU8.asm \
133 win/amd64/ASMBitFirstClear.asm \
134 win/amd64/ASMBitFirstSet.asm \
135 win/amd64/ASMGetCS.asm \
136 win/amd64/ASMGetDS.asm \
137 win/amd64/ASMGetES.asm \
138 win/amd64/ASMGetFlags.asm \
139 win/amd64/ASMGetFS.asm \
140 win/amd64/ASMGetGS.asm \
141 win/amd64/ASMGetIDTR.asm \
142 win/amd64/ASMGetGDTR.asm \
143 win/amd64/ASMGetTR.asm \
144 win/amd64/ASMGetSS.asm \
145 win/amd64/ASMProbeReadByte.asm \
146 win/amd64/ASMSetFlags.asm \
147 win/amd64/ASMGetDR0.asm \
148 win/amd64/ASMGetDR1.asm \
149 win/amd64/ASMGetDR2.asm \
150 win/amd64/ASMGetDR3.asm \
151 win/amd64/ASMGetDR6.asm \
152 win/amd64/ASMGetDR7.asm \
153 common/asm/ASMAtomicCmpXchgU8.asm \
154 common/asm/ASMMultU64ByU32DivByU32.asm \
155 common/asm/ASMNopPause.asm
156
157#
158# Win32 assembly sources.
159#
160RuntimeWin32ASM_SOURCES = \
161 common/asm/ASMAtomicCmpXchgU8.asm \
162 common/asm/ASMMultU64ByU32DivByU32.asm
163
164#
165# NoCRT sources (minus math stuff).
166#
167RuntimeNoCrt_SOURCES = \
168 common/misc/setjmp.asm \
169 common/string/memchr.asm \
170 common/string/memcmp.asm \
171 common/string/memcpy.asm \
172 common/string/mempcpy.asm \
173 common/string/memmove.asm \
174 common/string/memset.asm \
175 common/string/strchr.asm \
176 common/string/strcpy.asm \
177 common/string/strcmp.asm \
178 common/string/strlen.asm
179
180
181#
182# RuntimeR3 - Static Runtime for Ring-3 executables.
183#
184RuntimeR3_TEMPLATE = VBoxR3Static
185RuntimeR3_SDKS = VBOX_LIBXML2 VBOX_BOOST
186RuntimeR3_SDKS.win = WINPSDK W2K3DDK
187RuntimeR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX RT_NO_GIP
188ifdef IPRT_WITH_KSTUFF
189 RuntimeR3_DEFS += LDR_WITH_KLDR
190endif
191ifdef VBOX_MAIN_RELEASE_LOG ## @todo (dmik): temporary, until RTThreadSelf/RTThreadAdopt are properly updated
192 RuntimeR3_DEFS += RTCRITSECT_STRICT
193endif
194ifdef IPRT_WITH_LZJB
195 RuntimeR3_DEFS += RTZIP_USE_LZJB
196endif
197ifdef IPRT_WITH_LZO
198 RuntimeR3_DEFS += RTZIP_USE_LZO
199endif
200ifdef IPRT_WITH_FUTEX_BASED_SEMS
201 RuntimeR3_DEFS.linux += IPRT_WITH_FUTEX_BASED_SEMS
202endif
203RuntimeR3_INCS = \
204 include \
205 $(SDK_VBOX_ZLIB_INCS)
206RuntimeR3_INCS += \
207 $(PATH_ROOT)/src/libs/liblzf-3.4
208ifdef IPRT_WITH_KSTUFF
209 RuntimeR3_INCS += \
210 $(PATH_ROOT)/src/libs/kStuff/kStuff/include
211endif
212RuntimeR3_INCS.l4 = \
213 $(L4_INCDIR)
214
215# RuntimeR3_INCS.solaris = \
216# /usr/include
217
218RuntimeR3_SOURCES = \
219 common/alloc/alloc.cpp \
220 common/alloc/heapsimple.cpp \
221 common/alloc/heapoffset.cpp \
222 common/alloc/memcache.cpp \
223 common/checksum/adler32.cpp \
224 common/checksum/crc32.cpp \
225 common/checksum/crc64.cpp \
226 common/checksum/md5.cpp \
227 common/checksum/md5str.cpp \
228 common/checksum/ipv4.cpp \
229 common/dbg/dbg.cpp \
230 common/dbg/dbgas.cpp \
231 common/dbg/dbgmod.cpp \
232 common/dbg/dbgmodcontainer.cpp \
233 common/dbg/dbgmodnm.cpp \
234 common/err/errmsg.cpp \
235 common/err/RTErrConvertFromErrno.cpp \
236 common/err/RTErrConvertToErrno.cpp \
237 common/ldr/ldr.cpp \
238 common/ldr/ldrELF.cpp \
239 common/ldr/ldrEx.cpp \
240 common/ldr/ldrFile.cpp \
241 common/ldr/ldrNative.cpp \
242 common/ldr/ldrPE.cpp \
243 common/log/log.cpp \
244 common/log/logellipsis.cpp \
245 common/log/logrel.cpp \
246 common/log/logrelellipsis.cpp \
247 common/log/logcom.cpp \
248 common/log/logformat.cpp \
249 common/misc/RTAssertMsg1Weak.cpp \
250 common/misc/RTAssertMsg2.cpp \
251 common/misc/RTAssertMsg2Add.cpp \
252 common/misc/RTAssertMsg2AddWeak.cpp \
253 common/misc/RTAssertMsg2AddWeakV.cpp \
254 common/misc/RTAssertMsg2Weak.cpp \
255 common/misc/RTAssertMsg2WeakV.cpp \
256 common/misc/RTFileOpenF.cpp \
257 common/misc/RTFileOpenV.cpp \
258 common/misc/assert.cpp \
259 common/misc/buildconfig.cpp \
260 common/misc/cidr.cpp \
261 common/misc/getopt.cpp \
262 common/misc/getoptargv.cpp \
263 common/misc/handle.cpp \
264 common/misc/handletable.cpp \
265 common/misc/handletablectx.cpp \
266 common/misc/handletablesimple.cpp \
267 common/misc/lockvalidator.cpp \
268 common/misc/message.cpp \
269 common/misc/once.cpp \
270 common/misc/req.cpp \
271 common/misc/sanity-c.c \
272 common/misc/sanity-cpp.cpp \
273 common/misc/semspingpong.cpp \
274 common/misc/thread.cpp \
275 common/misc/zip.cpp \
276 common/misc/term.cpp \
277 common/misc/tar.cpp \
278 common/path/rtPathRootSpecLen.cpp \
279 common/path/rtPathVolumeSpecLen.cpp \
280 common/path/RTPathAbsDup.cpp \
281 common/path/RTPathAbsEx.cpp \
282 common/path/RTPathAbsExDup.cpp \
283 common/path/RTPathAppend.cpp \
284 common/path/RTPathChangeToDosSlashes.cpp \
285 common/path/RTPathChangeToUnixSlashes.cpp \
286 common/path/RTPathCopyComponents.cpp \
287 common/path/RTPathCountComponents.cpp \
288 common/path/RTPathExt.cpp \
289 common/path/RTPathFilename.cpp \
290 common/path/RTPathHaveExt.cpp \
291 common/path/RTPathHavePath.cpp \
292 common/path/RTPathJoin.cpp \
293 common/path/RTPathParse.cpp \
294 common/path/RTPathRealDup.cpp \
295 common/path/RTPathStripExt.cpp \
296 common/path/RTPathStripFilename.cpp \
297 common/path/RTPathStripTrailingSlash.cpp \
298 common/path/RTPathTraverseList.cpp \
299 common/path/comparepaths.cpp \
300 common/rand/rand.cpp \
301 common/rand/randadv.cpp \
302 common/rand/randparkmiller.cpp \
303 common/string/RTStrCmp.cpp \
304 common/string/RTStrConvertHexBytes.cpp \
305 common/string/RTStrCopy.cpp \
306 common/string/RTStrCopyEx.cpp \
307 common/string/RTStrNCmp.cpp \
308 common/string/RTStrNLen.cpp \
309 common/string/RTStrNLenEx.cpp \
310 common/string/RTStrPrintHexBytes.cpp \
311 common/string/RTStrStr.cpp \
312 common/string/base64.cpp \
313 common/string/simplepattern.cpp \
314 common/string/straprintf.cpp \
315 common/string/strformat.cpp \
316 common/string/strformatrt.cpp \
317 common/string/strformattype.cpp \
318 common/string/stringalloc.cpp \
319 common/string/strprintf.cpp \
320 common/string/strspace.cpp \
321 common/string/strstrip.cpp \
322 common/string/strtonum.cpp \
323 common/string/strversion.cpp \
324 common/string/uni.cpp \
325 common/string/unidata.cpp \
326 common/string/utf-16.cpp \
327 common/string/utf-8.cpp \
328 common/string/utf-8-case.cpp \
329 common/string/ministring.cpp \
330 common/table/avlgcptr.cpp \
331 common/table/avlhcphys.cpp \
332 common/table/avllu32.cpp \
333 common/table/avlou32.cpp \
334 common/table/avlogcphys.cpp \
335 common/table/avlogcptr.cpp \
336 common/table/avlohcphys.cpp \
337 common/table/avloioport.cpp \
338 common/table/avlpv.cpp \
339 common/table/avlrgcptr.cpp \
340 common/table/avlrogcphys.cpp \
341 common/table/avlrogcptr.cpp \
342 common/table/avlroioport.cpp \
343 common/table/avlroogcptr.cpp \
344 common/table/avlruintptr.cpp \
345 common/table/avlrfoff.cpp \
346 common/table/avlu32.cpp \
347 common/table/avluintptr.cpp \
348 common/table/avlul.cpp \
349 common/table/table.cpp \
350 common/time/time.cpp \
351 common/time/timeprog.cpp \
352 common/time/timesup.cpp \
353 generic/critsect-generic.cpp \
354 generic/env-generic.cpp \
355 generic/RTDirCreateTemp-generic.cpp \
356 generic/RTEnvDupEx-generic.cpp \
357 generic/RTFileCopy-generic.cpp \
358 generic/RTFileQuerySize-generic.cpp \
359 generic/RTFileReadAll-generic.cpp \
360 generic/RTFileReadAllEx-generic.cpp \
361 generic/RTFileReadAllByHandle-generic.cpp \
362 generic/RTFileReadAllByHandleEx-generic.cpp \
363 generic/RTFileReadAllFree-generic.cpp \
364 generic/RTLogWriteStdErr-generic.cpp \
365 generic/RTLogWriteStdOut-generic.cpp \
366 generic/RTLogWriteUser-generic.cpp \
367 generic/RTMpGetDescription-generic.cpp \
368 generic/RTTimerLRCreate-generic.cpp \
369 generic/mempool-generic.cpp \
370 generic/semfastmutex-generic.cpp \
371 generic/semxroads-generic.cpp \
372 generic/spinlock-generic.cpp \
373 generic/strcache-stubs-generic.cpp \
374 generic/timerlr-generic.cpp \
375 r3/alloc-ef.cpp \
376 r3/alloc.cpp \
377 r3/dir.cpp \
378 r3/fileio.cpp \
379 r3/fs.cpp \
380 r3/init.cpp \
381 r3/path.cpp \
382 r3/process.cpp \
383 r3/stream.cpp \
384 r3/test.cpp \
385 r3/testi.cpp \
386 r3/tcp.cpp \
387 r3/generic/semspinmutex-r3-generic.cpp
388
389#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
390# RuntimeR3_SOURCES += common/time/timesupA.asm
391#else
392 RuntimeR3_SOURCES += common/time/timesupref.cpp
393#endif
394
395ifdef IPRT_WITH_LZJB
396 RuntimeR3_SOURCES += common/misc/lzjb.c
397endif
398
399# Some versions of GCC might require this.
400RuntimeR3_SOURCES.x86 += \
401 common/asm/ASMAtomicXchgU64.asm \
402 common/asm/ASMAtomicCmpXchgU64.asm \
403 common/asm/ASMAtomicCmpXchgExU64.asm \
404 common/asm/ASMAtomicReadU64.asm \
405 common/asm/ASMAtomicUoReadU64.asm
406
407ifdef IPRT_WITH_KSTUFF
408 RuntimeR3_SOURCES += \
409 common/ldr/ldrkStuff.cpp
410endif
411
412# VBox specific stuff.
413RuntimeR3_SOURCES += \
414 VBox/RTAssertShouldPanic-vbox.cpp \
415 VBox/log-vbox.cpp
416ifneq ($(KBUILD_TARGET),win)
417RuntimeR3_SOURCES += \
418 common/err/errmsgxpcom.cpp
419endif
420if1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd solaris)
421RuntimeR3_SOURCES += \
422 $(if $(VBOX_WITH_DBUS),VBox/dbus.cpp,)
423endif
424
425RuntimeR3_SOURCES.win = \
426 generic/RTDirExists-generic.cpp \
427 generic/RTDirQueryInfo-generic.cpp \
428 generic/RTDirSetTimes-generic.cpp \
429 generic/RTFileExists-generic.cpp \
430 generic/RTMpGetCurFrequency-generic.cpp \
431 generic/RTMpGetMaxFrequency-generic.cpp \
432 generic/RTRandAdvCreateSystemFaster-generic.cpp \
433 generic/RTRandAdvCreateSystemTruer-generic.cpp \
434 generic/RTSemEventWait-generic.cpp \
435 generic/RTSemEventMultiWait-generic.cpp \
436 generic/RTSemMutexRequest-generic.cpp \
437 generic/RTSemMutexRequestDebug-generic.cpp \
438 generic/RTSystemQueryDmiString-generic.cpp \
439 generic/mppresent-generic.cpp \
440 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
441 generic/uuid-generic.cpp \
442 generic/RTProcIsRunningByName-generic.cpp \
443 generic/RTThreadGetNativeState-generic.cpp \
444 nt/RTErrConvertFromNtStatus.cpp \
445 r3/posix/env-posix.cpp \
446 r3/win/RTSystemQueryOSInfo-win.cpp \
447 r3/win/alloc-win.cpp \
448 r3/win/dir-win.cpp \
449 r3/win/fileio-win.cpp \
450 r3/win/fs-win.cpp \
451 r3/win/ldrNative-win.cpp \
452 r3/win/localipc-win.cpp \
453 r3/win/mp-win.cpp \
454 r3/win/path-win.cpp \
455 r3/win/pipe-win.cpp \
456 r3/win/poll-win.cpp \
457 r3/win/process-win.cpp \
458 r3/win/RTLogWriteDebugger-win.cpp \
459 r3/win/rtProcInitExePath-win.cpp \
460 r3/win/sched-win.cpp \
461 r3/win/semevent-win.cpp \
462 r3/win/semeventmulti-win.cpp \
463 r3/win/semmutex-win.cpp \
464 r3/win/rtFileNativeSetAttributes-win.cpp \
465 r3/win/thread-win.cpp \
466 r3/win/time-win.cpp \
467 r3/win/timer-win.cpp \
468 r3/win/tls-win.cpp \
469 r3/win/utf16locale-win.cpp \
470 r3/win/utf8-win.cpp \
471 r3/win/RTUuidCreate-win.cpp \
472 win/errmsgwin.cpp \
473 win/RTErrConvertFromWin32.cpp
474
475RuntimeR3_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
476RuntimeR3_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
477
478RuntimeR3_SOURCES.linux = \
479 generic/pathhost-generic.cpp \
480 generic/RTDirQueryInfo-generic.cpp \
481 generic/RTDirSetTimes-generic.cpp \
482 generic/RTFileMove-generic.cpp \
483 generic/RTLogWriteDebugger-generic.cpp \
484 generic/RTTimeLocalNow-generic.cpp \
485 generic/RTTimerCreate-generic.cpp \
486 generic/RTUuidCreate-generic.cpp \
487 generic/mppresent-generic.cpp \
488 generic/utf16locale-generic.cpp \
489 generic/uuid-generic.cpp \
490 r3/linux/RTThreadGetNativeState-linux.cpp \
491 r3/linux/mp-linux.cpp \
492 r3/linux/rtProcInitExePath-linux.cpp \
493 r3/linux/sched-linux.cpp \
494 r3/linux/sysfs.cpp \
495 r3/linux/time-linux.cpp \
496 r3/linux/RTProcIsRunningByName-linux.cpp \
497 r3/linux/RTSystemQueryDmiString-linux.cpp \
498 r3/posix/RTFileQueryFsSizes-posix.cpp \
499 r3/posix/RTSystemQueryOSInfo-posix.cpp \
500 r3/posix/alloc-posix.cpp \
501 r3/posix/dir-posix.cpp \
502 r3/posix/env-posix.cpp \
503 r3/posix/fileio-posix.cpp \
504 r3/posix/filelock-posix.cpp \
505 r3/posix/fs-posix.cpp \
506 r3/posix/ldrNative-posix.cpp \
507 r3/posix/path-posix.cpp \
508 r3/posix/pipe-posix.cpp \
509 r3/posix/poll-posix.cpp \
510 r3/posix/process-posix.cpp \
511 r3/posix/rand-posix.cpp \
512 r3/posix/RTTimeNow-posix.cpp \
513 r3/posix/RTTimeSet-posix.cpp \
514 r3/posix/semrw-posix.cpp \
515 r3/posix/thread-posix.cpp \
516 r3/posix/timelocal-posix.cpp \
517 r3/posix/timer-posix.cpp \
518 r3/posix/tls-posix.cpp \
519 r3/posix/utf8-posix.cpp
520ifdef IPRT_WITH_FUTEX_BASED_SEMS
521 RuntimeR3_SOURCES.linux += \
522 r3/linux/semevent-linux.cpp \
523 r3/linux/semeventmulti-linux.cpp \
524 r3/linux/semmutex-linux.cpp
525else
526 RuntimeR3_SOURCES.linux.x86 += \
527 r3/posix/semevent-posix.cpp \
528 r3/posix/semeventmulti-posix.cpp \
529 r3/posix/semmutex-posix.cpp
530 RuntimeR3_SOURCES.linux.amd64 += \
531 r3/linux/semevent-linux.cpp \
532 r3/linux/semeventmulti-linux.cpp
533 ifdef RT_NEW_LINUX_MUTEX_CODE
534 RuntimeR3_SOURCES.linux.amd64 += \
535 r3/linux/semmutex-linux.cpp
536 else
537 RuntimeR3_SOURCES.linux.amd64 += \
538 r3/posix/semmutex-posix.cpp
539 endif
540endif
541
542RuntimeR3_SOURCES.os2 = \
543 generic/pathhost-generic.cpp \
544 generic/RTDirQueryInfo-generic.cpp \
545 generic/RTDirSetTimes-generic.cpp \
546 generic/RTFileMove-generic.cpp \
547 generic/RTLogWriteDebugger-generic.cpp \
548 generic/RTRandAdvCreateSystemFaster-generic.cpp \
549 generic/RTRandAdvCreateSystemTruer-generic.cpp \
550 generic/RTSystemQueryDmiString-generic.cpp \
551 generic/RTTimeLocalNow-generic.cpp \
552 generic/RTTimerCreate-generic.cpp \
553 generic/RTUuidCreate-generic.cpp \
554 generic/mppresent-generic.cpp \
555 generic/RTSemEventWait-generic.cpp \
556 generic/RTSemEventMultiWait-generic.cpp \
557 generic/RTSemMutexRequest-generic.cpp \
558 generic/RTSemMutexRequestDebug-generic.cpp \
559 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
560 generic/timer-generic.cpp \
561 generic/utf16locale-generic.cpp \
562 generic/uuid-generic.cpp \
563 generic/RTMpGetCurFrequency-generic.cpp \
564 generic/RTMpGetMaxFrequency-generic.cpp \
565 generic/RTProcIsRunningByName-generic.cpp \
566 generic/RTThreadGetNativeState-generic.cpp \
567 os2/RTErrConvertFromOS2.cpp \
568 r3/os2/filelock-os2.cpp \
569 r3/os2/mp-os2.cpp \
570 r3/os2/pipe-os2.cpp \
571 r3/os2/poll-os2.cpp \
572 r3/os2/rtProcInitExePath-os2.cpp \
573 r3/os2/sched-os2.cpp \
574 r3/os2/sems-os2.cpp \
575 r3/os2/thread-os2.cpp \
576 r3/os2/time-os2.cpp \
577 r3/posix/RTFileQueryFsSizes-posix.cpp \
578 r3/posix/RTSystemQueryOSInfo-posix.cpp \
579 r3/posix/alloc-posix.cpp \
580 r3/posix/dir-posix.cpp \
581 r3/posix/env-posix.cpp \
582 r3/posix/fileio-posix.cpp \
583 r3/posix/fs-posix.cpp \
584 r3/posix/ldrNative-posix.cpp \
585 r3/posix/path-posix.cpp \
586 r3/posix/process-posix.cpp \
587 r3/posix/RTTimeNow-posix.cpp \
588 r3/posix/RTTimeSet-posix.cpp \
589 r3/posix/timelocal-posix.cpp \
590 r3/posix/utf8-posix.cpp
591
592RuntimeR3_SOURCES.darwin = \
593 darwin/RTErrConvertFromDarwin.cpp \
594 darwin/RTErrConvertFromDarwinCOM.cpp \
595 darwin/RTErrConvertFromDarwinIO.cpp \
596 darwin/RTErrConvertFromDarwinKern.cpp \
597 generic/pathhost-generic.cpp \
598 generic/RTDirQueryInfo-generic.cpp \
599 generic/RTDirSetTimes-generic.cpp \
600 generic/RTFileMove-generic.cpp \
601 generic/RTLogWriteDebugger-generic.cpp \
602 generic/RTTimeLocalNow-generic.cpp \
603 generic/RTTimerCreate-generic.cpp \
604 generic/RTUuidCreate-generic.cpp \
605 generic/mppresent-generic.cpp \
606 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
607 generic/timer-generic.cpp \
608 generic/utf16locale-generic.cpp \
609 generic/uuid-generic.cpp\
610 generic/RTProcIsRunningByName-generic.cpp \
611 generic/RTThreadGetNativeState-generic.cpp \
612 r3/darwin/alloc-darwin.cpp \
613 r3/darwin/filelock-darwin.cpp \
614 r3/darwin/mp-darwin.cpp \
615 r3/darwin/rtProcInitExePath-darwin.cpp \
616 r3/darwin/RTSystemQueryDmiString-darwin.cpp \
617 r3/darwin/sched-darwin.cpp \
618 r3/darwin/time-darwin.cpp \
619 r3/posix/RTFileQueryFsSizes-posix.cpp \
620 r3/posix/RTSystemQueryOSInfo-posix.cpp \
621 r3/posix/RTTimeSet-posix.cpp \
622 r3/posix/dir-posix.cpp \
623 r3/posix/env-posix.cpp \
624 r3/posix/fileio-posix.cpp \
625 r3/posix/fs-posix.cpp \
626 r3/posix/ldrNative-posix.cpp \
627 r3/posix/path-posix.cpp \
628 r3/posix/pipe-posix.cpp \
629 r3/posix/poll-posix.cpp \
630 r3/posix/process-posix.cpp \
631 r3/posix/rand-posix.cpp \
632 r3/posix/semevent-posix.cpp \
633 r3/posix/semeventmulti-posix.cpp \
634 r3/posix/semmutex-posix.cpp \
635 r3/posix/thread-posix.cpp \
636 r3/posix/timelocal-posix.cpp \
637 r3/posix/tls-posix.cpp \
638 r3/posix/utf8-posix.cpp
639
640## @todo Make BSD sched, implement RTMP*.
641RuntimeR3_SOURCES.freebsd = \
642 generic/pathhost-generic.cpp \
643 generic/RTDirQueryInfo-generic.cpp \
644 generic/RTDirSetTimes-generic.cpp \
645 generic/RTFileMove-generic.cpp \
646 generic/RTLogWriteDebugger-generic.cpp \
647 generic/RTSystemQueryDmiString-generic.cpp \
648 generic/RTTimeLocalNow-generic.cpp \
649 generic/RTTimerCreate-generic.cpp \
650 generic/RTUuidCreate-generic.cpp \
651 generic/mppresent-generic.cpp \
652 generic/sched-generic.cpp \
653 generic/utf16locale-generic.cpp \
654 generic/uuid-generic.cpp \
655 generic/RTMpCpuId-generic.cpp \
656 generic/RTMpCpuIdFromSetIndex-generic.cpp \
657 generic/RTMpCpuIdToSetIndex-generic.cpp \
658 generic/RTMpIsCpuPossible-generic.cpp \
659 generic/RTMpGetMaxCpuId-generic.cpp \
660 generic/RTMpGetOnlineSet-generic.cpp \
661 generic/RTMpGetSet-generic.cpp \
662 generic/RTMpIsCpuOnline-generic.cpp \
663 generic/RTProcIsRunningByName-generic.cpp \
664 generic/RTThreadGetNativeState-generic.cpp \
665 r3/freebsd/mp-freebsd.cpp \
666 r3/freebsd/alloc-freebsd.cpp \
667 r3/freebsd/rtProcInitExePath-freebsd.cpp \
668 r3/posix/RTFileQueryFsSizes-posix.cpp \
669 r3/posix/RTSystemQueryOSInfo-posix.cpp \
670 r3/posix/dir-posix.cpp \
671 r3/posix/env-posix.cpp \
672 r3/posix/fileio-posix.cpp \
673 r3/posix/filelock-posix.cpp \
674 r3/posix/fs-posix.cpp \
675 r3/posix/ldrNative-posix.cpp \
676 r3/posix/path-posix.cpp \
677 r3/posix/pipe-posix.cpp \
678 r3/posix/poll-posix.cpp \
679 r3/posix/process-posix.cpp \
680 r3/posix/rand-posix.cpp \
681 r3/posix/RTMpGetCount-posix.cpp \
682 r3/posix/RTTimeNow-posix.cpp \
683 r3/posix/RTTimeSet-posix.cpp \
684 r3/posix/semevent-posix.cpp \
685 r3/posix/semeventmulti-posix.cpp \
686 r3/posix/semmutex-posix.cpp \
687 r3/posix/semrw-posix.cpp \
688 r3/posix/thread-posix.cpp \
689 r3/posix/time-posix.cpp \
690 r3/posix/timelocal-posix.cpp \
691 r3/posix/timer-posix.cpp \
692 r3/posix/tls-posix.cpp \
693 r3/posix/utf8-posix.cpp
694
695RuntimeR3_SOURCES.solaris = \
696 generic/pathhost-generic.cpp \
697 generic/RTDirQueryInfo-generic.cpp \
698 generic/RTDirSetTimes-generic.cpp \
699 generic/RTFileMove-generic.cpp \
700 generic/RTLogWriteDebugger-generic.cpp \
701 generic/RTTimeLocalNow-generic.cpp \
702 generic/RTTimerCreate-generic.cpp \
703 generic/RTUuidCreate-generic.cpp \
704 generic/sched-generic.cpp \
705 generic/utf16locale-generic.cpp \
706 generic/uuid-generic.cpp \
707 generic/RTProcIsRunningByName-generic.cpp \
708 generic/RTThreadGetNativeState-generic.cpp \
709 r3/posix/RTFileQueryFsSizes-posix.cpp \
710 r3/posix/RTSystemQueryOSInfo-posix.cpp \
711 r3/posix/dir-posix.cpp \
712 r3/posix/env-posix.cpp \
713 r3/posix/fileio-posix.cpp \
714 r3/posix/filelock-posix.cpp \
715 r3/posix/fs-posix.cpp \
716 r3/posix/ldrNative-posix.cpp \
717 r3/posix/path-posix.cpp \
718 r3/posix/pipe-posix.cpp \
719 r3/posix/poll-posix.cpp \
720 r3/posix/process-posix.cpp \
721 r3/posix/rand-posix.cpp \
722 r3/posix/RTTimeNow-posix.cpp \
723 r3/posix/RTTimeSet-posix.cpp \
724 r3/posix/semevent-posix.cpp \
725 r3/posix/semeventmulti-posix.cpp \
726 r3/posix/semmutex-posix.cpp \
727 r3/posix/semrw-posix.cpp \
728 r3/posix/thread-posix.cpp \
729 r3/posix/time-posix.cpp \
730 r3/posix/timelocal-posix.cpp \
731 r3/posix/timer-posix.cpp \
732 r3/posix/tls-posix.cpp \
733 r3/posix/utf8-posix.cpp \
734 r3/solaris/alloc-solaris.cpp \
735 r3/solaris/mp-solaris.cpp \
736 r3/solaris/RTSystemQueryDmiString-solaris.cpp \
737 r3/solaris/rtProcInitExePath-solaris.cpp
738
739## PORTME: Porters add their selection of platform specific files for Ring-3 here.
740
741
742#
743# L4 RuntimeR3 subtarget since L4 headers won't work with VBOXR3.
744#
745RuntimeR3L4_TEMPLATE = VBOXR3NP
746RuntimeR3L4_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF LDR_WITH_PE
747ifneq ($(KBUILD_TARGET_ARCH),amd64)
748RuntimeR3L4_DEFS += __PIC__
749endif
750RuntimeR3L4_INCS = \
751 include \
752 $(L4_INCDIR)
753
754RuntimeR3L4_SOURCES = \
755 generic/fs-stubs-generic.cpp \
756 generic/pathhost-generic.cpp \
757 generic/RTDirQueryInfo-generic.cpp \
758 generic/RTDirSetTimes-generic.cpp \
759 generic/RTFileMove-generic.cpp \
760 generic/RTLogWriteDebugger-generic.cpp \
761 generic/RTSystemQueryOSInfo-generic.cpp \
762 generic/RTSystemQueryDmiString-generic.cpp \
763 generic/RTTimeLocalNow-generic.cpp \
764 generic/RTUuidCreate-generic.cpp \
765 generic/mppresent-generic.cpp \
766 generic/sched-generic.cpp \
767 generic/RTSemEventWait-generic.cpp \
768 generic/RTSemEventMultiWait-generic.cpp \
769 generic/RTSemMutexRequest-generic.cpp \
770 generic/RTSemMutexRequestDebug-generic.cpp \
771 generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
772 generic/utf16locale-generic.cpp \
773 generic/uuid-generic.cpp \
774 generic/RTProcIsRunningByName-generic.cpp \
775 generic/RTThreadGetNativeState-generic.cpp \
776 l4/l4-errno.cpp \
777 l4/rtProcInitExePath-l4.cpp \
778 l4/process-l4env.cpp \
779 l4/sems-l4env.cpp \
780 l4/thread-l4env.cpp \
781 l4/timer-l4env.cpp \
782 l4/utf8-l4env.cpp \
783 r3/posix/RTFileQueryFsSizes-posix.cpp \
784 r3/posix/alloc-posix.cpp \
785 r3/posix/dir-posix.cpp \
786 r3/posix/env-posix.cpp \
787 r3/posix/fileio-posix.cpp \
788 r3/posix/filelock-posix.cpp \
789 r3/posix/ldrNative-posix.cpp \
790 r3/posix/path-posix.cpp \
791 r3/posix/rand-posix.cpp \
792 r3/posix/RTTimeNow-posix.cpp \
793 r3/posix/RTTimeSet-posix.cpp \
794 r3/posix/time-posix.cpp \
795 r3/posix/timelocal-posix.cpp
796
797
798#
799# RuntimeGuestR3 - Guest Additions Runtime (static/exe).
800# (The KBUILD_HOST inheritance here is for l4 cross building the linux
801# additions, while .x86 is for cross building x86 while targeting amd64.)
802#
803RuntimeGuestR3_TEMPLATE := VBOXGUESTR3LIB
804## @todo change this to EXTEND the RuntimeR3 target.
805RuntimeGuestR3_SDKS.win := $(RuntimeR3_SDKS.win)
806RuntimeGuestR3_DEFS := $(filter-out RTCRITSECT_STRICT RT_NO_GIP, $(RuntimeR3_DEFS))
807RuntimeGuestR3_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
808RuntimeGuestR3_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST))
809RuntimeGuestR3_INCS := $(RuntimeR3_INCS)
810RuntimeGuestR3_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
811RuntimeGuestR3_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST))
812RuntimeGuestR3_SOURCES := $(filter-out \
813 common/time/timesupref.cpp \
814 common/time/timesupA.asm \
815 common/time/timesup.cpp \
816 generic/RTLogWriteUser-generic.cpp \
817 , $(RuntimeR3_SOURCES))
818RuntimeGuestR3_SOURCES += \
819 common/time/timesysalias.cpp \
820 VBox/logbackdoor.cpp
821RuntimeGuestR3_SOURCES.$(KBUILD_TARGET) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
822RuntimeGuestR3_SOURCES.$(KBUILD_HOST) := $(RuntimeR3_SOURCES.$(KBUILD_HOST))
823RuntimeGuestR3_SOURCES.$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
824RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
825RuntimeGuestR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH))
826
827
828#
829# RuntimeGuestR3Shared - Guest Additions Runtime (static/dll).
830#
831RuntimeGuestR3Shared_TEMPLATE := VBOXGUESTR3DLL
832RuntimeGuestR3Shared_EXTENDS := RuntimeGuestR3
833RuntimeGuestR3Shared_INST = $(INST_ADDITIONS_LIB)
834
835
836#
837# RuntimeGuestR3Mini - Minimal Guest Additions Runtime which does not require
838# initialization and can be linked into an .so. Intended
839# for X11 drivers, GRADD and similar.
840#
841RuntimeGuestR3Mini_TEMPLATE := VBOXGUESTR3DLL
842## @todo change this to EXTEND the RuntimeGuestR3 target.
843RuntimeGuestR3Mini_INST := $(INST_ADDITIONS_LIB)
844RuntimeGuestR3Mini_SDKS.win := $(RuntimeR3_SDKS.win)
845RuntimeGuestR3Mini_DEFS := $(filter-out RTCRITSECT_STRICT RT_NO_GIP, $(RuntimeR3_DEFS)) RT_MINI
846RuntimeGuestR3Mini_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
847RuntimeGuestR3Mini_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST))
848RuntimeGuestR3Mini_INCS := $(RuntimeR3_INCS)
849RuntimeGuestR3Mini_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
850RuntimeGuestR3Mini_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST))
851RuntimeGuestR3Mini_SOURCES = \
852 common/err/errmsg.cpp \
853 common/err/errmsgxpcom.cpp \
854 common/err/RTErrConvertFromErrno.cpp \
855 common/log/logformat.cpp \
856 common/misc/RTAssertMsg1Weak.cpp \
857 common/misc/RTAssertMsg2.cpp \
858 common/misc/RTAssertMsg2Add.cpp \
859 common/misc/RTAssertMsg2AddWeak.cpp \
860 common/misc/RTAssertMsg2AddWeakV.cpp \
861 common/misc/RTAssertMsg2Weak.cpp \
862 common/misc/RTAssertMsg2WeakV.cpp \
863 common/misc/assert.cpp \
864 common/misc/buildconfig.cpp \
865 common/misc/sanity-c.c \
866 common/misc/sanity-cpp.cpp \
867 common/path/rtPathVolumeSpecLen.cpp \
868 common/path/RTPathAbsDup.cpp \
869 common/path/RTPathAbsEx.cpp \
870 common/path/RTPathAbsExDup.cpp \
871 common/path/RTPathAppend.cpp \
872 common/path/RTPathExt.cpp \
873 common/path/RTPathFilename.cpp \
874 common/path/RTPathHaveExt.cpp \
875 common/path/RTPathHavePath.cpp \
876 common/path/RTPathJoin.cpp \
877 common/path/RTPathParse.cpp \
878 common/path/RTPathRealDup.cpp \
879 common/path/RTPathStripExt.cpp \
880 common/path/RTPathStripFilename.cpp \
881 common/path/RTPathStripTrailingSlash.cpp \
882 common/string/RTStrCmp.cpp \
883 common/string/RTStrCopy.cpp \
884 common/string/RTStrCopyEx.cpp \
885 common/string/RTStrNCmp.cpp \
886 common/string/RTStrNLen.cpp \
887 common/string/RTStrNLenEx.cpp \
888 common/string/RTStrStr.cpp \
889 common/string/straprintf.cpp \
890 common/string/strformat.cpp \
891 common/string/strformatrt.cpp \
892 common/string/strformattype.cpp \
893 common/string/stringalloc.cpp \
894 common/string/strprintf.cpp \
895 common/string/strtonum.cpp \
896 common/string/unidata.cpp \
897 common/string/utf-8.cpp \
898 common/string/utf-8-case.cpp \
899 common/string/utf-16.cpp \
900 generic/pathhost-generic.cpp \
901 generic/RTAssertShouldPanic-generic.cpp \
902 r3/alloc.cpp \
903 r3/fileio.cpp \
904 r3/fs.cpp
905RuntimeGuestR3Mini_SOURCES.freebsd = \
906 r3/posix/env-posix.cpp \
907 r3/posix/fileio-posix.cpp \
908 r3/posix/path-posix.cpp \
909 r3/posix/utf8-posix.cpp
910RuntimeGuestR3Mini_SOURCES.linux = \
911 r3/posix/env-posix.cpp \
912 r3/posix/fileio-posix.cpp \
913 r3/posix/path-posix.cpp \
914 r3/posix/utf8-posix.cpp
915RuntimeGuestR3Mini_SOURCES.solaris = \
916 r3/posix/env-posix.cpp \
917 r3/posix/fileio-posix.cpp \
918 r3/posix/path-posix.cpp \
919 r3/posix/utf8-posix.cpp
920RuntimeGuestR3Mini_SOURCES.win = \
921 r3/win/fileio-win.cpp \
922 r3/win/path-win.cpp \
923 r3/win/utf8-win.cpp \
924 win/errmsgwin.cpp \
925 win/RTErrConvertFromWin32.cpp
926
927# VBox specific stuff.
928RuntimeGuestR3Mini_SOURCES += \
929 VBox/logbackdoor.cpp \
930 VBox/logbackdoor-redirect.cpp
931
932
933#
934# RuntimeLnxHostR3 Linux host program runtime
935# (Only used when building L4.)
936#
937RuntimeLnxHostR3_TEMPLATE = VBOXLNXHOSTR3LIB
938RuntimeLnxHostR3_DEFS = IN_RT_R3 IN_SUP_R3 RT_WITH_VBOX RT_NO_GIP
939RuntimeLnxHostR3_SOURCES = \
940 $(RuntimeR3_SOURCES.linux.$(KBUILD_TARGET_ARCH)) \
941 $(RuntimeR3_SOURCES.linux) \
942 $(RuntimeR3_SOURCES)
943RuntimeLnxHostR3_INCS = \
944 $(RuntimeR3_INCS.linux.$(KBUILD_TARGET_ARCH)) \
945 $(RuntimeR3_INCS.linux) \
946 $(RuntimeR3_INCS)
947
948
949#
950# VBoxRT - Shared Object / DLL version.
951#
952VBoxRT_TEMPLATE = VBoxR3Dll
953VBoxRT_SDKS = VBOX_OPENSSL VBOX_LIBXML2 VBOX_LIBCURL VBOX_BOOST
954VBoxRT_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
955if1of ($(KBUILD_TARGET)$(VBOX_WITH_HARDENING), darwin win)
956VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE)
957endif
958VBoxRT_DEFS = $(filter-out RT_NO_GIP,$(RuntimeR3_DEFS)) IN_SUP_R3 IN_SUP_R3
959VBoxRT_DEFS.$(KBUILD_TYPE) = $(RuntimeR3_DEFS.$(KBUILD_TYPE))
960VBoxRT_SOURCES = \
961 VBox/VBoxRTDeps.cpp \
962 $(filter-out common/checksum/crc32.cpp, $(RuntimeR3_SOURCES))
963VBoxRT_SOURCES += \
964 common/misc/s3.cpp \
965 r3/xml.cpp \
966 common/checksum/RTSha1Digest.cpp \
967 common/checksum/crc32-zlib.cpp \
968 common/checksum/manifest.cpp \
969 common/checksum/sha1.cpp \
970 common/checksum/sha1str.cpp \
971 common/checksum/sha256.cpp \
972 common/checksum/sha256str.cpp \
973 common/checksum/sha512.cpp \
974 common/checksum/sha512str.cpp
975VBoxRT_SOURCES.$(KBUILD_TARGET) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
976VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
977VBoxRT_SOURCES.$(KBUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
978VBoxRT_SOURCES.win += \
979 r3/win/dllmain-win.cpp \
980 r3/win/fileaio-win.cpp \
981 $(VBoxRT_0_OUTDIR)/VBoxRT.def
982VBoxRT_SOURCES.linux += \
983 r3/linux/fileaio-linux.cpp
984VBoxRT_SOURCES.solaris += \
985 r3/solaris/fileaio-solaris.cpp
986VBoxRT_SOURCES.darwin += \
987 r3/posix/fileaio-posix.cpp
988VBoxRT_SOURCES.freebsd += \
989 r3/freebsd/fileaio-freebsd.cpp
990VBoxRT_INCS = $(RuntimeR3_INCS)
991VBoxRT_INCS.$(KBUILD_TARGET) = $(RuntimeR3_INCS.$(KBUILD_TARGET))
992VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
993VBoxRT_LIBS = \
994 $(PATH_LIB)/SUPR3$(VBOX_SUFF_LIB) \
995 $(PATH_LIB)/VBox-liblzf$(VBOX_SUFF_LIB) \
996 $(SDK_VBOX_ZLIB_LIBS)
997ifdef IPRT_WITH_KSTUFF
998 VBoxRT_LIBS += \
999 $(PATH_LIB)/VBox-kStuff$(VBOX_SUFF_LIB)
1000endif
1001ifndef SDK_VBOX_LIBXML2_LIBS
1002 VBoxRT_LIBS += \
1003 $(PATH_LIB)/VBox-libxml2$(VBOX_SUFF_LIB)
1004endif
1005ifndef SDK_VBOX_OPENSSL_LIBS
1006 VBoxRT_LIBS += \
1007 $(PATH_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB)
1008endif
1009ifdef IPRT_WITH_LZO
1010 VBoxRT_LIBS += lzo2
1011endif
1012VBoxRT_LIBS.darwin = \
1013 iconv
1014VBoxRT_LIBS.freebsd = \
1015 iconv \
1016 rt
1017VBoxRT_LIBS.solaris = \
1018 kstat smbios
1019VBoxRT_LIBS.win = \
1020 $(PATH_SDK_W2K3DDK_LIB)/vccomsup.lib \
1021 $(PATH_SDK_W2K3DDK_LIB)/wbemuuid.lib
1022VBoxRT_LDFLAGS.darwin = -framework IOKit -framework CoreFoundation -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxRT.dylib
1023ifdef VBOX_USE_VCC80
1024VBoxRT_LDFLAGS.win = /MANIFEST
1025endif
1026VBoxRT_LDFLAGS.l4 = \
1027 -Wl,-whole-archive \
1028 $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB) \
1029 -Wl,-no-whole-archive
1030ifeq ($(KBUILD_TARGET),l4)
1031VBoxRT_LIBS += \
1032 $(L4_LIBDIR)/libl4sys.a \
1033 $(L4_LIBDIR)/libl4sys.p.a
1034endif
1035VBoxRT_LIBS.l4 = \
1036 $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB)
1037
1038if1of ($(DLLS), VBoxRT)
1039$$(VBoxRT_0_OUTDIR)/VBoxRT.def: \
1040 $(PATH_SUB_CURRENT)/r3/win/VBoxRT-$$(if-expr $$(KBUILD_TARGET_ARCH) == amd64,win64,win32).def \
1041 $(PATH_SUB_CURRENT)/r3/win/$(if $(VBOX_OSE),VBoxRT-openssl-ose.def,VBoxRT-openssl.def)
1042 $(RM) -f -- $@
1043 $(REDIRECT) -wto $@ -- $(CAT_EXT) $^
1044endif
1045
1046
1047#
1048# HACK ALLERT! Make testcase run during build on SELinux boxes.
1049# Create a dummy DLL that ensure that VBoxRT is installed
1050# during the DLL pass and cleaned up later.
1051#
1052ifeq ($(KBUILD_TARGET),linux)
1053 if1of (VBoxRT, $(DLLS))
1054 ifneq ($(wildcard /usr/bin/chcon),)
1055VBoxRT_NOINST = true
1056
1057DLLS += VBoxRTDummy
1058VBoxRTDummy_TEMPLATE = VBOXR3
1059VBoxRTDummy_NOINST = true
1060VBoxRTDummy_LIBS = $(PATH_BIN)/VBoxRT.so
1061VBoxRTDummy_CLEAN= $(PATH_BIN)/VBoxRT.so
1062BLDDIRS += $(PATH_BIN)
1063
1064$(PATH_BIN)/VBoxRT.so: $$(TARGET_VBoxRT) | $$(dir $$@)
1065 $(INSTALL) $< $@
1066 chcon -t texrel_shlib_t $@ || true
1067
1068VBoxRT:: VBoxRTDummy
1069 endif # chcon present.
1070 endif # building VBoxRT
1071endif # linux
1072
1073#
1074# RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
1075# This is used together with VBoxRT.
1076#
1077## @todo the *_alias.c stuff is busted, remove and use RT_WITH_NOCRT_ALIASES instead.
1078RuntimeR3NoCRTGCC_TEMPLATE = VBOXNOCRTGCC
1079RuntimeR3NoCRTGCC_LIBSUFF = $(VBOX_SUFF_LIB)
1080RuntimeR3NoCRTGCC_INCS = include
1081RuntimeR3NoCRTGCC_SOURCES = \
1082 common/misc/sanity-cpp.cpp \
1083 common/misc/sanity-c.c \
1084 \
1085 common/math/ceill.asm \
1086 common/math/cosl.asm \
1087 common/math/fabs.asm \
1088 common/math/fabsf.asm \
1089 common/math/fabsl.asm \
1090 common/math/floor.asm \
1091 common/math/floorf.asm \
1092 common/math/floorl.asm \
1093 common/math/ldexpl.asm \
1094 common/math/llrint.asm \
1095 common/math/llrintf.asm \
1096 common/math/llrintl.asm \
1097 common/math/logl.asm \
1098 common/math/lrint.asm \
1099 common/math/lrintf.asm \
1100 common/math/lrintl.asm \
1101 common/math/remainder.asm \
1102 common/math/remainderf.asm \
1103 common/math/remainderl.asm \
1104 common/math/sinl.asm \
1105 common/math/tanl.asm \
1106 common/math/trunc.asm \
1107 common/math/truncf.asm \
1108 common/math/truncl.asm \
1109 \
1110 $(RuntimeNoCrt_SOURCES) \
1111 \
1112 common/string/memchr_alias.c \
1113 common/string/memcmp_alias.c \
1114 common/string/memcpy_alias.c \
1115 common/string/memmove_alias.c \
1116 common/string/memset_alias.c \
1117 common/string/strchr_alias.c \
1118 common/string/strcmp_alias.c \
1119 common/string/strlen_alias.c
1120
1121RuntimeR3NoCRTGCC_SOURCES.x86 = \
1122 common/math/x86/fenv-x86.c \
1123 common/math/gcc/adddi3.c \
1124 common/math/gcc/anddi3.c \
1125 common/math/gcc/ashldi3.c \
1126 common/math/gcc/ashrdi3.c \
1127 common/math/gcc/cmpdi2.c \
1128 common/math/gcc/divdi3.c \
1129 common/math/gcc/iordi3.c \
1130 common/math/gcc/lshldi3.c \
1131 common/math/gcc/lshrdi3.c \
1132 common/math/gcc/moddi3.c \
1133 common/math/gcc/muldi3.c \
1134 common/math/gcc/negdi2.c \
1135 common/math/gcc/notdi2.c \
1136 common/math/gcc/qdivrem.c \
1137 common/math/gcc/subdi3.c \
1138 common/math/gcc/ucmpdi2.c \
1139 common/math/gcc/udivdi3.c \
1140 common/math/gcc/umoddi3.c \
1141 common/math/gcc/xordi3.c
1142
1143
1144## @todo stop using the old memcpy.c and memset.c code.
1145
1146#
1147# RuntimeR0 - Ring-0 library for VMMR0.
1148#
1149RuntimeR0_TEMPLATE = VBoxR0
1150RuntimeR0_DEFS = IN_RT_R0 RT_WITH_VBOX
1151RuntimeR0_INCS = include
1152RuntimeR0_SOURCES = \
1153 common/checksum/crc32.cpp \
1154 common/checksum/crc64.cpp \
1155 common/checksum/md5.cpp \
1156 common/checksum/ipv4.cpp \
1157 common/log/logellipsis.cpp \
1158 common/log/logrelellipsis.cpp \
1159 common/log/logcom.cpp \
1160 common/log/logformat.cpp \
1161 common/misc/RTAssertMsg1Weak.cpp \
1162 common/misc/RTAssertMsg2.cpp \
1163 common/misc/RTAssertMsg2Add.cpp \
1164 common/misc/RTAssertMsg2AddWeak.cpp \
1165 common/misc/RTAssertMsg2AddWeakV.cpp \
1166 common/misc/RTAssertMsg2Weak.cpp \
1167 common/misc/RTAssertMsg2WeakV.cpp \
1168 common/misc/buildconfig.cpp \
1169 common/misc/handletable.cpp \
1170 common/misc/handletablectx.cpp \
1171 common/misc/handletablesimple.cpp \
1172 common/misc/sanity-c.c \
1173 common/misc/sanity-cpp.cpp \
1174 common/misc/term.cpp \
1175 common/string/strformat.cpp \
1176 common/string/strformatrt.cpp \
1177 common/string/strformattype.cpp \
1178 common/string/strncmp.cpp \
1179 common/string/strpbrk.cpp \
1180 common/string/strprintf.cpp \
1181 common/table/avlgcptr.cpp \
1182 common/table/avlhcphys.cpp \
1183 common/table/avllu32.cpp \
1184 common/table/avlogcphys.cpp \
1185 common/table/avlogcptr.cpp \
1186 common/table/avlohcphys.cpp \
1187 common/table/avloioport.cpp \
1188 common/table/avlpv.cpp \
1189 common/table/avlrogcphys.cpp \
1190 common/table/avlrogcptr.cpp \
1191 common/table/avlroioport.cpp \
1192 common/table/avlroogcptr.cpp \
1193 common/table/avlu32.cpp \
1194 common/table/avlou32.cpp \
1195 common/time/timesup.cpp \
1196 generic/RTAssertShouldPanic-generic.cpp \
1197 \
1198 $(RuntimeNoCrt_SOURCES)
1199
1200if1of ($(KBUILD_TARGET), darwin solaris freebsd)
1201RuntimeR0_SOURCES += \
1202 common/math/gcc/adddi3.c \
1203 common/math/gcc/anddi3.c \
1204 common/math/gcc/ashldi3.c \
1205 common/math/gcc/ashrdi3.c \
1206 common/math/gcc/cmpdi2.c \
1207 common/math/gcc/divdi3.c \
1208 common/math/gcc/iordi3.c \
1209 common/math/gcc/lshldi3.c \
1210 common/math/gcc/lshrdi3.c \
1211 common/math/gcc/moddi3.c \
1212 common/math/gcc/muldi3.c \
1213 common/math/gcc/negdi2.c \
1214 common/math/gcc/notdi2.c \
1215 common/math/gcc/qdivrem.c \
1216 common/math/gcc/subdi3.c \
1217 common/math/gcc/ucmpdi2.c \
1218 common/math/gcc/udivdi3.c \
1219 common/math/gcc/umoddi3.c \
1220 common/math/gcc/xordi3.c
1221endif
1222
1223#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
1224# RuntimeR0_SOURCES += common/time/timesupA.asm
1225#else
1226 RuntimeR0_SOURCES += common/time/timesupref.cpp
1227#endif
1228
1229RuntimeR0_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
1230RuntimeR0_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
1231RuntimeR0_SOURCES.win = \
1232 nt/NtProcessStartup-stub.cpp
1233
1234RuntimeR0_SOURCES.os2 = \
1235 os2/RTErrConvertFromOS2.cpp \
1236 os2/sys0.asm
1237
1238
1239#
1240# RuntimeR0Stub - Ring-0 context startup stub for Windows.
1241#
1242RuntimeR0Stub_TEMPLATE = VBoxR0
1243RuntimeR0Stub_SOURCES.win = \
1244 nt/NtProcessStartup-stub.cpp
1245
1246
1247#
1248# RuntimeR0Drv - Ring-0 library for host drivers.
1249#
1250RuntimeR0Drv_TEMPLATE = VBOXR0DRV
1251RuntimeR0Drv_SDKS.win = W2K3DDK WINPSDKINCS
1252RuntimeR0Drv_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS RT_NO_EXPORT_SYMBOL
1253RuntimeR0Drv_DEFS.win = IN_SUP_R0
1254RuntimeR0Drv_DEFS.linux = MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) IN_SUP_R0
1255
1256RuntimeR0Drv_INCS := $(PATH_SUB_CURRENT) include
1257RuntimeR0Drv_INCS.freebsd = \
1258 $(PATH_INS)/gen-sys-hdrs
1259RuntimeR0Drv_INCS.linux = \
1260 r0drv/linux
1261RuntimeR0Drv_INCS.solaris = \
1262 r0drv/solaris/vbi/i86pc \
1263 r0drv/solaris/vbi/i86pc/sys
1264
1265RuntimeR0Drv_SOURCES = \
1266 common/alloc/alloc.cpp \
1267 common/alloc/heapsimple.cpp \
1268 common/alloc/heapoffset.cpp \
1269 common/checksum/crc32.cpp \
1270 common/checksum/crc64.cpp \
1271 common/checksum/md5.cpp \
1272 common/checksum/ipv4.cpp \
1273 common/log/log.cpp \
1274 common/log/logellipsis.cpp \
1275 common/log/logrel.cpp \
1276 common/log/logrelellipsis.cpp \
1277 common/log/logcom.cpp \
1278 common/log/logformat.cpp \
1279 common/misc/RTAssertMsg1Weak.cpp \
1280 common/misc/RTAssertMsg2.cpp \
1281 common/misc/RTAssertMsg2Add.cpp \
1282 common/misc/RTAssertMsg2AddWeak.cpp \
1283 common/misc/RTAssertMsg2AddWeakV.cpp \
1284 common/misc/RTAssertMsg2Weak.cpp \
1285 common/misc/RTAssertMsg2WeakV.cpp \
1286 common/misc/assert.cpp \
1287 common/misc/buildconfig.cpp \
1288 common/misc/handletable.cpp \
1289 common/misc/handletablectx.cpp \
1290 common/misc/handletablesimple.cpp \
1291 common/misc/once.cpp \
1292 common/misc/sanity-c.c \
1293 common/misc/sanity-cpp.cpp \
1294 common/misc/term.cpp \
1295 common/path/rtPathVolumeSpecLen.cpp \
1296 common/path/RTPathAbsDup.cpp \
1297 common/path/RTPathAbsEx.cpp \
1298 common/path/RTPathAbsExDup.cpp \
1299 common/path/RTPathAppend.cpp \
1300 common/path/RTPathExt.cpp \
1301 common/path/RTPathFilename.cpp \
1302 common/path/RTPathHaveExt.cpp \
1303 common/path/RTPathHavePath.cpp \
1304 common/path/RTPathParse.cpp \
1305 common/path/RTPathRealDup.cpp \
1306 common/path/RTPathStripExt.cpp \
1307 common/path/RTPathStripFilename.cpp \
1308 common/path/RTPathStripTrailingSlash.cpp \
1309 common/rand/rand.cpp \
1310 common/rand/randadv.cpp \
1311 common/rand/randparkmiller.cpp \
1312 common/string/RTStrCmp.cpp \
1313 common/string/RTStrCopy.cpp \
1314 common/string/RTStrCopyEx.cpp \
1315 common/string/RTStrNCmp.cpp \
1316 common/string/RTStrNLen.cpp \
1317 common/string/RTStrNLenEx.cpp \
1318 common/string/strformat.cpp \
1319 common/string/strformatrt.cpp \
1320 common/string/strformattype.cpp \
1321 common/string/strprintf.cpp \
1322 common/string/strtonum.cpp \
1323 common/string/stringalloc.cpp \
1324 common/string/utf-16.cpp \
1325 common/string/utf-8.cpp \
1326 common/table/avlpv.cpp \
1327 generic/RTLogWriteStdErr-stub-generic.cpp \
1328 generic/RTLogWriteUser-generic.cpp \
1329 generic/RTRandAdvCreateSystemFaster-generic.cpp \
1330 generic/uuid-generic.cpp \
1331 r0drv/alloc-r0drv.cpp \
1332 r0drv/initterm-r0drv.cpp \
1333 r0drv/generic/semspinmutex-r0drv-generic.c \
1334 VBox/log-vbox.cpp \
1335
1336## @todo: Linking against RuntimeR0Drv on Linux will result in unresolved external
1337## references to several string functions (e.g. strlen). We could include the
1338## missing functions here but our own implementations conflict with declarations
1339## of some Linux kernels (inline versus not inline, size_t versus unsigned int).
1340##
1341## The prototypes for the unresolved externals are declared in <linux/string.h>.
1342## This file is not included with extern "C" { ... } and therefore the function
1343## prototypes are mangled during C++ compilation. That's why we have to provide
1344## implementations with mangled function names.
1345##
1346## bird: Why don't we just extern "C" {} that file then?
1347RuntimeR0Drv_SOURCES.linux = \
1348 common/string/strpbrk.cpp \
1349 common/err/RTErrConvertToErrno.cpp \
1350 common/err/RTErrConvertFromErrno.cpp \
1351 generic/RTAssertShouldPanic-generic.cpp \
1352 generic/RTLogWriteStdOut-stub-generic.cpp \
1353 generic/mppresent-generic.cpp \
1354 r0drv/linux/alloc-r0drv-linux.c \
1355 r0drv/linux/assert-r0drv-linux.c \
1356 r0drv/linux/initterm-r0drv-linux.c \
1357 r0drv/linux/memobj-r0drv-linux.c \
1358 r0drv/linux/memuserkernel-r0drv-linux.c \
1359 r0drv/linux/mp-r0drv-linux.c \
1360 r0drv/linux/mpnotification-r0drv-linux.c \
1361 r0drv/linux/process-r0drv-linux.c \
1362 r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \
1363 r0drv/linux/semevent-r0drv-linux.c \
1364 r0drv/linux/semeventmulti-r0drv-linux.c \
1365 r0drv/linux/semfastmutex-r0drv-linux.c \
1366 r0drv/linux/semmutex-r0drv-linux.c \
1367 r0drv/linux/spinlock-r0drv-linux.c \
1368 r0drv/linux/thread-r0drv-linux.c \
1369 r0drv/linux/thread2-r0drv-linux.c \
1370 r0drv/linux/time-r0drv-linux.c \
1371 r0drv/linux/timer-r0drv-linux.c \
1372 r0drv/memobj-r0drv.cpp \
1373 r0drv/mpnotification-r0drv.c \
1374 r0drv/powernotification-r0drv.c
1375## @todo thread2-r0drv-linux.c and assert-r0drv-linux.c
1376
1377RuntimeR0Drv_SOURCES.win = \
1378 common/misc/thread.cpp \
1379 common/string/memcmp.asm \
1380 common/string/memchr.asm \
1381 common/string/memcpy.asm \
1382 common/string/memset.asm \
1383 common/string/memmove.asm \
1384 common/string/strlen.asm \
1385 common/string/strncmp.cpp \
1386 common/string/strpbrk.cpp \
1387 generic/RTAssertShouldPanic-generic.cpp \
1388 generic/RTLogWriteStdOut-stub-generic.cpp \
1389 generic/mppresent-generic.cpp \
1390 nt/RTErrConvertFromNtStatus.cpp \
1391 r0drv/memobj-r0drv.cpp \
1392 r0drv/mpnotification-r0drv.c \
1393 r0drv/powernotification-r0drv.c \
1394 r0drv/nt/alloc-r0drv-nt.cpp \
1395 r0drv/nt/assert-r0drv-nt.cpp \
1396 r0drv/nt/initterm-r0drv-nt.cpp \
1397 r0drv/nt/memobj-r0drv-nt.cpp \
1398 r0drv/nt/memuserkernel-r0drv-nt.cpp \
1399 r0drv/nt/mp-r0drv-nt.cpp \
1400 r0drv/nt/mpnotification-r0drv-nt.cpp \
1401 r0drv/nt/process-r0drv-nt.cpp \
1402 r0drv/nt/RTLogWriteDebugger-r0drv-nt.cpp \
1403 r0drv/nt/semevent-r0drv-nt.cpp \
1404 r0drv/nt/semeventmulti-r0drv-nt.cpp \
1405 r0drv/nt/semfastmutex-r0drv-nt.cpp \
1406 r0drv/nt/semmutex-r0drv-nt.cpp \
1407 r0drv/nt/spinlock-r0drv-nt.cpp \
1408 r0drv/nt/thread-r0drv-nt.cpp \
1409 r0drv/nt/thread2-r0drv-nt.cpp \
1410 r0drv/nt/time-r0drv-nt.cpp \
1411 r0drv/nt/timer-r0drv-nt.cpp
1412
1413RuntimeR0Drv_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
1414RuntimeR0Drv_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
1415
1416RuntimeR0Drv_SOURCES.darwin = \
1417 common/err/RTErrConvertFromErrno.cpp \
1418 common/misc/thread.cpp \
1419 common/string/memchr.asm \
1420 common/string/strpbrk.cpp \
1421 darwin/RTErrConvertFromDarwin.cpp \
1422 darwin/RTErrConvertFromDarwinIO.cpp \
1423 darwin/RTErrConvertFromDarwinKern.cpp \
1424 generic/RTAssertShouldPanic-generic.cpp \
1425 generic/RTTimerCreate-generic.cpp \
1426 generic/mppresent-generic.cpp \
1427 generic/timer-generic.cpp \
1428 r0drv/generic/mpnotification-r0drv-generic.cpp \
1429 r0drv/darwin/alloc-r0drv-darwin.cpp \
1430 r0drv/darwin/assert-r0drv-darwin.cpp \
1431 r0drv/darwin/initterm-r0drv-darwin.cpp \
1432 r0drv/darwin/memobj-r0drv-darwin.cpp \
1433 r0drv/darwin/mp-r0drv-darwin.cpp \
1434 r0drv/darwin/memuserkernel-r0drv-darwin.cpp \
1435 r0drv/darwin/process-r0drv-darwin.cpp \
1436 r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
1437 r0drv/darwin/RTLogWriteStdOut-r0drv-darwin.cpp \
1438 r0drv/darwin/semaphore-r0drv-darwin.cpp \
1439 r0drv/darwin/spinlock-r0drv-darwin.cpp \
1440 r0drv/darwin/thread-r0drv-darwin.cpp \
1441 r0drv/darwin/thread2-r0drv-darwin.cpp \
1442 r0drv/darwin/threadpreempt-r0drv-darwin.cpp \
1443 r0drv/darwin/time-r0drv-darwin.cpp \
1444 r0drv/memobj-r0drv.cpp \
1445 r0drv/powernotification-r0drv.c
1446
1447RuntimeR0Drv_SOURCES.os2 = \
1448 common/string/memchr.asm \
1449 common/string/memcmp.asm \
1450 common/string/memcpy.asm \
1451 common/string/mempcpy.asm \
1452 common/string/memmove.asm \
1453 common/string/memset.asm \
1454 common/string/strchr.asm \
1455 common/string/strcmp.asm \
1456 common/string/strcpy.asm \
1457 common/string/strlen.asm \
1458 \
1459 common/string/strncmp.cpp \
1460 common/string/strpbrk.cpp \
1461 \
1462 common/misc/thread.cpp \
1463 generic/RTAssertShouldPanic-generic.cpp \
1464 generic/RTLogWriteDebugger-generic.cpp \
1465 generic/RTLogWriteStdOut-stub-generic.cpp \
1466 generic/RTMpCpuId-generic.cpp \
1467 generic/RTMpCpuIdFromSetIndex-generic.cpp \
1468 generic/RTMpCpuIdToSetIndex-generic.cpp \
1469 generic/RTMpIsCpuPossible-generic.cpp \
1470 generic/RTMpGetCount-generic.cpp \
1471 generic/RTMpGetMaxCpuId-generic.cpp \
1472 generic/RTMpGetOnlineCount-generic.cpp \
1473 generic/RTMpGetOnlineSet-generic.cpp \
1474 generic/RTMpGetSet-generic.cpp \
1475 generic/RTMpIsCpuOnline-generic.cpp \
1476 generic/RTTimerCreate-generic.cpp \
1477 generic/mppresent-generic.cpp \
1478 os2/RTErrConvertFromOS2.cpp \
1479 os2/sys0.asm \
1480 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
1481 r0drv/generic/RTMpOn-r0drv-generic.cpp \
1482 r0drv/generic/mpnotification-r0drv-generic.cpp \
1483 r0drv/memobj-r0drv.cpp \
1484 r0drv/powernotification-r0drv.c \
1485 r0drv/os2/alloc-r0drv-os2.cpp \
1486 r0drv/os2/assert-r0drv-os2.cpp \
1487 r0drv/os2/assertA-r0drv-os2.asm \
1488 r0drv/os2/initterm-r0drv-os2.cpp \
1489 r0drv/os2/memobj-r0drv-os2.cpp \
1490 r0drv/os2/memuserkernel-r0drv-os2.cpp \
1491 r0drv/os2/os2imports.imp \
1492 r0drv/os2/process-r0drv-os2.cpp \
1493 r0drv/os2/RTR0AssertPanicSystem-r0drv-os2.asm \
1494 r0drv/os2/RTR0Os2DHQueryDOSVar.asm \
1495 r0drv/os2/RTR0Os2DHVMGlobalToProcess.asm \
1496 r0drv/os2/semevent-r0drv-os2.cpp \
1497 r0drv/os2/semeventmulti-r0drv-os2.cpp \
1498 r0drv/os2/semfastmutex-r0drv-os2.cpp \
1499 r0drv/os2/spinlock-r0drv-os2.cpp \
1500 r0drv/os2/thread-r0drv-os2.cpp \
1501 r0drv/os2/thread2-r0drv-os2.cpp \
1502 r0drv/os2/time-r0drv-os2.cpp \
1503 r0drv/os2/timer-r0drv-os2.cpp \
1504 r0drv/os2/timerA-r0drv-os2.asm
1505
1506RuntimeR0Drv_SOURCES.freebsd = \
1507 common/err/RTErrConvertFromErrno.cpp \
1508 common/err/RTErrConvertToErrno.cpp \
1509 common/misc/thread.cpp \
1510 common/string/memchr.asm \
1511 common/string/memmove.asm \
1512 common/string/strpbrk.cpp \
1513 common/string/memcmp.asm \
1514 common/string/strchr.asm \
1515 generic/RTAssertShouldPanic-generic.cpp \
1516 generic/RTLogWriteDebugger-generic.cpp \
1517 generic/RTLogWriteStdOut-stub-generic.cpp \
1518 generic/RTTimerCreate-generic.cpp \
1519 generic/mppresent-generic.cpp \
1520 r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
1521 r0drv/generic/mpnotification-r0drv-generic.cpp \
1522 r0drv/freebsd/alloc-r0drv-freebsd.c \
1523 r0drv/freebsd/assert-r0drv-freebsd.c \
1524 r0drv/freebsd/initterm-r0drv-freebsd.c \
1525 r0drv/freebsd/memobj-r0drv-freebsd.c \
1526 r0drv/freebsd/memuserkernel-r0drv-freebsd.c \
1527 r0drv/freebsd/process-r0drv-freebsd.c \
1528 r0drv/freebsd/semevent-r0drv-freebsd.c \
1529 r0drv/freebsd/semeventmulti-r0drv-freebsd.c \
1530 r0drv/freebsd/semfastmutex-r0drv-freebsd.c \
1531 r0drv/freebsd/spinlock-r0drv-freebsd.c \
1532 r0drv/freebsd/thread-r0drv-freebsd.c \
1533 r0drv/freebsd/thread2-r0drv-freebsd.c \
1534 r0drv/freebsd/time-r0drv-freebsd.c \
1535 r0drv/freebsd/mp-r0drv-freebsd.c \
1536 generic/timer-generic.cpp \
1537 r0drv/memobj-r0drv.cpp \
1538 r0drv/powernotification-r0drv.c
1539
1540RuntimeR0Drv_SOURCES.solaris = \
1541 common/err/RTErrConvertFromErrno.cpp \
1542 common/err/RTErrConvertToErrno.cpp \
1543 common/misc/thread.cpp \
1544 common/string/memchr.asm \
1545 generic/RTAssertShouldPanic-generic.cpp \
1546 generic/RTLogWriteStdOut-stub-generic.cpp \
1547 generic/RTTimerCreate-generic.cpp \
1548 generic/mppresent-generic.cpp \
1549 r0drv/memobj-r0drv.cpp \
1550 r0drv/mpnotification-r0drv.c \
1551 r0drv/powernotification-r0drv.c \
1552 r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \
1553 r0drv/solaris/assert-r0drv-solaris.c \
1554 r0drv/solaris/initterm-r0drv-solaris.c \
1555 r0drv/solaris/memuserkernel-r0drv-solaris.c \
1556 r0drv/solaris/semevent-r0drv-solaris.c \
1557 r0drv/solaris/semeventmulti-r0drv-solaris.c \
1558 r0drv/solaris/semfastmutex-r0drv-solaris.c \
1559 r0drv/solaris/spinlock-r0drv-solaris.c
1560
1561 # VBI is now compiled into IPRT
1562 RuntimeR0Drv_SOURCES.solaris += \
1563 r0drv/solaris/vbi/RTMpPokeCpu-r0drv-solaris.c \
1564 r0drv/solaris/vbi/mpnotification-r0drv-solaris.c \
1565 r0drv/solaris/vbi/alloc-r0drv-solaris.c \
1566 r0drv/solaris/vbi/memobj-r0drv-solaris.c \
1567 r0drv/solaris/vbi/mp-r0drv-solaris.c \
1568 r0drv/solaris/vbi/process-r0drv-solaris.c \
1569 r0drv/solaris/vbi/thread-r0drv-solaris.c \
1570 r0drv/solaris/vbi/thread2-r0drv-solaris.c \
1571 r0drv/solaris/vbi/time-r0drv-solaris.c \
1572 r0drv/solaris/vbi/timer-r0drv-solaris.c \
1573 r0drv/solaris/vbi/i86pc/os/vbi.c
1574
1575
1576## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here.
1577
1578RuntimeR0Drv_ORDERDEPS.freebsd = \
1579 $(PATH_INS)/gen-sys-hdrs/bus_if.h \
1580 $(PATH_INS)/gen-sys-hdrs/device_if.h
1581
1582
1583#
1584# RuntimeGuestR0 - Guest driver runtime.
1585# This is almost the same as the RuntimeR0Drv, the main difference
1586# is in the backdoor logging and the lack of sup.h (which should be
1587# made irrelevant even for RuntimeR0Drv).
1588#
1589RuntimeGuestR0_TEMPLATE := VBOXGUESTR0LIB
1590RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES))
1591RuntimeGuestR0_SOURCES += \
1592 VBox/logbackdoor.cpp
1593RuntimeGuestR0_EXTENDS = RuntimeR0Drv
1594
1595
1596#
1597# RuntimeGuestR0NT4 - Win32 NT4 guest driver runtime.
1598#
1599RuntimeGuestR0NT4_EXTENDS = RuntimeGuestR0
1600RuntimeGuestR0NT4_EXTENDS_BY = appending
1601RuntimeGuestR0NT4_DEFS = IPRT_TARGET_NT4
1602
1603
1604ifdef VBOX_WITH_RAW_MODE
1605 #
1606 # RuntimeRC - Raw-mode context library.
1607 #
1608 RuntimeRC_TEMPLATE = VBoxRc
1609 RuntimeRC_DEFS = IN_RT_RC RT_WITH_VBOX
1610 RuntimeRC_INCS = include
1611 RuntimeRC_SOURCES = \
1612 common/log/log.cpp \
1613 common/log/logellipsis.cpp \
1614 common/log/logrel.cpp \
1615 common/log/logrelellipsis.cpp \
1616 common/log/logcom.cpp \
1617 common/log/logformat.cpp \
1618 common/misc/RTAssertMsg1Weak.cpp \
1619 common/misc/RTAssertMsg2.cpp \
1620 common/misc/RTAssertMsg2Add.cpp \
1621 common/misc/RTAssertMsg2AddWeak.cpp \
1622 common/misc/RTAssertMsg2AddWeakV.cpp \
1623 common/misc/RTAssertMsg2Weak.cpp \
1624 common/misc/RTAssertMsg2WeakV.cpp \
1625 common/misc/assert.cpp \
1626 common/misc/buildconfig.cpp \
1627 common/misc/sanity-c.c \
1628 common/misc/sanity-cpp.cpp \
1629 common/string/strformat.cpp \
1630 common/string/strformatrt.cpp \
1631 common/string/strformattype.cpp \
1632 common/string/strncmp.cpp \
1633 common/string/strpbrk.cpp \
1634 common/string/strprintf.cpp \
1635 common/table/avllu32.cpp \
1636 common/table/avlou32.cpp \
1637 common/table/avlogcphys.cpp \
1638 common/table/avlogcptr.cpp \
1639 common/table/avlohcphys.cpp \
1640 common/table/avloioport.cpp \
1641 common/table/avlrogcphys.cpp \
1642 common/table/avlrogcptr.cpp \
1643 common/table/avlroioport.cpp \
1644 common/table/avlroogcptr.cpp \
1645 common/table/avlu32.cpp \
1646 common/time/timeprog.cpp \
1647 common/time/timesup.cpp \
1648 gc/initterm-gc.cpp \
1649 generic/RTAssertShouldPanic-generic.cpp \
1650 \
1651 $(RuntimeNoCrt_SOURCES)
1652
1653 #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
1654 # RuntimeRC_SOURCES += common/time/timesupA.asm
1655 #else
1656 RuntimeRC_SOURCES += common/time/timesupref.cpp
1657 #endif
1658
1659 RuntimeRC_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
1660
1661 ifeq ($(VBOX_LDR_FMT32),lx)
1662 RuntimeRC_SOURCES += os2/sys0.asm
1663 endif
1664
1665 if1of ($(KBUILD_TARGET), darwin solaris freebsd)
1666 RuntimeRC_SOURCES += \
1667 common/math/gcc/adddi3.c \
1668 common/math/gcc/anddi3.c \
1669 common/math/gcc/ashldi3.c \
1670 common/math/gcc/ashrdi3.c \
1671 common/math/gcc/cmpdi2.c \
1672 common/math/gcc/divdi3.c \
1673 common/math/gcc/iordi3.c \
1674 common/math/gcc/lshldi3.c \
1675 common/math/gcc/lshrdi3.c \
1676 common/math/gcc/moddi3.c \
1677 common/math/gcc/muldi3.c \
1678 common/math/gcc/negdi2.c \
1679 common/math/gcc/notdi2.c \
1680 common/math/gcc/qdivrem.c \
1681 common/math/gcc/subdi3.c \
1682 common/math/gcc/ucmpdi2.c \
1683 common/math/gcc/udivdi3.c \
1684 common/math/gcc/umoddi3.c \
1685 common/math/gcc/xordi3.c
1686 endif
1687
1688
1689 #
1690 # RuntimeRCStub - Raw-mode context startup stub for Windows.
1691 #
1692 RuntimeRCStub_TEMPLATE = VBoxRc
1693 RuntimeRCStub_SOURCES.win = \
1694 nt/NtProcessStartup-stub.cpp
1695
1696
1697endif # VBOX_WITH_RAW_MODE
1698
1699
1700#
1701# Static library for new & delete for the electric fence.
1702#
1703RuntimeEFCPP_TEMPLATE = $(RuntimeR3_TEMPLATE)
1704RuntimeEFCPP_SDKS = $(RuntimeR3_SDKS)
1705RuntimeEFCPP_SDKS.$(KBUILD_TARGET) = $(RuntimeR3_SDKS.$(KBUILD_TARGET))
1706RuntimeEFCPP_DEFS = $(RuntimeR3_DEFS)
1707RuntimeEFCPP_DEFS.$(KBUILD_TARGET) = $(RuntimeR3_DEFS.$(KBUILD_TARGET))
1708RuntimeEFCPP_INCS = $(RuntimeR3_INCS)
1709RuntimeEFCPP_INCS.$(KBUILD_TARGET) = $(RuntimeR3_INCS.$(KBUILD_TARGET))
1710RuntimeEFCPP_SOURCES = r3/alloc-ef-cpp.cpp
1711
1712
1713
1714#
1715# errmsg.cpp depends on a generated header.
1716#
1717common/err/errmsg.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h
1718common/err/errmsg.cpp_INCS = $(IPRT_OUT_DIR)
1719
1720win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgcomdata.h
1721win/errmsgwin.cpp_INCS = $(IPRT_OUT_DIR)
1722
1723# Our COM errors only for R3 libraries on the host
1724define def_errmsgwin_deps
1725 $(lib)_win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
1726 $(lib)_common/err/errmsgxpcom.cpp_INCS = $(IPRT_OUT_DIR)
1727 $(lib)_common/err/errmsgxpcom.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
1728endef
1729$(foreach lib,RuntimeR3 VBoxRT RuntimeLnxHostR3,$(eval $(def_errmsgwin_deps)))
1730
1731
1732#
1733# Generate the status code data.
1734#
1735$(IPRT_OUT_DIR)/errmsgdata.h: \
1736 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsg.sed \
1737 $(PATH_ROOT)/include/iprt/err.h \
1738 $(PATH_ROOT)/include/VBox/err.h \
1739 | $$(dir $$@)
1740 $(call MSG_GENERATE,,$@,$(filter %.h,$^))
1741 $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
1742
1743## @todo r=bird: rename this to indicate that it's not only COM errors, but all win32/64 errors.
1744$(IPRT_OUT_DIR)/errmsgcomdata.h: \
1745 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsgcom.sed \
1746 $$(PATH_SDK_WINPSDK_INC)/WinError.h \
1747 | $$(dir $$@)
1748 $(call MSG_GENERATE,,$@,$(filter %.h,$^))
1749 $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
1750
1751$(IPRT_OUT_DIR)/errmsgvboxcomdata.h: \
1752 $(VBOX_PATH_RUNTIME_SRC)/VBox/errmsgvboxcom.xsl \
1753 $(VBOX_XIDL_FILE_SRC) \
1754 | $$(dir $$@)
1755 $(call MSG_GENERATE,,$@,$(filter %.xidl,$^))
1756 $(VBOX_XSLTPROC) -o $@ $< $(filter %.xidl,$^)
1757
1758
1759if "$(KBUILD_TARGET)" == "freebsd"
1760#
1761# FreeBSDGeneratedKernelHeaders - Generate some kernel interface headers.
1762#
1763# These are used by:
1764# - The RTMp* API in IPRT.
1765# - VBoxGuest
1766#
1767# Note! We cannot give a output path to the awk program, it will always
1768# generate the header next to the source. So, we'll have to temporarily copy
1769# the source file to the destination directory to work.
1770#
1771VBOX_AWK := /usr/bin/awk
1772INSTALLS += FreeBSDGeneratedKernelHeaders
1773FreeBSDGeneratedKernelHeaders_INST = gen-sys-hdrs/
1774FreeBSDGeneratedKernelHeaders_SOURCES = \
1775 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h \
1776 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h \
1777 $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h
1778FreeBSDGeneratedKernelHeaders_CLEAN = $(FreeBSDGeneratedKernelHeaders_SOURCES)
1779
1780$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h: $(VBOX_FREEBSD_SRC)/kern/bus_if.m | $$(dir $$@)
1781 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
1782 $(QUIET)$(CP) -f $< $(@D)/bus_if.m
1783 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/bus_if.m -h -p
1784 $(QUIET)$(RM) $(@D)/bus_if.m
1785
1786$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h: $(VBOX_FREEBSD_SRC)/kern/device_if.m | $$(dir $$@)
1787 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
1788 $(QUIET)$(CP) -f $< $(@D)/device_if.m
1789 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/device_if.m -h -p
1790 $(QUIET)$(RM) $(@D)/device_if.m
1791
1792$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h: $(VBOX_FREEBSD_SRC)/dev/pci/pci_if.m | $$(dir $$@)
1793 $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
1794 $(QUIET)$(CP) -f $< $(@D)/pci_if.m
1795 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/pci_if.m -h -p
1796 $(QUIET)$(RM) $(@D)/pci_if.m
1797endif # FreeBSD
1798
1799
1800#
1801# Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
1802#
1803ldrELFRelocatable.cpp.o: ldrELF.o
1804ldrELFRelocatable.cpp.obj: ldrELF.obj
1805
1806
1807#
1808# Doxygen documentation.
1809#
1810IPRT_DOXYFILE_INPUT_DIRS = \
1811 $(PATH_ROOT)/include/iprt \
1812 $(PATH_ROOT)/include/iprt/cpp \
1813 $(PATH_ROOT)/include/iprt/linux \
1814 $(PATH_ROOT)/include/iprt/nocrt \
1815 $(PATH_ROOT)/include/iprt/nocrt/x86 \
1816 $(PATH_ROOT)/include/iprt/nocrt/amd64 \
1817 $(PATH_ROOT)/include/iprt/nocrt/compiler \
1818 $(VBOX_PATH_RUNTIME_SRC)/include/internal \
1819 $(VBOX_PATH_RUNTIME_SRC)/common/alloc \
1820 $(VBOX_PATH_RUNTIME_SRC)/common/asm \
1821 $(VBOX_PATH_RUNTIME_SRC)/common/checksum \
1822 $(VBOX_PATH_RUNTIME_SRC)/common/dbg \
1823 $(VBOX_PATH_RUNTIME_SRC)/common/err \
1824 $(VBOX_PATH_RUNTIME_SRC)/common/ldr \
1825 $(VBOX_PATH_RUNTIME_SRC)/common/log \
1826 $(VBOX_PATH_RUNTIME_SRC)/common/math \
1827 $(VBOX_PATH_RUNTIME_SRC)/common/math/amd64 \
1828 $(VBOX_PATH_RUNTIME_SRC)/common/math/gcc \
1829 $(VBOX_PATH_RUNTIME_SRC)/common/math/x86 \
1830 $(VBOX_PATH_RUNTIME_SRC)/common/misc \
1831 $(VBOX_PATH_RUNTIME_SRC)/common/path \
1832 $(VBOX_PATH_RUNTIME_SRC)/common/rand \
1833 $(VBOX_PATH_RUNTIME_SRC)/common/string \
1834 $(VBOX_PATH_RUNTIME_SRC)/common/table \
1835 $(VBOX_PATH_RUNTIME_SRC)/common/time \
1836 $(VBOX_PATH_RUNTIME_SRC)/VBox \
1837 $(foreach dir, $(VBOX_PATH_RUNTIME_SRC) $(VBOX_PATH_RUNTIME_SRC)/r3 $(VBOX_PATH_RUNTIME_SRC)/r0drv,\
1838 $(dir) \
1839 $(dir)/darwin \
1840 $(dir)/l4 \
1841 $(dir)/linux \
1842 $(dir)/nt \
1843 $(dir)/os2 \
1844 $(dir)/win \
1845 $(dir)/win32 \
1846 $(dir)/win64 \
1847 $(dir)/generic \
1848 )
1849
1850# These must come first in order to make things look nice.
1851IPRT_DOXYFILE_INPUT_FIRST =\
1852 $(PATH_ROOT)/include/iprt/cdefs.h \
1853 $(PATH_ROOT)/include/iprt/types.h \
1854 $(PATH_ROOT)/include/iprt/runtime.h \
1855 $(PATH_ROOT)/include/iprt/param.h \
1856 $(PATH_ROOT)/include/iprt/assert.h \
1857 $(PATH_ROOT)/include/iprt/asm.h \
1858
1859IPRT_DOXYFILE_INPUT := \
1860 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(IPRT_DOXYFILE_INPUT_DIRS)))) ) \
1861 $(foreach dir, $(IPRT_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
1862IPRT_DOXYFILE_INPUT := \
1863 $(IPRT_DOXYFILE_INPUT_FIRST) \
1864 $(filter-out $(IPRT_DOXYFILE_INPUT_FIRST), $(IPRT_DOXYFILE_INPUT))
1865
1866
1867IPRT_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/iprt
1868BLDDIRS += $(IPRT_DOXYFILE_OUTPUT)
1869
1870includedep $(IPRT_OUT_DIR)/Doxyfile.iprt.dep
1871
1872# Generate the Doxyfile
1873$(IPRT_OUT_DIR)/Doxyfile.iprt: \
1874 $(VBOX_PATH_RUNTIME_SRC)/Doxyfile \
1875 $(VBOX_PATH_RUNTIME_SRC)/Makefile.kmk \
1876 $(comp-vars IPRT_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
1877 $(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
1878 | $$(dir $$@)
1879 $(RM) -f $@ [email protected] [email protected]
1880 $(CP) -f $(VBOX_PATH_RUNTIME_SRC)/Doxyfile [email protected]
1881 $(APPEND) [email protected]
1882 $(APPEND) [email protected] "OUTPUT_DIRECTORY = $(IPRT_DOXYFILE_OUTPUT)"
1883 $(APPEND) [email protected] "WARN_LOGFILE = $(IPRT_DOXYFILE_OUTPUT)/errors"
1884 $(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include include . common/table"
1885 $(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
1886 $(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
1887 $(APPEND) [email protected]
1888 $(APPEND) [email protected] "INPUT = $(IPRT_DOXYFILE_INPUT)"
1889 $(APPEND) [email protected]
1890 $(MV) -f [email protected] $@
1891 @$(APPEND) [email protected] "DOXYGEN_OUTPUT_PREV = $(IPRT_DOXYFILE_OUTPUT)"
1892 @$(APPEND) [email protected] "DOXYGEN_INPUT_PREV = $(IPRT_DOXYFILE_INPUT)"
1893
1894# Do the actual job.
1895$(IPRT_OUT_DIR)/docs.iprt: $(IPRT_OUT_DIR)/Doxyfile.iprt $$(IPRT_DOXYFILE_INPUT) | $(IPRT_DOXYFILE_OUTPUT)/
1896 $(RM) -f $(wildcard $(IPRT_DOXYFILE_OUTPUT)/html/*) $(IPRT_OUT_DIR)/docs.iprt
1897 doxygen $(IPRT_OUT_DIR)/Doxyfile.iprt
1898 $(APPEND) $(IPRT_OUT_DIR)/docs.iprt
1899
1900# aliases
1901docs.iprt: $(IPRT_OUT_DIR)/docs.iprt
1902if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
1903docs: $(IPRT_OUT_DIR)/docs.iprt
1904endif
1905
1906test-doxygen::
1907 @echo test-$(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE)
1908 @echo $(IPRT_DOXYFILE_OUTPUT)
1909 @echo $(DOXYGEN_OUTPUT_PREV)
1910 @echo $(IPRT_DOXYFILE_INPUT)
1911
1912#
1913# Generate the rules (we're the to sub-makefile).
1914#
1915include $(KBUILD_PATH)/subfooter.kmk
1916
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette