VirtualBox

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

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

Cooked up some basic RTMp for darwin.

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