VirtualBox

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

Last change on this file since 26761 was 26757, checked in by vboxsync, 15 years ago

Runtime: Don't use crc32-zlib.cpp for the static runtime versions.

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

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