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