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