VirtualBox

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

Last change on this file since 27123 was 27033, checked in by vboxsync, 15 years ago

Runtime/Makefile.kmk: The testsuite needs RuntimeR0Stub.

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

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