VirtualBox

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

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

sub-makefile fix.

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