VirtualBox

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

Last change on this file since 10768 was 10768, checked in by vboxsync, 17 years ago

Some early commit of the handle table code (home -> work).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 45.8 KB
Line 
1# $Id: Makefile.kmk 10768 2008-07-21 02:16:19Z vboxsync $
2## @file
3# Sub-Makefile for the IPRT (IPRT).
4#
5
6#
7# Copyright (C) 2006-2007 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
31ifdef VBOX_KBUILD_HACKING
32SUB_DEPTH = ../../..
33else
34SUB_DEPTH = .
35DEPTH ?= ../../..
36endif
37include $(KBUILD_PATH)/subheader.kmk
38
39ifdef VBOX_ONLY_ADDITIONS
40 #
41 # Only build the additions, sort out the legacy names first.
42 #
43 LIBRARIES += RuntimeGuestR0 RuntimeGuestR3 RuntimeGuestR3Mini
44 #LIBRARIES.os2 = RuntimeGuestR0OS2Warp3
45 LIBRARIES.win.x86 += RuntimeGuestR0NT4
46 ifndef VBOX_WITH_ADDITION_DRIVERS
47 if1of ($(KBUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0.
48 LIBRARIES := $(filter-out RuntimeGuestR0, $(LIBRARIES))
49 endif
50 endif
51
52else
53
54 #
55 # Normal build.
56 #
57 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
58
59 BLDPROGS += uniread
60 LIBRARIES += RuntimeR3 RuntimeR0 RuntimeGC RuntimeEFCPP RuntimeR3NoCRTGCC
61 ifdef VBOX_WITH_VBOXDRV
62 LIBRARIES += RuntimeR0Drv
63 endif
64 ifdef VBOX_WITH_ADDITIONS
65 LIBRARIES += RuntimeGuestR0 RuntimeGuestR3 RuntimeGuestR3Mini
66 #LIBRARIES.os2 += RuntimeGuestR0OS2Warp3
67 LIBRARIES.win.x86 += RuntimeGuestR0NT4
68 ifndef VBOX_WITH_ADDITION_DRIVERS
69 if1of ($(KBUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0.
70 LIBRARIES := $(filter-out RuntimeGuestR0, $(LIBRARIES))
71 endif
72 endif
73 endif # VBOX_WITH_ADDITIONS
74 LIBRARIES.l4 += RuntimeR3L4 RuntimeLnxHostR3
75 DLLS += VBoxRT
76 OTHER_CLEAN += \
77 $(PATH_TARGET)/errmsgdata.h \
78 $(PATH_TARGET)/errmsgcomdata.h \
79 $(PATH_TARGET)/Doxyfile.iprt \
80 $(PATH_TARGET)/Doxyfile.iprt.dep \
81 $(PATH_TARGET)/docs.iprt
82
83endif
84
85
86#
87# Globals
88#
89VBOX_PATH_RUNTIME_SRC := $(PATH_SUB_CURRENT)
90
91
92#
93# Unicode Specification reader used to regenerate unidata.cpp.
94#
95uniread_TEMPLATE = VBOXBLDPROG
96uniread_SOURCES = common/string/uniread.cpp
97uniread_INCS = include
98
99#
100# Win64 assembly sources.
101#
102RuntimeWin64ASM_SOURCES = \
103 win/amd64/ASMAtomicBitClear.asm \
104 win/amd64/ASMAtomicBitTestAndToggle.asm \
105 win/amd64/ASMAtomicBitToggle.asm \
106 win/amd64/ASMAtomicReadU64.asm \
107 win/amd64/ASMAtomicXchgU16.asm \
108 win/amd64/ASMAtomicXchgU8.asm \
109 win/amd64/ASMBitFirstClear.asm \
110 win/amd64/ASMBitFirstSet.asm \
111 win/amd64/ASMGetCS.asm \
112 win/amd64/ASMGetDS.asm \
113 win/amd64/ASMGetES.asm \
114 win/amd64/ASMGetFlags.asm \
115 win/amd64/ASMGetFS.asm \
116 win/amd64/ASMGetGS.asm \
117 win/amd64/ASMGetIDTR.asm \
118 win/amd64/ASMGetGDTR.asm \
119 win/amd64/ASMGetTR.asm \
120 win/amd64/ASMGetSS.asm \
121 win/amd64/ASMProbeReadByte.asm \
122 win/amd64/ASMSetFlags.asm \
123 win/amd64/ASMGetDR0.asm \
124 win/amd64/ASMGetDR1.asm \
125 win/amd64/ASMGetDR2.asm \
126 win/amd64/ASMGetDR3.asm \
127 win/amd64/ASMGetDR6.asm \
128 win/amd64/ASMGetDR7.asm \
129 common/asm/ASMMultU64ByU32DivByU32.asm
130
131#
132# Win32 assembly sources.
133#
134RuntimeWin32ASM_SOURCES = \
135 common/asm/ASMMultU64ByU32DivByU32.asm
136
137#
138# RuntimeR3 - Static Runtime for Ring-3 executables.
139#
140RuntimeR3_TEMPLATE = VBOXR3EXE
141RuntimeR3_SDKS.win = WINPSDK W2K3DDK
142RuntimeR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX
143ifdef IPRT_WITH_KSTUFF
144 RuntimeR3_DEFS += LDR_WITH_KLDR
145endif
146ifdef VBOX_MAIN_RELEASE_LOG ## @todo (dmik): temporary, until RTThreadSelf/RTThreadAdopt are properly updated
147 RuntimeR3_DEFS += RTCRITSECT_STRICT
148endif
149RuntimeR3_INCS = \
150 include \
151 $(PATH_ROOT)/src/libs/liblzf-1.51
152ifdef IPRT_WITH_KSTUFF
153 RuntimeR3_INCS += \
154 $(PATH_ROOT)/src/libs/kStuff/kStuff/include
155endif
156RuntimeR3_INCS.l4 = \
157 $(L4_INCDIR)
158# for iconv.h
159RuntimeR3_INCS.freebsd = \
160 /usr/local/include
161
162
163# RuntimeR3_INCS.solaris = \
164# /usr/include
165
166RuntimeR3_SOURCES = \
167 common/alloc/alloc.cpp \
168 common/alloc/heapsimple.cpp \
169 common/checksum/crc32.cpp \
170 common/checksum/crc64.cpp \
171 common/checksum/md5.cpp \
172 common/err/errmsg.cpp \
173 common/err/RTErrConvertFromErrno.cpp \
174 common/ldr/ldr.cpp \
175 common/ldr/ldrELF.cpp \
176 common/ldr/ldrEx.cpp \
177 common/ldr/ldrFile.cpp \
178 common/ldr/ldrNative.cpp \
179 common/ldr/ldrPE.cpp \
180 common/log/log.cpp \
181 common/log/logcom.cpp \
182 common/log/logformat.cpp \
183 common/misc/assert.cpp \
184 common/misc/cache.cpp \
185 common/misc/cidr.cpp \
186 common/misc/getopt.cpp \
187 common/misc/handletable.cpp \
188 common/misc/rand.cpp \
189 common/misc/req.cpp \
190 common/misc/sanity-c.c \
191 common/misc/sanity-cpp.cpp \
192 common/misc/semspingpong.cpp \
193 common/misc/thread.cpp \
194 common/misc/zip.cpp \
195 common/string/straprintf.cpp \
196 common/string/strformat.cpp \
197 common/string/strformatrt.cpp \
198 common/string/strformattype.cpp \
199 common/string/string.cpp \
200 common/string/strprintf.cpp \
201 common/string/strspace.cpp \
202 common/string/strstrip.cpp \
203 common/string/strtonum.cpp \
204 common/string/uni.cpp \
205 common/string/unidata.cpp \
206 common/string/utf-16.cpp \
207 common/string/utf-8.cpp \
208 common/table/avlgcptr.cpp \
209 common/table/avlhcphys.cpp \
210 common/table/avllu32.cpp \
211 common/table/avlou32.cpp \
212 common/table/avlogcphys.cpp \
213 common/table/avlogcptr.cpp \
214 common/table/avlohcphys.cpp \
215 common/table/avloioport.cpp \
216 common/table/avlpv.cpp \
217 common/table/avlrgcptr.cpp \
218 common/table/avlrogcphys.cpp \
219 common/table/avlrogcptr.cpp \
220 common/table/avlroioport.cpp \
221 common/table/avlroogcptr.cpp \
222 common/table/avlu32.cpp \
223 common/table/avlul.cpp \
224 common/table/table.cpp \
225 common/time/time.cpp \
226 common/time/timeprog.cpp \
227 common/time/timesup.cpp \
228 generic/critsect-generic.cpp \
229 generic/env-generic.cpp \
230 generic/RTFileCopy-generic.cpp \
231 generic/RTFileReadAll-generic.cpp \
232 generic/RTFileReadAllEx-generic.cpp \
233 generic/RTFileReadAllByHandle-generic.cpp \
234 generic/RTFileReadAllByHandleEx-generic.cpp \
235 generic/RTFileReadAllFree-generic.cpp \
236 generic/RTLogWriteStdErr-generic.cpp \
237 generic/RTLogWriteStdOut-generic.cpp \
238 generic/RTLogWriteUser-generic.cpp \
239 generic/semfastmutex-generic.cpp \
240 generic/spinlock-generic.cpp \
241 r3/alloc-ef.cpp \
242 r3/alloc.cpp \
243 r3/dir.cpp \
244 r3/fileio.cpp \
245 r3/fs.cpp \
246 r3/init.cpp \
247 r3/path.cpp \
248 r3/process.cpp \
249 r3/stream.cpp \
250 r3/tcp.cpp
251
252#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
253# RuntimeR3_SOURCES += common/time/timesupA.asm
254#else
255 RuntimeR3_SOURCES += common/time/timesupref.cpp
256#endif
257
258ifdef IPRT_WITH_KSTUFF
259 RuntimeR3_SOURCES += \
260 common/ldr/ldrkStuff.cpp
261endif
262
263# VBox specific stuff.
264RuntimeR3_SOURCES += \
265 VBox/strformat-vbox.cpp \
266 VBox/RTAssertDoBreakpoint-vbox.cpp \
267 VBox/log-vbox.cpp
268ifneq ($(KBUILD_TARGET),win)
269RuntimeR3_SOURCES += \
270 common/err/errmsgxpcom.cpp
271endif
272
273RuntimeR3_SOURCES.win = \
274 generic/rand-stubs-generic.cpp \
275 generic/RTDirQueryInfo-generic.cpp \
276 generic/RTDirSetTimes-generic.cpp \
277 generic/semnoint-generic.cpp \
278 generic/semsrw-generic.cpp \
279 generic/RTMpGetCurFrequency-generic.cpp \
280 generic/RTMpGetMaxFrequency-generic.cpp \
281 nt/RTErrConvertFromNtStatus.cpp \
282 r3/posix/env-posix.cpp \
283 r3/win/alloc-win.cpp \
284 r3/win/dir-win.cpp \
285 r3/win/fileio-win.cpp \
286 r3/win/fs-win.cpp \
287 r3/win/ldrNative-win.cpp \
288 r3/win/mp-win.cpp \
289 r3/win/path-win.cpp \
290 r3/win/process-win.cpp \
291 r3/win/RTLogWriteDebugger-win.cpp \
292 r3/win/sched-win.cpp \
293 r3/win/sems-win.cpp \
294 r3/win/system-win.cpp \
295 r3/win/thread-win.cpp \
296 r3/win/time-win.cpp \
297 r3/win/timer-win.cpp \
298 r3/win/tls-win.cpp \
299 r3/win/utf16locale-win.cpp \
300 r3/win/utf8-win.cpp \
301 r3/win/uuid-win.cpp \
302 r3/win/RTUuidCreate-win.cpp \
303 win/errmsgwin.cpp \
304 win/RTErrConvertFromWin32.cpp
305
306RuntimeR3_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
307RuntimeR3_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
308
309RuntimeR3_SOURCES.linux = \
310 generic/pathhost-generic.cpp \
311 generic/RTDirQueryInfo-generic.cpp \
312 generic/RTDirSetTimes-generic.cpp \
313 generic/RTFileMove-generic.cpp \
314 generic/RTLogWriteDebugger-generic.cpp \
315 generic/RTTimeLocalNow-generic.cpp \
316 generic/RTTimerCreate-generic.cpp \
317 generic/RTUuidCreate-generic.cpp \
318 generic/utf16locale-generic.cpp \
319 generic/uuid-generic.cpp \
320 r3/linux/mp-linux.cpp \
321 r3/linux/sched-linux.cpp \
322 r3/linux/time-linux.cpp \
323 r3/posix/alloc-posix.cpp \
324 r3/posix/dir-posix.cpp \
325 r3/posix/env-posix.cpp \
326 r3/posix/fileio-posix.cpp \
327 r3/posix/filelock-posix.cpp \
328 r3/posix/fs-posix.cpp \
329 r3/posix/ldrNative-posix.cpp \
330 r3/posix/path-posix.cpp \
331 r3/posix/process-posix.cpp \
332 r3/posix/rand-posix.cpp \
333 r3/posix/RTTimeNow-posix.cpp \
334 r3/posix/semrw-posix.cpp \
335 r3/posix/system-posix.cpp \
336 r3/posix/thread-posix.cpp \
337 r3/posix/timelocal-posix.cpp \
338 r3/posix/timer-posix.cpp \
339 r3/posix/tls-posix.cpp \
340 r3/posix/utf8-posix.cpp
341RuntimeR3_SOURCES.linux.x86 += \
342 r3/posix/semevent-posix.cpp \
343 r3/posix/semeventmulti-posix.cpp \
344 r3/posix/semmutex-posix.cpp
345RuntimeR3_SOURCES.linux.amd64 += \
346 r3/linux/semevent-linux.cpp \
347 r3/linux/semeventmulti-linux.cpp
348ifdef RT_NEW_LINUX_MUTEX_CODE
349 RuntimeR3_SOURCES.linux.amd64 += \
350 r3/linux/semmutex-linux.cpp
351else
352 RuntimeR3_SOURCES.linux.amd64 += \
353 r3/posix/semmutex-posix.cpp
354endif
355
356RuntimeR3_SOURCES.os2 = \
357 generic/pathhost-generic.cpp \
358 generic/rand-stubs-generic.cpp \
359 generic/RTDirQueryInfo-generic.cpp \
360 generic/RTDirSetTimes-generic.cpp \
361 generic/RTFileMove-generic.cpp \
362 generic/RTLogWriteDebugger-generic.cpp \
363 generic/RTTimeLocalNow-generic.cpp \
364 generic/RTTimerCreate-generic.cpp \
365 generic/RTUuidCreate-generic.cpp \
366 generic/semnoint-generic.cpp \
367 generic/semsrw-generic.cpp \
368 generic/timer-generic.cpp \
369 generic/utf16locale-generic.cpp \
370 generic/uuid-generic.cpp \
371 generic/RTMpGetCurFrequency-generic.cpp \
372 generic/RTMpGetMaxFrequency-generic.cpp \
373 os2/RTErrConvertFromOS2.cpp \
374 r3/os2/filelock-os2.cpp \
375 r3/os2/mp-os2.cpp \
376 r3/os2/sched-os2.cpp \
377 r3/os2/sems-os2.cpp \
378 r3/os2/system-os2.cpp \
379 r3/os2/thread-os2.cpp \
380 r3/os2/time-os2.cpp \
381 r3/posix/alloc-posix.cpp \
382 r3/posix/dir-posix.cpp \
383 r3/posix/env-posix.cpp \
384 r3/posix/fileio-posix.cpp \
385 r3/posix/fs-posix.cpp \
386 r3/posix/ldrNative-posix.cpp \
387 r3/posix/path-posix.cpp \
388 r3/posix/process-posix.cpp \
389 r3/posix/RTTimeNow-posix.cpp \
390 r3/posix/timelocal-posix.cpp \
391 r3/posix/utf8-posix.cpp
392
393RuntimeR3_SOURCES.darwin = \
394 darwin/RTErrConvertFromDarwin.cpp \
395 darwin/RTErrConvertFromDarwinCOM.cpp \
396 darwin/RTErrConvertFromDarwinIO.cpp \
397 darwin/RTErrConvertFromDarwinKern.cpp \
398 generic/pathhost-generic.cpp \
399 generic/RTDirQueryInfo-generic.cpp \
400 generic/RTDirSetTimes-generic.cpp \
401 generic/RTFileMove-generic.cpp \
402 generic/RTLogWriteDebugger-generic.cpp \
403 generic/RTTimeLocalNow-generic.cpp \
404 generic/RTTimerCreate-generic.cpp \
405 generic/RTUuidCreate-generic.cpp \
406 generic/sched-generic.cpp \
407 generic/timer-generic.cpp \
408 generic/utf16locale-generic.cpp \
409 generic/uuid-generic.cpp\
410 r3/darwin/alloc-darwin.cpp \
411 r3/darwin/filelock-darwin.cpp \
412 r3/darwin/mp-darwin.cpp \
413 r3/darwin/time-darwin.cpp \
414 r3/posix/dir-posix.cpp \
415 r3/posix/env-posix.cpp \
416 r3/posix/fileio-posix.cpp \
417 r3/posix/fs-posix.cpp \
418 r3/posix/ldrNative-posix.cpp \
419 r3/posix/path-posix.cpp \
420 r3/posix/process-posix.cpp \
421 r3/posix/rand-posix.cpp \
422 r3/posix/semevent-posix.cpp \
423 r3/posix/semeventmulti-posix.cpp \
424 r3/posix/semmutex-posix.cpp \
425 r3/posix/semrw-posix.cpp \
426 r3/posix/system-posix.cpp \
427 r3/posix/thread-posix.cpp \
428 r3/posix/timelocal-posix.cpp \
429 r3/posix/tls-posix.cpp \
430 r3/posix/utf8-posix.cpp
431
432## @todo Make BSD sched.
433RuntimeR3_SOURCES.freebsd = \
434 generic/pathhost-generic.cpp \
435 generic/RTDirQueryInfo-generic.cpp \
436 generic/RTDirSetTimes-generic.cpp \
437 generic/RTFileMove-generic.cpp \
438 generic/RTLogWriteDebugger-generic.cpp \
439 generic/RTTimeLocalNow-generic.cpp \
440 generic/RTTimerCreate-generic.cpp \
441 generic/RTUuidCreate-generic.cpp \
442 generic/sched-generic.cpp \
443 generic/utf16locale-generic.cpp \
444 generic/uuid-generic.cpp \
445 generic/RTMpGetCurFrequency-generic.cpp \
446 generic/RTMpGetMaxFrequency-generic.cpp \
447 r3/freebsd/alloc-freebsd.cpp \
448 r3/posix/dir-posix.cpp \
449 r3/posix/env-posix.cpp \
450 r3/posix/fileio-posix.cpp \
451 r3/posix/filelock-posix.cpp \
452 r3/posix/fs-posix.cpp \
453 r3/posix/ldrNative-posix.cpp \
454 r3/posix/path-posix.cpp \
455 r3/posix/process-posix.cpp \
456 r3/posix/rand-posix.cpp \
457 r3/posix/RTMpGetCount-posix.cpp \
458 r3/posix/RTTimeNow-posix.cpp \
459 r3/posix/semevent-posix.cpp \
460 r3/posix/semeventmulti-posix.cpp \
461 r3/posix/semmutex-posix.cpp \
462 r3/posix/semrw-posix.cpp \
463 r3/posix/system-posix.cpp \
464 r3/posix/thread-posix.cpp \
465 r3/posix/time-posix.cpp \
466 r3/posix/timelocal-posix.cpp \
467 r3/posix/timer-posix.cpp \
468 r3/posix/tls-posix.cpp \
469 r3/posix/utf8-posix.cpp
470
471RuntimeR3_SOURCES.solaris = \
472 generic/pathhost-generic.cpp \
473 generic/RTDirQueryInfo-generic.cpp \
474 generic/RTDirSetTimes-generic.cpp \
475 generic/RTFileMove-generic.cpp \
476 generic/RTLogWriteDebugger-generic.cpp \
477 generic/RTTimeLocalNow-generic.cpp \
478 generic/RTTimerCreate-generic.cpp \
479 generic/RTUuidCreate-generic.cpp \
480 generic/sched-generic.cpp \
481 generic/utf16locale-generic.cpp \
482 generic/uuid-generic.cpp \
483 generic/RTMpGetCurFrequency-generic.cpp \
484 generic/RTMpGetMaxFrequency-generic.cpp \
485 r3/posix/dir-posix.cpp \
486 r3/posix/env-posix.cpp \
487 r3/posix/fileio-posix.cpp \
488 r3/posix/filelock-posix.cpp \
489 r3/posix/fs-posix.cpp \
490 r3/posix/ldrNative-posix.cpp \
491 r3/posix/path-posix.cpp \
492 r3/posix/process-posix.cpp \
493 r3/posix/rand-posix.cpp \
494 r3/posix/RTMpGetCount-posix.cpp \
495 r3/posix/RTTimeNow-posix.cpp \
496 r3/posix/semevent-posix.cpp \
497 r3/posix/semeventmulti-posix.cpp \
498 r3/posix/semmutex-posix.cpp \
499 r3/posix/semrw-posix.cpp \
500 r3/posix/system-posix.cpp \
501 r3/posix/thread-posix.cpp \
502 r3/posix/time-posix.cpp \
503 r3/posix/timelocal-posix.cpp \
504 r3/posix/timer-posix.cpp \
505 r3/posix/tls-posix.cpp \
506 r3/posix/utf8-posix.cpp \
507 r3/solaris/alloc-solaris.cpp
508
509## PORTME: Porters add their selection of platform specific files for Ring-3 here.
510
511
512#
513# L4 RuntimeR3 subtarget since L4 headers won't work with VBOXR3.
514#
515RuntimeR3L4_TEMPLATE = VBOXR3NP
516RuntimeR3L4_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF LDR_WITH_PE
517ifneq ($(KBUILD_TARGET_ARCH),amd64)
518RuntimeR3L4_DEFS += __PIC__
519endif
520RuntimeR3L4_INCS = \
521 include \
522 $(L4_INCDIR)
523
524RuntimeR3L4_SOURCES = \
525 generic/fs-stubs-generic.cpp \
526 generic/pathhost-generic.cpp \
527 generic/RTDirQueryInfo-generic.cpp \
528 generic/RTDirSetTimes-generic.cpp \
529 generic/RTFileMove-generic.cpp \
530 generic/RTLogWriteDebugger-generic.cpp \
531 generic/RTTimeLocalNow-generic.cpp \
532 generic/RTUuidCreate-generic.cpp \
533 generic/sched-generic.cpp \
534 generic/semnoint-generic.cpp \
535 generic/semsrw-generic.cpp \
536 generic/utf16locale-generic.cpp \
537 generic/uuid-generic.cpp \
538 l4/l4-errno.cpp \
539 l4/process-l4env.cpp \
540 l4/sems-l4env.cpp \
541 l4/system-l4env.cpp \
542 l4/thread-l4env.cpp \
543 l4/timer-l4env.cpp \
544 l4/utf8-l4env.cpp \
545 r3/posix/alloc-posix.cpp \
546 r3/posix/dir-posix.cpp \
547 r3/posix/env-posix.cpp \
548 r3/posix/fileio-posix.cpp \
549 r3/posix/filelock-posix.cpp \
550 r3/posix/ldrNative-posix.cpp \
551 r3/posix/path-posix.cpp \
552 r3/posix/rand-posix.cpp \
553 r3/posix/RTTimeNow-posix.cpp \
554 r3/posix/time-posix.cpp \
555 r3/posix/timelocal-posix.cpp
556
557
558#
559# RuntimeGuestR3 - Guest Additions Runtime (static).
560# (The KBUILD_HOST inheritance here is for l4 cross building the linux
561# additions, while .x86 is for cross building x86 while targeting amd64.)
562#
563RuntimeGuestR3_TEMPLATE := VBOXGUESTR3LIB
564## @todo change this to EXTEND the RuntimeR3 target.
565RuntimeGuestR3_SDKS.win := $(RuntimeR3_SDKS.win)
566RuntimeGuestR3_DEFS := $(filter-out RTCRITSECT_STRICT, $(RuntimeR3_DEFS))
567RuntimeGuestR3_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
568RuntimeGuestR3_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST))
569RuntimeGuestR3_INCS := $(RuntimeR3_INCS)
570RuntimeGuestR3_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
571RuntimeGuestR3_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST))
572RuntimeGuestR3_SOURCES := $(filter-out \
573 common/time/timesupref.cpp \
574 common/time/timesupA.asm \
575 common/time/timesup.cpp \
576 generic/RTLogWriteUser-generic.cpp \
577 , $(RuntimeR3_SOURCES))
578RuntimeGuestR3_SOURCES += \
579 common/time/timesysalias.cpp \
580 VBox/logbackdoor.cpp
581RuntimeGuestR3_SOURCES.$(KBUILD_TARGET) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
582RuntimeGuestR3_SOURCES.$(KBUILD_HOST) := $(RuntimeR3_SOURCES.$(KBUILD_HOST))
583RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
584RuntimeGuestR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH))
585
586
587#
588# RuntimeGuestR3Mini - Minimal Guest Additions Runtime which does not require
589# initialization and can be linked into an .so. Intended
590# for X11 drivers, GRADD and similar.
591#
592RuntimeGuestR3Mini_TEMPLATE := VBOXGUESTR3DLL
593## @todo change this to EXTEND the RuntimeGuestR3 target.
594RuntimeGuestR3Mini_INST := $(INST_ADDITIONS_LIB)
595RuntimeGuestR3Mini_SDKS.win := $(RuntimeR3_SDKS.win)
596RuntimeGuestR3Mini_DEFS := $(filter-out RTCRITSECT_STRICT, $(RuntimeR3_DEFS)) RT_MINI
597RuntimeGuestR3Mini_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
598RuntimeGuestR3Mini_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST))
599RuntimeGuestR3Mini_INCS := $(RuntimeR3_INCS)
600RuntimeGuestR3Mini_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
601RuntimeGuestR3Mini_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST))
602RuntimeGuestR3Mini_SOURCES = \
603 common/err/errmsg.cpp \
604 common/err/RTErrConvertFromErrno.cpp \
605 common/log/logformat.cpp \
606 common/misc/assert.cpp \
607 common/misc/sanity-c.c \
608 common/misc/sanity-cpp.cpp \
609 common/string/strformat.cpp \
610 common/string/strformatrt.cpp \
611 common/string/strformattype.cpp \
612 common/string/string.cpp \
613 common/string/strprintf.cpp \
614 common/string/strtonum.cpp \
615 common/string/unidata.cpp \
616 common/string/utf-8.cpp \
617 common/string/utf-16.cpp \
618 generic/pathhost-generic.cpp \
619 generic/RTAssertDoBreakpoint-generic.cpp \
620 r3/alloc.cpp \
621 r3/fileio.cpp \
622 r3/fs.cpp \
623 r3/path.cpp
624RuntimeGuestR3Mini_SOURCES.linux = \
625 r3/posix/fileio-posix.cpp \
626 r3/posix/path-posix.cpp \
627 r3/posix/utf8-posix.cpp
628RuntimeGuestR3Mini_SOURCES.solaris = \
629 r3/posix/fileio-posix.cpp \
630 r3/posix/path-posix.cpp \
631 r3/posix/utf8-posix.cpp
632RuntimeGuestR3Mini_SOURCES.freebsd = \
633 r3/posix/fileio-posix.cpp \
634 r3/posix/path-posix.cpp \
635 r3/posix/utf8-posix.cpp
636# VBox specific stuff.
637RuntimeGuestR3Mini_SOURCES += \
638 VBox/logbackdoor.cpp \
639 VBox/logbackdoor-redirect.cpp \
640 VBox/strformat-vbox.cpp
641
642
643#
644# RuntimeLnxHostR3 Linux host program runtime
645# (Only used when building L4.)
646#
647RuntimeLnxHostR3_TEMPLATE = VBOXLNXHOSTR3LIB
648RuntimeLnxHostR3_DEFS = IN_RT_R3 IN_SUP_R3 RT_WITH_VBOX RT_NO_GIP
649RuntimeLnxHostR3_SOURCES = \
650 $(RuntimeR3_SOURCES.linux.$(KBUILD_TARGET_ARCH)) \
651 $(RuntimeR3_SOURCES.linux) \
652 $(RuntimeR3_SOURCES)
653RuntimeLnxHostR3_INCS = \
654 $(RuntimeR3_INCS.linux.$(KBUILD_TARGET_ARCH)) \
655 $(RuntimeR3_INCS.linux) \
656 $(RuntimeR3_INCS)
657
658
659#
660# VBoxRT - Shared Object / DLL version.
661#
662VBoxRT_TEMPLATE = VBOXR3
663VBoxRT_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
664ifeq ($(KBUILD_TARGET),darwin)
665VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE)
666endif
667VBoxRT_DEFS = $(RuntimeR3_DEFS) IN_SUP_R3 IN_SUP_R3
668VBoxRT_DEFS.$(KBUILD_TYPE) = $(RuntimeR3_DEFS.$(KBUILD_TYPE))
669VBoxRT_SOURCES = \
670 VBox/VBoxRTDeps.cpp \
671 $(RuntimeR3_SOURCES)
672VBoxRT_SOURCES.$(KBUILD_TARGET) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
673VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
674VBoxRT_SOURCES.win += r3/win/dllmain-win.cpp
675VBoxRT_SOURCES.win.x86 += r3/win/VBoxRT-win32.def
676VBoxRT_SOURCES.win.amd64 += r3/win/VBoxRT-win64.def
677VBoxRT_INCS = $(RuntimeR3_INCS)
678VBoxRT_INCS.$(KBUILD_TARGET) = $(RuntimeR3_INCS.$(KBUILD_TARGET))
679VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
680VBoxRT_LIBS = \
681 $(PATH_LIB)/SUPR3$(VBOX_SUFF_LIB) \
682 $(PATH_LIB)/VBox-liblzf$(VBOX_SUFF_LIB)
683ifdef IPRT_WITH_KSTUFF
684 VBoxRT_LIBS += \
685 $(PATH_LIB)/VBox-kStuff$(VBOX_SUFF_LIB)
686endif
687VBoxRT_LIBS.darwin = \
688 iconv
689VBoxRT_LIBS.freebsd = \
690 iconv
691VBoxRT_LIBPATH.freebsd = \
692 /usr/local/lib
693VBoxRT_LDFLAGS.darwin = -framework IOKit -install_name @executable_path/VBoxRT.dylib
694ifdef VBOX_USE_VCC80
695VBoxRT_LDFLAGS.win = /MANIFEST
696endif
697VBoxRT_LDFLAGS.l4 = \
698 -Wl,-whole-archive \
699 $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB) \
700 -Wl,-no-whole-archive
701ifeq ($(KBUILD_TARGET),l4)
702VBoxRT_LIBS += \
703 $(L4_LIBDIR)/libl4sys.a \
704 $(L4_LIBDIR)/libl4sys.p.a
705endif
706VBoxRT_LIBS.l4 = \
707 $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB)
708
709
710#
711# RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
712# This is used together with VBoxRT.
713#
714RuntimeR3NoCRTGCC_TEMPLATE = VBOXNOCRTGCC
715RuntimeR3NoCRTGCC_LIBSUFF = $(VBOX_SUFF_LIB)
716RuntimeR3NoCRTGCC_INCS = include
717RuntimeR3NoCRTGCC_SOURCES = \
718 common/misc/sanity-cpp.cpp \
719 common/misc/sanity-c.c \
720 \
721 common/math/ceill.asm \
722 common/math/cosl.asm \
723 common/math/fabs.asm \
724 common/math/fabsf.asm \
725 common/math/fabsl.asm \
726 common/math/floor.asm \
727 common/math/floorf.asm \
728 common/math/floorl.asm \
729 common/math/ldexpl.asm \
730 common/math/llrint.asm \
731 common/math/llrintf.asm \
732 common/math/llrintl.asm \
733 common/math/logl.asm \
734 common/math/lrint.asm \
735 common/math/lrintf.asm \
736 common/math/lrintl.asm \
737 common/math/remainder.asm \
738 common/math/remainderf.asm \
739 common/math/remainderl.asm \
740 common/math/sinl.asm \
741 common/math/tanl.asm \
742 common/math/trunc.asm \
743 common/math/truncf.asm \
744 common/math/truncl.asm \
745 \
746 common/misc/setjmp.asm \
747 \
748 common/string/memchr.asm \
749 common/string/memchr_alias.c \
750 common/string/memcmp.asm \
751 common/string/memcmp_alias.c \
752 common/string/memcpy.asm \
753 common/string/memcpy_alias.c \
754 common/string/mempcpy.asm \
755 common/string/memmove.asm \
756 common/string/memmove_alias.c \
757 common/string/memset.asm \
758 common/string/memset_alias.c \
759 common/string/strchr.asm \
760 common/string/strchr_alias.c \
761 common/string/strcmp.asm \
762 common/string/strcmp_alias.c \
763 common/string/strlen.asm \
764 common/string/strlen_alias.c
765
766RuntimeR3NoCRTGCC_SOURCES.x86 = \
767 common/math/x86/fenv-x86.c \
768 common/math/gcc/adddi3.c \
769 common/math/gcc/anddi3.c \
770 common/math/gcc/ashldi3.c \
771 common/math/gcc/ashrdi3.c \
772 common/math/gcc/cmpdi2.c \
773 common/math/gcc/divdi3.c \
774 common/math/gcc/iordi3.c \
775 common/math/gcc/lshldi3.c \
776 common/math/gcc/lshrdi3.c \
777 common/math/gcc/moddi3.c \
778 common/math/gcc/muldi3.c \
779 common/math/gcc/negdi2.c \
780 common/math/gcc/notdi2.c \
781 common/math/gcc/qdivrem.c \
782 common/math/gcc/subdi3.c \
783 common/math/gcc/ucmpdi2.c \
784 common/math/gcc/udivdi3.c \
785 common/math/gcc/umoddi3.c \
786 common/math/gcc/xordi3.c
787
788
789## @todo stop using the old memcpy.c and memset.c code.
790
791#
792# RuntimeR0 - Ring0 library for VMMR0.
793#
794RuntimeR0_TEMPLATE = VBOXR0
795RuntimeR0_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS
796RuntimeR0_INCS = include
797RuntimeR0_SOURCES = \
798 common/log/logcom.cpp \
799 common/log/logformat.cpp \
800 common/misc/assert.cpp \
801 common/misc/handletable.cpp \
802 common/misc/sanity-c.c \
803 common/misc/sanity-cpp.cpp \
804 common/string/memchr.cpp \
805 common/string/memcmp.cpp \
806 common/string/memcpy.cpp \
807 common/string/memmove.asm \
808 common/string/memset.cpp \
809 common/string/strcmp.asm \
810 common/string/strcpy.cpp \
811 common/string/strformat.cpp \
812 common/string/strformatrt.cpp \
813 common/string/strformattype.cpp \
814 common/string/strlen.asm \
815 common/string/strncmp.cpp \
816 common/string/strpbrk.cpp \
817 common/string/strprintf.cpp \
818 common/table/avlgcptr.cpp \
819 common/table/avlhcphys.cpp \
820 common/table/avllu32.cpp \
821 common/table/avlogcphys.cpp \
822 common/table/avlogcptr.cpp \
823 common/table/avlohcphys.cpp \
824 common/table/avloioport.cpp \
825 common/table/avlpv.cpp \
826 common/table/avlrogcphys.cpp \
827 common/table/avlrogcptr.cpp \
828 common/table/avlroioport.cpp \
829 common/table/avlroogcptr.cpp \
830 common/table/avlu32.cpp \
831 common/time/timesup.cpp \
832 generic/RTAssertDoBreakpoint-generic.cpp \
833 VBox/strformat-vbox.cpp
834
835#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
836# RuntimeR0_SOURCES += common/time/timesupA.asm
837#else
838 RuntimeR0_SOURCES += common/time/timesupref.cpp
839#endif
840
841RuntimeR0_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
842RuntimeR0_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
843
844RuntimeR0_SOURCES.os2 = \
845 os2/RTErrConvertFromOS2.cpp \
846 os2/sys0.asm
847
848ifeq ($(filter-out darwin solaris freebsd,$(KBUILD_TARGET)),)
849RuntimeR0_SOURCES += \
850 common/math/gcc/adddi3.c \
851 common/math/gcc/anddi3.c \
852 common/math/gcc/ashldi3.c \
853 common/math/gcc/ashrdi3.c \
854 common/math/gcc/cmpdi2.c \
855 common/math/gcc/divdi3.c \
856 common/math/gcc/iordi3.c \
857 common/math/gcc/lshldi3.c \
858 common/math/gcc/lshrdi3.c \
859 common/math/gcc/moddi3.c \
860 common/math/gcc/muldi3.c \
861 common/math/gcc/negdi2.c \
862 common/math/gcc/notdi2.c \
863 common/math/gcc/qdivrem.c \
864 common/math/gcc/subdi3.c \
865 common/math/gcc/ucmpdi2.c \
866 common/math/gcc/udivdi3.c \
867 common/math/gcc/umoddi3.c \
868 common/math/gcc/xordi3.c
869endif
870
871
872common/string/memchr.cpp_CXXFLAGS.win = -Oi-
873common/string/memcmp.cpp_CXXFLAGS.win = -Oi-
874common/string/memcpy.cpp_CXXFLAGS.win = -Oi-
875common/string/memset.cpp_CXXFLAGS.win = -Oi-
876common/string/strcpy.cpp_CXXFLAGS.win = -Oi-
877common/string/strlen.cpp_CXXFLAGS.win = -Oi-
878
879#
880# RuntimeR0Drv - Ring0 library for host drivers.
881#
882RuntimeR0Drv_TEMPLATE = VBOXR0DRV
883RuntimeR0Drv_SDKS.win = W2K3DDK WINPSDKINCS
884RuntimeR0Drv_INCS := $(PATH_SUB_CURRENT) include
885RuntimeR0Drv_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS
886RuntimeR0Drv_DEFS.win = IN_SUP_R0
887RuntimeR0Drv_DEFS.linux = MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) IN_SUP_R0 # why is IN_SUP_R0 here? because!
888
889RuntimeR0Drv_INCS.linux = \
890 r0drv/linux
891ifdef VBOX_WITH_SOLARIS_VBI
892 RuntimeR0Drv_INCS.solaris = \
893 r0drv/solaris/vbi/i86pc
894endif
895
896RuntimeR0Drv_SOURCES = \
897 common/checksum/crc32.cpp \
898 common/checksum/crc64.cpp \
899 common/log/log.cpp \
900 common/log/logcom.cpp \
901 common/log/logformat.cpp \
902 common/misc/assert.cpp \
903 common/misc/handletable.cpp \
904 common/misc/sanity-c.c \
905 common/misc/sanity-cpp.cpp \
906 common/string/strformat.cpp \
907 common/string/strformatrt.cpp \
908 common/string/strformattype.cpp \
909 common/string/strprintf.cpp \
910 common/string/strtonum.cpp \
911 common/table/avlpv.cpp \
912 generic/RTLogWriteStdErr-stub-generic.cpp \
913 generic/RTLogWriteUser-generic.cpp \
914 generic/uuid-generic.cpp \
915 r0drv/alloc-r0drv.cpp \
916 r0drv/initterm-r0drv.cpp \
917 VBox/log-vbox.cpp \
918 VBox/strformat-vbox.cpp
919
920RuntimeR0Drv_SOURCES.linux = \
921 common/alloc/heapsimple.cpp \
922 common/string/strpbrk.cpp \
923 common/err/RTErrConvertToErrno.cpp \
924 generic/RTAssertDoBreakpoint-generic.cpp \
925 generic/RTLogWriteStdOut-stub-generic.cpp \
926 r0drv/linux/alloc-r0drv-linux.c \
927 r0drv/linux/initterm-r0drv-linux.c \
928 r0drv/linux/memobj-r0drv-linux.c \
929 r0drv/linux/mp-r0drv-linux.c \
930 r0drv/linux/mpnotification-r0drv-linux.c \
931 r0drv/linux/process-r0drv-linux.c \
932 r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \
933 r0drv/linux/semevent-r0drv-linux.c \
934 r0drv/linux/semeventmulti-r0drv-linux.c \
935 r0drv/linux/semfastmutex-r0drv-linux.c \
936 r0drv/linux/spinlock-r0drv-linux.c \
937 r0drv/linux/thread-r0drv-linux.c \
938 r0drv/linux/time-r0drv-linux.c \
939 r0drv/linux/timer-r0drv-linux.c \
940 r0drv/memobj-r0drv.cpp \
941 r0drv/mpnotification-r0drv.c
942## @todo thread2-r0drv-linux.c and assert-r0drv-linux.c
943
944RuntimeR0Drv_SOURCES.win = \
945 common/misc/thread.cpp \
946 common/string/memcmp.asm \
947 common/string/memchr.asm \
948 common/string/memcpy.asm \
949 common/string/memset.asm \
950 common/string/memmove.asm \
951 common/string/strlen.asm \
952 common/string/strncmp.cpp \
953 common/string/strpbrk.cpp \
954 generic/RTAssertDoBreakpoint-generic.cpp \
955 generic/RTLogWriteStdOut-stub-generic.cpp \
956 nt/RTErrConvertFromNtStatus.cpp \
957 r0drv/memobj-r0drv.cpp \
958 r0drv/mpnotification-r0drv.c \
959 r0drv/nt/alloc-r0drv-nt.cpp \
960 r0drv/nt/initterm-r0drv-nt.cpp \
961 r0drv/nt/memobj-r0drv-nt.cpp \
962 r0drv/nt/mp-r0drv-nt.cpp \
963 r0drv/nt/mpnotification-r0drv-nt.cpp \
964 r0drv/nt/process-r0drv-nt.cpp \
965 r0drv/nt/RTLogWriteDebugger-r0drv-nt.cpp \
966 r0drv/nt/semevent-r0drv-nt.cpp \
967 r0drv/nt/semeventmulti-r0drv-nt.cpp \
968 r0drv/nt/semfastmutex-r0drv-nt.cpp \
969 r0drv/nt/semmutex-r0drv-nt.cpp \
970 r0drv/nt/spinlock-r0drv-nt.cpp \
971 r0drv/nt/thread-r0drv-nt.cpp \
972 r0drv/nt/thread2-r0drv-nt.cpp \
973 r0drv/nt/time-r0drv-nt.cpp \
974 r0drv/nt/timer-r0drv-nt.cpp
975## @todo assert-r0drv-nt.cpp
976
977RuntimeR0Drv_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
978RuntimeR0Drv_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
979
980RuntimeR0Drv_SOURCES.darwin = \
981 common/err/RTErrConvertFromErrno.cpp \
982 common/misc/thread.cpp \
983 common/string/memchr.asm \
984 common/string/strpbrk.cpp \
985 darwin/RTErrConvertFromDarwin.cpp \
986 darwin/RTErrConvertFromDarwinIO.cpp \
987 darwin/RTErrConvertFromDarwinKern.cpp \
988 generic/RTAssertDoBreakpoint-generic.cpp \
989 generic/RTMpCpuId-generic.cpp \
990 generic/RTMpCpuIdFromSetIndex-generic.cpp \
991 generic/RTMpCpuIdToSetIndex-generic.cpp \
992 generic/RTMpIsCpuPossible-generic.cpp \
993 generic/RTMpGetCount-generic.cpp \
994 generic/RTMpGetMaxCpuId-generic.cpp \
995 generic/RTMpGetOnlineCount-generic.cpp \
996 generic/RTMpGetOnlineSet-generic.cpp \
997 generic/RTMpGetSet-generic.cpp \
998 generic/RTMpIsCpuOnline-generic.cpp \
999 generic/RTTimerCreate-generic.cpp \
1000 generic/timer-generic.cpp \
1001 r0drv/generic/RTMpOn-r0drv-generic.cpp \
1002 r0drv/generic/mpnotification-r0drv-generic.cpp \
1003 r0drv/darwin/alloc-r0drv-darwin.cpp \
1004 r0drv/darwin/assert-r0drv-darwin.cpp \
1005 r0drv/darwin/initterm-r0drv-darwin.cpp \
1006 r0drv/darwin/memobj-r0drv-darwin.cpp \
1007 r0drv/darwin/process-r0drv-darwin.cpp \
1008 r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
1009 r0drv/darwin/RTLogWriteStdOut-r0drv-darwin.cpp \
1010 r0drv/darwin/semaphore-r0drv-darwin.cpp \
1011 r0drv/darwin/spinlock-r0drv-darwin.cpp \
1012 r0drv/darwin/thread-r0drv-darwin.cpp \
1013 r0drv/darwin/thread2-r0drv-darwin.cpp \
1014 r0drv/darwin/time-r0drv-darwin.cpp \
1015 r0drv/memobj-r0drv.cpp
1016
1017RuntimeR0Drv_SOURCES.os2 = \
1018 common/string/memchr.asm \
1019 common/string/memcmp.asm \
1020 common/string/memcpy.asm \
1021 common/string/mempcpy.asm \
1022 common/string/memmove.asm \
1023 common/string/memset.asm \
1024 common/string/strchr.asm \
1025 common/string/strcmp.asm \
1026 common/string/strlen.asm \
1027 \
1028 common/string/strcpy.cpp \
1029 common/string/strncmp.cpp \
1030 common/string/strpbrk.cpp \
1031 \
1032 common/misc/thread.cpp \
1033 generic/RTLogWriteDebugger-generic.cpp \
1034 generic/RTLogWriteStdOut-stub-generic.cpp \
1035 generic/RTMpCpuId-generic.cpp \
1036 generic/RTMpCpuIdFromSetIndex-generic.cpp \
1037 generic/RTMpCpuIdToSetIndex-generic.cpp \
1038 generic/RTMpIsCpuPossible-generic.cpp \
1039 generic/RTMpGetCount-generic.cpp \
1040 generic/RTMpGetMaxCpuId-generic.cpp \
1041 generic/RTMpGetOnlineCount-generic.cpp \
1042 generic/RTMpGetOnlineSet-generic.cpp \
1043 generic/RTMpGetSet-generic.cpp \
1044 generic/RTMpIsCpuOnline-generic.cpp \
1045 generic/RTTimerCreate-generic.cpp \
1046 os2/RTErrConvertFromOS2.cpp \
1047 os2/sys0.asm \
1048 r0drv/memobj-r0drv.cpp \
1049 r0drv/generic/RTMpOn-r0drv-generic.cpp \
1050 r0drv/generic/mpnotification-r0drv-generic.cpp \
1051 r0drv/os2/alloc-r0drv-os2.cpp \
1052 r0drv/os2/assert-r0drv-os2.cpp \
1053 r0drv/os2/assertA-r0drv-os2.asm \
1054 r0drv/os2/initterm-r0drv-os2.cpp \
1055 r0drv/os2/memobj-r0drv-os2.cpp \
1056 r0drv/os2/os2imports.imp \
1057 r0drv/os2/process-r0drv-os2.cpp \
1058 r0drv/os2/RTAssertDoBreakpoint-r0drv-os2.asm \
1059 r0drv/os2/RTR0Os2DHQueryDOSVar.asm \
1060 r0drv/os2/RTR0Os2DHVMGlobalToProcess.asm \
1061 r0drv/os2/semevent-r0drv-os2.cpp \
1062 r0drv/os2/semeventmulti-r0drv-os2.cpp \
1063 r0drv/os2/semfastmutex-r0drv-os2.cpp \
1064 r0drv/os2/spinlock-r0drv-os2.cpp \
1065 r0drv/os2/thread-r0drv-os2.cpp \
1066 r0drv/os2/thread2-r0drv-os2.cpp \
1067 r0drv/os2/time-r0drv-os2.cpp \
1068 r0drv/os2/timer-r0drv-os2.cpp \
1069 r0drv/os2/timerA-r0drv-os2.asm
1070
1071RuntimeR0Drv_SOURCES.freebsd = \
1072 common/err/RTErrConvertFromErrno.cpp \
1073 common/err/RTErrConvertToErrno.cpp \
1074 common/misc/thread.cpp \
1075 common/string/memchr.asm \
1076 common/string/memmove.asm \
1077 common/string/strpbrk.cpp \
1078 common/string/memcmp.asm \
1079 common/string/strchr.asm \
1080 generic/RTAssertDoBreakpoint-generic.cpp \
1081 generic/RTLogWriteDebugger-generic.cpp \
1082 generic/RTLogWriteStdOut-stub-generic.cpp \
1083 generic/RTMpCpuId-generic.cpp \
1084 generic/RTMpCpuIdFromSetIndex-generic.cpp \
1085 generic/RTMpCpuIdToSetIndex-generic.cpp \
1086 generic/RTMpIsCpuPossible-generic.cpp \
1087 generic/RTMpGetCount-generic.cpp \
1088 generic/RTMpGetMaxCpuId-generic.cpp \
1089 generic/RTMpGetOnlineCount-generic.cpp \
1090 generic/RTMpGetOnlineSet-generic.cpp \
1091 generic/RTMpGetSet-generic.cpp \
1092 generic/RTMpIsCpuOnline-generic.cpp \
1093 generic/RTTimerCreate-generic.cpp \
1094 r0drv/generic/RTMpOn-r0drv-generic.cpp \
1095 r0drv/generic/mpnotification-r0drv-generic.cpp \
1096 r0drv/freebsd/alloc-r0drv-freebsd.c \
1097 r0drv/freebsd/assert-r0drv-freebsd.c \
1098 r0drv/freebsd/initterm-r0drv-freebsd.c \
1099 r0drv/freebsd/memobj-r0drv-freebsd.c \
1100 r0drv/freebsd/process-r0drv-freebsd.c \
1101 r0drv/freebsd/semevent-r0drv-freebsd.c \
1102 r0drv/freebsd/semeventmulti-r0drv-freebsd.c \
1103 r0drv/freebsd/semfastmutex-r0drv-freebsd.c \
1104 r0drv/freebsd/spinlock-r0drv-freebsd.c \
1105 r0drv/freebsd/thread-r0drv-freebsd.c \
1106 r0drv/freebsd/thread2-r0drv-freebsd.c \
1107 r0drv/freebsd/time-r0drv-freebsd.c \
1108 r0drv/freebsd/timer-r0drv-freebsd.c \
1109 r0drv/memobj-r0drv.cpp
1110
1111RuntimeR0Drv_SOURCES.solaris = \
1112 common/err/RTErrConvertFromErrno.cpp \
1113 common/misc/thread.cpp \
1114 common/string/memchr.asm \
1115 generic/RTAssertDoBreakpoint-generic.cpp \
1116 generic/RTLogWriteStdOut-stub-generic.cpp \
1117 generic/RTTimerCreate-generic.cpp \
1118 r0drv/memobj-r0drv.cpp \
1119 r0drv/mpnotification-r0drv.c
1120
1121ifdef VBOX_WITH_SOLARIS_VBI
1122 ## @todo svn copy r0drv/solaris/mpnotification-r0drv-solaris.c r0drv/solaris/vbi/mpnotification-r0drv-solaris.c
1123 # and change the first file below.
1124 RuntimeR0Drv_SOURCES.solaris += \
1125 r0drv/solaris/mpnotification-r0drv-solaris.c \
1126 r0drv/solaris/vbi/alloc-r0drv-solaris.c \
1127 r0drv/solaris/vbi/assert-r0drv-solaris.c \
1128 r0drv/solaris/vbi/initterm-r0drv-solaris.c \
1129 r0drv/solaris/vbi/memobj-r0drv-solaris.c \
1130 r0drv/solaris/vbi/mp-r0drv-solaris.c \
1131 r0drv/solaris/vbi/process-r0drv-solaris.c \
1132 r0drv/solaris/vbi/RTLogWriteDebugger-r0drv-solaris.c \
1133 r0drv/solaris/vbi/semevent-r0drv-solaris.c \
1134 r0drv/solaris/vbi/semeventmulti-r0drv-solaris.c \
1135 r0drv/solaris/vbi/semfastmutex-r0drv-solaris.c \
1136 r0drv/solaris/vbi/spinlock-r0drv-solaris.c \
1137 r0drv/solaris/vbi/thread-r0drv-solaris.c \
1138 r0drv/solaris/vbi/thread2-r0drv-solaris.c \
1139 r0drv/solaris/vbi/time-r0drv-solaris.c \
1140 r0drv/solaris/vbi/timer-r0drv-solaris.c
1141else # !VBOX_WITH_SOLARIS_VBI
1142 RuntimeR0Drv_SOURCES.solaris += \
1143 r0drv/solaris/mpnotification-r0drv-solaris.c \
1144 r0drv/solaris/alloc-r0drv-solaris.c \
1145 r0drv/solaris/assert-r0drv-solaris.c \
1146 r0drv/solaris/initterm-r0drv-solaris.c \
1147 r0drv/solaris/memobj-r0drv-solaris.c \
1148 r0drv/solaris/process-r0drv-solaris.c \
1149 r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \
1150 r0drv/solaris/semevent-r0drv-solaris.c \
1151 r0drv/solaris/semeventmulti-r0drv-solaris.c \
1152 r0drv/solaris/semfastmutex-r0drv-solaris.c \
1153 r0drv/solaris/spinlock-r0drv-solaris.c \
1154 r0drv/solaris/thread-r0drv-solaris.c \
1155 r0drv/solaris/thread2-r0drv-solaris.c \
1156 r0drv/solaris/time-r0drv-solaris.c \
1157 r0drv/solaris/timer-r0drv-solaris.c
1158 # Don't use mp-r0drv-solaris.c because it will cause crashes due to incorrect memobj-r0drv-solaris.c code.
1159 ifeq (0,0)
1160 # Stub it. ## @todo limit the stubbing to RTMpOn*.
1161 RuntimeR0Drv_SOURCES.solaris += \
1162 generic/RTMpCpuId-generic.cpp \
1163 generic/RTMpCpuIdFromSetIndex-generic.cpp \
1164 generic/RTMpCpuIdToSetIndex-generic.cpp \
1165 generic/RTMpIsCpuPossible-generic.cpp \
1166 generic/RTMpGetCount-generic.cpp \
1167 generic/RTMpGetMaxCpuId-generic.cpp \
1168 generic/RTMpGetOnlineCount-generic.cpp \
1169 generic/RTMpGetOnlineSet-generic.cpp \
1170 generic/RTMpGetSet-generic.cpp \
1171 generic/RTMpIsCpuOnline-generic.cpp \
1172 r0drv/generic/RTMpOn-r0drv-generic.cpp
1173 else
1174 # Use mp-r0drv-solaris.c.
1175 RuntimeR0Drv_SOURCES.solaris += \
1176 r0drv/solaris/mp-r0drv-solaris.c
1177# r0drv/solaris/mpnotification-r0drv-solaris.c
1178 endif
1179
1180endif # !VBOX_WITH_SOLARIS_VBI
1181
1182## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here.
1183
1184
1185#
1186# RuntimeGuestR0 - Guest driver runtime.
1187# This is almost the same as the RuntimeR0Drv, the main difference
1188# is in the backdoor logging and the lack of sup.h (which should be
1189# made irrelevant even for RuntimeR0Drv).
1190#
1191RuntimeGuestR0_TEMPLATE := VBOXGUESTR0LIB
1192RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES))
1193RuntimeGuestR0_SOURCES += VBox/logbackdoor.cpp
1194RuntimeGuestR0_EXTENDS = RuntimeR0Drv
1195
1196# HACK: no vbi for the solaris guest additions - yet.
1197RuntimeGuestR0_SOURCES.solaris = \
1198 common/err/RTErrConvertFromErrno.cpp \
1199 common/err/RTErrConvertToErrno.cpp \
1200 common/misc/thread.cpp \
1201 common/string/memchr.asm \
1202 generic/RTAssertDoBreakpoint-generic.cpp \
1203 generic/RTTimerCreate-generic.cpp \
1204 r0drv/memobj-r0drv.cpp \
1205 generic/RTMpCpuId-generic.cpp \
1206 generic/RTMpCpuIdFromSetIndex-generic.cpp \
1207 generic/RTMpCpuIdToSetIndex-generic.cpp \
1208 generic/RTMpIsCpuPossible-generic.cpp \
1209 generic/RTMpGetCount-generic.cpp \
1210 generic/RTMpGetMaxCpuId-generic.cpp \
1211 generic/RTMpGetOnlineCount-generic.cpp \
1212 generic/RTMpGetOnlineSet-generic.cpp \
1213 generic/RTMpGetSet-generic.cpp \
1214 generic/RTMpIsCpuOnline-generic.cpp \
1215 r0drv/generic/RTMpOn-r0drv-generic.cpp \
1216 r0drv/generic/mpnotification-r0drv-generic.cpp \
1217 r0drv/solaris/alloc-r0drv-solaris.c \
1218 r0drv/solaris/assert-r0drv-solaris.c \
1219 r0drv/solaris/initterm-r0drv-solaris.c \
1220 r0drv/solaris/memobj-r0drv-solaris.c \
1221 r0drv/solaris/process-r0drv-solaris.c \
1222 r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \
1223 r0drv/solaris/semevent-r0drv-solaris.c \
1224 r0drv/solaris/semeventmulti-r0drv-solaris.c \
1225 r0drv/solaris/semfastmutex-r0drv-solaris.c \
1226 r0drv/solaris/spinlock-r0drv-solaris.c \
1227 r0drv/solaris/thread-r0drv-solaris.c \
1228 r0drv/solaris/thread2-r0drv-solaris.c \
1229 r0drv/solaris/time-r0drv-solaris.c \
1230 r0drv/solaris/timer-r0drv-solaris.c
1231
1232#
1233# RuntimeGuestR0NT4 - Win32 NT4 guest driver runtime.
1234#
1235RuntimeGuestR0NT4_EXTENDS = RuntimeGuestR0
1236RuntimeGuestR0NT4_EXTENDS_BY = appending
1237RuntimeGuestR0NT4_DEFS = IPRT_TARGET_NT4
1238
1239
1240#
1241# RuntimeGC - Guest context library.
1242#
1243RuntimeGC_TEMPLATE = VBOXGC
1244RuntimeGC_DEFS = IN_RT_GC RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS
1245RuntimeGC_INCS = include
1246RuntimeGC_SOURCES = \
1247 common/log/log.cpp \
1248 common/log/logcom.cpp \
1249 common/log/logformat.cpp \
1250 common/misc/assert.cpp \
1251 common/misc/sanity-c.c \
1252 common/misc/sanity-cpp.cpp \
1253 common/string/memchr.cpp \
1254 common/string/memcmp.cpp \
1255 common/string/memcpy.cpp \
1256 common/string/memset.cpp \
1257 common/string/memmove.asm \
1258 common/string/strcpy.cpp \
1259 common/string/strformat.cpp \
1260 common/string/strformatrt.cpp \
1261 common/string/strformattype.cpp \
1262 common/string/strlen.asm \
1263 common/string/strncmp.cpp \
1264 common/string/strpbrk.cpp \
1265 common/string/strprintf.cpp \
1266 common/table/avllu32.cpp \
1267 common/table/avlou32.cpp \
1268 common/table/avlogcphys.cpp \
1269 common/table/avlogcptr.cpp \
1270 common/table/avlohcphys.cpp \
1271 common/table/avloioport.cpp \
1272 common/table/avlrogcphys.cpp \
1273 common/table/avlrogcptr.cpp \
1274 common/table/avlroioport.cpp \
1275 common/table/avlroogcptr.cpp \
1276 common/table/avlu32.cpp \
1277 common/time/timeprog.cpp \
1278 common/time/timesup.cpp \
1279 gc/initterm-gc.cpp \
1280 generic/RTAssertDoBreakpoint-generic.cpp \
1281 VBox/strformat-vbox.cpp \
1282
1283#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
1284# RuntimeGC_SOURCES += common/time/timesupA.asm
1285#else
1286 RuntimeGC_SOURCES += common/time/timesupref.cpp
1287#endif
1288
1289RuntimeGC_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
1290
1291ifeq ($(VBOX_LDR_FMT32),lx)
1292 RuntimeGC_SOURCES += os2/sys0.asm
1293endif
1294
1295if1of ($(KBUILD_TARGET), darwin solaris freebsd)
1296RuntimeGC_SOURCES += \
1297 common/math/gcc/adddi3.c \
1298 common/math/gcc/anddi3.c \
1299 common/math/gcc/ashldi3.c \
1300 common/math/gcc/ashrdi3.c \
1301 common/math/gcc/cmpdi2.c \
1302 common/math/gcc/divdi3.c \
1303 common/math/gcc/iordi3.c \
1304 common/math/gcc/lshldi3.c \
1305 common/math/gcc/lshrdi3.c \
1306 common/math/gcc/moddi3.c \
1307 common/math/gcc/muldi3.c \
1308 common/math/gcc/negdi2.c \
1309 common/math/gcc/notdi2.c \
1310 common/math/gcc/qdivrem.c \
1311 common/math/gcc/subdi3.c \
1312 common/math/gcc/ucmpdi2.c \
1313 common/math/gcc/udivdi3.c \
1314 common/math/gcc/umoddi3.c \
1315 common/math/gcc/xordi3.c
1316endif
1317
1318
1319#
1320# Static library for new & delete for the electric fence.
1321#
1322RuntimeEFCPP_TEMPLATE = $(RuntimeR3_TEMPLATE)
1323RuntimeEFCPP_SDKS = $(RuntimeR3_SDKS)
1324RuntimeEFCPP_SDKS.$(KBUILD_TARGET) = $(RuntimeR3_SDKS.$(KBUILD_TARGET))
1325RuntimeEFCPP_DEFS = $(RuntimeR3_DEFS)
1326RuntimeEFCPP_DEFS.$(KBUILD_TARGET) = $(RuntimeR3_DEFS.$(KBUILD_TARGET))
1327RuntimeEFCPP_INCS = $(RuntimeR3_INCS)
1328RuntimeEFCPP_INCS.$(KBUILD_TARGET) = $(RuntimeR3_INCS.$(KBUILD_TARGET))
1329RuntimeEFCPP_SOURCES = r3/alloc-ef-cpp.cpp
1330
1331
1332
1333#
1334# errmsg.cpp depends on a generated header.
1335#
1336common/err/errmsg.cpp_DEPS = $(PATH_TARGET)/errmsgdata.h
1337common/err/errmsg.cpp_INCS = $(PATH_TARGET)
1338
1339win/errmsgwin.cpp_DEPS = $(PATH_TARGET)/errmsgcomdata.h
1340win/errmsgwin.cpp_INCS = $(PATH_TARGET)
1341
1342
1343#
1344# Generate the rules (we're the to sub-makefile).
1345#
1346include $(KBUILD_PATH)/subfooter.kmk
1347
1348
1349ifneq ($(wildcard /usr/bin/chcon),)
1350# this is needed for testcases executed at build time
1351## @todo Make a special installer tool that does this.
1352$(PATH_BIN)/VBoxRT.so:
1353 $(INSTALL) $(TARGET_VBoxRT) $@
1354 chcon -t texrel_shlib_t $@ || true
1355endif
1356
1357
1358#
1359# Generate the status code data.
1360#
1361$(PATH_TARGET)/errmsgdata.h: \
1362 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsg.sed \
1363 $(PATH_ROOT)/include/iprt/err.h \
1364 $(PATH_ROOT)/include/VBox/err.h
1365 $(call MSG_GENERATE,,$@,$(filter %.h,$^))
1366 $(QUIET)$(MKDIR) -p $(PATH_TARGET)
1367 $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
1368
1369## @todo r=bird: rename this to indicate that it's not only COM errors, but all win32/64 errors.
1370$(PATH_TARGET)/errmsgcomdata.h: \
1371 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsgcom.sed \
1372 $$(PATH_SDK_WINPSDK_INC)/WinError.h
1373 $(call MSG_GENERATE,,$@,$(filter %.h,$^))
1374 $(QUIET)$(MKDIR) -p $(PATH_TARGET)
1375 $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
1376
1377
1378#
1379# Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
1380#
1381ldrELFRelocatable.cpp.o: ldrELF.o
1382ldrELFRelocatable.cpp.obj: ldrELF.obj
1383
1384
1385#
1386# Doxygen documentation.
1387#
1388IPRT_DOXYFILE_INPUT_DIRS = \
1389 $(PATH_ROOT)/include/iprt \
1390 $(PATH_ROOT)/include/iprt/nocrt \
1391 $(PATH_ROOT)/include/iprt/nocrt/x86 \
1392 $(PATH_ROOT)/include/iprt/nocrt/amd64 \
1393 $(VBOX_PATH_RUNTIME_SRC)/include/internal \
1394 $(VBOX_PATH_RUNTIME_SRC)/common/alloc \
1395 $(VBOX_PATH_RUNTIME_SRC)/common/checksum \
1396 $(VBOX_PATH_RUNTIME_SRC)/common/err \
1397 $(VBOX_PATH_RUNTIME_SRC)/common/ldr \
1398 $(VBOX_PATH_RUNTIME_SRC)/common/log \
1399 $(VBOX_PATH_RUNTIME_SRC)/common/misc \
1400 $(VBOX_PATH_RUNTIME_SRC)/common/string \
1401 $(VBOX_PATH_RUNTIME_SRC)/common/table \
1402 $(VBOX_PATH_RUNTIME_SRC)/common/time \
1403 $(VBOX_PATH_RUNTIME_SRC)/VBox \
1404 $(foreach dir, $(VBOX_PATH_RUNTIME_SRC) $(VBOX_PATH_RUNTIME_SRC)/r3 $(VBOX_PATH_RUNTIME_SRC)/r0drv,\
1405 $(dir) \
1406 $(dir)/darwin \
1407 $(dir)/l4 \
1408 $(dir)/linux \
1409 $(dir)/nt \
1410 $(dir)/os2 \
1411 $(dir)/win \
1412 $(dir)/win32 \
1413 $(dir)/win64 \
1414 $(dir)/generic \
1415 )
1416
1417# These must come first in order to make things look nice.
1418IPRT_DOXYFILE_INPUT_FIRST =\
1419 $(PATH_ROOT)/include/iprt/cdefs.h \
1420 $(PATH_ROOT)/include/iprt/types.h \
1421 $(PATH_ROOT)/include/iprt/runtime.h \
1422 $(PATH_ROOT)/include/iprt/param.h \
1423 $(PATH_ROOT)/include/iprt/assert.h \
1424 $(PATH_ROOT)/include/iprt/asm.h \
1425
1426IPRT_DOXYFILE_INPUT := \
1427 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(IPRT_DOXYFILE_INPUT_DIRS)))) ) \
1428 $(foreach dir, $(IPRT_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
1429IPRT_DOXYFILE_INPUT := \
1430 $(IPRT_DOXYFILE_INPUT_FIRST) \
1431 $(filter-out $(IPRT_DOXYFILE_INPUT_FIRST), $(IPRT_DOXYFILE_INPUT))
1432
1433
1434IPRT_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/iprt
1435
1436-include $(PATH_TARGET)/Doxyfile.iprt.dep
1437
1438# Generate the Doxyfile
1439$(PATH_TARGET)/Doxyfile.iprt: \
1440 $(VBOX_PATH_RUNTIME_SRC)/Doxyfile \
1441 $(VBOX_PATH_RUNTIME_SRC)/Makefile.kmk \
1442 $(comp-vars IPRT_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
1443 $(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
1444 | $(call DIRDEP, $(PATH_TARGET))
1445 $(RM) -f $@ $@.tmp $(PATH_TARGET)/Doxyfile.iprt.dep
1446 $(CP) -f $(VBOX_PATH_RUNTIME_SRC)/Doxyfile $@.tmp
1447 $(APPEND) $@.tmp
1448 $(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(IPRT_DOXYFILE_OUTPUT)"
1449 $(APPEND) $@.tmp "WARN_LOGFILE = $(IPRT_DOXYFILE_OUTPUT)/errors"
1450 $(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include include . common/table"
1451 $(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
1452 $(APPEND) $@.tmp "PREDEFINED += $(ARCH_BITS_DEFS)"
1453 $(APPEND) $@.tmp
1454 $(APPEND) $@.tmp "INPUT = $(IPRT_DOXYFILE_INPUT)"
1455 $(APPEND) $@.tmp
1456 $(MV) -f $@.tmp $@
1457 @$(APPEND) $(PATH_TARGET)/Doxyfile.iprt.dep "DOXYGEN_OUTPUT_PREV = $(IPRT_DOXYFILE_OUTPUT)"
1458 @$(APPEND) $(PATH_TARGET)/Doxyfile.iprt.dep "DOXYGEN_INPUT_PREV = $(IPRT_DOXYFILE_INPUT)"
1459
1460# Create the output directory.
1461$(call DIRDEP, $(IPRT_DOXYFILE_OUTPUT)):
1462 $(MKDIR) -p $@
1463
1464# Do the actual job.
1465$(PATH_TARGET)/docs.iprt: $(PATH_TARGET)/Doxyfile.iprt $(IPRT_DOXYFILE_INPUT) | $(call DIRDEP, $(IPRT_DOXYFILE_OUTPUT))
1466 $(RM) -f $(wildcard $(IPRT_DOXYFILE_OUTPUT)/html/*) $(PATH_TARGET)/docs.iprt
1467 doxygen $(PATH_TARGET)/Doxyfile.iprt
1468 $(APPEND) $(PATH_TARGET)/docs.iprt
1469
1470# alias
1471docs: $(PATH_TARGET)/docs.iprt
1472
1473test:
1474 @echo test-$(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE)
1475 @echo $(IPRT_DOXYFILE_OUTPUT)
1476 @echo $(DOXYGEN_OUTPUT_PREV)
1477 @echo $(IPRT_DOXYFILE_INPUT)
1478
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