VirtualBox

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

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

iprt: Added RTHandleClose and pipe stubs.

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

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