1 | # $Id: Makefile 449 2007-01-30 23:03:57Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the InnoTek Portable Runtime (IPRT).
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006 InnoTek Systemberatung 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 | # If you received this file as part of a commercial VirtualBox
|
---|
18 | # distribution, then only the terms of your commercial VirtualBox
|
---|
19 | # license agreement apply instead of the previous paragraph.
|
---|
20 | #
|
---|
21 |
|
---|
22 |
|
---|
23 | DEPTH = ../../..
|
---|
24 | include $(PATH_KBUILD)/header.kmk
|
---|
25 |
|
---|
26 | ifndef VBOX_ADDITIONS_LINUX_ONLY
|
---|
27 | # Normal mode.
|
---|
28 | BLDPROGS = uniread
|
---|
29 | LIBRARIES = RuntimeR3 RuntimeR0 RuntimeGC RuntimeEFCPP RuntimeR3NoCRTGCC
|
---|
30 | ifdef VBOX_WITH_VBOXDRV
|
---|
31 | LIBRARIES += RuntimeR0Drv
|
---|
32 | endif
|
---|
33 | ifdef VBOX_WITH_WIN32_ADDITIONS
|
---|
34 | LIBRARIES += RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0
|
---|
35 | endif
|
---|
36 | ifdef VBOX_WITH_LINUX_ADDITIONS
|
---|
37 | LIBRARIES += RuntimeLnx32GuestR0 RuntimeLnx32GuestR3
|
---|
38 | endif
|
---|
39 | LIBRARIES.l4= RuntimeR3L4
|
---|
40 | DLLS = VBoxRT
|
---|
41 | OTHER_CLEAN = \
|
---|
42 | $(PATH_TARGET)/errmsgdata.h \
|
---|
43 | $(PATH_TARGET)/errmsgcomdata.h \
|
---|
44 | $(PATH_TARGET)/Doxyfile \
|
---|
45 | $(PATH_TARGET)/Doxyfile.dep \
|
---|
46 | $(PATH_TARGET)/docs.iprt
|
---|
47 |
|
---|
48 | SUBDIRS_AFTER = testcase
|
---|
49 |
|
---|
50 | else
|
---|
51 | # Linux target guest runtime only mode.
|
---|
52 | LIBRARIES = RuntimeLnx32GuestR0 RuntimeLnx32GuestR3
|
---|
53 | endif # only linux guest additions
|
---|
54 |
|
---|
55 |
|
---|
56 | # global (for now at least)
|
---|
57 | INCS += include
|
---|
58 |
|
---|
59 |
|
---|
60 | #
|
---|
61 | # Unicode Specification reader used to regenerate unidata.cpp.
|
---|
62 | #
|
---|
63 | uniread_TEMPLATE = VBOXBLDPROG
|
---|
64 | uniread_SOURCES = uniread.cpp
|
---|
65 |
|
---|
66 | #
|
---|
67 | # Win64 assembly sources.
|
---|
68 | #
|
---|
69 | RuntimeWin64ASM_SOURCES = \
|
---|
70 | win64/ASMAtomicBitClear.asm \
|
---|
71 | win64/ASMAtomicBitTestAndToggle.asm \
|
---|
72 | win64/ASMAtomicBitToggle.asm \
|
---|
73 | win64/ASMAtomicReadU64.asm \
|
---|
74 | win64/ASMAtomicXchgU16.asm \
|
---|
75 | win64/ASMAtomicXchgU8.asm \
|
---|
76 | win64/ASMBitFirstClear.asm \
|
---|
77 | win64/ASMBitFirstSet.asm \
|
---|
78 | win64/ASMGetCS.asm \
|
---|
79 | win64/ASMGetDS.asm \
|
---|
80 | win64/ASMGetES.asm \
|
---|
81 | win64/ASMGetFlags.asm \
|
---|
82 | win64/ASMGetFS.asm \
|
---|
83 | win64/ASMGetGS.asm \
|
---|
84 | win64/ASMGetIDTR.asm \
|
---|
85 | win64/ASMGetSS.asm \
|
---|
86 | win64/ASMProbeReadByte.asm \
|
---|
87 | win64/ASMSetFlags.asm \
|
---|
88 | win64/ASMGetDR0.asm \
|
---|
89 | win64/ASMGetDR1.asm \
|
---|
90 | win64/ASMGetDR2.asm \
|
---|
91 | win64/ASMGetDR3.asm \
|
---|
92 | win64/ASMGetDR6.asm \
|
---|
93 | win64/ASMGetDR7.asm \
|
---|
94 |
|
---|
95 | #
|
---|
96 | # RuntimeR3 - Static Runtime for Ring-3 executables.
|
---|
97 | #
|
---|
98 | RuntimeR3_TEMPLATE = VBOXR3EXE
|
---|
99 | RuntimeR3_SDKS.win = WINPSDK W2K3DDK
|
---|
100 | RuntimeR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX
|
---|
101 | ifdef IPRT_WITH_KLDR
|
---|
102 | RuntimeR3_DEFS += LDR_WITH_KLDR KLDR_USE_CRT
|
---|
103 | RuntimeR3_DEFS.debug += KLDRMOD_STRICT KLDRMODLX_STRICT KLDRMODPE_STRICT KLDRMODNATIVE_STRICT KLDRRDR_STRICT
|
---|
104 | endif
|
---|
105 | RuntimeR3_DEFS.l4 = L4
|
---|
106 | ifdef VBOX_MAIN_RELEASE_LOG ## @todo (dmik): temporary, until RTThreadSelf/RTThreadAdopt are properly updated
|
---|
107 | RuntimeR3_DEFS += RTCRITSECT_STRICT
|
---|
108 | endif
|
---|
109 | RuntimeR3_INCS = \
|
---|
110 | $(PATH_ROOT)/src/libs/liblzf-1.51
|
---|
111 | ifdef IPRT_WITH_KLDR
|
---|
112 | RuntimeR3_INCS += \
|
---|
113 | $(IPRT_PATH_KLDR)
|
---|
114 | endif
|
---|
115 | RuntimeR3_INCS.l4 = \
|
---|
116 | $(PATH_ROOT)/src/libs/libuuid \
|
---|
117 | $(L4_INCDIR)
|
---|
118 |
|
---|
119 | RuntimeR3_SOURCES = \
|
---|
120 | alloc.cpp \
|
---|
121 | alloc/heapsimple.cpp \
|
---|
122 | assert.cpp \
|
---|
123 | table/avlhcphys.cpp \
|
---|
124 | table/avlgcptr.cpp \
|
---|
125 | table/avlogcphys.cpp \
|
---|
126 | table/avlogcptr.cpp \
|
---|
127 | table/avlohcphys.cpp \
|
---|
128 | table/avloioport.cpp \
|
---|
129 | table/avlpv.cpp \
|
---|
130 | table/avlrgcptr.cpp \
|
---|
131 | table/avlrogcphys.cpp \
|
---|
132 | table/avlrogcptr.cpp \
|
---|
133 | table/avlroogcptr.cpp \
|
---|
134 | table/avlroioport.cpp \
|
---|
135 | table/avlu32.cpp \
|
---|
136 | table/avlul.cpp \
|
---|
137 | table/table.cpp \
|
---|
138 | crc32.cpp \
|
---|
139 | crc64.cpp \
|
---|
140 | dir.cpp \
|
---|
141 | errmsg.cpp \
|
---|
142 | fileio.cpp \
|
---|
143 | fs.cpp \
|
---|
144 | generic/critsect-generic.cpp \
|
---|
145 | generic/RTFileCopy-generic.cpp \
|
---|
146 | generic/RTLogWriteStdErr-generic.cpp \
|
---|
147 | generic/RTLogWriteStdOut-generic.cpp \
|
---|
148 | generic/RTLogWriteUser-generic.cpp \
|
---|
149 | generic/semfastmutex-generic.cpp \
|
---|
150 | generic/spinlock-generic.cpp \
|
---|
151 | ldr.cpp \
|
---|
152 | ldrFile.cpp \
|
---|
153 | ldrNative.cpp \
|
---|
154 | ldrELF.cpp \
|
---|
155 | ldrEx.cpp \
|
---|
156 | ldrPE.cpp \
|
---|
157 | log.cpp \
|
---|
158 | logcom.cpp \
|
---|
159 | logformat.cpp \
|
---|
160 | md5.cpp \
|
---|
161 | path.cpp \
|
---|
162 | r3/alloc-ef.cpp \
|
---|
163 | r3/alloc.cpp \
|
---|
164 | r3/init.cpp \
|
---|
165 | r3/process.cpp \
|
---|
166 | r3/stream.cpp \
|
---|
167 | r3/tcp.cpp \
|
---|
168 | RTErrConvertFromErrno.cpp \
|
---|
169 | semspingpong.cpp \
|
---|
170 | straprintf.cpp \
|
---|
171 | strformat.cpp \
|
---|
172 | strformatrt.cpp \
|
---|
173 | string.cpp \
|
---|
174 | strprintf.cpp \
|
---|
175 | strspace.cpp \
|
---|
176 | strstrip.cpp \
|
---|
177 | strtonum.cpp \
|
---|
178 | thread.cpp \
|
---|
179 | time.cpp \
|
---|
180 | timeprog.cpp \
|
---|
181 | uni.cpp \
|
---|
182 | unidata.cpp \
|
---|
183 | utf-16.cpp \
|
---|
184 | utf-8.cpp \
|
---|
185 | zip.cpp \
|
---|
186 |
|
---|
187 | ifdef IPRT_WITH_KLDR
|
---|
188 | RuntimeR3_SOURCES += \
|
---|
189 | ldrkLdr.cpp \
|
---|
190 | $(IPRT_PATH_KLDR)/kLdrMod.c \
|
---|
191 | $(IPRT_PATH_KLDR)/kLdrModLX.c \
|
---|
192 | $(IPRT_PATH_KLDR)/kLdrModPE.c \
|
---|
193 | $(IPRT_PATH_KLDR)/kLdrModNative.c \
|
---|
194 | $(IPRT_PATH_KLDR)/kLdrMisc.c \
|
---|
195 | $(IPRT_PATH_KLDR)/kLdrRdr.c \
|
---|
196 | $(IPRT_PATH_KLDR)/kLdrHlpStr.c
|
---|
197 | # We Implement these using IPRT facilities.
|
---|
198 | # $(IPRT_PATH_KLDR)/kLdrHlp.c \
|
---|
199 | # $(IPRT_PATH_KLDR)/kLdrHlpHeap.c \
|
---|
200 | # $(IPRT_PATH_KLDR)/kLdrHlpSem.c \
|
---|
201 | # $(IPRT_PATH_KLDR)/kLdrHlpMem.c \
|
---|
202 | # $(IPRT_PATH_KLDR)/kLdrHlpPath.c
|
---|
203 |
|
---|
204 | endif
|
---|
205 |
|
---|
206 | # VBox specific stuff.
|
---|
207 | RuntimeR3_SOURCES += \
|
---|
208 | VBox/strformat-vbox.cpp \
|
---|
209 | VBox/log-vbox.cpp
|
---|
210 |
|
---|
211 | RuntimeR3_SOURCES.win = \
|
---|
212 | generic/RTDirQueryInfo-generic.cpp \
|
---|
213 | generic/RTDirSetTimes-generic.cpp \
|
---|
214 | generic/semsrw-generic.cpp \
|
---|
215 | generic/semnoint-generic.cpp \
|
---|
216 | nt/RTErrConvertFromNtStatus.cpp \
|
---|
217 | win32/errmsgwin.cpp \
|
---|
218 | r3/win32/alloc-win32.cpp \
|
---|
219 | r3/win32/dir-win32.cpp \
|
---|
220 | r3/win32/fileio-win32.cpp \
|
---|
221 | r3/win32/fs-win32.cpp \
|
---|
222 | r3/win32/ldrNative-win32.cpp \
|
---|
223 | r3/win32/path-win32.cpp \
|
---|
224 | r3/win32/process-win32.cpp \
|
---|
225 | r3/win32/RTLogWriteDebugger-win32.cpp \
|
---|
226 | r3/win32/sched-win32.cpp \
|
---|
227 | r3/win32/sems-win32.cpp \
|
---|
228 | r3/win32/system-win32.cpp \
|
---|
229 | r3/win32/thread-win32.cpp \
|
---|
230 | r3/win32/time-win32.cpp \
|
---|
231 | r3/win32/timer-win32.cpp \
|
---|
232 | r3/win32/utf16locale-win32.cpp \
|
---|
233 | r3/win32/utf8-win32.cpp \
|
---|
234 | r3/win32/uuid-win32.cpp \
|
---|
235 | timesup.cpp \
|
---|
236 | win32/RTErrConvertFromWin32.cpp
|
---|
237 |
|
---|
238 | RuntimeR3_SOURCES.win.amd64 = \
|
---|
239 | $(RuntimeWin64ASM_SOURCES)
|
---|
240 |
|
---|
241 | RuntimeR3_SOURCES.linux = \
|
---|
242 | generic/RTDirQueryInfo-generic.cpp \
|
---|
243 | generic/RTDirSetTimes-generic.cpp \
|
---|
244 | generic/RTFileMove-generic.cpp \
|
---|
245 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
246 | generic/pathhost-generic.cpp \
|
---|
247 | r3/linux/sched-linux.cpp \
|
---|
248 | r3/linux/uuid-linux.cpp \
|
---|
249 | r3/posix/alloc-posix.cpp \
|
---|
250 | r3/posix/dir-posix.cpp \
|
---|
251 | r3/posix/fileio-posix.cpp \
|
---|
252 | r3/posix/fs-posix.cpp \
|
---|
253 | r3/posix/ldrNative-posix.cpp \
|
---|
254 | r3/posix/path-posix.cpp \
|
---|
255 | r3/posix/process-posix.cpp \
|
---|
256 | r3/posix/sems-posix.cpp \
|
---|
257 | r3/posix/system-posix.cpp \
|
---|
258 | r3/posix/thread-posix.cpp \
|
---|
259 | r3/posix/time-posix.cpp \
|
---|
260 | r3/posix/timer-posix.cpp \
|
---|
261 | generic/utf16locale-generic.cpp \
|
---|
262 | r3/posix/utf8-posix.cpp \
|
---|
263 | timesup.cpp \
|
---|
264 |
|
---|
265 | RuntimeR3_SOURCES.os2 = \
|
---|
266 | generic/RTDirQueryInfo-generic.cpp \
|
---|
267 | generic/RTDirSetTimes-generic.cpp \
|
---|
268 | generic/RTFileMove-generic.cpp \
|
---|
269 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
270 | generic/pathhost-generic.cpp \
|
---|
271 | generic/semsrw-generic.cpp \
|
---|
272 | generic/semnoint-generic.cpp \
|
---|
273 | generic/sched-generic.cpp \
|
---|
274 | generic/uuid-generic.cpp \
|
---|
275 | os2/RTErrConvertFromOS2.cpp \
|
---|
276 | r3/os2/sems-os2.cpp \
|
---|
277 | r3/os2/system-os2.cpp \
|
---|
278 | r3/os2/thread-os2.cpp \
|
---|
279 | r3/posix/alloc-posix.cpp \
|
---|
280 | r3/posix/dir-posix.cpp \
|
---|
281 | r3/posix/fileio-posix.cpp \
|
---|
282 | r3/posix/fs-posix.cpp \
|
---|
283 | r3/posix/ldrNative-posix.cpp \
|
---|
284 | r3/posix/path-posix.cpp \
|
---|
285 | r3/posix/process-posix.cpp \
|
---|
286 | r3/posix/time-posix.cpp \
|
---|
287 | r3/posix/timer-posix.cpp \
|
---|
288 | generic/utf16locale-generic.cpp \
|
---|
289 | r3/posix/utf8-posix.cpp \
|
---|
290 | timesup.cpp \
|
---|
291 |
|
---|
292 | RuntimeR3_SOURCES.darwin = \
|
---|
293 | generic/RTDirQueryInfo-generic.cpp \
|
---|
294 | generic/RTDirSetTimes-generic.cpp \
|
---|
295 | generic/RTFileMove-generic.cpp \
|
---|
296 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
297 | generic/pathhost-generic.cpp \
|
---|
298 | r3/darwin/alloc-darwin.cpp \
|
---|
299 | r3/posix/dir-posix.cpp \
|
---|
300 | r3/posix/fileio-posix.cpp \
|
---|
301 | r3/posix/fs-posix.cpp \
|
---|
302 | r3/posix/ldrNative-posix.cpp \
|
---|
303 | r3/posix/path-posix.cpp \
|
---|
304 | r3/posix/process-posix.cpp \
|
---|
305 | generic/sched-generic.cpp \
|
---|
306 | r3/posix/sems-posix.cpp \
|
---|
307 | r3/posix/system-posix.cpp \
|
---|
308 | r3/posix/thread-posix.cpp \
|
---|
309 | r3/darwin/time-darwin.cpp \
|
---|
310 | generic/timer-generic.cpp \
|
---|
311 | generic/utf16locale-generic.cpp \
|
---|
312 | r3/posix/utf8-posix.cpp \
|
---|
313 | r3/linux/uuid-linux.cpp \
|
---|
314 | timesup.cpp \
|
---|
315 |
|
---|
316 |
|
---|
317 |
|
---|
318 |
|
---|
319 | #
|
---|
320 | # L4 RuntimeR3 subtarget since L4 headers won't work with VBOXR3.
|
---|
321 | #
|
---|
322 | RuntimeR3L4_TEMPLATE = VBOXR3NP
|
---|
323 | RuntimeR3L4_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF LDR_WITH_PE
|
---|
324 | RuntimeR3L4_INCS = $(L4_INCDIR) \
|
---|
325 | $(PATH_ROOT)/src/libs/libuuid
|
---|
326 |
|
---|
327 | RuntimeR3L4_SOURCES = \
|
---|
328 | generic/RTDirQueryInfo-generic.cpp \
|
---|
329 | generic/RTDirSetTimes-generic.cpp \
|
---|
330 | generic/RTFileMove-generic.cpp \
|
---|
331 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
332 | generic/fs-stubs-generic.cpp \
|
---|
333 | generic/pathhost-generic.cpp \
|
---|
334 | generic/sched-generic.cpp \
|
---|
335 | generic/semsrw-generic.cpp \
|
---|
336 | generic/semnoint-generic.cpp \
|
---|
337 | l4/l4-errno.cpp \
|
---|
338 | l4/process-l4env.cpp \
|
---|
339 | l4/sems-l4env.cpp \
|
---|
340 | l4/system-l4env.cpp \
|
---|
341 | l4/thread-l4env.cpp \
|
---|
342 | l4/timer-l4env.cpp \
|
---|
343 | generic/utf16locale-generic.cpp \
|
---|
344 | l4/utf8-l4env.cpp \
|
---|
345 | r3/linux/uuid-linux.cpp \
|
---|
346 | r3/posix/alloc-posix.cpp \
|
---|
347 | r3/posix/dir-posix.cpp \
|
---|
348 | r3/posix/fileio-posix.cpp \
|
---|
349 | r3/posix/ldrNative-posix.cpp \
|
---|
350 | r3/posix/path-posix.cpp \
|
---|
351 | r3/posix/time-posix.cpp \
|
---|
352 | timesup.cpp
|
---|
353 |
|
---|
354 | #
|
---|
355 | # RuntimeW32GuestR3 - Win32 guest program runtime.
|
---|
356 | #
|
---|
357 | RuntimeW32GuestR3_TEMPLATE = VBOXW32GUESTR3LIB
|
---|
358 | RuntimeW32GuestR3_SDKS = $(RuntimeR3_SDKS.win) $(RuntimeR3_SDKS.win.x86) $(RuntimeR3_SDKS)
|
---|
359 | RuntimeW32GuestR3_DEFS = $(RuntimeR3_DEFS)
|
---|
360 | RuntimeW32GuestR3_DEFS.$(BUILD_TYPE) = $(RuntimeR3_DEFS).$(BUILD_TYPE)
|
---|
361 | RuntimeW32GuestR3_SOURCES = $(RuntimeR3_SOURCES.win) $(RuntimeR3_SOURCES)
|
---|
362 | RuntimeW32GuestR3_INCS = $(RuntimeR3_INCS.win) $(RuntimeR3_INCS)
|
---|
363 |
|
---|
364 |
|
---|
365 | #
|
---|
366 | # RuntimeLnx32GuestR3 - 32-bit Linux guest program runtime.
|
---|
367 | #
|
---|
368 | RuntimeLnx32GuestR3_TEMPLATE = VBOXLNX32GUESTR3LIB
|
---|
369 | RuntimeLnx32GuestR3_DEFS = $(RuntimeR3_DEFS.linux) $(RuntimeR3_DEFS) IN_GUEST IN_GUEST_R3
|
---|
370 | RuntimeLnx32GuestR3_DEFS.$(BUILD_TYPE) = $(RuntimeR3_DEFS.$(BUILD_TYPE))
|
---|
371 | RuntimeLnx32GuestR3_SOURCES = $(RuntimeR3_SOURCES.linux) $(RuntimeR3_SOURCES)
|
---|
372 | RuntimeLnx32GuestR3_INCS = $(RuntimeR3_INCS.linux) $(RuntimeR3_INCS)
|
---|
373 |
|
---|
374 |
|
---|
375 | #
|
---|
376 | # VBoxRT - Shared Object / DLL version.
|
---|
377 | #
|
---|
378 | VBoxRT_TEMPLATE = VBOXR3
|
---|
379 | VBoxRT_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
|
---|
380 | VBoxRT_DEFS = $(RuntimeR3_DEFS) IN_SUP_R3 IN_SUP_R3
|
---|
381 | VBoxRT_DEFS.$(BUILD_TYPE) = $(RuntimeR3_DEFS.$(BUILD_TYPE))
|
---|
382 | VBoxRT_SOURCES = \
|
---|
383 | VBox/VBoxRTDeps.cpp \
|
---|
384 | $(RuntimeR3_SOURCES)
|
---|
385 | VBoxRT_SOURCES.$(BUILD_TARGET) = $(RuntimeR3_SOURCES.$(BUILD_TARGET))
|
---|
386 | VBoxRT_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH))
|
---|
387 | VBoxRT_SOURCES.win += r3/win32/dllmain-win32.cpp
|
---|
388 | VBoxRT_SOURCES.win.amd64 += r3/win64/VBoxRT-win64.def
|
---|
389 | VBoxRT_INCS = $(RuntimeR3_INCS)
|
---|
390 | VBoxRT_INCS.$(BUILD_TARGET) = $(RuntimeR3_INCS.$(BUILD_TARGET))
|
---|
391 | VBoxRT_INCS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH) = $(RuntimeR3_INCS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH))
|
---|
392 | VBoxRT_LIBS = \
|
---|
393 | $(PATH_LIB)/SUPR3$(VBOX_SUFF_LIB) \
|
---|
394 | $(PATH_LIB)/VBox-liblzf$(VBOX_SUFF_LIB)
|
---|
395 | VBoxRT_LIBS.darwin = \
|
---|
396 | iconv
|
---|
397 | VBoxRT_LDFLAGS.darwin = -framework IOKit
|
---|
398 | ifdef VBOX_USE_VCC80
|
---|
399 | VBoxRT_LDFLAGS.win = /MANIFEST
|
---|
400 | endif
|
---|
401 | VBoxRT_LDFLAGS.l4 = \
|
---|
402 | -Wl,-whole-archive \
|
---|
403 | $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB) \
|
---|
404 | -Wl,-no-whole-archive
|
---|
405 | ifeq ($(BUILD_TARGET),l4)
|
---|
406 | VBoxRT_LIBS += \
|
---|
407 | $(L4_LIBDIR)/libl4sys.a \
|
---|
408 | $(L4_LIBDIR)/libl4sys.p.a
|
---|
409 | endif
|
---|
410 | VBoxRT_LIBS.l4 = \
|
---|
411 | $(PATH_LIB)/VBox-uuid$(VBOX_SUFF_LIB) \
|
---|
412 | $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB)
|
---|
413 |
|
---|
414 | #
|
---|
415 | # RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
|
---|
416 | # This is used together with VBoxRT.
|
---|
417 | #
|
---|
418 | RuntimeR3NoCRTGCC_TEMPLATE = VBOXNOCRTGCC
|
---|
419 | RuntimeR3NoCRTGCC_SOURCES = \
|
---|
420 | \
|
---|
421 | math/ceill.asm \
|
---|
422 | math/cosl.asm \
|
---|
423 | math/fabs.asm \
|
---|
424 | math/fabsf.asm \
|
---|
425 | math/fabsl.asm \
|
---|
426 | math/floor.asm \
|
---|
427 | math/floorf.asm \
|
---|
428 | math/floorl.asm \
|
---|
429 | math/ldexpl.asm \
|
---|
430 | math/llrint.asm \
|
---|
431 | math/llrintf.asm \
|
---|
432 | math/llrintl.asm \
|
---|
433 | math/logl.asm \
|
---|
434 | math/lrint.asm \
|
---|
435 | math/lrintf.asm \
|
---|
436 | math/lrintl.asm \
|
---|
437 | math/remainder.asm \
|
---|
438 | math/remainderf.asm \
|
---|
439 | math/remainderl.asm \
|
---|
440 | math/sinl.asm \
|
---|
441 | math/tanl.asm \
|
---|
442 | math/trunc.asm \
|
---|
443 | math/truncf.asm \
|
---|
444 | math/truncl.asm \
|
---|
445 | \
|
---|
446 | misc/setjmp.asm \
|
---|
447 | \
|
---|
448 | string/memchr.asm \
|
---|
449 | string/memchr_alias.c \
|
---|
450 | string/memcpy.asm \
|
---|
451 | string/memcpy_alias.c \
|
---|
452 | string/mempcpy.asm \
|
---|
453 | string/memset.asm \
|
---|
454 | string/memset_alias.c
|
---|
455 |
|
---|
456 | RuntimeR3NoCRTGCC_SOURCES.x86 = \
|
---|
457 | math/x86/fenv-x86.c
|
---|
458 |
|
---|
459 |
|
---|
460 | ## @todo stop using the old memcpy.c and memset.c code.
|
---|
461 |
|
---|
462 | #
|
---|
463 | # RuntimeR0 - Ring0 library for VMMR0.
|
---|
464 | #
|
---|
465 | RuntimeR0_TEMPLATE = VBOXR0
|
---|
466 | RuntimeR0_DEFS = IN_RT_R0 RT_WITH_VBOX
|
---|
467 | RuntimeR0_SOURCES = \
|
---|
468 | assert.cpp \
|
---|
469 | table/avlhcphys.cpp \
|
---|
470 | table/avlgcptr.cpp \
|
---|
471 | table/avlogcphys.cpp \
|
---|
472 | table/avlohcphys.cpp \
|
---|
473 | table/avlpv.cpp \
|
---|
474 | table/avlrogcphys.cpp \
|
---|
475 | table/avlogcptr.cpp \
|
---|
476 | table/avlrogcptr.cpp \
|
---|
477 | table/avlroogcptr.cpp \
|
---|
478 | table/avloioport.cpp \
|
---|
479 | table/avlroioport.cpp \
|
---|
480 | logcom.cpp \
|
---|
481 | logformat.cpp \
|
---|
482 | strformat.cpp \
|
---|
483 | strformatrt.cpp \
|
---|
484 | strprintf.cpp \
|
---|
485 | string/memchr.cpp \
|
---|
486 | string/memcmp.cpp \
|
---|
487 | string/memcpy.cpp \
|
---|
488 | string/memset.cpp \
|
---|
489 | string/strcpy.cpp \
|
---|
490 | string/strlen.cpp \
|
---|
491 | string/strncmp.cpp \
|
---|
492 | string/strpbrk.cpp \
|
---|
493 | VBox/strformat-vbox.cpp \
|
---|
494 | timesup.cpp
|
---|
495 |
|
---|
496 | RuntimeR0_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
|
---|
497 |
|
---|
498 | RuntimeR0_SOURCES.os2 = \
|
---|
499 | os2/RTErrConvertFromOS2.cpp \
|
---|
500 | os2/sys0.asm
|
---|
501 |
|
---|
502 | string/memchr.cpp_CXXFLAGS.win = -Oi-
|
---|
503 | string/memcmp.cpp_CXXFLAGS.win = -Oi-
|
---|
504 | string/memcpy.cpp_CXXFLAGS.win = -Oi-
|
---|
505 | string/memset.cpp_CXXFLAGS.win = -Oi-
|
---|
506 | string/strcpy.cpp_CXXFLAGS.win = -Oi-
|
---|
507 | string/strlen.cpp_CXXFLAGS.win = -Oi-
|
---|
508 |
|
---|
509 | ifeq ($(BUILD_TARGET),l4)
|
---|
510 | RuntimeR0Drv_BLD_TRG = linux
|
---|
511 | RuntimeR0Drv_BLD_TRG_ARCH = x86
|
---|
512 | RuntimeR0Drv_BLD_TRG_CPU = i386
|
---|
513 | endif
|
---|
514 |
|
---|
515 | #
|
---|
516 | # RuntimeR0Drv - Ring0 library for host drivers.
|
---|
517 | #
|
---|
518 | RuntimeR0Drv_TEMPLATE = VBOXR0DRV
|
---|
519 | RuntimeR0Drv_SDKS.win = W2K3DDK WINPSDKINCS
|
---|
520 | RuntimeR0Drv_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS
|
---|
521 | RuntimeR0Drv_DEFS.win = IN_SUP_R0
|
---|
522 | RuntimeR0Drv_DEFS.linux = MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) IN_SUP_R0 # why is IN_SUP_R0 here? because!
|
---|
523 |
|
---|
524 | RuntimeR0Drv_INCS.linux = \
|
---|
525 | r0drv/linux
|
---|
526 |
|
---|
527 | RuntimeR0Drv_SOURCES = \
|
---|
528 | assert.cpp \
|
---|
529 | log.cpp \
|
---|
530 | logcom.cpp \
|
---|
531 | logformat.cpp \
|
---|
532 | string/strpbrk.cpp \
|
---|
533 | strformat.cpp \
|
---|
534 | strformatrt.cpp \
|
---|
535 | strtonum.cpp \
|
---|
536 | strprintf.cpp \
|
---|
537 | VBox/strformat-vbox.cpp \
|
---|
538 | r0drv/alloc-r0drv.cpp \
|
---|
539 | r0drv/initterm-r0drv.cpp \
|
---|
540 | generic/RTLogWriteStdErr-stub-generic.cpp \
|
---|
541 | generic/RTLogWriteStdOut-stub-generic.cpp \
|
---|
542 | generic/RTLogWriteUser-generic.cpp \
|
---|
543 | VBox/log-vbox.cpp \
|
---|
544 | table/avlpv.cpp \
|
---|
545 | crc32.cpp \
|
---|
546 | crc64.cpp
|
---|
547 |
|
---|
548 | RuntimeR0Drv_SOURCES.linux = \
|
---|
549 | alloc/heapsimple.cpp \
|
---|
550 | r0drv/linux/alloc-r0drv-linux.c \
|
---|
551 | r0drv/linux/initterm-r0drv-linux.c \
|
---|
552 | r0drv/linux/process-r0drv-linux.c \
|
---|
553 | r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \
|
---|
554 | r0drv/linux/semaphore-r0drv-linux.c \
|
---|
555 | r0drv/linux/spinlock-r0drv-linux.c \
|
---|
556 | r0drv/linux/thread-r0drv-linux.c
|
---|
557 |
|
---|
558 | RuntimeR0Drv_SOURCES.win = \
|
---|
559 | nt/RTErrConvertFromNtStatus.cpp \
|
---|
560 | r0drv/nt/alloc-r0drv-nt.cpp \
|
---|
561 | r0drv/nt/initterm-r0drv-nt.cpp \
|
---|
562 | r0drv/nt/process-r0drv-nt.cpp \
|
---|
563 | r0drv/nt/RTLogWriteDebugger-r0drv-nt.cpp \
|
---|
564 | r0drv/nt/semaphore-r0drv-nt.cpp \
|
---|
565 | r0drv/nt/spinlock-r0drv-nt.cpp \
|
---|
566 | r0drv/nt/thread-r0drv-nt.cpp \
|
---|
567 | string/strncmp.cpp
|
---|
568 |
|
---|
569 | RuntimeR0Drv_SOURCES.win.amd64 = \
|
---|
570 | $(RuntimeWin64ASM_SOURCES)
|
---|
571 |
|
---|
572 | RuntimeR0Drv_SOURCES.darwin = \
|
---|
573 | RTErrConvertFromErrno.cpp \
|
---|
574 | string/memchr.asm \
|
---|
575 | r0drv/memobj-r0drv.cpp \
|
---|
576 | r0drv/darwin/alloc-r0drv-darwin.cpp \
|
---|
577 | r0drv/darwin/memobj-r0drv-darwin.cpp \
|
---|
578 | r0drv/darwin/initterm-r0drv-darwin.cpp \
|
---|
579 | r0drv/darwin/process-r0drv-darwin.cpp \
|
---|
580 | r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
|
---|
581 | r0drv/darwin/semaphore-r0drv-darwin.cpp \
|
---|
582 | r0drv/darwin/spinlock-r0drv-darwin.cpp \
|
---|
583 | r0drv/darwin/thread-r0drv-darwin.cpp \
|
---|
584 | r0drv/darwin/thread2-r0drv-darwin.cpp \
|
---|
585 | r0drv/darwin/time-r0drv-darwin.cpp \
|
---|
586 | thread.cpp \
|
---|
587 | generic/timer-generic.cpp \
|
---|
588 |
|
---|
589 | RuntimeR0Drv_SOURCES.os2 = \
|
---|
590 | os2/RTErrConvertFromOS2.cpp \
|
---|
591 | os2/sys0.asm
|
---|
592 |
|
---|
593 |
|
---|
594 | #
|
---|
595 | # RuntimeW32GuestR0 - Win32 guest driver runtime.
|
---|
596 | #
|
---|
597 | RuntimeW32GuestR0_TEMPLATE = VBOXW32GUESTR0LIB
|
---|
598 | RuntimeW32GuestR0_SDKS = W2K3DDKX86 WINPSDKINCS
|
---|
599 | RuntimeW32GuestR0_DEFS = $(RuntimeR0Drv_DEFS.win) $(RuntimeR0Drv_DEFS.win.x86) $(RuntimeR0Drv_DEFS)
|
---|
600 | RuntimeW32GuestR0_INCS = $(RuntimeR0Drv_INCS.win) $(RuntimeR0Drv_INCS.win.x86) $(RuntimeR0Drv_INCS)
|
---|
601 | RuntimeW32GuestR0_SOURCES = \
|
---|
602 | $(RuntimeR0Drv_SOURCES) \
|
---|
603 | $(RuntimeR0Drv_SOURCES.win) \
|
---|
604 | VBox/logbackdoor.cpp \
|
---|
605 | logR0.cpp
|
---|
606 | ifdef VBOX_USE_VCC80
|
---|
607 | RuntimeW32GuestR0_SOURCES += \
|
---|
608 | string/memchr.cpp \
|
---|
609 | string/memcmp.cpp \
|
---|
610 | string/memcpy.cpp \
|
---|
611 | string/memset.cpp \
|
---|
612 | string/strlen.cpp
|
---|
613 | endif
|
---|
614 |
|
---|
615 |
|
---|
616 | #
|
---|
617 | # RuntimeW32NT4GuestR0 - Win32 NT4 guest driver runtime.
|
---|
618 | #
|
---|
619 | RuntimeW32NT4GuestR0_TEMPLATE = VBOXW32GUESTR0LIB
|
---|
620 | RuntimeW32NT4GuestR0_SDKS = $(RuntimeW32GuestR0_SDKS)
|
---|
621 | RuntimeW32NT4GuestR0_DEFS = $(RuntimeW32GuestR0_DEFS) IPRT_TARGET_NT4
|
---|
622 | RuntimeW32NT4GuestR0_INCS = $(RuntimeW32GuestR0_INCS)
|
---|
623 | RuntimeW32NT4GuestR0_SOURCES = $(RuntimeW32GuestR0_SOURCES)
|
---|
624 |
|
---|
625 |
|
---|
626 | #
|
---|
627 | # RuntimeLnx32GuestR0 - 32-bit Linux guest driver runtime.
|
---|
628 | #
|
---|
629 | RuntimeLnx32GuestR0_TEMPLATE = VBOXLNX32GUESTR0
|
---|
630 | RuntimeLnx32GuestR0_DEFS = $(RuntimeR0Drv_DEFS.linux) $(RuntimeR0Drv_DEFS) IN_GUEST IN_GUEST_R0
|
---|
631 | RuntimeLnx32GuestR0_INCS = $(RuntimeR0Drv_INCS.linux) $(RuntimeR0Drv_INCS)
|
---|
632 | RuntimeLnx32GuestR0_SOURCES = \
|
---|
633 | $(RuntimeR0Drv_SOURCES) \
|
---|
634 | $(RuntimeR0Drv_SOURCES.linux) \
|
---|
635 | VBox/logbackdoor.cpp
|
---|
636 |
|
---|
637 | #
|
---|
638 | # RuntimeGC - Guest context library.
|
---|
639 | #
|
---|
640 | RuntimeGC_TEMPLATE = VBOXGC
|
---|
641 | RuntimeGC_DEFS = IN_RT_GC RT_WITH_VBOX
|
---|
642 | RuntimeGC_SOURCES = \
|
---|
643 | table/avlogcphys.cpp \
|
---|
644 | table/avlrogcphys.cpp \
|
---|
645 | table/avlogcptr.cpp \
|
---|
646 | table/avlohcphys.cpp \
|
---|
647 | table/avlrogcptr.cpp \
|
---|
648 | table/avlroogcptr.cpp \
|
---|
649 | table/avloioport.cpp \
|
---|
650 | table/avlroioport.cpp \
|
---|
651 | assert.cpp \
|
---|
652 | log.cpp \
|
---|
653 | logcom.cpp \
|
---|
654 | logformat.cpp \
|
---|
655 | string/strpbrk.cpp \
|
---|
656 | string/strncmp.cpp \
|
---|
657 | strformat.cpp \
|
---|
658 | strformatrt.cpp \
|
---|
659 | strprintf.cpp \
|
---|
660 | VBox/strformat-vbox.cpp \
|
---|
661 | timesup.cpp \
|
---|
662 | string/memchr.cpp \
|
---|
663 | string/memcmp.cpp \
|
---|
664 | string/memcpy.cpp \
|
---|
665 | string/memset.cpp \
|
---|
666 | string/strcpy.cpp \
|
---|
667 | string/strlen.cpp
|
---|
668 |
|
---|
669 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
670 | RuntimeGC_SOURCES += os2/sys0.asm
|
---|
671 | endif
|
---|
672 |
|
---|
673 |
|
---|
674 | #
|
---|
675 | # Static library for new & delete for the electric fence.
|
---|
676 | #
|
---|
677 | RuntimeEFCPP_TEMPLATE = $(RuntimeR3_TEMPLATE)
|
---|
678 | RuntimeEFCPP_SDKS = $(RuntimeR3_SDKS)
|
---|
679 | RuntimeEFCPP_SDKS.$(BUILD_TARGET) = $(RuntimeR3_SDKS.$(BUILD_TARGET))
|
---|
680 | RuntimeEFCPP_DEFS = $(RuntimeR3_DEFS)
|
---|
681 | RuntimeEFCPP_DEFS.$(BUILD_TARGET) = $(RuntimeR3_DEFS.$(BUILD_TARGET))
|
---|
682 | RuntimeEFCPP_INCS = $(RuntimeR3_INCS)
|
---|
683 | RuntimeEFCPP_INCS.$(BUILD_TARGET) = $(RuntimeR3_INCS.$(BUILD_TARGET))
|
---|
684 | RuntimeEFCPP_SOURCES = r3/alloc-ef-cpp.cpp
|
---|
685 |
|
---|
686 |
|
---|
687 |
|
---|
688 | #
|
---|
689 | # errmsg.cpp depends on a generated header.
|
---|
690 | #
|
---|
691 | errmsg.cpp_DEPS = $(PATH_TARGET)/errmsgdata.h
|
---|
692 | errmsg.cpp_INCS = $(PATH_TARGET)
|
---|
693 |
|
---|
694 | win32/errmsgwin.cpp_DEPS = $(PATH_TARGET)/errmsgcomdata.h
|
---|
695 | win32/errmsgwin.cpp_INCS = $(PATH_TARGET)
|
---|
696 |
|
---|
697 | linux/errmsglinux.cpp_DEPS = $(PATH_TARGET)/errmsgxpcomdata.h
|
---|
698 | linux/errmsglinux.cpp_INCS = $(PATH_TARGET)
|
---|
699 |
|
---|
700 |
|
---|
701 | # Generate the rules
|
---|
702 | include $(PATH_KBUILD)/footer.kmk
|
---|
703 |
|
---|
704 |
|
---|
705 | #
|
---|
706 | # Generate the status code data.
|
---|
707 | #
|
---|
708 | $(PATH_TARGET)/errmsgdata.h: errmsg.sed $(DEPTH)/include/iprt/err.h $(DEPTH)/include/VBox/err.h
|
---|
709 | $(call MSG_L1,Generating $@)
|
---|
710 | $(QUIET)$(MKDIR) -p $(PATH_TARGET)
|
---|
711 | $(QUIET)$(SED) -f $< $(filter %.h,$^) > $@
|
---|
712 | ## @todo r=bird: rename this to indicate that it's not only COM errors, but all win32/64 errors.
|
---|
713 | $(PATH_TARGET)/errmsgcomdata.h: errmsgcom.sed $(PATH_SDK_WINPSDK_INC)/WinError.h
|
---|
714 | $(call MSG_L1,Generating $@)
|
---|
715 | $(QUIET)$(MKDIR) -p $(PATH_TARGET)
|
---|
716 | $(QUIET)$(SED) -f $< $(filter %.h,$^) > $@
|
---|
717 | $(PATH_TARGET)/errmsgxpcomdata.h: errmsgxpcom.sed $(DEPTH)/src/libs/xpcom18a4/xpcom/base/nsError.h
|
---|
718 | $(call MSG_L1,Generating $@)
|
---|
719 | $(QUIET)$(MKDIR) -p $(PATH_TARGET)
|
---|
720 | $(QUIET)$(SED) -f $< $(filter %.h,$^) > $@
|
---|
721 |
|
---|
722 |
|
---|
723 | #
|
---|
724 | # Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
|
---|
725 | #
|
---|
726 | ldrELFRelocatable.cpp.o: ldrELF.o
|
---|
727 | ldrELFRelocatable.cpp.obj: ldrELF.obj
|
---|
728 |
|
---|
729 |
|
---|
730 | #
|
---|
731 | # Doxygen documentation.
|
---|
732 | #
|
---|
733 | DOXYGEN_INPUT_DIRS = \
|
---|
734 | $(PATH_ROOT)/include/iprt \
|
---|
735 | $(PATH_ROOT)/include/iprt/nocrt \
|
---|
736 | $(PATH_ROOT)/include/iprt/nocrt/x86 \
|
---|
737 | $(PATH_ROOT)/include/iprt/nocrt/amd64 \
|
---|
738 | include/internal \
|
---|
739 | string \
|
---|
740 | table \
|
---|
741 | $(foreach dir, . r3 r0drv,\
|
---|
742 | $(dir) \
|
---|
743 | $(dir)/darwin \
|
---|
744 | $(dir)/l4 \
|
---|
745 | $(dir)/linux \
|
---|
746 | $(dir)/nt \
|
---|
747 | $(dir)/os2 \
|
---|
748 | $(dir)/win \
|
---|
749 | $(dir)/win32 \
|
---|
750 | $(dir)/win64 \
|
---|
751 | $(dir)/generic \
|
---|
752 | )
|
---|
753 |
|
---|
754 | # These must come first in order to make things look nice.
|
---|
755 | DOXYGEN_INPUT_FIRST =\
|
---|
756 | $(PATH_ROOT)/include/iprt/cdefs.h \
|
---|
757 | $(PATH_ROOT)/include/iprt/types.h \
|
---|
758 | $(PATH_ROOT)/include/iprt/runtime.h \
|
---|
759 | $(PATH_ROOT)/include/iprt/param.h \
|
---|
760 | $(PATH_ROOT)/include/iprt/assert.h \
|
---|
761 | $(PATH_ROOT)/include/iprt/asm.h \
|
---|
762 |
|
---|
763 | DOXYGEN_INPUT := \
|
---|
764 | $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(DOXYGEN_INPUT_DIRS)))) ) \
|
---|
765 | $(foreach dir, $(DOXYGEN_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
|
---|
766 | DOXYGEN_INPUT := \
|
---|
767 | $(DOXYGEN_INPUT_FIRST) \
|
---|
768 | $(filter-out $(DOXYGEN_INPUT_FIRST), $(DOXYGEN_INPUT))
|
---|
769 |
|
---|
770 |
|
---|
771 | DOXYGEN_OUTPUT = $(PATH_OUT)/docs/iprt
|
---|
772 |
|
---|
773 | -include $(PATH_TARGET)/Doxyfile.dep
|
---|
774 |
|
---|
775 | # Generate the Doxyfile
|
---|
776 | $(PATH_TARGET)/Doxyfile: Doxyfile \
|
---|
777 | $(comp-vars DOXYGEN_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
|
---|
778 | $(comp-vars DOXYGEN_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
|
---|
779 | | $(call DIRDEP, $(PATH_TARGET))
|
---|
780 | $(RM) -f $@ $@.tmp $(PATH_TARGET)/Doxyfile.dep
|
---|
781 | $(CP) -f Doxyfile $@.tmp
|
---|
782 | $(APPEND) $@.tmp
|
---|
783 | $(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(DOXYGEN_OUTPUT)"
|
---|
784 | $(APPEND) $@.tmp "WARN_LOGFILE = $(DOXYGEN_OUTPUT)/errors"
|
---|
785 | $(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include include . table"
|
---|
786 | $(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
|
---|
787 | $(APPEND) $@.tmp
|
---|
788 | $(APPEND) $@.tmp "INPUT = $(DOXYGEN_INPUT)"
|
---|
789 | $(APPEND) $@.tmp
|
---|
790 | $(MV) -f $@.tmp $@
|
---|
791 | @$(APPEND) $(PATH_TARGET)/Doxyfile.dep "DOXYGEN_OUTPUT_PREV = $(DOXYGEN_OUTPUT)"
|
---|
792 | @$(APPEND) $(PATH_TARGET)/Doxyfile.dep "DOXYGEN_INPUT_PREV = $(DOXYGEN_INPUT)"
|
---|
793 |
|
---|
794 | # Create the output directory.
|
---|
795 | $(call DIRDEP, $(DOXYGEN_OUTPUT)):
|
---|
796 | $(MKDIR) -p $@
|
---|
797 |
|
---|
798 | # Do the actual job.
|
---|
799 | $(PATH_TARGET)/docs.iprt: $(PATH_TARGET)/Doxyfile $(DOXYGEN_INPUT) | $(call DIRDEP, $(DOXYGEN_OUTPUT))
|
---|
800 | $(RM) -f $(wildcard $(DOXYGEN_OUTPUT)/html/*) $(PATH_TARGET)/docs.iprt
|
---|
801 | doxygen $(PATH_TARGET)/Doxyfile
|
---|
802 | $(APPEND) $(PATH_TARGET)/docs.iprt
|
---|
803 |
|
---|
804 | # alias
|
---|
805 | docs: $(PATH_TARGET)/docs.iprt
|
---|
806 |
|
---|
807 | test:
|
---|
808 | @echo test-$(comp-vars DOXYGEN_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE)
|
---|
809 | @echo $(DOXYGEN_OUTPUT)
|
---|
810 | @echo $(DOXYGEN_OUTPUT_PREV)
|
---|
811 |
|
---|