VirtualBox

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

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

Missing continuation slash.

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