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