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