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