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