VirtualBox

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

Last change on this file since 10759 was 10718, checked in by vboxsync, 16 years ago

r0drv/solaris/vbi/mpnotification-r0drv-solaris.c prep.

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