1 | # $Id: Makefile.kmk 5456 2007-10-24 01:04:51Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the innotek Portable Runtime (IPRT).
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 innotek GmbH
|
---|
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 as published by the Free Software Foundation,
|
---|
13 | # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
14 | # distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
15 | # be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 |
|
---|
17 |
|
---|
18 | DEPTH = ../../..
|
---|
19 | include $(PATH_KBUILD)/header.kmk
|
---|
20 |
|
---|
21 | ifdef VBOX_ADDITIONS_LINUX_ONLY
|
---|
22 | LIBRARIES = RuntimeLnx32GuestR0 RuntimeLnx32GuestR3
|
---|
23 | else ifdef VBOX_ADDITIONS_WIN32_ONLY
|
---|
24 | LIBRARIES = RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0
|
---|
25 | else ifdef VBOX_ADDITIONS_OS2_ONLY
|
---|
26 | LIBRARIES += RuntimeOS2GuestR0 RuntimeOS2GuestR3 #RuntimeOS2Warp3GuestR0
|
---|
27 | else
|
---|
28 | # Build everything.
|
---|
29 | BLDPROGS = uniread
|
---|
30 | LIBRARIES = RuntimeR3 RuntimeR0 RuntimeGC RuntimeEFCPP RuntimeR3NoCRTGCC
|
---|
31 | ifdef VBOX_WITH_VBOXDRV
|
---|
32 | LIBRARIES += RuntimeR0Drv
|
---|
33 | endif
|
---|
34 | ifdef VBOX_WITH_WIN32_ADDITIONS
|
---|
35 | LIBRARIES += RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0
|
---|
36 | endif
|
---|
37 | ifdef VBOX_WITH_LINUX_ADDITIONS
|
---|
38 | LIBRARIES += RuntimeLnx32GuestR3
|
---|
39 | ifdef VBOX_WITH_LINUX_ADDITIONS_32BIT_R0
|
---|
40 | LIBRARIES += RuntimeLnx32GuestR0
|
---|
41 | endif
|
---|
42 | endif
|
---|
43 | ifdef VBOX_WITH_OS2_ADDITIONS
|
---|
44 | LIBRARIES += RuntimeOS2GuestR0 RuntimeOS2GuestR3 #RuntimeOS2Warp3GuestR0
|
---|
45 | endif
|
---|
46 | LIBRARIES.l4= RuntimeR3L4
|
---|
47 | DLLS = VBoxRT
|
---|
48 | OTHER_CLEAN = \
|
---|
49 | $(PATH_TARGET)/errmsgdata.h \
|
---|
50 | $(PATH_TARGET)/errmsgcomdata.h \
|
---|
51 | $(PATH_TARGET)/Doxyfile \
|
---|
52 | $(PATH_TARGET)/Doxyfile.dep \
|
---|
53 | $(PATH_TARGET)/docs.iprt
|
---|
54 |
|
---|
55 | SUBDIRS_AFTER = testcase
|
---|
56 | endif
|
---|
57 |
|
---|
58 |
|
---|
59 | # global (for now at least)
|
---|
60 | INCS += include
|
---|
61 |
|
---|
62 | ifneq ($(wildcard ./kLdr/kLdrModMachO.c),)
|
---|
63 | ifeq ($(filter-out darwin win os2,$(BUILD_TARGET)),)
|
---|
64 | IPRT_WITH_KLDR=1
|
---|
65 | IPRT_PATH_KLDR=./kLdr
|
---|
66 | endif
|
---|
67 | endif
|
---|
68 |
|
---|
69 | #
|
---|
70 | # Unicode Specification reader used to regenerate unidata.cpp.
|
---|
71 | #
|
---|
72 | uniread_TEMPLATE = VBOXBLDPROG
|
---|
73 | uniread_SOURCES = common/string/uniread.cpp
|
---|
74 |
|
---|
75 | #
|
---|
76 | # Win64 assembly sources.
|
---|
77 | #
|
---|
78 | RuntimeWin64ASM_SOURCES = \
|
---|
79 | win/amd64/ASMAtomicBitClear.asm \
|
---|
80 | win/amd64/ASMAtomicBitTestAndToggle.asm \
|
---|
81 | win/amd64/ASMAtomicBitToggle.asm \
|
---|
82 | win/amd64/ASMAtomicReadU64.asm \
|
---|
83 | win/amd64/ASMAtomicXchgU16.asm \
|
---|
84 | win/amd64/ASMAtomicXchgU8.asm \
|
---|
85 | win/amd64/ASMBitFirstClear.asm \
|
---|
86 | win/amd64/ASMBitFirstSet.asm \
|
---|
87 | win/amd64/ASMGetCS.asm \
|
---|
88 | win/amd64/ASMGetDS.asm \
|
---|
89 | win/amd64/ASMGetES.asm \
|
---|
90 | win/amd64/ASMGetFlags.asm \
|
---|
91 | win/amd64/ASMGetFS.asm \
|
---|
92 | win/amd64/ASMGetGS.asm \
|
---|
93 | win/amd64/ASMGetIDTR.asm \
|
---|
94 | win/amd64/ASMGetGDTR.asm \
|
---|
95 | win/amd64/ASMGetTR.asm \
|
---|
96 | win/amd64/ASMGetSS.asm \
|
---|
97 | win/amd64/ASMProbeReadByte.asm \
|
---|
98 | win/amd64/ASMSetFlags.asm \
|
---|
99 | win/amd64/ASMGetDR0.asm \
|
---|
100 | win/amd64/ASMGetDR1.asm \
|
---|
101 | win/amd64/ASMGetDR2.asm \
|
---|
102 | win/amd64/ASMGetDR3.asm \
|
---|
103 | win/amd64/ASMGetDR6.asm \
|
---|
104 | win/amd64/ASMGetDR7.asm \
|
---|
105 | win/amd64/ASMMultU64ByU32DivByU32.asm \
|
---|
106 |
|
---|
107 | #
|
---|
108 | # RuntimeR3 - Static Runtime for Ring-3 executables.
|
---|
109 | #
|
---|
110 | RuntimeR3_TEMPLATE = VBOXR3EXE
|
---|
111 | RuntimeR3_SDKS.win = WINPSDK W2K3DDK
|
---|
112 | RuntimeR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX
|
---|
113 | ifdef IPRT_WITH_KLDR
|
---|
114 | RuntimeR3_DEFS += LDR_WITH_KLDR KLDR_USE_CRT
|
---|
115 | RuntimeR3_DEFS.debug += KLDRMOD_STRICT KLDRMODLX_STRICT KLDRMODPE_STRICT KLDRMODNATIVE_STRICT KLDRRDR_STRICT
|
---|
116 | endif
|
---|
117 | ifdef VBOX_MAIN_RELEASE_LOG ## @todo (dmik): temporary, until RTThreadSelf/RTThreadAdopt are properly updated
|
---|
118 | RuntimeR3_DEFS += RTCRITSECT_STRICT
|
---|
119 | endif
|
---|
120 | RuntimeR3_INCS = \
|
---|
121 | $(PATH_ROOT)/src/libs/liblzf-1.51
|
---|
122 | ifdef IPRT_WITH_KLDR
|
---|
123 | RuntimeR3_INCS += \
|
---|
124 | $(IPRT_PATH_KLDR)
|
---|
125 | endif
|
---|
126 | RuntimeR3_INCS.l4 = \
|
---|
127 | $(L4_INCDIR)
|
---|
128 | # for iconv.h
|
---|
129 | RuntimeR3_INCS.freebsd = \
|
---|
130 | /usr/local/include
|
---|
131 |
|
---|
132 |
|
---|
133 | # RuntimeR3_INCS.solaris = \
|
---|
134 | # /usr/include
|
---|
135 |
|
---|
136 | RuntimeR3_SOURCES = \
|
---|
137 | common/alloc/alloc.cpp \
|
---|
138 | common/alloc/heapsimple.cpp \
|
---|
139 | common/checksum/crc32.cpp \
|
---|
140 | common/checksum/crc64.cpp \
|
---|
141 | common/checksum/md5.cpp \
|
---|
142 | common/err/errmsg.cpp \
|
---|
143 | common/err/RTErrConvertFromErrno.cpp \
|
---|
144 | common/ldr/ldr.cpp \
|
---|
145 | common/ldr/ldrELF.cpp \
|
---|
146 | common/ldr/ldrEx.cpp \
|
---|
147 | common/ldr/ldrFile.cpp \
|
---|
148 | common/ldr/ldrNative.cpp \
|
---|
149 | common/ldr/ldrPE.cpp \
|
---|
150 | common/log/log.cpp \
|
---|
151 | common/log/logcom.cpp \
|
---|
152 | common/log/logformat.cpp \
|
---|
153 | common/misc/assert.cpp \
|
---|
154 | common/misc/rand.cpp \
|
---|
155 | common/misc/req.cpp \
|
---|
156 | common/misc/sanity-c.c \
|
---|
157 | common/misc/sanity-cpp.cpp \
|
---|
158 | common/misc/semspingpong.cpp \
|
---|
159 | common/misc/thread.cpp \
|
---|
160 | common/misc/zip.cpp \
|
---|
161 | common/string/straprintf.cpp \
|
---|
162 | common/string/strformat.cpp \
|
---|
163 | common/string/strformatrt.cpp \
|
---|
164 | common/string/string.cpp \
|
---|
165 | common/string/strprintf.cpp \
|
---|
166 | common/string/strspace.cpp \
|
---|
167 | common/string/strstrip.cpp \
|
---|
168 | common/string/strtonum.cpp \
|
---|
169 | common/string/uni.cpp \
|
---|
170 | common/string/unidata.cpp \
|
---|
171 | common/string/utf-16.cpp \
|
---|
172 | common/string/utf-8.cpp \
|
---|
173 | common/table/avlgcptr.cpp \
|
---|
174 | common/table/avlhcphys.cpp \
|
---|
175 | common/table/avllu32.cpp \
|
---|
176 | common/table/avlogcphys.cpp \
|
---|
177 | common/table/avlogcptr.cpp \
|
---|
178 | common/table/avlohcphys.cpp \
|
---|
179 | common/table/avloioport.cpp \
|
---|
180 | common/table/avlpv.cpp \
|
---|
181 | common/table/avlrgcptr.cpp \
|
---|
182 | common/table/avlrogcphys.cpp \
|
---|
183 | common/table/avlrogcptr.cpp \
|
---|
184 | common/table/avlroioport.cpp \
|
---|
185 | common/table/avlroogcptr.cpp \
|
---|
186 | common/table/avlu32.cpp \
|
---|
187 | common/table/avlul.cpp \
|
---|
188 | common/table/table.cpp \
|
---|
189 | common/time/time.cpp \
|
---|
190 | common/time/timeprog.cpp \
|
---|
191 | common/time/timesup.cpp \
|
---|
192 | generic/critsect-generic.cpp \
|
---|
193 | generic/env-generic.cpp \
|
---|
194 | generic/RTFileCopy-generic.cpp \
|
---|
195 | generic/RTLogWriteStdErr-generic.cpp \
|
---|
196 | generic/RTLogWriteStdOut-generic.cpp \
|
---|
197 | generic/RTLogWriteUser-generic.cpp \
|
---|
198 | generic/semfastmutex-generic.cpp \
|
---|
199 | generic/spinlock-generic.cpp \
|
---|
200 | r3/alloc-ef.cpp \
|
---|
201 | r3/alloc.cpp \
|
---|
202 | r3/dir.cpp \
|
---|
203 | r3/fileio.cpp \
|
---|
204 | r3/fs.cpp \
|
---|
205 | r3/init.cpp \
|
---|
206 | r3/path.cpp \
|
---|
207 | r3/process.cpp \
|
---|
208 | r3/stream.cpp \
|
---|
209 | r3/tcp.cpp
|
---|
210 |
|
---|
211 | #if1of ($(BUILD_TARGET_ARCH),amd64 x86)
|
---|
212 | # RuntimeR3_SOURCES += common/time/timesupA.asm
|
---|
213 | #else
|
---|
214 | RuntimeR3_SOURCES += common/time/timesupref.cpp
|
---|
215 | #endif
|
---|
216 |
|
---|
217 | ifdef IPRT_WITH_KLDR
|
---|
218 | RuntimeR3_SOURCES += \
|
---|
219 | common/ldr/ldrkLdr.cpp \
|
---|
220 | $(IPRT_PATH_KLDR)/kLdrMod.c \
|
---|
221 | $(IPRT_PATH_KLDR)/kLdrModLX.c \
|
---|
222 | $(IPRT_PATH_KLDR)/kLdrModPE.c \
|
---|
223 | $(IPRT_PATH_KLDR)/kLdrModMachO.c \
|
---|
224 | $(IPRT_PATH_KLDR)/kLdrModNative.c \
|
---|
225 | $(IPRT_PATH_KLDR)/kLdrMisc.c \
|
---|
226 | $(IPRT_PATH_KLDR)/kLdrRdr.c \
|
---|
227 | $(IPRT_PATH_KLDR)/kLdrHlpStr.c
|
---|
228 | # We Implement these using IPRT facilities.
|
---|
229 | # $(IPRT_PATH_KLDR)/kLdrHlp.c \
|
---|
230 | # $(IPRT_PATH_KLDR)/kLdrHlpHeap.c \
|
---|
231 | # $(IPRT_PATH_KLDR)/kLdrHlpSem.c \
|
---|
232 | # $(IPRT_PATH_KLDR)/kLdrHlpMem.c \
|
---|
233 | # $(IPRT_PATH_KLDR)/kLdrHlpPath.c
|
---|
234 |
|
---|
235 | endif
|
---|
236 |
|
---|
237 | # VBox specific stuff.
|
---|
238 | RuntimeR3_SOURCES += \
|
---|
239 | VBox/strformat-vbox.cpp \
|
---|
240 | VBox/RTAssertDoBreakpoint-vbox.cpp \
|
---|
241 | VBox/log-vbox.cpp
|
---|
242 |
|
---|
243 | RuntimeR3_SOURCES.win = \
|
---|
244 | generic/rand-stubs-generic.cpp \
|
---|
245 | generic/RTDirQueryInfo-generic.cpp \
|
---|
246 | generic/RTDirSetTimes-generic.cpp \
|
---|
247 | generic/semnoint-generic.cpp \
|
---|
248 | generic/semsrw-generic.cpp \
|
---|
249 | nt/RTErrConvertFromNtStatus.cpp \
|
---|
250 | r3/posix/env-posix.cpp \
|
---|
251 | r3/win/alloc-win.cpp \
|
---|
252 | r3/win/dir-win.cpp \
|
---|
253 | r3/win/fileio-win.cpp \
|
---|
254 | r3/win/fs-win.cpp \
|
---|
255 | r3/win/ldrNative-win.cpp \
|
---|
256 | r3/win/path-win.cpp \
|
---|
257 | r3/win/process-win.cpp \
|
---|
258 | r3/win/RTLogWriteDebugger-win.cpp \
|
---|
259 | r3/win/sched-win.cpp \
|
---|
260 | r3/win/sems-win.cpp \
|
---|
261 | r3/win/system-win.cpp \
|
---|
262 | r3/win/thread-win.cpp \
|
---|
263 | r3/win/time-win.cpp \
|
---|
264 | r3/win/timer-win.cpp \
|
---|
265 | r3/win/utf16locale-win.cpp \
|
---|
266 | r3/win/utf8-win.cpp \
|
---|
267 | r3/win/uuid-win.cpp \
|
---|
268 | win/errmsgwin.cpp \
|
---|
269 | win/RTErrConvertFromWin32.cpp
|
---|
270 |
|
---|
271 | RuntimeR3_SOURCES.win.amd64 = \
|
---|
272 | $(RuntimeWin64ASM_SOURCES)
|
---|
273 |
|
---|
274 | RuntimeR3_SOURCES.linux = \
|
---|
275 | generic/pathhost-generic.cpp \
|
---|
276 | generic/RTDirQueryInfo-generic.cpp \
|
---|
277 | generic/RTDirSetTimes-generic.cpp \
|
---|
278 | generic/RTFileMove-generic.cpp \
|
---|
279 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
280 | generic/RTTimeLocalNow-generic.cpp \
|
---|
281 | generic/RTTimerCreate-generic.cpp \
|
---|
282 | generic/utf16locale-generic.cpp \
|
---|
283 | generic/uuid-generic.cpp \
|
---|
284 | r3/linux/sched-linux.cpp \
|
---|
285 | r3/linux/time-linux.cpp \
|
---|
286 | r3/posix/alloc-posix.cpp \
|
---|
287 | r3/posix/dir-posix.cpp \
|
---|
288 | r3/posix/env-posix.cpp \
|
---|
289 | r3/posix/fileio-posix.cpp \
|
---|
290 | r3/posix/filelock-posix.cpp \
|
---|
291 | r3/posix/fs-posix.cpp \
|
---|
292 | r3/posix/ldrNative-posix.cpp \
|
---|
293 | r3/posix/path-posix.cpp \
|
---|
294 | r3/posix/process-posix.cpp \
|
---|
295 | r3/posix/rand-posix.cpp \
|
---|
296 | r3/posix/RTTimeNow-posix.cpp \
|
---|
297 | r3/posix/system-posix.cpp \
|
---|
298 | r3/posix/thread-posix.cpp \
|
---|
299 | r3/posix/timelocal-posix.cpp \
|
---|
300 | r3/posix/timer-posix.cpp \
|
---|
301 | r3/posix/utf8-posix.cpp
|
---|
302 | ifeq ($(BUILD_TARGET_ARCH),amd64)
|
---|
303 | RuntimeR3_SOURCES.linux += r3/linux/sems-linux.cpp
|
---|
304 | else
|
---|
305 | RuntimeR3_SOURCES.linux += r3/posix/sems-posix.cpp
|
---|
306 | endif
|
---|
307 |
|
---|
308 | RuntimeR3_SOURCES.os2 = \
|
---|
309 | generic/pathhost-generic.cpp \
|
---|
310 | generic/rand-stubs-generic.cpp \
|
---|
311 | generic/RTDirQueryInfo-generic.cpp \
|
---|
312 | generic/RTDirSetTimes-generic.cpp \
|
---|
313 | generic/RTFileMove-generic.cpp \
|
---|
314 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
315 | generic/RTTimeLocalNow-generic.cpp \
|
---|
316 | generic/RTTimerCreate-generic.cpp \
|
---|
317 | generic/sched-generic.cpp \
|
---|
318 | generic/semnoint-generic.cpp \
|
---|
319 | generic/semsrw-generic.cpp \
|
---|
320 | generic/timer-generic.cpp \
|
---|
321 | generic/utf16locale-generic.cpp \
|
---|
322 | generic/uuid-generic.cpp \
|
---|
323 | os2/RTErrConvertFromOS2.cpp \
|
---|
324 | r3/os2/sems-os2.cpp \
|
---|
325 | r3/os2/system-os2.cpp \
|
---|
326 | r3/os2/thread-os2.cpp \
|
---|
327 | r3/os2/time-os2.cpp \
|
---|
328 | r3/posix/alloc-posix.cpp \
|
---|
329 | r3/posix/dir-posix.cpp \
|
---|
330 | r3/posix/env-posix.cpp \
|
---|
331 | r3/posix/fileio-posix.cpp \
|
---|
332 | r3/posix/filelock-posix.cpp \
|
---|
333 | r3/posix/fs-posix.cpp \
|
---|
334 | r3/posix/ldrNative-posix.cpp \
|
---|
335 | r3/posix/path-posix.cpp \
|
---|
336 | r3/posix/process-posix.cpp \
|
---|
337 | r3/posix/RTTimeNow-posix.cpp \
|
---|
338 | r3/posix/timelocal-posix.cpp \
|
---|
339 | r3/posix/utf8-posix.cpp
|
---|
340 |
|
---|
341 | RuntimeR3_SOURCES.darwin = \
|
---|
342 | darwin/RTErrConvertFromDarwinCOM.cpp \
|
---|
343 | darwin/RTErrConvertFromDarwinIO.cpp \
|
---|
344 | darwin/RTErrConvertFromDarwinKern.cpp \
|
---|
345 | generic/pathhost-generic.cpp \
|
---|
346 | generic/RTDirQueryInfo-generic.cpp \
|
---|
347 | generic/RTDirSetTimes-generic.cpp \
|
---|
348 | generic/RTFileMove-generic.cpp \
|
---|
349 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
350 | generic/RTTimeLocalNow-generic.cpp \
|
---|
351 | generic/RTTimerCreate-generic.cpp \
|
---|
352 | generic/sched-generic.cpp \
|
---|
353 | generic/timer-generic.cpp \
|
---|
354 | generic/utf16locale-generic.cpp \
|
---|
355 | generic/uuid-generic.cpp\
|
---|
356 | r3/darwin/alloc-darwin.cpp \
|
---|
357 | r3/darwin/filelock-darwin.cpp \
|
---|
358 | r3/darwin/time-darwin.cpp \
|
---|
359 | r3/posix/dir-posix.cpp \
|
---|
360 | r3/posix/env-posix.cpp \
|
---|
361 | r3/posix/fileio-posix.cpp \
|
---|
362 | r3/posix/fs-posix.cpp \
|
---|
363 | r3/posix/ldrNative-posix.cpp \
|
---|
364 | r3/posix/path-posix.cpp \
|
---|
365 | r3/posix/process-posix.cpp \
|
---|
366 | r3/posix/rand-posix.cpp \
|
---|
367 | r3/posix/sems-posix.cpp \
|
---|
368 | r3/posix/system-posix.cpp \
|
---|
369 | r3/posix/thread-posix.cpp \
|
---|
370 | r3/posix/timelocal-posix.cpp \
|
---|
371 | r3/posix/utf8-posix.cpp
|
---|
372 |
|
---|
373 | ## @todo Make BSD sched.
|
---|
374 | RuntimeR3_SOURCES.freebsd = \
|
---|
375 | generic/pathhost-generic.cpp \
|
---|
376 | generic/RTDirQueryInfo-generic.cpp \
|
---|
377 | generic/RTDirSetTimes-generic.cpp \
|
---|
378 | generic/RTFileMove-generic.cpp \
|
---|
379 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
380 | generic/RTTimeLocalNow-generic.cpp \
|
---|
381 | generic/RTTimerCreate-generic.cpp \
|
---|
382 | generic/sched-generic.cpp \
|
---|
383 | generic/utf16locale-generic.cpp \
|
---|
384 | generic/uuid-generic.cpp \
|
---|
385 | r3/freebsd/alloc-freebsd.cpp \
|
---|
386 | r3/posix/dir-posix.cpp \
|
---|
387 | r3/posix/env-posix.cpp \
|
---|
388 | r3/posix/fileio-posix.cpp \
|
---|
389 | r3/posix/filelock-posix.cpp \
|
---|
390 | r3/posix/fs-posix.cpp \
|
---|
391 | r3/posix/ldrNative-posix.cpp \
|
---|
392 | r3/posix/path-posix.cpp \
|
---|
393 | r3/posix/process-posix.cpp \
|
---|
394 | r3/posix/rand-posix.cpp \
|
---|
395 | r3/posix/RTTimeNow-posix.cpp \
|
---|
396 | r3/posix/sems-posix.cpp \
|
---|
397 | r3/posix/system-posix.cpp \
|
---|
398 | r3/posix/thread-posix.cpp \
|
---|
399 | r3/posix/time-posix.cpp \
|
---|
400 | r3/posix/timelocal-posix.cpp \
|
---|
401 | r3/posix/timer-posix.cpp \
|
---|
402 | r3/posix/utf8-posix.cpp
|
---|
403 |
|
---|
404 | RuntimeR3_SOURCES.solaris = \
|
---|
405 | generic/pathhost-generic.cpp \
|
---|
406 | generic/RTDirQueryInfo-generic.cpp \
|
---|
407 | generic/RTDirSetTimes-generic.cpp \
|
---|
408 | generic/RTFileMove-generic.cpp \
|
---|
409 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
410 | generic/RTTimeLocalNow-generic.cpp \
|
---|
411 | generic/RTTimerCreate-generic.cpp \
|
---|
412 | generic/sched-generic.cpp \
|
---|
413 | generic/utf16locale-generic.cpp \
|
---|
414 | generic/uuid-generic.cpp \
|
---|
415 | r3/posix/dir-posix.cpp \
|
---|
416 | r3/posix/env-posix.cpp \
|
---|
417 | r3/posix/fileio-posix.cpp \
|
---|
418 | r3/posix/filelock-posix.cpp \
|
---|
419 | r3/posix/fs-posix.cpp \
|
---|
420 | r3/posix/ldrNative-posix.cpp \
|
---|
421 | r3/posix/path-posix.cpp \
|
---|
422 | r3/posix/process-posix.cpp \
|
---|
423 | r3/posix/rand-posix.cpp \
|
---|
424 | r3/posix/RTTimeNow-posix.cpp \
|
---|
425 | r3/posix/sems-posix.cpp \
|
---|
426 | r3/posix/system-posix.cpp \
|
---|
427 | r3/posix/thread-posix.cpp \
|
---|
428 | r3/posix/time-posix.cpp \
|
---|
429 | r3/posix/timelocal-posix.cpp \
|
---|
430 | r3/posix/timer-posix.cpp \
|
---|
431 | r3/posix/utf8-posix.cpp \
|
---|
432 | r3/solaris/alloc-solaris.cpp
|
---|
433 |
|
---|
434 |
|
---|
435 | ## PORTME: Porters add their selection of platform specific files for Ring-3 here.
|
---|
436 |
|
---|
437 |
|
---|
438 | #
|
---|
439 | # L4 RuntimeR3 subtarget since L4 headers won't work with VBOXR3.
|
---|
440 | #
|
---|
441 | RuntimeR3L4_TEMPLATE = VBOXR3NP
|
---|
442 | RuntimeR3L4_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF LDR_WITH_PE
|
---|
443 | ifneq ($(BUILD_TARGET_ARCH),amd64)
|
---|
444 | RuntimeR3L4_DEFS += __PIC__
|
---|
445 | endif
|
---|
446 | RuntimeR3L4_INCS = $(L4_INCDIR)
|
---|
447 |
|
---|
448 | RuntimeR3L4_SOURCES = \
|
---|
449 | generic/fs-stubs-generic.cpp \
|
---|
450 | generic/pathhost-generic.cpp \
|
---|
451 | generic/RTDirQueryInfo-generic.cpp \
|
---|
452 | generic/RTDirSetTimes-generic.cpp \
|
---|
453 | generic/RTFileMove-generic.cpp \
|
---|
454 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
455 | generic/RTTimeLocalNow-generic.cpp \
|
---|
456 | generic/sched-generic.cpp \
|
---|
457 | generic/semnoint-generic.cpp \
|
---|
458 | generic/semsrw-generic.cpp \
|
---|
459 | generic/utf16locale-generic.cpp \
|
---|
460 | generic/uuid-generic.cpp \
|
---|
461 | l4/l4-errno.cpp \
|
---|
462 | l4/process-l4env.cpp \
|
---|
463 | l4/sems-l4env.cpp \
|
---|
464 | l4/system-l4env.cpp \
|
---|
465 | l4/thread-l4env.cpp \
|
---|
466 | l4/timer-l4env.cpp \
|
---|
467 | l4/utf8-l4env.cpp \
|
---|
468 | r3/posix/alloc-posix.cpp \
|
---|
469 | r3/posix/dir-posix.cpp \
|
---|
470 | r3/posix/env-posix.cpp \
|
---|
471 | r3/posix/fileio-posix.cpp \
|
---|
472 | r3/posix/filelock-posix.cpp \
|
---|
473 | r3/posix/ldrNative-posix.cpp \
|
---|
474 | r3/posix/path-posix.cpp \
|
---|
475 | r3/posix/rand-posix.cpp \
|
---|
476 | r3/posix/RTTimeNow-posix.cpp \
|
---|
477 | r3/posix/time-posix.cpp \
|
---|
478 | r3/posix/timelocal-posix.cpp
|
---|
479 |
|
---|
480 | #
|
---|
481 | # RuntimeW32GuestR3 - Win32 guest program runtime.
|
---|
482 | #
|
---|
483 | RuntimeW32GuestR3_TEMPLATE = VBOXW32GUESTR3LIB
|
---|
484 | RuntimeW32GuestR3_SDKS = WINPSDK W2K3DDK
|
---|
485 | RuntimeW32GuestR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX
|
---|
486 | ifdef IPRT_WITH_KLDR
|
---|
487 | RuntimeW32GuestR3_DEFS += LDR_WITH_KLDR KLDR_USE_CRT
|
---|
488 | RuntimeW32GuestR3_DEFS.debug += KLDRMOD_STRICT KLDRMODLX_STRICT KLDRMODPE_STRICT KLDRMODNATIVE_STRICT KLDRRDR_STRICT
|
---|
489 | endif
|
---|
490 | RuntimeW32GuestR3_SOURCES = $(RuntimeR3_SOURCES.win) $(RuntimeR3_SOURCES)
|
---|
491 | RuntimeW32GuestR3_INCS = $(RuntimeR3_INCS.win) $(RuntimeR3_INCS)
|
---|
492 |
|
---|
493 |
|
---|
494 | #
|
---|
495 | # RuntimeLnx32GuestR3 - 32-bit Linux guest program runtime.
|
---|
496 | #
|
---|
497 | RuntimeLnx32GuestR3_TEMPLATE = VBOXLNX32GUESTR3LIB
|
---|
498 | RuntimeLnx32GuestR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX
|
---|
499 | ifdef IPRT_WITH_KLDR
|
---|
500 | RuntimeLnx32GuestR3_DEFS += LDR_WITH_KLDR KLDR_USE_CRT
|
---|
501 | RuntimeLnx32GuestR3_DEFS.debug += KLDRMOD_STRICT KLDRMODLX_STRICT KLDRMODPE_STRICT KLDRMODNATIVE_STRICT KLDRRDR_STRICT
|
---|
502 | endif
|
---|
503 | RuntimeLnx32GuestR3_SOURCES = $(RuntimeR3_SOURCES.linux) $(RuntimeR3_SOURCES)
|
---|
504 | RuntimeLnx32GuestR3_INCS = $(RuntimeR3_INCS.linux) $(RuntimeR3_INCS)
|
---|
505 |
|
---|
506 |
|
---|
507 | #
|
---|
508 | # RuntimeOS2GuestR3 - OS/2 guest program runtime.
|
---|
509 | #
|
---|
510 | RuntimeOS2GuestR3_TEMPLATE = VBOXOS2GUESTR3LIB
|
---|
511 | RuntimeOS2GuestR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX
|
---|
512 | ifdef IPRT_WITH_KLDR
|
---|
513 | RuntimeOS2GuestR3_DEFS += LDR_WITH_KLDR KLDR_USE_CRT
|
---|
514 | RuntimeOS2GuestR3_DEFS.debug += KLDRMOD_STRICT KLDRMODLX_STRICT KLDRMODPE_STRICT KLDRMODNATIVE_STRICT KLDRRDR_STRICT
|
---|
515 | endif
|
---|
516 | RuntimeOS2GuestR3_SOURCES = $(RuntimeR3_SOURCES.os2) $(RuntimeR3_SOURCES)
|
---|
517 | RuntimeOS2GuestR3_INCS = $(RuntimeR3_INCS.os2) $(RuntimeR3_INCS)
|
---|
518 |
|
---|
519 |
|
---|
520 | #
|
---|
521 | # VBoxRT - Shared Object / DLL version.
|
---|
522 | #
|
---|
523 | VBoxRT_TEMPLATE = VBOXR3
|
---|
524 | VBoxRT_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
|
---|
525 | ifeq ($(BUILD_TARGET),darwin)
|
---|
526 | VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE)
|
---|
527 | endif
|
---|
528 | VBoxRT_DEFS = $(RuntimeR3_DEFS) IN_SUP_R3 IN_SUP_R3
|
---|
529 | VBoxRT_DEFS.$(BUILD_TYPE) = $(RuntimeR3_DEFS.$(BUILD_TYPE))
|
---|
530 | VBoxRT_SOURCES = \
|
---|
531 | VBox/VBoxRTDeps.cpp \
|
---|
532 | $(RuntimeR3_SOURCES)
|
---|
533 | VBoxRT_SOURCES.$(BUILD_TARGET) = $(RuntimeR3_SOURCES.$(BUILD_TARGET))
|
---|
534 | VBoxRT_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH))
|
---|
535 | VBoxRT_SOURCES.win += r3/win/dllmain-win.cpp
|
---|
536 | VBoxRT_SOURCES.win.amd64 += r3/win/VBoxRT-win64.def
|
---|
537 | VBoxRT_INCS = $(RuntimeR3_INCS)
|
---|
538 | VBoxRT_INCS.$(BUILD_TARGET) = $(RuntimeR3_INCS.$(BUILD_TARGET))
|
---|
539 | VBoxRT_INCS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH) = $(RuntimeR3_INCS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH))
|
---|
540 | VBoxRT_LIBS = \
|
---|
541 | $(PATH_LIB)/SUPR3$(VBOX_SUFF_LIB) \
|
---|
542 | $(PATH_LIB)/VBox-liblzf$(VBOX_SUFF_LIB)
|
---|
543 | VBoxRT_LIBS.darwin = \
|
---|
544 | iconv
|
---|
545 | VBoxRT_LIBS.freebsd = \
|
---|
546 | iconv
|
---|
547 | VBoxRT_LIBPATH.freebsd = \
|
---|
548 | /usr/local/lib
|
---|
549 | VBoxRT_LDFLAGS.darwin = -framework IOKit -install_name @executable_path/VBoxRT.dylib
|
---|
550 | ifdef VBOX_USE_VCC80
|
---|
551 | VBoxRT_LDFLAGS.win = /MANIFEST
|
---|
552 | endif
|
---|
553 | VBoxRT_LDFLAGS.l4 = \
|
---|
554 | -Wl,-whole-archive \
|
---|
555 | $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB) \
|
---|
556 | -Wl,-no-whole-archive
|
---|
557 | ifeq ($(BUILD_TARGET),l4)
|
---|
558 | VBoxRT_LIBS += \
|
---|
559 | $(L4_LIBDIR)/libl4sys.a \
|
---|
560 | $(L4_LIBDIR)/libl4sys.p.a
|
---|
561 | endif
|
---|
562 | VBoxRT_LIBS.l4 = \
|
---|
563 | $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB)
|
---|
564 |
|
---|
565 |
|
---|
566 | #
|
---|
567 | # RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
|
---|
568 | # This is used together with VBoxRT.
|
---|
569 | #
|
---|
570 | RuntimeR3NoCRTGCC_TEMPLATE = VBOXNOCRTGCC
|
---|
571 | RuntimeR3NoCRTGCC_LIBSUFF = $(VBOX_SUFF_LIB)
|
---|
572 | RuntimeR3NoCRTGCC_SOURCES = \
|
---|
573 | common/misc/sanity-cpp.cpp \
|
---|
574 | common/misc/sanity-c.c \
|
---|
575 | \
|
---|
576 | common/math/ceill.asm \
|
---|
577 | common/math/cosl.asm \
|
---|
578 | common/math/fabs.asm \
|
---|
579 | common/math/fabsf.asm \
|
---|
580 | common/math/fabsl.asm \
|
---|
581 | common/math/floor.asm \
|
---|
582 | common/math/floorf.asm \
|
---|
583 | common/math/floorl.asm \
|
---|
584 | common/math/ldexpl.asm \
|
---|
585 | common/math/llrint.asm \
|
---|
586 | common/math/llrintf.asm \
|
---|
587 | common/math/llrintl.asm \
|
---|
588 | common/math/logl.asm \
|
---|
589 | common/math/lrint.asm \
|
---|
590 | common/math/lrintf.asm \
|
---|
591 | common/math/lrintl.asm \
|
---|
592 | common/math/remainder.asm \
|
---|
593 | common/math/remainderf.asm \
|
---|
594 | common/math/remainderl.asm \
|
---|
595 | common/math/sinl.asm \
|
---|
596 | common/math/tanl.asm \
|
---|
597 | common/math/trunc.asm \
|
---|
598 | common/math/truncf.asm \
|
---|
599 | common/math/truncl.asm \
|
---|
600 | \
|
---|
601 | common/misc/setjmp.asm \
|
---|
602 | \
|
---|
603 | common/string/memchr.asm \
|
---|
604 | common/string/memchr_alias.c \
|
---|
605 | common/string/memcmp.asm \
|
---|
606 | common/string/memcmp_alias.c \
|
---|
607 | common/string/memcpy.asm \
|
---|
608 | common/string/memcpy_alias.c \
|
---|
609 | common/string/mempcpy.asm \
|
---|
610 | common/string/memset.asm \
|
---|
611 | common/string/memset_alias.c \
|
---|
612 | common/string/strchr.asm \
|
---|
613 | common/string/strchr_alias.c \
|
---|
614 | common/string/strcmp.asm \
|
---|
615 | common/string/strcmp_alias.c
|
---|
616 |
|
---|
617 | RuntimeR3NoCRTGCC_SOURCES.x86 = \
|
---|
618 | common/math/x86/fenv-x86.c \
|
---|
619 | common/math/gcc/adddi3.c \
|
---|
620 | common/math/gcc/anddi3.c \
|
---|
621 | common/math/gcc/ashldi3.c \
|
---|
622 | common/math/gcc/ashrdi3.c \
|
---|
623 | common/math/gcc/cmpdi2.c \
|
---|
624 | common/math/gcc/divdi3.c \
|
---|
625 | common/math/gcc/iordi3.c \
|
---|
626 | common/math/gcc/lshldi3.c \
|
---|
627 | common/math/gcc/lshrdi3.c \
|
---|
628 | common/math/gcc/moddi3.c \
|
---|
629 | common/math/gcc/muldi3.c \
|
---|
630 | common/math/gcc/negdi2.c \
|
---|
631 | common/math/gcc/notdi2.c \
|
---|
632 | common/math/gcc/qdivrem.c \
|
---|
633 | common/math/gcc/subdi3.c \
|
---|
634 | common/math/gcc/ucmpdi2.c \
|
---|
635 | common/math/gcc/udivdi3.c \
|
---|
636 | common/math/gcc/umoddi3.c \
|
---|
637 | common/math/gcc/xordi3.c
|
---|
638 |
|
---|
639 |
|
---|
640 | ## @todo stop using the old memcpy.c and memset.c code.
|
---|
641 |
|
---|
642 | #
|
---|
643 | # RuntimeR0 - Ring0 library for VMMR0.
|
---|
644 | #
|
---|
645 | RuntimeR0_TEMPLATE = VBOXR0
|
---|
646 | RuntimeR0_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS
|
---|
647 | RuntimeR0_SOURCES = \
|
---|
648 | common/log/logcom.cpp \
|
---|
649 | common/log/logformat.cpp \
|
---|
650 | common/misc/assert.cpp \
|
---|
651 | common/misc/sanity-c.c \
|
---|
652 | common/misc/sanity-cpp.cpp \
|
---|
653 | common/string/memchr.cpp \
|
---|
654 | common/string/memcmp.cpp \
|
---|
655 | common/string/memcpy.cpp \
|
---|
656 | common/string/memset.cpp \
|
---|
657 | common/string/strcmp.asm \
|
---|
658 | common/string/strcpy.cpp \
|
---|
659 | common/string/strformat.cpp \
|
---|
660 | common/string/strformatrt.cpp \
|
---|
661 | common/string/strlen.cpp \
|
---|
662 | common/string/strncmp.cpp \
|
---|
663 | common/string/strpbrk.cpp \
|
---|
664 | common/string/strprintf.cpp \
|
---|
665 | common/table/avlgcptr.cpp \
|
---|
666 | common/table/avlhcphys.cpp \
|
---|
667 | common/table/avllu32.cpp \
|
---|
668 | common/table/avlogcphys.cpp \
|
---|
669 | common/table/avlogcptr.cpp \
|
---|
670 | common/table/avlohcphys.cpp \
|
---|
671 | common/table/avloioport.cpp \
|
---|
672 | common/table/avlpv.cpp \
|
---|
673 | common/table/avlrogcphys.cpp \
|
---|
674 | common/table/avlrogcptr.cpp \
|
---|
675 | common/table/avlroioport.cpp \
|
---|
676 | common/table/avlroogcptr.cpp \
|
---|
677 | common/table/avlu32.cpp \
|
---|
678 | common/time/timesup.cpp \
|
---|
679 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
680 | VBox/strformat-vbox.cpp
|
---|
681 |
|
---|
682 | if1of ($(BUILD_TARGET_ARCH),amd64 x86)
|
---|
683 | RuntimeR0_SOURCES += common/time/timesupA.asm
|
---|
684 | else
|
---|
685 | RuntimeR0_SOURCES += common/time/timesupref.cpp
|
---|
686 | endif
|
---|
687 |
|
---|
688 | RuntimeR0_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
|
---|
689 |
|
---|
690 | RuntimeR0_SOURCES.os2 = \
|
---|
691 | os2/RTErrConvertFromOS2.cpp \
|
---|
692 | os2/sys0.asm
|
---|
693 |
|
---|
694 | ifeq ($(filter-out darwin solaris freebsd,$(BUILD_TARGET)),)
|
---|
695 | RuntimeR0_SOURCES += \
|
---|
696 | common/math/gcc/adddi3.c \
|
---|
697 | common/math/gcc/anddi3.c \
|
---|
698 | common/math/gcc/ashldi3.c \
|
---|
699 | common/math/gcc/ashrdi3.c \
|
---|
700 | common/math/gcc/cmpdi2.c \
|
---|
701 | common/math/gcc/divdi3.c \
|
---|
702 | common/math/gcc/iordi3.c \
|
---|
703 | common/math/gcc/lshldi3.c \
|
---|
704 | common/math/gcc/lshrdi3.c \
|
---|
705 | common/math/gcc/moddi3.c \
|
---|
706 | common/math/gcc/muldi3.c \
|
---|
707 | common/math/gcc/negdi2.c \
|
---|
708 | common/math/gcc/notdi2.c \
|
---|
709 | common/math/gcc/qdivrem.c \
|
---|
710 | common/math/gcc/subdi3.c \
|
---|
711 | common/math/gcc/ucmpdi2.c \
|
---|
712 | common/math/gcc/udivdi3.c \
|
---|
713 | common/math/gcc/umoddi3.c \
|
---|
714 | common/math/gcc/xordi3.c
|
---|
715 | endif
|
---|
716 |
|
---|
717 |
|
---|
718 | common/string/memchr.cpp_CXXFLAGS.win = -Oi-
|
---|
719 | common/string/memcmp.cpp_CXXFLAGS.win = -Oi-
|
---|
720 | common/string/memcpy.cpp_CXXFLAGS.win = -Oi-
|
---|
721 | common/string/memset.cpp_CXXFLAGS.win = -Oi-
|
---|
722 | common/string/strcpy.cpp_CXXFLAGS.win = -Oi-
|
---|
723 | common/string/strlen.cpp_CXXFLAGS.win = -Oi-
|
---|
724 |
|
---|
725 | ifeq ($(BUILD_TARGET),l4)
|
---|
726 | RuntimeR0Drv_BLD_TRG = linux
|
---|
727 | RuntimeR0Drv_BLD_TRG_ARCH = x86
|
---|
728 | RuntimeR0Drv_BLD_TRG_CPU = i386
|
---|
729 | endif
|
---|
730 |
|
---|
731 | #
|
---|
732 | # RuntimeR0Drv - Ring0 library for host drivers.
|
---|
733 | #
|
---|
734 | RuntimeR0Drv_TEMPLATE = VBOXR0DRV
|
---|
735 | RuntimeR0Drv_SDKS.win = W2K3DDK WINPSDKINCS
|
---|
736 | RuntimeR0Drv_INCS := $(PATH_SUB_CURRENT)
|
---|
737 | RuntimeR0Drv_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS
|
---|
738 | RuntimeR0Drv_DEFS.win = IN_SUP_R0
|
---|
739 | RuntimeR0Drv_DEFS.linux = MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) IN_SUP_R0 # why is IN_SUP_R0 here? because!
|
---|
740 |
|
---|
741 | RuntimeR0Drv_INCS.linux = \
|
---|
742 | r0drv/linux
|
---|
743 |
|
---|
744 | RuntimeR0Drv_SOURCES = \
|
---|
745 | common/checksum/crc32.cpp \
|
---|
746 | common/checksum/crc64.cpp \
|
---|
747 | common/log/log.cpp \
|
---|
748 | common/log/logcom.cpp \
|
---|
749 | common/log/logformat.cpp \
|
---|
750 | common/misc/assert.cpp \
|
---|
751 | common/misc/sanity-c.c \
|
---|
752 | common/misc/sanity-cpp.cpp \
|
---|
753 | common/string/strformat.cpp \
|
---|
754 | common/string/strformatrt.cpp \
|
---|
755 | common/string/strpbrk.cpp \
|
---|
756 | common/string/strprintf.cpp \
|
---|
757 | common/string/strtonum.cpp \
|
---|
758 | common/table/avlpv.cpp \
|
---|
759 | generic/RTLogWriteStdErr-stub-generic.cpp \
|
---|
760 | generic/RTLogWriteStdOut-stub-generic.cpp \
|
---|
761 | generic/RTLogWriteUser-generic.cpp \
|
---|
762 | r0drv/alloc-r0drv.cpp \
|
---|
763 | r0drv/initterm-r0drv.cpp \
|
---|
764 | VBox/log-vbox.cpp \
|
---|
765 | VBox/strformat-vbox.cpp
|
---|
766 |
|
---|
767 | RuntimeR0Drv_SOURCES.linux = \
|
---|
768 | common/alloc/heapsimple.cpp \
|
---|
769 | common/err/RTErrConvertToErrno.cpp \
|
---|
770 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
771 | r0drv/linux/alloc-r0drv-linux.c \
|
---|
772 | r0drv/linux/initterm-r0drv-linux.c \
|
---|
773 | r0drv/linux/memobj-r0drv-linux.c \
|
---|
774 | r0drv/linux/process-r0drv-linux.c \
|
---|
775 | r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \
|
---|
776 | r0drv/linux/semevent-r0drv-linux.c \
|
---|
777 | r0drv/linux/semeventmulti-r0drv-linux.c \
|
---|
778 | r0drv/linux/semfastmutex-r0drv-linux.c \
|
---|
779 | r0drv/linux/spinlock-r0drv-linux.c \
|
---|
780 | r0drv/linux/thread-r0drv-linux.c \
|
---|
781 | r0drv/memobj-r0drv.cpp
|
---|
782 | ## @todo thread2-r0drv-linux.c, timer-r0drv-linux.c and assert-r0drv-linux.c
|
---|
783 |
|
---|
784 | RuntimeR0Drv_SOURCES.win = \
|
---|
785 | common/misc/thread.cpp \
|
---|
786 | common/string/strncmp.cpp \
|
---|
787 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
788 | nt/RTErrConvertFromNtStatus.cpp \
|
---|
789 | r0drv/memobj-r0drv.cpp \
|
---|
790 | r0drv/nt/alloc-r0drv-nt.cpp \
|
---|
791 | r0drv/nt/initterm-r0drv-nt.cpp \
|
---|
792 | r0drv/nt/memobj-r0drv-nt.cpp \
|
---|
793 | r0drv/nt/process-r0drv-nt.cpp \
|
---|
794 | r0drv/nt/RTLogWriteDebugger-r0drv-nt.cpp \
|
---|
795 | r0drv/nt/semevent-r0drv-nt.cpp \
|
---|
796 | r0drv/nt/semeventmulti-r0drv-nt.cpp \
|
---|
797 | r0drv/nt/semfastmutex-r0drv-nt.cpp \
|
---|
798 | r0drv/nt/semmutex-r0drv-nt.cpp \
|
---|
799 | r0drv/nt/spinlock-r0drv-nt.cpp \
|
---|
800 | r0drv/nt/thread-r0drv-nt.cpp \
|
---|
801 | r0drv/nt/thread2-r0drv-nt.cpp \
|
---|
802 | r0drv/nt/time-r0drv-nt.cpp
|
---|
803 | ## @todo timer-r0drv-nt.cpp and assert-r0drv-nt.cpp
|
---|
804 |
|
---|
805 | RuntimeR0Drv_SOURCES.win.amd64 = \
|
---|
806 | $(RuntimeWin64ASM_SOURCES)
|
---|
807 |
|
---|
808 | RuntimeR0Drv_SOURCES.darwin = \
|
---|
809 | common/err/RTErrConvertFromErrno.cpp \
|
---|
810 | common/misc/thread.cpp \
|
---|
811 | common/string/memchr.asm \
|
---|
812 | darwin/RTErrConvertFromDarwinIO.cpp \
|
---|
813 | darwin/RTErrConvertFromDarwinKern.cpp \
|
---|
814 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
815 | generic/RTTimerCreate-generic.cpp \
|
---|
816 | generic/timer-generic.cpp \
|
---|
817 | r0drv/darwin/alloc-r0drv-darwin.cpp \
|
---|
818 | r0drv/darwin/assert-r0drv-darwin.cpp \
|
---|
819 | r0drv/darwin/initterm-r0drv-darwin.cpp \
|
---|
820 | r0drv/darwin/memobj-r0drv-darwin.cpp \
|
---|
821 | r0drv/darwin/process-r0drv-darwin.cpp \
|
---|
822 | r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
|
---|
823 | r0drv/darwin/semaphore-r0drv-darwin.cpp \
|
---|
824 | r0drv/darwin/spinlock-r0drv-darwin.cpp \
|
---|
825 | r0drv/darwin/thread-r0drv-darwin.cpp \
|
---|
826 | r0drv/darwin/thread2-r0drv-darwin.cpp \
|
---|
827 | r0drv/darwin/time-r0drv-darwin.cpp \
|
---|
828 | r0drv/memobj-r0drv.cpp
|
---|
829 |
|
---|
830 | RuntimeR0Drv_DEFS.os2 += RT_WITHOUT_NOCRT_WRAPPERS
|
---|
831 | RuntimeR0Drv_SOURCES.os2 = \
|
---|
832 | common/string/memchr.asm \
|
---|
833 | common/string/memcmp.asm \
|
---|
834 | common/string/memcpy.asm \
|
---|
835 | common/string/mempcpy.asm \
|
---|
836 | common/string/memset.asm \
|
---|
837 | common/string/strchr.asm \
|
---|
838 | common/string/strcmp.asm \
|
---|
839 | \
|
---|
840 | common/string/strcpy.cpp \
|
---|
841 | common/string/strlen.cpp \
|
---|
842 | common/string/strncmp.cpp \
|
---|
843 | \
|
---|
844 | common/misc/thread.cpp \
|
---|
845 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
846 | os2/RTErrConvertFromOS2.cpp \
|
---|
847 | os2/sys0.asm \
|
---|
848 | r0drv/memobj-r0drv.cpp \
|
---|
849 | r0drv/os2/alloc-r0drv-os2.cpp \
|
---|
850 | r0drv/os2/assert-r0drv-os2.cpp \
|
---|
851 | r0drv/os2/assertA-r0drv-os2.asm \
|
---|
852 | r0drv/os2/initterm-r0drv-os2.cpp \
|
---|
853 | r0drv/os2/memobj-r0drv-os2.cpp \
|
---|
854 | r0drv/os2/os2imports.imp \
|
---|
855 | r0drv/os2/process-r0drv-os2.cpp \
|
---|
856 | r0drv/os2/RTAssertDoBreakpoint-r0drv-os2.asm \
|
---|
857 | r0drv/os2/RTR0Os2DHQueryDOSVar.asm \
|
---|
858 | r0drv/os2/RTR0Os2DHVMGlobalToProcess.asm \
|
---|
859 | r0drv/os2/semevent-r0drv-os2.cpp \
|
---|
860 | r0drv/os2/semeventmulti-r0drv-os2.cpp \
|
---|
861 | r0drv/os2/semfastmutex-r0drv-os2.cpp \
|
---|
862 | r0drv/os2/spinlock-r0drv-os2.cpp \
|
---|
863 | r0drv/os2/thread-r0drv-os2.cpp \
|
---|
864 | r0drv/os2/thread2-r0drv-os2.cpp \
|
---|
865 | r0drv/os2/time-r0drv-os2.cpp \
|
---|
866 | r0drv/os2/timer-r0drv-os2.cpp \
|
---|
867 | r0drv/os2/timerA-r0drv-os2.asm
|
---|
868 |
|
---|
869 | RuntimeR0Drv_SOURCES.freebsd = \
|
---|
870 | common/err/RTErrConvertFromErrno.cpp \
|
---|
871 | common/err/RTErrConvertToErrno.cpp \
|
---|
872 | common/misc/thread.cpp \
|
---|
873 | common/string/memchr.asm \
|
---|
874 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
875 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
876 | generic/RTTimerCreate-generic.cpp \
|
---|
877 | r0drv/freebsd/alloc-r0drv-freebsd.c \
|
---|
878 | r0drv/freebsd/assert-r0drv-freebsd.c \
|
---|
879 | r0drv/freebsd/initterm-r0drv-freebsd.c \
|
---|
880 | r0drv/freebsd/memobj-r0drv-freebsd.c \
|
---|
881 | r0drv/freebsd/process-r0drv-freebsd.c \
|
---|
882 | r0drv/freebsd/semevent-r0drv-freebsd.c \
|
---|
883 | r0drv/freebsd/semeventmulti-r0drv-freebsd.c \
|
---|
884 | r0drv/freebsd/semfastmutex-r0drv-freebsd.c \
|
---|
885 | r0drv/freebsd/spinlock-r0drv-freebsd.c \
|
---|
886 | r0drv/freebsd/thread-r0drv-freebsd.c \
|
---|
887 | r0drv/freebsd/thread2-r0drv-freebsd.c \
|
---|
888 | r0drv/freebsd/time-r0drv-freebsd.c \
|
---|
889 | r0drv/freebsd/timer-r0drv-freebsd.c \
|
---|
890 | r0drv/memobj-r0drv.cpp
|
---|
891 |
|
---|
892 | RuntimeR0Drv_SOURCES.solaris = \
|
---|
893 | common/err/RTErrConvertFromErrno.cpp \
|
---|
894 | common/misc/thread.cpp \
|
---|
895 | common/string/memchr.asm \
|
---|
896 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
897 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
898 | generic/RTTimerCreate-generic.cpp \
|
---|
899 | r0drv/memobj-r0drv.cpp \
|
---|
900 | r0drv/solaris/alloc-r0drv-solaris.c \
|
---|
901 | r0drv/solaris/assert-r0drv-solaris.c \
|
---|
902 | r0drv/solaris/initterm-r0drv-solaris.c \
|
---|
903 | r0drv/solaris/memobj-r0drv-solaris.c \
|
---|
904 | r0drv/solaris/process-r0drv-solaris.c \
|
---|
905 | r0drv/solaris/semevent-r0drv-solaris.c \
|
---|
906 | r0drv/solaris/semeventmulti-r0drv-solaris.c \
|
---|
907 | r0drv/solaris/semfastmutex-r0drv-solaris.c \
|
---|
908 | r0drv/solaris/spinlock-r0drv-solaris.c \
|
---|
909 | r0drv/solaris/thread-r0drv-solaris.c \
|
---|
910 | r0drv/solaris/thread2-r0drv-solaris.c \
|
---|
911 | r0drv/solaris/time-r0drv-solaris.c \
|
---|
912 | r0drv/solaris/timer-r0drv-solaris.c
|
---|
913 |
|
---|
914 |
|
---|
915 | ## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here.
|
---|
916 |
|
---|
917 | #
|
---|
918 | # RuntimeW32GuestR0 - Win32 guest driver runtime.
|
---|
919 | #
|
---|
920 | RuntimeW32GuestR0_TEMPLATE = VBOXW32GUESTR0LIB
|
---|
921 | RuntimeW32GuestR0_SDKS = W2K3DDKX86 WINPSDKINCS
|
---|
922 | RuntimeW32GuestR0_INCS := $(PATH_SUB_CURRENT)
|
---|
923 | RuntimeW32GuestR0_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS IN_SUP_R0
|
---|
924 | RuntimeW32GuestR0_SOURCES = \
|
---|
925 | $(filter-out generic/RTLogWriteUser-generic.cpp,$(RuntimeR0Drv_SOURCES)) \
|
---|
926 | $(RuntimeR0Drv_SOURCES.win) \
|
---|
927 | VBox/logbackdoor.cpp
|
---|
928 | ifdef VBOX_USE_VCC80
|
---|
929 | RuntimeW32GuestR0_SOURCES += \
|
---|
930 | common/string/memchr.cpp \
|
---|
931 | common/string/memcmp.cpp \
|
---|
932 | common/string/memcpy.cpp \
|
---|
933 | common/string/memset.cpp \
|
---|
934 | common/string/strlen.cpp
|
---|
935 | endif
|
---|
936 |
|
---|
937 |
|
---|
938 | #
|
---|
939 | # RuntimeW32NT4GuestR0 - Win32 NT4 guest driver runtime.
|
---|
940 | #
|
---|
941 | RuntimeW32NT4GuestR0_TEMPLATE = VBOXW32GUESTR0LIB
|
---|
942 | RuntimeW32NT4GuestR0_SDKS = $(RuntimeW32GuestR0_SDKS)
|
---|
943 | RuntimeW32NT4GuestR0_DEFS = $(RuntimeW32GuestR0_DEFS) IPRT_TARGET_NT4
|
---|
944 | RuntimeW32NT4GuestR0_INCS = $(RuntimeW32GuestR0_INCS)
|
---|
945 | RuntimeW32NT4GuestR0_SOURCES = $(RuntimeW32GuestR0_SOURCES)
|
---|
946 |
|
---|
947 |
|
---|
948 | #
|
---|
949 | # RuntimeLnx32GuestR0 - 32-bit Linux guest driver runtime.
|
---|
950 | #
|
---|
951 | RuntimeLnx32GuestR0_TEMPLATE = VBOXLNX32GUESTR0
|
---|
952 | RuntimeLnx32GuestR0_DEFS = RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS IN_SUP_R0 \
|
---|
953 | MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\)
|
---|
954 | RuntimeLnx32GuestR0_INCS = $(RuntimeR0Drv_INCS.linux) $(RuntimeR0Drv_INCS)
|
---|
955 | RuntimeLnx32GuestR0_SOURCES = \
|
---|
956 | $(RuntimeR0Drv_SOURCES) \
|
---|
957 | $(RuntimeR0Drv_SOURCES.linux) \
|
---|
958 | VBox/logbackdoor.cpp
|
---|
959 |
|
---|
960 |
|
---|
961 | #
|
---|
962 | # RuntimeOS2GuestR0 - OS/2 Warp 4.5 guest driver runtime.
|
---|
963 | #
|
---|
964 | RuntimeOS2GuestR0_TEMPLATE = VBOXOS2GUESTR0LIB
|
---|
965 | RuntimeOS2GuestR0_INCS := $(PATH_SUB_CURRENT)
|
---|
966 | RuntimeOS2GuestR0_DEFS = RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS
|
---|
967 | RuntimeOS2GuestR0_SOURCES = \
|
---|
968 | $(filter-out common/misc/assert.cpp generic/RTLogWriteUser-generic.cpp,$(RuntimeR0Drv_SOURCES)) \
|
---|
969 | $(RuntimeR0Drv_SOURCES.os2) \
|
---|
970 | VBox/logbackdoor.cpp
|
---|
971 |
|
---|
972 |
|
---|
973 | #
|
---|
974 | # RuntimeGC - Guest context library.
|
---|
975 | #
|
---|
976 | RuntimeGC_TEMPLATE = VBOXGC
|
---|
977 | RuntimeGC_DEFS = IN_RT_GC RT_WITH_VBOX
|
---|
978 | RuntimeGC_SOURCES = \
|
---|
979 | common/log/log.cpp \
|
---|
980 | common/log/logcom.cpp \
|
---|
981 | common/log/logformat.cpp \
|
---|
982 | common/misc/assert.cpp \
|
---|
983 | common/misc/sanity-c.c \
|
---|
984 | common/misc/sanity-cpp.cpp \
|
---|
985 | common/string/memchr.cpp \
|
---|
986 | common/string/memcmp.cpp \
|
---|
987 | common/string/memcpy.cpp \
|
---|
988 | common/string/memset.cpp \
|
---|
989 | common/string/strcpy.cpp \
|
---|
990 | common/string/strformat.cpp \
|
---|
991 | common/string/strformatrt.cpp \
|
---|
992 | common/string/strlen.cpp \
|
---|
993 | common/string/strncmp.cpp \
|
---|
994 | common/string/strpbrk.cpp \
|
---|
995 | common/string/strprintf.cpp \
|
---|
996 | common/table/avllu32.cpp \
|
---|
997 | common/table/avlogcphys.cpp \
|
---|
998 | common/table/avlogcptr.cpp \
|
---|
999 | common/table/avlohcphys.cpp \
|
---|
1000 | common/table/avloioport.cpp \
|
---|
1001 | common/table/avlrogcphys.cpp \
|
---|
1002 | common/table/avlrogcptr.cpp \
|
---|
1003 | common/table/avlroioport.cpp \
|
---|
1004 | common/table/avlroogcptr.cpp \
|
---|
1005 | common/table/avlu32.cpp \
|
---|
1006 | common/time/timeprog.cpp \
|
---|
1007 | common/time/timesup.cpp \
|
---|
1008 | gc/initterm-gc.cpp \
|
---|
1009 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
1010 | VBox/strformat-vbox.cpp \
|
---|
1011 |
|
---|
1012 | if1of ($(BUILD_TARGET_ARCH),amd64 x86)
|
---|
1013 | RuntimeGC_SOURCES += common/time/timesupA.asm
|
---|
1014 | else
|
---|
1015 | RuntimeGC_SOURCES += common/time/timesupref.cpp
|
---|
1016 | endif
|
---|
1017 |
|
---|
1018 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
1019 | RuntimeGC_SOURCES += os2/sys0.asm
|
---|
1020 | endif
|
---|
1021 |
|
---|
1022 | ifeq ($(filter-out darwin solaris freebsd,$(BUILD_TARGET)),)
|
---|
1023 | RuntimeGC_SOURCES += \
|
---|
1024 | common/math/gcc/adddi3.c \
|
---|
1025 | common/math/gcc/anddi3.c \
|
---|
1026 | common/math/gcc/ashldi3.c \
|
---|
1027 | common/math/gcc/ashrdi3.c \
|
---|
1028 | common/math/gcc/cmpdi2.c \
|
---|
1029 | common/math/gcc/divdi3.c \
|
---|
1030 | common/math/gcc/iordi3.c \
|
---|
1031 | common/math/gcc/lshldi3.c \
|
---|
1032 | common/math/gcc/lshrdi3.c \
|
---|
1033 | common/math/gcc/moddi3.c \
|
---|
1034 | common/math/gcc/muldi3.c \
|
---|
1035 | common/math/gcc/negdi2.c \
|
---|
1036 | common/math/gcc/notdi2.c \
|
---|
1037 | common/math/gcc/qdivrem.c \
|
---|
1038 | common/math/gcc/subdi3.c \
|
---|
1039 | common/math/gcc/ucmpdi2.c \
|
---|
1040 | common/math/gcc/udivdi3.c \
|
---|
1041 | common/math/gcc/umoddi3.c \
|
---|
1042 | common/math/gcc/xordi3.c
|
---|
1043 | endif
|
---|
1044 |
|
---|
1045 |
|
---|
1046 | #
|
---|
1047 | # Static library for new & delete for the electric fence.
|
---|
1048 | #
|
---|
1049 | RuntimeEFCPP_TEMPLATE = $(RuntimeR3_TEMPLATE)
|
---|
1050 | RuntimeEFCPP_SDKS = $(RuntimeR3_SDKS)
|
---|
1051 | RuntimeEFCPP_SDKS.$(BUILD_TARGET) = $(RuntimeR3_SDKS.$(BUILD_TARGET))
|
---|
1052 | RuntimeEFCPP_DEFS = $(RuntimeR3_DEFS)
|
---|
1053 | RuntimeEFCPP_DEFS.$(BUILD_TARGET) = $(RuntimeR3_DEFS.$(BUILD_TARGET))
|
---|
1054 | RuntimeEFCPP_INCS = $(RuntimeR3_INCS)
|
---|
1055 | RuntimeEFCPP_INCS.$(BUILD_TARGET) = $(RuntimeR3_INCS.$(BUILD_TARGET))
|
---|
1056 | RuntimeEFCPP_SOURCES = r3/alloc-ef-cpp.cpp
|
---|
1057 |
|
---|
1058 |
|
---|
1059 |
|
---|
1060 | #
|
---|
1061 | # errmsg.cpp depends on a generated header.
|
---|
1062 | #
|
---|
1063 | common/err/errmsg.cpp_DEPS = $(PATH_TARGET)/errmsgdata.h
|
---|
1064 | common/err/errmsg.cpp_INCS = $(PATH_TARGET)
|
---|
1065 |
|
---|
1066 | win/errmsgwin.cpp_DEPS = $(PATH_TARGET)/errmsgcomdata.h
|
---|
1067 | win/errmsgwin.cpp_INCS = $(PATH_TARGET)
|
---|
1068 |
|
---|
1069 |
|
---|
1070 | # Generate the rules
|
---|
1071 | include $(PATH_KBUILD)/footer.kmk
|
---|
1072 |
|
---|
1073 |
|
---|
1074 | ifneq ($(wildcard /usr/bin/chcon),)
|
---|
1075 | # this is needed for testcases executed at build time
|
---|
1076 | $(PATH_BIN)/VBoxRT.so:
|
---|
1077 | $(INSTALL) $(out) $@
|
---|
1078 | chcon -t texrel_shlib_t $@ || true
|
---|
1079 | endif
|
---|
1080 |
|
---|
1081 |
|
---|
1082 | #
|
---|
1083 | # Generate the status code data.
|
---|
1084 | #
|
---|
1085 | $(PATH_TARGET)/errmsgdata.h: common/err/errmsg.sed $(DEPTH)/include/iprt/err.h $(DEPTH)/include/VBox/err.h
|
---|
1086 | $(call MSG_GENERATE,,$@,$(filter %.h,$^))
|
---|
1087 | $(QUIET)$(MKDIR) -p $(PATH_TARGET)
|
---|
1088 | $(QUIET)$(SED) -f $< $(filter %.h,$^) > $@
|
---|
1089 | ## @todo r=bird: rename this to indicate that it's not only COM errors, but all win32/64 errors.
|
---|
1090 | $(PATH_TARGET)/errmsgcomdata.h: common/err/errmsgcom.sed $(PATH_SDK_WINPSDK_INC)/WinError.h
|
---|
1091 | $(call MSG_GENERATE,,$@,$(filter %.h,$^))
|
---|
1092 | $(QUIET)$(MKDIR) -p $(PATH_TARGET)
|
---|
1093 | $(QUIET)$(SED) -f $< $(filter %.h,$^) > $@
|
---|
1094 | $(PATH_TARGET)/errmsgxpcomdata.h: common/err/errmsgxpcom.sed $(DEPTH)/src/libs/xpcom18a4/xpcom/base/nsError.h
|
---|
1095 | $(call MSG_GENERATE,,$@,$(filter %.h,$^))
|
---|
1096 | $(QUIET)$(MKDIR) -p $(PATH_TARGET)
|
---|
1097 | $(QUIET)$(SED) -f $< $(filter %.h,$^) > $@
|
---|
1098 |
|
---|
1099 |
|
---|
1100 | #
|
---|
1101 | # Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
|
---|
1102 | #
|
---|
1103 | ldrELFRelocatable.cpp.o: ldrELF.o
|
---|
1104 | ldrELFRelocatable.cpp.obj: ldrELF.obj
|
---|
1105 |
|
---|
1106 |
|
---|
1107 | #
|
---|
1108 | # Doxygen documentation.
|
---|
1109 | #
|
---|
1110 | DOXYGEN_INPUT_DIRS = \
|
---|
1111 | $(PATH_ROOT)/include/iprt \
|
---|
1112 | $(PATH_ROOT)/include/iprt/nocrt \
|
---|
1113 | $(PATH_ROOT)/include/iprt/nocrt/x86 \
|
---|
1114 | $(PATH_ROOT)/include/iprt/nocrt/amd64 \
|
---|
1115 | include/internal \
|
---|
1116 | common/alloc \
|
---|
1117 | common/checksum \
|
---|
1118 | common/err \
|
---|
1119 | common/ldr \
|
---|
1120 | common/log \
|
---|
1121 | common/misc \
|
---|
1122 | common/string \
|
---|
1123 | common/table \
|
---|
1124 | common/time \
|
---|
1125 | $(foreach dir, . r3 r0drv,\
|
---|
1126 | $(dir) \
|
---|
1127 | $(dir)/darwin \
|
---|
1128 | $(dir)/l4 \
|
---|
1129 | $(dir)/linux \
|
---|
1130 | $(dir)/nt \
|
---|
1131 | $(dir)/os2 \
|
---|
1132 | $(dir)/win \
|
---|
1133 | $(dir)/win32 \
|
---|
1134 | $(dir)/win64 \
|
---|
1135 | $(dir)/generic \
|
---|
1136 | )
|
---|
1137 |
|
---|
1138 | # These must come first in order to make things look nice.
|
---|
1139 | DOXYGEN_INPUT_FIRST =\
|
---|
1140 | $(PATH_ROOT)/include/iprt/cdefs.h \
|
---|
1141 | $(PATH_ROOT)/include/iprt/types.h \
|
---|
1142 | $(PATH_ROOT)/include/iprt/runtime.h \
|
---|
1143 | $(PATH_ROOT)/include/iprt/param.h \
|
---|
1144 | $(PATH_ROOT)/include/iprt/assert.h \
|
---|
1145 | $(PATH_ROOT)/include/iprt/asm.h \
|
---|
1146 |
|
---|
1147 | DOXYGEN_INPUT := \
|
---|
1148 | $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(DOXYGEN_INPUT_DIRS)))) ) \
|
---|
1149 | $(foreach dir, $(DOXYGEN_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
|
---|
1150 | DOXYGEN_INPUT := \
|
---|
1151 | $(DOXYGEN_INPUT_FIRST) \
|
---|
1152 | $(filter-out $(DOXYGEN_INPUT_FIRST), $(DOXYGEN_INPUT))
|
---|
1153 |
|
---|
1154 |
|
---|
1155 | DOXYGEN_OUTPUT = $(PATH_OUT)/docs/iprt
|
---|
1156 |
|
---|
1157 | -include $(PATH_TARGET)/Doxyfile.dep
|
---|
1158 |
|
---|
1159 | # Generate the Doxyfile
|
---|
1160 | $(PATH_TARGET)/Doxyfile: Doxyfile \
|
---|
1161 | $(comp-vars DOXYGEN_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
|
---|
1162 | $(comp-vars DOXYGEN_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
|
---|
1163 | | $(call DIRDEP, $(PATH_TARGET))
|
---|
1164 | $(RM) -f $@ [email protected] $(PATH_TARGET)/Doxyfile.dep
|
---|
1165 | $(CP) -f Doxyfile [email protected]
|
---|
1166 | $(APPEND) [email protected]
|
---|
1167 | $(APPEND) [email protected] "OUTPUT_DIRECTORY = $(DOXYGEN_OUTPUT)"
|
---|
1168 | $(APPEND) [email protected] "WARN_LOGFILE = $(DOXYGEN_OUTPUT)/errors"
|
---|
1169 | $(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include include . common/table"
|
---|
1170 | $(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
|
---|
1171 | $(APPEND) [email protected]
|
---|
1172 | $(APPEND) [email protected] "INPUT = $(DOXYGEN_INPUT)"
|
---|
1173 | $(APPEND) [email protected]
|
---|
1174 | $(MV) -f [email protected] $@
|
---|
1175 | @$(APPEND) $(PATH_TARGET)/Doxyfile.dep "DOXYGEN_OUTPUT_PREV = $(DOXYGEN_OUTPUT)"
|
---|
1176 | @$(APPEND) $(PATH_TARGET)/Doxyfile.dep "DOXYGEN_INPUT_PREV = $(DOXYGEN_INPUT)"
|
---|
1177 |
|
---|
1178 | # Create the output directory.
|
---|
1179 | $(call DIRDEP, $(DOXYGEN_OUTPUT)):
|
---|
1180 | $(MKDIR) -p $@
|
---|
1181 |
|
---|
1182 | # Do the actual job.
|
---|
1183 | $(PATH_TARGET)/docs.iprt: $(PATH_TARGET)/Doxyfile $(DOXYGEN_INPUT) | $(call DIRDEP, $(DOXYGEN_OUTPUT))
|
---|
1184 | $(RM) -f $(wildcard $(DOXYGEN_OUTPUT)/html/*) $(PATH_TARGET)/docs.iprt
|
---|
1185 | doxygen $(PATH_TARGET)/Doxyfile
|
---|
1186 | $(APPEND) $(PATH_TARGET)/docs.iprt
|
---|
1187 |
|
---|
1188 | # alias
|
---|
1189 | docs: $(PATH_TARGET)/docs.iprt
|
---|
1190 |
|
---|
1191 | test:
|
---|
1192 | @echo test-$(comp-vars DOXYGEN_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE)
|
---|
1193 | @echo $(DOXYGEN_OUTPUT)
|
---|
1194 | @echo $(DOXYGEN_OUTPUT_PREV)
|
---|
1195 |
|
---|