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