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