1 | # $Id: Makefile.kmk 47762 2013-08-15 13:04:51Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the IPRT.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2013 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 | LIBRARIES.win.amd64 += RuntimeGuestR3-x86 RuntimeGuestR3Shared-x86
|
---|
36 | ifdef VBOX_WITH_ADDITION_DRIVERS
|
---|
37 | LIBRARIES += RuntimeGuestR0
|
---|
38 | #LIBRARIES.os2 += RuntimeGuestR0OS2Warp3
|
---|
39 | LIBRARIES.win.x86 += RuntimeGuestR0NT4
|
---|
40 | endif
|
---|
41 | ifneq ($(VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE),)
|
---|
42 | LIBRARIES.linux.amd64 += \
|
---|
43 | RuntimeGuestR3-x86 \
|
---|
44 | RuntimeGuestR3Mini-x86 \
|
---|
45 | RuntimeGuestR3Shared-x86
|
---|
46 | endif
|
---|
47 |
|
---|
48 | else ifdef VBOX_ONLY_TESTSUITE
|
---|
49 | #
|
---|
50 | # Only build the testsuite.
|
---|
51 | #
|
---|
52 | LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeR3 RuntimeR0
|
---|
53 | LIBRARIES.solaris += RuntimeR0Stub
|
---|
54 | LIBRARIES.win += RuntimeR0Stub
|
---|
55 | LIBRARIES.win.x86 += RuntimeR3VccTricks
|
---|
56 |
|
---|
57 | else ifdef VBOX_ONLY_DOCS
|
---|
58 | #
|
---|
59 | # Build docs only - need just regular R3 runtime.
|
---|
60 | #
|
---|
61 | LIBRARIES += RuntimeR3 RuntimeBldProg
|
---|
62 |
|
---|
63 | else ifdef VBOX_ONLY_EXTPACKS_USE_IMPLIBS
|
---|
64 | #
|
---|
65 | # Build docs only - need just regular R3 runtime.
|
---|
66 | #
|
---|
67 | LIBRARIES += RuntimeBldProg
|
---|
68 | LIBRARIES.solaris += RuntimeR0Stub
|
---|
69 | LIBRARIES.win += RuntimeR0Stub RuntimeRCStub
|
---|
70 | include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
|
---|
71 |
|
---|
72 | else # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_TESTSUITE && !VBOX_ONLY_DOCS
|
---|
73 |
|
---|
74 | #
|
---|
75 | # Normal build.
|
---|
76 | #
|
---|
77 | ifndef VBOX_ONLY_EXTPACKS
|
---|
78 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
79 | endif
|
---|
80 | include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
|
---|
81 |
|
---|
82 | BLDPROGS += uniread
|
---|
83 | LIBRARIES += RuntimeR3 RuntimeBldProg RuntimeR0 RuntimeEFCPP RuntimeR3NoCRTGCC
|
---|
84 | LIBRARIES.solaris += RuntimeR0Stub
|
---|
85 | LIBRARIES.win += RuntimeR0Stub
|
---|
86 | ifdef VBOX_WITH_RAW_MODE
|
---|
87 | LIBRARIES += RuntimeRC
|
---|
88 | LIBRARIES.win += RuntimeRCStub
|
---|
89 | endif
|
---|
90 | ifdef VBOX_WITH_VBOXDRV
|
---|
91 | LIBRARIES += RuntimeR0Drv
|
---|
92 | endif
|
---|
93 | ifdef VBOX_WITH_ADDITIONS
|
---|
94 | LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeGuestR3Mini
|
---|
95 | LIBRARIES.win.amd64 += RuntimeGuestR3-x86 RuntimeGuestR3Shared-x86
|
---|
96 | ifneq ($(VBOX_WITH_COMPATIBLE_LINUX_GUEST_PACKAGE),)
|
---|
97 | LIBRARIES.linux.amd64 += \
|
---|
98 | RuntimeGuestR3-x86 \
|
---|
99 | RuntimeGuestR3Mini-x86 \
|
---|
100 | RuntimeGuestR3Shared-x86
|
---|
101 | endif
|
---|
102 | ifdef VBOX_WITH_ADDITION_DRIVERS
|
---|
103 | LIBRARIES += RuntimeGuestR0
|
---|
104 | endif
|
---|
105 | #LIBRARIES.os2 += RuntimeGuestR0OS2Warp3
|
---|
106 | LIBRARIES.win.x86 += RuntimeGuestR0NT4
|
---|
107 | endif # VBOX_WITH_ADDITIONS
|
---|
108 | LIBRARIES.win.x86 += RuntimeR3VccTricks
|
---|
109 | DLLS += VBoxRT
|
---|
110 | endif
|
---|
111 |
|
---|
112 |
|
---|
113 | # Always build the ntdll import libraries on windows.
|
---|
114 | LIBRARIES.win += RuntimeR3NtDll-x86
|
---|
115 | if1of (amd64, $(KBUILD_TARGET_ARCH) $(KBUILD_HOST_ARCH))
|
---|
116 | LIBRARIES.win += RuntimeR3NtDll-amd64
|
---|
117 | endif
|
---|
118 |
|
---|
119 |
|
---|
120 | # Always build the import library.
|
---|
121 | IMPORT_LIBS += VBoxRTImp
|
---|
122 |
|
---|
123 |
|
---|
124 | # Where the generated stuff goes.
|
---|
125 | IPRT_OUT_DIR := $(PATH_TARGET)/Runtime
|
---|
126 | BLDDIRS += $(IPRT_OUT_DIR)
|
---|
127 | OTHER_CLEAN += \
|
---|
128 | $(IPRT_OUT_DIR)/errmsgdata.h \
|
---|
129 | $(IPRT_OUT_DIR)/errmsgcomdata.h \
|
---|
130 | $(IPRT_OUT_DIR)/errmsgvboxcomdata.h \
|
---|
131 | $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts \
|
---|
132 | $(IPRT_OUT_DIR)/Doxyfile.iprt \
|
---|
133 | $(IPRT_OUT_DIR)/Doxyfile.iprt.dep \
|
---|
134 | $(IPRT_OUT_DIR)/docs.iprt
|
---|
135 |
|
---|
136 |
|
---|
137 | #
|
---|
138 | # Globals
|
---|
139 | #
|
---|
140 | VBOX_PATH_RUNTIME_SRC := $(PATH_SUB_CURRENT)
|
---|
141 |
|
---|
142 |
|
---|
143 | #
|
---|
144 | # Set the defines that buildconfig.cpp needs. Its used by several targets.
|
---|
145 | #
|
---|
146 | common/misc/buildconfig.cpp_DEFS = \
|
---|
147 | IPRT_BLDCFG_SCM_REV=$(VBOX_SVN_REV) \
|
---|
148 | IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
|
---|
149 | IPRT_BLDCFG_VERSION_MAJOR=$(VBOX_VERSION_MAJOR) \
|
---|
150 | IPRT_BLDCFG_VERSION_MINOR=$(VBOX_VERSION_MINOR) \
|
---|
151 | IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD) \
|
---|
152 | IPRT_BLDCFG_TARGET=\"$(KBUILD_TARGET)\" \
|
---|
153 | IPRT_BLDCFG_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\" \
|
---|
154 | IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\"
|
---|
155 |
|
---|
156 | #
|
---|
157 | # Unicode Specification reader used to regenerate unidata.cpp.
|
---|
158 | #
|
---|
159 | uniread_TEMPLATE = VBOXBLDPROG
|
---|
160 | uniread_SOURCES = common/string/uniread.cpp
|
---|
161 | uniread_INCS = include
|
---|
162 |
|
---|
163 | #
|
---|
164 | # Win64 assembly sources.
|
---|
165 | #
|
---|
166 | RuntimeWin64ASM_SOURCES = \
|
---|
167 | win/amd64/ASMAtomicBitClear.asm \
|
---|
168 | win/amd64/ASMAtomicBitTestAndToggle.asm \
|
---|
169 | win/amd64/ASMAtomicBitToggle.asm \
|
---|
170 | win/amd64/ASMAtomicReadU64.asm \
|
---|
171 | win/amd64/ASMAtomicXchgU16.asm \
|
---|
172 | win/amd64/ASMAtomicXchgU8.asm \
|
---|
173 | win/amd64/ASMBitFirstClear.asm \
|
---|
174 | win/amd64/ASMBitFirstSet.asm \
|
---|
175 | win/amd64/ASMGetCS.asm \
|
---|
176 | win/amd64/ASMGetDS.asm \
|
---|
177 | win/amd64/ASMGetES.asm \
|
---|
178 | win/amd64/ASMGetFlags.asm \
|
---|
179 | win/amd64/ASMGetFS.asm \
|
---|
180 | win/amd64/ASMGetGS.asm \
|
---|
181 | win/amd64/ASMGetSS.asm \
|
---|
182 | win/amd64/ASMProbeReadByte.asm \
|
---|
183 | win/amd64/ASMSetFlags.asm \
|
---|
184 | win/amd64/ASMGetDR0.asm \
|
---|
185 | win/amd64/ASMGetDR1.asm \
|
---|
186 | win/amd64/ASMGetDR2.asm \
|
---|
187 | win/amd64/ASMGetDR3.asm \
|
---|
188 | win/amd64/ASMGetDR6.asm \
|
---|
189 | win/amd64/ASMGetDR7.asm \
|
---|
190 | common/asm/ASMAtomicCmpXchgU8.asm \
|
---|
191 | common/asm/ASMMultU64ByU32DivByU32.asm \
|
---|
192 | common/asm/ASMCpuId_Idx_ECX.asm \
|
---|
193 | common/asm/ASMNopPause.asm \
|
---|
194 | common/asm/ASMGetIDTR.asm \
|
---|
195 | common/asm/ASMGetGDTR.asm \
|
---|
196 | common/asm/ASMGetLDTR.asm \
|
---|
197 | common/asm/ASMGetTR.asm
|
---|
198 |
|
---|
199 | #
|
---|
200 | # Win32 assembly sources.
|
---|
201 | #
|
---|
202 | RuntimeWin32ASM_SOURCES = \
|
---|
203 | common/asm/ASMAtomicCmpXchgU8.asm \
|
---|
204 | common/asm/ASMMultU64ByU32DivByU32.asm \
|
---|
205 | common/asm/ASMCpuId_Idx_ECX.asm
|
---|
206 |
|
---|
207 | #
|
---|
208 | # NoCRT sources (minus math stuff).
|
---|
209 | #
|
---|
210 | if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
211 | RuntimeNoCrt_SOURCES = \
|
---|
212 | common/misc/setjmp.asm \
|
---|
213 | common/string/memchr.asm \
|
---|
214 | common/string/memcmp.asm \
|
---|
215 | common/string/memcpy.asm \
|
---|
216 | common/string/mempcpy.asm \
|
---|
217 | common/string/memmove.asm \
|
---|
218 | common/string/memset.asm \
|
---|
219 | common/string/strchr.asm \
|
---|
220 | common/string/strcpy.asm \
|
---|
221 | common/string/strncpy.asm \
|
---|
222 | common/string/strcmp.asm \
|
---|
223 | common/string/strlen.asm
|
---|
224 | endif
|
---|
225 |
|
---|
226 |
|
---|
227 | #
|
---|
228 | # RuntimeR3 - Static Runtime for Ring-3 executables.
|
---|
229 | #
|
---|
230 | RuntimeR3_TEMPLATE = VBoxR3Static
|
---|
231 | RuntimeR3_SDKS = VBOX_OPENSSL
|
---|
232 | RuntimeR3_SDKS.win = $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
233 | RuntimeR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX RT_NO_GIP
|
---|
234 | #RuntimeR3_DEFS += RTMEM_WRAP_TO_EF_APIS
|
---|
235 | ifdef IPRT_WITH_KSTUFF
|
---|
236 | RuntimeR3_DEFS += LDR_WITH_KLDR
|
---|
237 | endif
|
---|
238 | ifdef IPRT_WITH_LZJB
|
---|
239 | RuntimeR3_DEFS += RTZIP_USE_LZJB
|
---|
240 | endif
|
---|
241 | ifdef IPRT_WITH_LZO
|
---|
242 | RuntimeR3_DEFS += RTZIP_USE_LZO
|
---|
243 | endif
|
---|
244 | ifn1of ($(KBUILD_TARGET), win)
|
---|
245 | RuntimeR3_DEFS += RT_WITH_ICONV_CACHE
|
---|
246 | endif
|
---|
247 | ifdef IPRT_WITH_FUTEX_BASED_SEMS
|
---|
248 | RuntimeR3_DEFS.linux += IPRT_WITH_FUTEX_BASED_SEMS
|
---|
249 | endif
|
---|
250 | RuntimeR3_INCS = \
|
---|
251 | include \
|
---|
252 | $(SDK_VBOX_ZLIB_INCS)
|
---|
253 | RuntimeR3_INCS += \
|
---|
254 | $(PATH_ROOT)/src/libs/liblzf-3.4
|
---|
255 | ifdef IPRT_WITH_KSTUFF
|
---|
256 | RuntimeR3_INCS += \
|
---|
257 | $(PATH_ROOT)/src/libs/kStuff/kStuff/include
|
---|
258 | endif
|
---|
259 |
|
---|
260 | # RuntimeR3_INCS.solaris = \
|
---|
261 | # /usr/include
|
---|
262 |
|
---|
263 | RuntimeR3_SOURCES = \
|
---|
264 | common/alloc/alloc.cpp \
|
---|
265 | common/alloc/heapsimple.cpp \
|
---|
266 | common/alloc/heapoffset.cpp \
|
---|
267 | common/alloc/memcache.cpp \
|
---|
268 | common/alloc/memtracker.cpp \
|
---|
269 | common/checksum/adler32.cpp \
|
---|
270 | common/checksum/crc32.cpp \
|
---|
271 | common/checksum/crc64.cpp \
|
---|
272 | common/checksum/md5.cpp \
|
---|
273 | common/checksum/md5str.cpp \
|
---|
274 | common/checksum/ipv4.cpp \
|
---|
275 | common/checksum/ipv6.cpp \
|
---|
276 | common/checksum/manifest.cpp \
|
---|
277 | common/checksum/manifest2.cpp \
|
---|
278 | common/checksum/manifest3.cpp \
|
---|
279 | common/checksum/manifest-file.cpp \
|
---|
280 | common/checksum/RTSha1Digest.cpp \
|
---|
281 | common/checksum/RTSha256Digest.cpp \
|
---|
282 | common/checksum/sha1.cpp \
|
---|
283 | common/checksum/sha1str.cpp \
|
---|
284 | common/checksum/sha256.cpp \
|
---|
285 | common/checksum/sha256str.cpp \
|
---|
286 | common/checksum/sha512.cpp \
|
---|
287 | common/checksum/sha512str.cpp \
|
---|
288 | common/dbg/dbg.cpp \
|
---|
289 | common/dbg/dbgas.cpp \
|
---|
290 | common/dbg/dbgcfg.cpp \
|
---|
291 | common/dbg/dbgmod.cpp \
|
---|
292 | common/dbg/dbgmodldr.cpp \
|
---|
293 | common/dbg/dbgmodcontainer.cpp \
|
---|
294 | common/dbg/dbgmoddeferred.cpp \
|
---|
295 | common/dbg/dbgmodexports.cpp \
|
---|
296 | common/dbg/dbgmodcodeview.cpp \
|
---|
297 | common/dbg/dbgmoddwarf.cpp \
|
---|
298 | common/dbg/dbgmodnm.cpp \
|
---|
299 | common/dvm/dvm.cpp \
|
---|
300 | common/dvm/dvmbsdlabel.cpp \
|
---|
301 | common/dvm/dvmgpt.cpp \
|
---|
302 | common/dvm/dvmmbr.cpp \
|
---|
303 | common/dvm/dvmvfs.cpp \
|
---|
304 | common/err/errinfo.cpp \
|
---|
305 | common/err/errmsg.cpp \
|
---|
306 | common/err/RTErrConvertFromErrno.cpp \
|
---|
307 | common/err/RTErrConvertToErrno.cpp \
|
---|
308 | common/filesystem/filesystem.cpp \
|
---|
309 | common/filesystem/filesystemext.cpp \
|
---|
310 | common/ldr/ldr.cpp \
|
---|
311 | common/ldr/ldrELF.cpp \
|
---|
312 | common/ldr/ldrEx.cpp \
|
---|
313 | common/ldr/ldrFile.cpp \
|
---|
314 | common/ldr/ldrMemory.cpp \
|
---|
315 | common/ldr/ldrNative.cpp \
|
---|
316 | common/ldr/ldrPE.cpp \
|
---|
317 | common/log/log.cpp \
|
---|
318 | common/log/logellipsis.cpp \
|
---|
319 | common/log/logrel.cpp \
|
---|
320 | common/log/logrelellipsis.cpp \
|
---|
321 | common/log/logcom.cpp \
|
---|
322 | common/log/logformat.cpp \
|
---|
323 | common/log/tracebuf.cpp \
|
---|
324 | common/log/tracedefault.cpp \
|
---|
325 | common/misc/RTAssertMsg1Weak.cpp \
|
---|
326 | common/misc/RTAssertMsg2.cpp \
|
---|
327 | common/misc/RTAssertMsg2Add.cpp \
|
---|
328 | common/misc/RTAssertMsg2AddWeak.cpp \
|
---|
329 | common/misc/RTAssertMsg2AddWeakV.cpp \
|
---|
330 | common/misc/RTAssertMsg2Weak.cpp \
|
---|
331 | common/misc/RTAssertMsg2WeakV.cpp \
|
---|
332 | common/misc/RTFileModeToFlags.cpp \
|
---|
333 | common/misc/RTFileOpenF.cpp \
|
---|
334 | common/misc/RTFileOpenV.cpp \
|
---|
335 | common/misc/RTMemWipeThoroughly.cpp \
|
---|
336 | common/misc/assert.cpp \
|
---|
337 | common/misc/buildconfig.cpp \
|
---|
338 | common/misc/cidr.cpp \
|
---|
339 | common/misc/getopt.cpp \
|
---|
340 | common/misc/getoptargv.cpp \
|
---|
341 | common/misc/handle.cpp \
|
---|
342 | common/misc/handletable.cpp \
|
---|
343 | common/misc/handletablectx.cpp \
|
---|
344 | common/misc/handletablesimple.cpp \
|
---|
345 | common/misc/lockvalidator.cpp \
|
---|
346 | common/misc/message.cpp \
|
---|
347 | common/misc/once.cpp \
|
---|
348 | common/misc/req.cpp \
|
---|
349 | common/misc/reqpool.cpp \
|
---|
350 | common/misc/reqqueue.cpp \
|
---|
351 | common/misc/sanity-c.c \
|
---|
352 | common/misc/sanity-cpp.cpp \
|
---|
353 | common/misc/semspingpong.cpp \
|
---|
354 | common/misc/sg.cpp \
|
---|
355 | common/misc/circbuf.cpp \
|
---|
356 | common/misc/thread.cpp \
|
---|
357 | common/misc/term.cpp \
|
---|
358 | common/misc/uri.cpp \
|
---|
359 | common/net/netaddrstr.cpp \
|
---|
360 | common/net/netaddrstr2.cpp \
|
---|
361 | common/path/rtPathRootSpecLen.cpp \
|
---|
362 | common/path/rtPathVolumeSpecLen.cpp \
|
---|
363 | common/path/RTPathAbsDup.cpp \
|
---|
364 | common/path/RTPathAbsEx.cpp \
|
---|
365 | common/path/RTPathAbsExDup.cpp \
|
---|
366 | common/path/RTPathAppend.cpp \
|
---|
367 | common/path/RTPathAppendEx.cpp \
|
---|
368 | common/path/RTPathCalcRelative.cpp \
|
---|
369 | common/path/RTPathChangeToDosSlashes.cpp \
|
---|
370 | common/path/RTPathChangeToUnixSlashes.cpp \
|
---|
371 | common/path/RTPathCopyComponents.cpp \
|
---|
372 | common/path/RTPathCountComponents.cpp \
|
---|
373 | common/path/RTPathExt.cpp \
|
---|
374 | common/path/RTPathFilename.cpp \
|
---|
375 | common/path/RTPathHasExt.cpp \
|
---|
376 | common/path/RTPathHasPath.cpp \
|
---|
377 | common/path/RTPathJoin.cpp \
|
---|
378 | common/path/RTPathJoinA.cpp \
|
---|
379 | common/path/RTPathJoinEx.cpp \
|
---|
380 | common/path/RTPathParse.cpp \
|
---|
381 | common/path/RTPathParsedReassemble.cpp \
|
---|
382 | common/path/RTPathParseSimple.cpp \
|
---|
383 | common/path/RTPathRealDup.cpp \
|
---|
384 | common/path/RTPathRmCmd.cpp \
|
---|
385 | common/path/RTPathSplit.cpp \
|
---|
386 | common/path/RTPathSplitA.cpp \
|
---|
387 | common/path/RTPathSplitReassemble.cpp \
|
---|
388 | common/path/RTPathStartsWithRoot.cpp \
|
---|
389 | common/path/RTPathStripExt.cpp \
|
---|
390 | common/path/RTPathStripFilename.cpp \
|
---|
391 | common/path/RTPathStripTrailingSlash.cpp \
|
---|
392 | common/path/RTPathTraverseList.cpp \
|
---|
393 | common/path/comparepaths.cpp \
|
---|
394 | common/rand/rand.cpp \
|
---|
395 | common/rand/randadv.cpp \
|
---|
396 | common/rand/randparkmiller.cpp \
|
---|
397 | common/sort/RTSortIsSorted.cpp \
|
---|
398 | common/sort/RTSortApvIsSorted.cpp \
|
---|
399 | common/sort/shellsort.cpp \
|
---|
400 | common/string/RTStrCat.cpp \
|
---|
401 | common/string/RTStrCatEx.cpp \
|
---|
402 | common/string/RTStrCatP.cpp \
|
---|
403 | common/string/RTStrCatPEx.cpp \
|
---|
404 | common/string/RTStrCmp.cpp \
|
---|
405 | common/string/RTStrCopy.cpp \
|
---|
406 | common/string/RTStrCopyEx.cpp \
|
---|
407 | common/string/RTStrCopyP.cpp \
|
---|
408 | common/string/RTStrCopyPEx.cpp \
|
---|
409 | common/string/RTStrNCmp.cpp \
|
---|
410 | common/string/RTStrNLen.cpp \
|
---|
411 | common/string/RTStrNLenEx.cpp \
|
---|
412 | common/string/RTStrPrintHexBytes.cpp \
|
---|
413 | common/string/RTStrStr.cpp \
|
---|
414 | common/string/base64.cpp \
|
---|
415 | common/string/simplepattern.cpp \
|
---|
416 | common/string/straprintf.cpp \
|
---|
417 | common/string/strformat.cpp \
|
---|
418 | common/string/strformatnum.cpp \
|
---|
419 | common/string/strformatrt.cpp \
|
---|
420 | common/string/strformattype.cpp \
|
---|
421 | common/string/strhash1.cpp \
|
---|
422 | common/string/stringalloc.cpp \
|
---|
423 | common/string/strprintf.cpp \
|
---|
424 | common/string/strcache.cpp \
|
---|
425 | common/string/strspace.cpp \
|
---|
426 | common/string/strstrip.cpp \
|
---|
427 | common/string/strtonum.cpp \
|
---|
428 | common/string/strversion.cpp \
|
---|
429 | common/string/uni.cpp \
|
---|
430 | common/string/unidata.cpp \
|
---|
431 | common/string/utf-16.cpp \
|
---|
432 | common/string/utf-8.cpp \
|
---|
433 | common/string/utf-8-case.cpp \
|
---|
434 | common/string/ministring.cpp \
|
---|
435 | common/table/avlgcptr.cpp \
|
---|
436 | common/table/avlhcphys.cpp \
|
---|
437 | common/table/avlgcphys.cpp \
|
---|
438 | common/table/avllu32.cpp \
|
---|
439 | common/table/avlou32.cpp \
|
---|
440 | common/table/avlogcphys.cpp \
|
---|
441 | common/table/avlogcptr.cpp \
|
---|
442 | common/table/avlohcphys.cpp \
|
---|
443 | common/table/avloioport.cpp \
|
---|
444 | common/table/avlpv.cpp \
|
---|
445 | common/table/avlrgcptr.cpp \
|
---|
446 | common/table/avlrogcphys.cpp \
|
---|
447 | common/table/avlrogcptr.cpp \
|
---|
448 | common/table/avlroioport.cpp \
|
---|
449 | common/table/avlroogcptr.cpp \
|
---|
450 | common/table/avlrpv.cpp \
|
---|
451 | common/table/avlruintptr.cpp \
|
---|
452 | common/table/avlrfoff.cpp \
|
---|
453 | common/table/avlru64.cpp \
|
---|
454 | common/table/avlu32.cpp \
|
---|
455 | common/table/avluintptr.cpp \
|
---|
456 | common/table/avlul.cpp \
|
---|
457 | common/table/table.cpp \
|
---|
458 | common/time/time.cpp \
|
---|
459 | common/time/timeprog.cpp \
|
---|
460 | common/time/timesup.cpp \
|
---|
461 | common/vfs/vfsbase.cpp \
|
---|
462 | common/vfs/vfschain.cpp \
|
---|
463 | common/vfs/vfsiosmisc.cpp \
|
---|
464 | common/vfs/vfsmemory.cpp \
|
---|
465 | common/vfs/vfsmisc.cpp \
|
---|
466 | common/vfs/vfsstdfile.cpp \
|
---|
467 | common/zip/tar.cpp \
|
---|
468 | common/zip/tarcmd.cpp \
|
---|
469 | common/zip/tarvfs.cpp \
|
---|
470 | common/zip/gzipvfs.cpp \
|
---|
471 | common/zip/zip.cpp \
|
---|
472 | generic/createtemp-generic.cpp \
|
---|
473 | generic/critsect-generic.cpp \
|
---|
474 | generic/critsectrw-generic.cpp \
|
---|
475 | generic/env-generic.cpp \
|
---|
476 | generic/RTDirCreateUniqueNumbered-generic.cpp \
|
---|
477 | generic/RTEnvDupEx-generic.cpp \
|
---|
478 | generic/RTFileCopy-generic.cpp \
|
---|
479 | generic/RTFileQuerySize-generic.cpp \
|
---|
480 | generic/RTFileReadAll-generic.cpp \
|
---|
481 | generic/RTFileReadAllEx-generic.cpp \
|
---|
482 | generic/RTFileReadAllByHandle-generic.cpp \
|
---|
483 | generic/RTFileReadAllByHandleEx-generic.cpp \
|
---|
484 | generic/RTFileReadAllFree-generic.cpp \
|
---|
485 | generic/RTLogWriteStdErr-generic.cpp \
|
---|
486 | generic/RTLogWriteStdOut-generic.cpp \
|
---|
487 | generic/RTLogWriteUser-generic.cpp \
|
---|
488 | generic/RTPathIsSame-generic.cpp \
|
---|
489 | generic/RTProcessQueryUsernameA-generic.cpp \
|
---|
490 | generic/RTTimerLRCreate-generic.cpp \
|
---|
491 | generic/mempool-generic.cpp \
|
---|
492 | generic/semfastmutex-generic.cpp \
|
---|
493 | generic/semxroads-generic.cpp \
|
---|
494 | generic/spinlock-generic.cpp \
|
---|
495 | generic/timerlr-generic.cpp \
|
---|
496 | r3/alloc-ef.cpp \
|
---|
497 | r3/alloc.cpp \
|
---|
498 | r3/allocex.cpp \
|
---|
499 | r3/dir.cpp \
|
---|
500 | r3/dir2.cpp \
|
---|
501 | r3/fileio.cpp \
|
---|
502 | r3/fs.cpp \
|
---|
503 | r3/init.cpp \
|
---|
504 | r3/isofs.cpp \
|
---|
505 | r3/path.cpp \
|
---|
506 | r3/poll.cpp \
|
---|
507 | r3/process.cpp \
|
---|
508 | r3/socket.cpp \
|
---|
509 | r3/stream.cpp \
|
---|
510 | r3/test.cpp \
|
---|
511 | r3/testi.cpp \
|
---|
512 | r3/tcp.cpp \
|
---|
513 | r3/udp.cpp \
|
---|
514 | r3/generic/semspinmutex-r3-generic.cpp
|
---|
515 |
|
---|
516 | #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
|
---|
517 | # RuntimeR3_SOURCES += common/time/timesupA.asm
|
---|
518 | #else
|
---|
519 | RuntimeR3_SOURCES += common/time/timesupref.cpp
|
---|
520 | #endif
|
---|
521 |
|
---|
522 | RuntimeR3_SOURCES.x86 += \
|
---|
523 | generic/RTMpGetDescription-generic.cpp
|
---|
524 | RuntimeR3_SOURCES.amd64 += \
|
---|
525 | generic/RTMpGetDescription-generic.cpp
|
---|
526 | RuntimeR3_SOURCES.sparc32 += \
|
---|
527 | generic/RTMpGetDescription-generic-stub.cpp \
|
---|
528 | common/asm/asm-fake.cpp
|
---|
529 | RuntimeR3_SOURCES.sparc64 += \
|
---|
530 | generic/RTMpGetDescription-generic-stub.cpp \
|
---|
531 | common/asm/asm-fake.cpp
|
---|
532 |
|
---|
533 | ifdef IPRT_WITH_LZJB
|
---|
534 | RuntimeR3_SOURCES += common/misc/lzjb.c
|
---|
535 | endif
|
---|
536 |
|
---|
537 | # Some versions of GCC might require this.
|
---|
538 | RuntimeR3_SOURCES.x86 += \
|
---|
539 | common/asm/ASMAtomicXchgU64.asm \
|
---|
540 | common/asm/ASMAtomicCmpXchgU64.asm \
|
---|
541 | common/asm/ASMAtomicCmpXchgExU64.asm \
|
---|
542 | common/asm/ASMAtomicReadU64.asm \
|
---|
543 | common/asm/ASMAtomicUoReadU64.asm
|
---|
544 |
|
---|
545 | ifdef IPRT_WITH_KSTUFF
|
---|
546 | RuntimeR3_SOURCES += \
|
---|
547 | common/ldr/ldrkStuff.cpp
|
---|
548 | endif
|
---|
549 |
|
---|
550 | # VBox specific stuff.
|
---|
551 | RuntimeR3_SOURCES += \
|
---|
552 | VBox/RTAssertShouldPanic-vbox.cpp \
|
---|
553 | VBox/log-vbox.cpp
|
---|
554 | ifneq ($(KBUILD_TARGET),win)
|
---|
555 | RuntimeR3_SOURCES += \
|
---|
556 | common/err/errmsgxpcom.cpp
|
---|
557 | endif
|
---|
558 | if1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd solaris)
|
---|
559 | RuntimeR3_SOURCES += \
|
---|
560 | $(if $(VBOX_WITH_DBUS),VBox/dbus.cpp,)
|
---|
561 | endif
|
---|
562 |
|
---|
563 | RuntimeR3_SOURCES.win = \
|
---|
564 | common/dbg/dbgmoddbghelp.cpp \
|
---|
565 | generic/cdrom-generic.cpp \
|
---|
566 | generic/RTDirExists-generic.cpp \
|
---|
567 | generic/RTDirQueryInfo-generic.cpp \
|
---|
568 | generic/RTDirSetTimes-generic.cpp \
|
---|
569 | generic/RTFileExists-generic.cpp \
|
---|
570 | generic/RTMpGetCurFrequency-generic.cpp \
|
---|
571 | generic/RTMpGetMaxFrequency-generic.cpp \
|
---|
572 | generic/RTRandAdvCreateSystemFaster-generic.cpp \
|
---|
573 | generic/RTRandAdvCreateSystemTruer-generic.cpp \
|
---|
574 | generic/RTSemEventWait-generic.cpp \
|
---|
575 | generic/RTSemEventMultiWait-2-ex-generic.cpp \
|
---|
576 | generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
|
---|
577 | generic/RTSemMutexRequest-generic.cpp \
|
---|
578 | generic/RTSemMutexRequestDebug-generic.cpp \
|
---|
579 | generic/RTThreadSetAffinityToCpu-generic.cpp \
|
---|
580 | generic/mppresent-generic.cpp \
|
---|
581 | generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
|
---|
582 | generic/uuid-generic.cpp \
|
---|
583 | generic/RTProcDaemonize-generic.cpp \
|
---|
584 | generic/RTProcIsRunningByName-generic.cpp \
|
---|
585 | generic/RTThreadGetNativeState-generic.cpp \
|
---|
586 | nt/RTErrConvertFromNtStatus.cpp \
|
---|
587 | r3/nt/fs-nt.cpp \
|
---|
588 | r3/nt/pathint-nt.cpp \
|
---|
589 | r3/posix/env-posix.cpp \
|
---|
590 | r3/win/RTHandleGetStandard-win.cpp \
|
---|
591 | r3/win/RTSystemQueryOSInfo-win.cpp \
|
---|
592 | r3/win/RTSystemShutdown-win.cpp \
|
---|
593 | r3/win/RTSystemQueryDmiString-win.cpp \
|
---|
594 | r3/win/RTSystemQueryTotalRam-win.cpp \
|
---|
595 | r3/win/alloc-win.cpp \
|
---|
596 | r3/win/allocex-win.cpp \
|
---|
597 | r3/win/dir-win.cpp \
|
---|
598 | $(if-expr defined(VBOX_WITH_NT_DIRENUM),r3/nt/direnum-r3-nt.cpp,r3/win/direnum-win.cpp) \
|
---|
599 | r3/win/errvars-win.cpp \
|
---|
600 | r3/win/fileio-win.cpp \
|
---|
601 | r3/win/init-win.cpp \
|
---|
602 | r3/win/ldrNative-win.cpp \
|
---|
603 | r3/win/localipc-win.cpp \
|
---|
604 | r3/win/mp-win.cpp \
|
---|
605 | r3/win/path-win.cpp \
|
---|
606 | r3/win/pipe-win.cpp \
|
---|
607 | r3/win/process-win.cpp \
|
---|
608 | r3/win/RTLogWriteDebugger-win.cpp \
|
---|
609 | r3/win/rtProcInitExePath-win.cpp \
|
---|
610 | r3/win/sched-win.cpp \
|
---|
611 | r3/win/semevent-win.cpp \
|
---|
612 | r3/win/semeventmulti-win.cpp \
|
---|
613 | r3/win/semmutex-win.cpp \
|
---|
614 | r3/win/symlink-win.cpp \
|
---|
615 | r3/win/rtFileNativeSetAttributes-win.cpp \
|
---|
616 | r3/win/thread-win.cpp \
|
---|
617 | r3/win/thread2-win.cpp \
|
---|
618 | r3/win/time-win.cpp \
|
---|
619 | r3/win/timer-win.cpp \
|
---|
620 | r3/win/tls-win.cpp \
|
---|
621 | r3/win/utf16locale-win.cpp \
|
---|
622 | r3/win/utf8-win.cpp \
|
---|
623 | r3/win/RTUuidCreate-win.cpp \
|
---|
624 | win/errmsgwin.cpp \
|
---|
625 | win/RTErrConvertFromWin32.cpp
|
---|
626 |
|
---|
627 | RuntimeR3_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES)
|
---|
628 | RuntimeR3_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES)
|
---|
629 |
|
---|
630 | RuntimeR3_SOURCES.linux = \
|
---|
631 | generic/cdrom-generic.cpp \
|
---|
632 | generic/RTDirQueryInfo-generic.cpp \
|
---|
633 | generic/RTDirSetTimes-generic.cpp \
|
---|
634 | generic/RTFileMove-generic.cpp \
|
---|
635 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
636 | generic/RTProcDaemonize-generic.cpp \
|
---|
637 | generic/RTSemEventMultiWait-2-ex-generic.cpp \
|
---|
638 | generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
|
---|
639 | generic/RTTimeLocalNow-generic.cpp \
|
---|
640 | generic/RTTimerCreate-generic.cpp \
|
---|
641 | generic/RTThreadSetAffinityToCpu-generic.cpp \
|
---|
642 | generic/RTUuidCreate-generic.cpp \
|
---|
643 | generic/mppresent-generic.cpp \
|
---|
644 | generic/utf16locale-generic.cpp \
|
---|
645 | generic/uuid-generic.cpp \
|
---|
646 | r3/posix/allocex-r3-posix.cpp \
|
---|
647 | r3/linux/RTThreadGetNativeState-linux.cpp \
|
---|
648 | r3/linux/mp-linux.cpp \
|
---|
649 | r3/linux/rtProcInitExePath-linux.cpp \
|
---|
650 | r3/linux/sched-linux.cpp \
|
---|
651 | r3/linux/sysfs.cpp \
|
---|
652 | r3/linux/time-linux.cpp \
|
---|
653 | r3/linux/thread-affinity-linux.cpp \
|
---|
654 | r3/linux/RTProcIsRunningByName-linux.cpp \
|
---|
655 | r3/linux/RTSystemQueryDmiString-linux.cpp \
|
---|
656 | r3/linux/RTSystemShutdown-linux.cpp \
|
---|
657 | r3/posix/RTFileQueryFsSizes-posix.cpp \
|
---|
658 | r3/posix/RTHandleGetStandard-posix.cpp \
|
---|
659 | r3/posix/RTMemProtect-posix.cpp \
|
---|
660 | r3/posix/RTPathUserHome-posix.cpp \
|
---|
661 | r3/posix/RTSystemQueryOSInfo-posix.cpp \
|
---|
662 | r3/linux/systemmem-linux.cpp \
|
---|
663 | r3/posix/RTTimeNow-posix.cpp \
|
---|
664 | r3/posix/RTTimeSet-posix.cpp \
|
---|
665 | r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
|
---|
666 | r3/posix/dir-posix.cpp \
|
---|
667 | r3/posix/env-posix.cpp \
|
---|
668 | r3/posix/errvars-posix.cpp \
|
---|
669 | r3/posix/fileio-posix.cpp \
|
---|
670 | r3/posix/fileio2-posix.cpp \
|
---|
671 | r3/posix/filelock-posix.cpp \
|
---|
672 | r3/posix/fs-posix.cpp \
|
---|
673 | r3/posix/fs2-posix.cpp \
|
---|
674 | r3/posix/fs3-posix.cpp \
|
---|
675 | r3/posix/ldrNative-posix.cpp \
|
---|
676 | r3/posix/path-posix.cpp \
|
---|
677 | r3/posix/path2-posix.cpp \
|
---|
678 | r3/posix/pathhost-posix.cpp \
|
---|
679 | r3/posix/RTPathUserDocuments-posix.cpp \
|
---|
680 | r3/posix/pipe-posix.cpp \
|
---|
681 | r3/posix/process-posix.cpp \
|
---|
682 | r3/posix/process-creation-posix.cpp \
|
---|
683 | r3/posix/rand-posix.cpp \
|
---|
684 | r3/posix/semrw-posix.cpp \
|
---|
685 | r3/posix/symlink-posix.cpp \
|
---|
686 | r3/posix/thread-posix.cpp \
|
---|
687 | r3/posix/thread2-posix.cpp \
|
---|
688 | r3/posix/timelocal-posix.cpp \
|
---|
689 | r3/posix/timer-posix.cpp \
|
---|
690 | r3/posix/tls-posix.cpp \
|
---|
691 | r3/posix/utf8-posix.cpp
|
---|
692 | ifdef IPRT_WITH_FUTEX_BASED_SEMS
|
---|
693 | RuntimeR3_SOURCES.linux += \
|
---|
694 | r3/linux/semevent-linux.cpp \
|
---|
695 | r3/linux/semeventmulti-linux.cpp \
|
---|
696 | r3/linux/semmutex-linux.cpp
|
---|
697 | else
|
---|
698 | RuntimeR3_SOURCES.linux.x86 += \
|
---|
699 | r3/posix/semevent-posix.cpp \
|
---|
700 | r3/posix/semeventmulti-posix.cpp \
|
---|
701 | r3/posix/semmutex-posix.cpp
|
---|
702 | RuntimeR3_SOURCES.linux.amd64 += \
|
---|
703 | r3/linux/semevent-linux.cpp \
|
---|
704 | r3/linux/semeventmulti-linux.cpp
|
---|
705 | ifdef RT_NEW_LINUX_MUTEX_CODE
|
---|
706 | RuntimeR3_SOURCES.linux.amd64 += \
|
---|
707 | r3/linux/semmutex-linux.cpp
|
---|
708 | else
|
---|
709 | RuntimeR3_SOURCES.linux.amd64 += \
|
---|
710 | r3/posix/semmutex-posix.cpp
|
---|
711 | endif
|
---|
712 | endif
|
---|
713 |
|
---|
714 | RuntimeR3_SOURCES.os2 = \
|
---|
715 | generic/cdrom-generic.cpp \
|
---|
716 | generic/RTDirQueryInfo-generic.cpp \
|
---|
717 | generic/RTDirSetTimes-generic.cpp \
|
---|
718 | generic/RTFileMove-generic.cpp \
|
---|
719 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
720 | generic/RTProcDaemonize-generic.cpp \
|
---|
721 | generic/RTRandAdvCreateSystemFaster-generic.cpp \
|
---|
722 | generic/RTRandAdvCreateSystemTruer-generic.cpp \
|
---|
723 | generic/RTSystemQueryDmiString-generic.cpp \
|
---|
724 | generic/RTSystemShutdown-generic.cpp \
|
---|
725 | generic/RTTimeLocalNow-generic.cpp \
|
---|
726 | generic/RTTimerCreate-generic.cpp \
|
---|
727 | generic/RTThreadSetAffinityToCpu-generic.cpp \
|
---|
728 | generic/RTUuidCreate-generic.cpp \
|
---|
729 | generic/mppresent-generic.cpp \
|
---|
730 | generic/RTSemEventWait-generic.cpp \
|
---|
731 | generic/RTSemEventMultiWait-generic.cpp \
|
---|
732 | generic/RTSemMutexRequest-generic.cpp \
|
---|
733 | generic/RTSemMutexRequestDebug-generic.cpp \
|
---|
734 | generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
|
---|
735 | generic/timer-generic.cpp \
|
---|
736 | generic/utf16locale-generic.cpp \
|
---|
737 | generic/uuid-generic.cpp \
|
---|
738 | generic/RTMpGetCoreCount-generic.cpp \
|
---|
739 | generic/RTMpGetOnlineCoreCount-generic.cpp \
|
---|
740 | generic/RTMpGetCurFrequency-generic.cpp \
|
---|
741 | generic/RTMpGetMaxFrequency-generic.cpp \
|
---|
742 | generic/RTProcIsRunningByName-generic.cpp \
|
---|
743 | generic/RTThreadGetNativeState-generic.cpp \
|
---|
744 | os2/RTErrConvertFromOS2.cpp \
|
---|
745 | r3/generic/allocex-r3-generic.cpp \
|
---|
746 | r3/os2/filelock-os2.cpp \
|
---|
747 | r3/os2/mp-os2.cpp \
|
---|
748 | r3/os2/pipe-os2.cpp \
|
---|
749 | r3/os2/rtProcInitExePath-os2.cpp \
|
---|
750 | r3/os2/sched-os2.cpp \
|
---|
751 | r3/os2/sems-os2.cpp \
|
---|
752 | r3/os2/systemmem-os2.cpp \
|
---|
753 | r3/os2/thread-os2.cpp \
|
---|
754 | r3/os2/time-os2.cpp \
|
---|
755 | r3/posix/RTFileQueryFsSizes-posix.cpp \
|
---|
756 | r3/posix/RTHandleGetStandard-posix.cpp \
|
---|
757 | r3/posix/RTMemProtect-posix.cpp \
|
---|
758 | r3/posix/RTPathUserHome-posix.cpp \
|
---|
759 | r3/posix/RTSystemQueryOSInfo-posix.cpp \
|
---|
760 | r3/posix/RTTimeNow-posix.cpp \
|
---|
761 | r3/posix/RTTimeSet-posix.cpp \
|
---|
762 | r3/posix/dir-posix.cpp \
|
---|
763 | r3/posix/env-posix.cpp \
|
---|
764 | r3/posix/errvars-posix.cpp \
|
---|
765 | r3/posix/fileio-posix.cpp \
|
---|
766 | r3/posix/fileio2-posix.cpp \
|
---|
767 | r3/posix/fs-posix.cpp \
|
---|
768 | r3/posix/fs2-posix.cpp \
|
---|
769 | r3/posix/fs3-posix.cpp \
|
---|
770 | r3/posix/ldrNative-posix.cpp \
|
---|
771 | r3/posix/path-posix.cpp \
|
---|
772 | r3/posix/path2-posix.cpp \
|
---|
773 | r3/posix/pathhost-posix.cpp \
|
---|
774 | r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
|
---|
775 | r3/posix/RTPathUserDocuments-posix.cpp \
|
---|
776 | r3/posix/process-posix.cpp \
|
---|
777 | r3/posix/process-creation-posix.cpp \
|
---|
778 | r3/posix/symlink-posix.cpp \
|
---|
779 | r3/posix/timelocal-posix.cpp \
|
---|
780 | r3/posix/utf8-posix.cpp
|
---|
781 |
|
---|
782 | RuntimeR3_SOURCES.darwin = \
|
---|
783 | darwin/RTErrConvertFromDarwin.cpp \
|
---|
784 | darwin/RTErrConvertFromDarwinCOM.cpp \
|
---|
785 | darwin/RTErrConvertFromDarwinIO.cpp \
|
---|
786 | darwin/RTErrConvertFromDarwinKern.cpp \
|
---|
787 | generic/cdrom-generic.cpp \
|
---|
788 | generic/RTDirQueryInfo-generic.cpp \
|
---|
789 | generic/RTDirSetTimes-generic.cpp \
|
---|
790 | generic/RTFileMove-generic.cpp \
|
---|
791 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
792 | generic/RTProcDaemonize-generic.cpp \
|
---|
793 | generic/RTThreadGetAffinity-stub-generic.cpp \
|
---|
794 | generic/RTThreadSetAffinity-stub-generic.cpp \
|
---|
795 | generic/RTThreadSetAffinityToCpu-generic.cpp \
|
---|
796 | generic/RTTimeLocalNow-generic.cpp \
|
---|
797 | generic/RTTimerCreate-generic.cpp \
|
---|
798 | generic/RTUuidCreate-generic.cpp \
|
---|
799 | generic/mppresent-generic.cpp \
|
---|
800 | generic/RTMpGetOnlineCoreCount-generic.cpp \
|
---|
801 | generic/RTSemEventMultiWait-2-ex-generic.cpp \
|
---|
802 | generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
|
---|
803 | generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
|
---|
804 | generic/RTSystemShutdown-generic.cpp \
|
---|
805 | generic/timer-generic.cpp \
|
---|
806 | generic/utf16locale-generic.cpp \
|
---|
807 | generic/uuid-generic.cpp\
|
---|
808 | generic/RTProcIsRunningByName-generic.cpp \
|
---|
809 | generic/RTThreadGetNativeState-generic.cpp \
|
---|
810 | r3/darwin/filelock-darwin.cpp \
|
---|
811 | r3/darwin/mp-darwin.cpp \
|
---|
812 | r3/darwin/pathhost-darwin.cpp \
|
---|
813 | r3/darwin/rtProcInitExePath-darwin.cpp \
|
---|
814 | r3/darwin/RTSystemQueryDmiString-darwin.cpp \
|
---|
815 | r3/darwin/sched-darwin.cpp \
|
---|
816 | r3/darwin/systemmem-darwin.cpp \
|
---|
817 | r3/darwin/time-darwin.cpp \
|
---|
818 | r3/darwin/RTPathUserDocuments-darwin.cpp \
|
---|
819 | r3/generic/allocex-r3-generic.cpp \
|
---|
820 | r3/posix/RTFileQueryFsSizes-posix.cpp \
|
---|
821 | r3/posix/RTHandleGetStandard-posix.cpp \
|
---|
822 | r3/posix/RTMemProtect-posix.cpp \
|
---|
823 | r3/posix/RTPathUserHome-posix.cpp \
|
---|
824 | r3/posix/RTSystemQueryOSInfo-posix.cpp \
|
---|
825 | r3/posix/RTTimeSet-posix.cpp \
|
---|
826 | r3/posix/dir-posix.cpp \
|
---|
827 | r3/posix/env-posix.cpp \
|
---|
828 | r3/posix/errvars-posix.cpp \
|
---|
829 | r3/posix/fileio-posix.cpp \
|
---|
830 | r3/posix/fileio2-posix.cpp \
|
---|
831 | r3/posix/fs-posix.cpp \
|
---|
832 | r3/posix/fs2-posix.cpp \
|
---|
833 | r3/posix/fs3-posix.cpp \
|
---|
834 | r3/posix/ldrNative-posix.cpp \
|
---|
835 | r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
|
---|
836 | r3/posix/path-posix.cpp \
|
---|
837 | r3/posix/path2-posix.cpp \
|
---|
838 | r3/posix/pipe-posix.cpp \
|
---|
839 | r3/posix/process-posix.cpp \
|
---|
840 | r3/posix/process-creation-posix.cpp \
|
---|
841 | r3/posix/rand-posix.cpp \
|
---|
842 | r3/posix/semevent-posix.cpp \
|
---|
843 | r3/posix/semeventmulti-posix.cpp \
|
---|
844 | r3/posix/semmutex-posix.cpp \
|
---|
845 | r3/posix/symlink-posix.cpp \
|
---|
846 | r3/posix/thread-posix.cpp \
|
---|
847 | r3/posix/thread2-posix.cpp \
|
---|
848 | r3/posix/timelocal-posix.cpp \
|
---|
849 | r3/posix/tls-posix.cpp \
|
---|
850 | r3/posix/utf8-posix.cpp
|
---|
851 |
|
---|
852 | ## @todo Make BSD sched, implement RTMP*.
|
---|
853 | RuntimeR3_SOURCES.freebsd = \
|
---|
854 | generic/cdrom-generic.cpp \
|
---|
855 | generic/RTDirQueryInfo-generic.cpp \
|
---|
856 | generic/RTDirSetTimes-generic.cpp \
|
---|
857 | generic/RTFileMove-generic.cpp \
|
---|
858 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
859 | generic/RTSemEventMultiWait-2-ex-generic.cpp \
|
---|
860 | generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
|
---|
861 | generic/RTSystemQueryDmiString-generic.cpp \
|
---|
862 | generic/RTSystemShutdown-generic.cpp \
|
---|
863 | generic/RTThreadGetAffinity-stub-generic.cpp \
|
---|
864 | generic/RTThreadSetAffinity-stub-generic.cpp \
|
---|
865 | generic/RTThreadSetAffinityToCpu-generic.cpp \
|
---|
866 | generic/RTTimeLocalNow-generic.cpp \
|
---|
867 | generic/RTTimerCreate-generic.cpp \
|
---|
868 | generic/RTUuidCreate-generic.cpp \
|
---|
869 | generic/mppresent-generic.cpp \
|
---|
870 | generic/sched-generic.cpp \
|
---|
871 | generic/utf16locale-generic.cpp \
|
---|
872 | generic/uuid-generic.cpp \
|
---|
873 | generic/RTMpCpuId-generic.cpp \
|
---|
874 | generic/RTMpGetCoreCount-generic.cpp \
|
---|
875 | generic/RTMpGetOnlineCoreCount-generic.cpp \
|
---|
876 | generic/RTProcDaemonize-generic.cpp \
|
---|
877 | generic/RTProcIsRunningByName-generic.cpp \
|
---|
878 | generic/RTThreadGetNativeState-generic.cpp \
|
---|
879 | r3/freebsd/mp-freebsd.cpp \
|
---|
880 | r3/freebsd/rtProcInitExePath-freebsd.cpp \
|
---|
881 | r3/generic/allocex-r3-generic.cpp \
|
---|
882 | r3/posix/RTFileQueryFsSizes-posix.cpp \
|
---|
883 | r3/posix/RTHandleGetStandard-posix.cpp \
|
---|
884 | r3/posix/RTMemProtect-posix.cpp \
|
---|
885 | r3/posix/RTPathUserHome-posix.cpp \
|
---|
886 | r3/posix/RTSystemQueryOSInfo-posix.cpp \
|
---|
887 | r3/posix/RTSystemQueryTotalRam-posix.cpp \
|
---|
888 | r3/posix/RTTimeNow-posix.cpp \
|
---|
889 | r3/posix/RTTimeSet-posix.cpp \
|
---|
890 | r3/posix/dir-posix.cpp \
|
---|
891 | r3/posix/env-posix.cpp \
|
---|
892 | r3/posix/errvars-posix.cpp \
|
---|
893 | r3/posix/fileio-posix.cpp \
|
---|
894 | r3/posix/fileio2-posix.cpp \
|
---|
895 | r3/posix/filelock-posix.cpp \
|
---|
896 | r3/posix/fs-posix.cpp \
|
---|
897 | r3/posix/fs2-posix.cpp \
|
---|
898 | r3/posix/fs3-posix.cpp \
|
---|
899 | r3/posix/ldrNative-posix.cpp \
|
---|
900 | r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
|
---|
901 | r3/posix/path-posix.cpp \
|
---|
902 | r3/posix/path2-posix.cpp \
|
---|
903 | r3/posix/pathhost-posix.cpp \
|
---|
904 | r3/posix/RTPathUserDocuments-posix.cpp \
|
---|
905 | r3/posix/pipe-posix.cpp \
|
---|
906 | r3/posix/process-posix.cpp \
|
---|
907 | r3/posix/process-creation-posix.cpp \
|
---|
908 | r3/posix/rand-posix.cpp \
|
---|
909 | r3/posix/semevent-posix.cpp \
|
---|
910 | r3/posix/semeventmulti-posix.cpp \
|
---|
911 | r3/posix/semmutex-posix.cpp \
|
---|
912 | r3/posix/semrw-posix.cpp \
|
---|
913 | r3/posix/symlink-posix.cpp \
|
---|
914 | r3/posix/thread-posix.cpp \
|
---|
915 | r3/posix/thread2-posix.cpp \
|
---|
916 | r3/posix/time-posix.cpp \
|
---|
917 | r3/posix/timelocal-posix.cpp \
|
---|
918 | r3/posix/timer-posix.cpp \
|
---|
919 | r3/posix/tls-posix.cpp \
|
---|
920 | r3/posix/utf8-posix.cpp
|
---|
921 |
|
---|
922 | RuntimeR3_SOURCES.solaris = \
|
---|
923 | generic/cdrom-generic.cpp \
|
---|
924 | generic/RTDirQueryInfo-generic.cpp \
|
---|
925 | generic/RTDirSetTimes-generic.cpp \
|
---|
926 | generic/RTFileMove-generic.cpp \
|
---|
927 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
928 | generic/RTProcDaemonize-generic.cpp \
|
---|
929 | generic/RTProcIsRunningByName-generic.cpp \
|
---|
930 | generic/RTSemEventMultiWait-2-ex-generic.cpp \
|
---|
931 | generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
|
---|
932 | generic/RTThreadSetAffinityToCpu-generic.cpp \
|
---|
933 | generic/RTTimeLocalNow-generic.cpp \
|
---|
934 | generic/RTTimerCreate-generic.cpp \
|
---|
935 | generic/RTUuidCreate-generic.cpp \
|
---|
936 | generic/RTMpGetCoreCount-generic.cpp \
|
---|
937 | generic/RTMpGetOnlineCoreCount-generic.cpp \
|
---|
938 | generic/sched-generic.cpp \
|
---|
939 | generic/utf16locale-generic.cpp \
|
---|
940 | generic/uuid-generic.cpp \
|
---|
941 | generic/RTThreadGetNativeState-generic.cpp \
|
---|
942 | r3/generic/allocex-r3-generic.cpp \
|
---|
943 | r3/posix/RTFileQueryFsSizes-posix.cpp \
|
---|
944 | r3/posix/RTHandleGetStandard-posix.cpp \
|
---|
945 | r3/posix/RTMemProtect-posix.cpp \
|
---|
946 | r3/posix/RTPathUserHome-posix.cpp \
|
---|
947 | r3/posix/RTSystemQueryOSInfo-posix.cpp \
|
---|
948 | r3/posix/RTTimeNow-posix.cpp \
|
---|
949 | r3/posix/RTTimeSet-posix.cpp \
|
---|
950 | r3/posix/dir-posix.cpp \
|
---|
951 | r3/posix/env-posix.cpp \
|
---|
952 | r3/posix/errvars-posix.cpp \
|
---|
953 | r3/posix/fileio-posix.cpp \
|
---|
954 | r3/posix/fileio2-posix.cpp \
|
---|
955 | r3/posix/filelock-posix.cpp \
|
---|
956 | r3/posix/fs-posix.cpp \
|
---|
957 | r3/posix/fs2-posix.cpp \
|
---|
958 | r3/posix/fs3-posix.cpp \
|
---|
959 | r3/posix/ldrNative-posix.cpp \
|
---|
960 | r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
|
---|
961 | r3/posix/path-posix.cpp \
|
---|
962 | r3/posix/path2-posix.cpp \
|
---|
963 | r3/posix/pathhost-posix.cpp \
|
---|
964 | r3/posix/RTPathUserDocuments-posix.cpp \
|
---|
965 | r3/posix/pipe-posix.cpp \
|
---|
966 | r3/posix/process-posix.cpp \
|
---|
967 | r3/posix/process-creation-posix.cpp \
|
---|
968 | r3/posix/rand-posix.cpp \
|
---|
969 | r3/posix/semevent-posix.cpp \
|
---|
970 | r3/posix/semeventmulti-posix.cpp \
|
---|
971 | r3/posix/semmutex-posix.cpp \
|
---|
972 | r3/posix/semrw-posix.cpp \
|
---|
973 | r3/posix/symlink-posix.cpp \
|
---|
974 | r3/posix/thread-posix.cpp \
|
---|
975 | r3/posix/thread2-posix.cpp \
|
---|
976 | r3/posix/time-posix.cpp \
|
---|
977 | r3/posix/timelocal-posix.cpp \
|
---|
978 | r3/posix/timer-posix.cpp \
|
---|
979 | r3/posix/tls-posix.cpp \
|
---|
980 | r3/posix/utf8-posix.cpp \
|
---|
981 | r3/solaris/systemmem-solaris.cpp \
|
---|
982 | r3/solaris/mp-solaris.cpp \
|
---|
983 | r3/solaris/rtProcInitExePath-solaris.cpp \
|
---|
984 | r3/solaris/RTSystemShutdown-solaris.cpp \
|
---|
985 | r3/solaris/thread-affinity-solaris.cpp
|
---|
986 | RuntimeR3_SOURCES.solaris.amd64 = \
|
---|
987 | r3/solaris/coredumper-solaris.cpp \
|
---|
988 | r3/solaris/RTSystemQueryDmiString-solaris.cpp
|
---|
989 | RuntimeR3_SOURCES.solaris.x86 = \
|
---|
990 | r3/solaris/coredumper-solaris.cpp \
|
---|
991 | r3/solaris/RTSystemQueryDmiString-solaris.cpp
|
---|
992 | RuntimeR3_SOURCES.solaris.sparc32 = \
|
---|
993 | generic/RTSystemQueryDmiString-generic.cpp
|
---|
994 | RuntimeR3_SOURCES.solaris.sparc64 = \
|
---|
995 | generic/RTSystemQueryDmiString-generic.cpp
|
---|
996 |
|
---|
997 | RuntimeR3_SOURCES.haiku = \
|
---|
998 | generic/RTDirQueryInfo-generic.cpp \
|
---|
999 | generic/RTDirSetTimes-generic.cpp \
|
---|
1000 | generic/RTFileMove-generic.cpp \
|
---|
1001 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
1002 | generic/RTProcDaemonize-generic.cpp \
|
---|
1003 | generic/RTTimeLocalNow-generic.cpp \
|
---|
1004 | generic/RTTimerCreate-generic.cpp \
|
---|
1005 | generic/RTUuidCreate-generic.cpp \
|
---|
1006 | generic/mppresent-generic.cpp \
|
---|
1007 | generic/RTSemEventMultiWait-2-ex-generic.cpp \
|
---|
1008 | generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
|
---|
1009 | generic/sched-generic.cpp \
|
---|
1010 | generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),ockless-,)generic.cpp \
|
---|
1011 | generic/timer-generic.cpp \
|
---|
1012 | generic/utf16locale-generic.cpp \
|
---|
1013 | generic/uuid-generic.cpp\
|
---|
1014 | generic/RTProcIsRunningByName-generic.cpp \
|
---|
1015 | generic/RTThreadGetNativeState-generic.cpp \
|
---|
1016 | generic/RTMpGetCoreCount-generic.cpp \
|
---|
1017 | generic/RTMpGetOnlineCoreCount-generic.cpp \
|
---|
1018 | r3/haiku/rtProcInitExePath-haiku.cpp \
|
---|
1019 | r3/haiku/time-haiku.cpp \
|
---|
1020 | r3/generic/allocex-r3-generic.cpp \
|
---|
1021 | r3/posix/RTFileQueryFsSizes-posix.cpp \
|
---|
1022 | r3/posix/RTHandleGetStandard-posix.cpp \
|
---|
1023 | r3/posix/RTMemProtect-posix.cpp \
|
---|
1024 | r3/posix/RTPathUserHome-posix.cpp \
|
---|
1025 | r3/posix/RTSystemQueryOSInfo-posix.cpp \
|
---|
1026 | r3/posix/RTSystemQueryTotalRam-posix.cpp \
|
---|
1027 | r3/posix/RTTimeNow-posix.cpp \
|
---|
1028 | r3/posix/dir-posix.cpp \
|
---|
1029 | r3/posix/env-posix.cpp \
|
---|
1030 | r3/posix/errvars-posix.cpp \
|
---|
1031 | r3/posix/fileio-posix.cpp \
|
---|
1032 | r3/posix/fileio2-posix.cpp \
|
---|
1033 | r3/posix/filelock-posix.cpp \
|
---|
1034 | r3/posix/fs-posix.cpp \
|
---|
1035 | r3/posix/fs2-posix.cpp \
|
---|
1036 | r3/posix/fs3-posix.cpp \
|
---|
1037 | r3/posix/ldrNative-posix.cpp \
|
---|
1038 | r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
|
---|
1039 | r3/posix/path-posix.cpp \
|
---|
1040 | r3/posix/path2-posix.cpp \
|
---|
1041 | r3/posix/pathhost-posix.cpp \
|
---|
1042 | r3/posix/pipe-posix.cpp \
|
---|
1043 | r3/posix/process-posix.cpp \
|
---|
1044 | r3/posix/process-creation-posix.cpp \
|
---|
1045 | r3/posix/rand-posix.cpp \
|
---|
1046 | r3/posix/semevent-posix.cpp \
|
---|
1047 | r3/posix/semeventmulti-posix.cpp \
|
---|
1048 | r3/posix/semmutex-posix.cpp \
|
---|
1049 | r3/posix/symlink-posix.cpp \
|
---|
1050 | r3/posix/thread-posix.cpp \
|
---|
1051 | r3/posix/thread2-posix.cpp \
|
---|
1052 | r3/posix/timelocal-posix.cpp \
|
---|
1053 | r3/posix/tls-posix.cpp \
|
---|
1054 | r3/posix/utf8-posix.cpp
|
---|
1055 |
|
---|
1056 | ## PORTME: Porters add their selection of platform specific files for Ring-3 here.
|
---|
1057 |
|
---|
1058 |
|
---|
1059 | #
|
---|
1060 | # RuntimeBldProg - Static Runtime for build programs.
|
---|
1061 | #
|
---|
1062 | # Note! This is a bit of hacky since kBuild doesn't support building libraries
|
---|
1063 | # for build programs.
|
---|
1064 | #
|
---|
1065 | RuntimeBldProg_TEMPLATE := VBoxAdvBldProg
|
---|
1066 | RuntimeBldProg_EXTENDS := RuntimeR3
|
---|
1067 | RuntimeBldProg_BLD_TRG := $(KBUILD_HOST)
|
---|
1068 | RuntimeBldProg_BLD_TRG_ARCH := $(KBUILD_HOST_ARCH)
|
---|
1069 | RuntimeBldProg_BLD_TRG_CPU := $(KBUILD_HOST_CPU)
|
---|
1070 |
|
---|
1071 |
|
---|
1072 | #
|
---|
1073 | # RuntimeGuestR3 - Guest Additions Runtime (static/exe).
|
---|
1074 | # (The KBUILD_HOST inheritance here is for cross building the linux
|
---|
1075 | # additions, while .x86 is for cross building x86 while targeting amd64.)
|
---|
1076 | #
|
---|
1077 | RuntimeGuestR3_TEMPLATE := VBoxGuestR3Lib
|
---|
1078 | ## @todo change this to EXTEND the RuntimeR3 target.
|
---|
1079 | RuntimeGuestR3_SDKS.win := $(RuntimeR3_SDKS.win)
|
---|
1080 | RuntimeGuestR3_DEFS := $(filter-out RTCRITSECT_STRICT RT_NO_GIP, $(RuntimeR3_DEFS))
|
---|
1081 | RuntimeGuestR3_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
|
---|
1082 | RuntimeGuestR3_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST))
|
---|
1083 | RuntimeGuestR3_INCS := $(RuntimeR3_INCS)
|
---|
1084 | RuntimeGuestR3_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
|
---|
1085 | RuntimeGuestR3_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST))
|
---|
1086 | RuntimeGuestR3_SOURCES := $(filter-out \
|
---|
1087 | common/time/timesupref.cpp \
|
---|
1088 | common/time/timesupA.asm \
|
---|
1089 | common/time/timesup.cpp \
|
---|
1090 | common/checksum/RTSha1Digest.cpp \
|
---|
1091 | common/checksum/RTSha256Digest.cpp \
|
---|
1092 | common/checksum/sha% \
|
---|
1093 | generic/RTLogWriteUser-generic.cpp \
|
---|
1094 | , $(RuntimeR3_SOURCES))
|
---|
1095 | RuntimeGuestR3_SOURCES += \
|
---|
1096 | common/time/timesysalias.cpp \
|
---|
1097 | VBox/logbackdoor.cpp
|
---|
1098 | RuntimeGuestR3_SOURCES.$(KBUILD_TARGET) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
|
---|
1099 | RuntimeGuestR3_SOURCES.$(KBUILD_HOST) := $(RuntimeR3_SOURCES.$(KBUILD_HOST))
|
---|
1100 | RuntimeGuestR3_SOURCES.$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
|
---|
1101 | RuntimeGuestR3_SOURCES.x86 := $(RuntimeR3_SOURCES.x86)
|
---|
1102 | RuntimeGuestR3_SOURCES.amd64 := $(RuntimeR3_SOURCES.amd64)
|
---|
1103 | RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
|
---|
1104 | RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).x86 := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).x86)
|
---|
1105 | RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).amd64:= $(RuntimeR3_SOURCES.$(KBUILD_TARGET).amd64)
|
---|
1106 | RuntimeGuestR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH))
|
---|
1107 | RuntimeGuestR3_SOURCES.win.x86 += \
|
---|
1108 | r3/win/vcc100-kernel32-fakes.cpp \
|
---|
1109 | r3/win/vcc100-kernel32-fakesA.asm
|
---|
1110 |
|
---|
1111 | #
|
---|
1112 | # RuntimeGuestR3-x86 - Same as RuntimeGuestR3, except that it's targeting x86.
|
---|
1113 | #
|
---|
1114 | RuntimeGuestR3-x86_EXTENDS := RuntimeGuestR3
|
---|
1115 | RuntimeGuestR3-x86_BLD_TRG_ARCH := x86
|
---|
1116 |
|
---|
1117 |
|
---|
1118 | #
|
---|
1119 | # RuntimeGuestR3Shared - Guest Additions Runtime (static/dll).
|
---|
1120 | #
|
---|
1121 | RuntimeGuestR3Shared_TEMPLATE := VBoxGuestR3Dll
|
---|
1122 | RuntimeGuestR3Shared_EXTENDS := RuntimeGuestR3
|
---|
1123 | RuntimeGuestR3Shared_INST = $(INST_ADDITIONS_LIB)
|
---|
1124 |
|
---|
1125 |
|
---|
1126 | #
|
---|
1127 | # RuntimeGuestR3Shared-x86 - Same as RuntimeGuestR3Shared, except that it's targeting x86.
|
---|
1128 | #
|
---|
1129 | RuntimeGuestR3Shared-x86_EXTENDS := RuntimeGuestR3Shared
|
---|
1130 | RuntimeGuestR3Shared-x86_BLD_TRG_ARCH := x86
|
---|
1131 |
|
---|
1132 |
|
---|
1133 | #
|
---|
1134 | # RuntimeGuestR3Mini - Minimal Guest Additions Runtime which does not require
|
---|
1135 | # initialization and can be linked into an .so. Intended
|
---|
1136 | # for X11 drivers, GRADD and similar.
|
---|
1137 | #
|
---|
1138 | RuntimeGuestR3Mini_TEMPLATE := VBoxGuestR3Dll
|
---|
1139 | ## @todo change this to EXTEND the RuntimeGuestR3 target.
|
---|
1140 | RuntimeGuestR3Mini_INST := $(INST_ADDITIONS_LIB)
|
---|
1141 | RuntimeGuestR3Mini_SDKS.win := $(RuntimeR3_SDKS.win)
|
---|
1142 | RuntimeGuestR3Mini_DEFS := \
|
---|
1143 | $(filter-out RTCRITSECT_STRICT RT_NO_GIP RT_WITH_ICONV_CACHE, $(RuntimeR3_DEFS)) \
|
---|
1144 | RT_MINI IN_RT_STATIC RTMEM_NO_WRAP_TO_EF_APIS
|
---|
1145 | RuntimeGuestR3Mini_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
|
---|
1146 | RuntimeGuestR3Mini_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST))
|
---|
1147 | RuntimeGuestR3Mini_INCS := $(RuntimeR3_INCS)
|
---|
1148 | RuntimeGuestR3Mini_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
|
---|
1149 | RuntimeGuestR3Mini_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST))
|
---|
1150 | RuntimeGuestR3Mini_SOURCES = \
|
---|
1151 | common/alloc/alloc.cpp \
|
---|
1152 | common/err/errmsg.cpp \
|
---|
1153 | common/err/RTErrConvertFromErrno.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/assert.cpp \
|
---|
1163 | common/misc/buildconfig.cpp \
|
---|
1164 | common/misc/sanity-c.c \
|
---|
1165 | common/misc/sanity-cpp.cpp \
|
---|
1166 | common/misc/sg.cpp \
|
---|
1167 | common/path/rtPathVolumeSpecLen.cpp \
|
---|
1168 | common/path/RTPathAbsDup.cpp \
|
---|
1169 | common/path/RTPathAbsEx.cpp \
|
---|
1170 | common/path/RTPathAbsExDup.cpp \
|
---|
1171 | common/path/RTPathAppend.cpp \
|
---|
1172 | common/path/RTPathAppendEx.cpp \
|
---|
1173 | common/path/RTPathExt.cpp \
|
---|
1174 | common/path/RTPathFilename.cpp \
|
---|
1175 | common/path/RTPathHasExt.cpp \
|
---|
1176 | common/path/RTPathHasPath.cpp \
|
---|
1177 | common/path/RTPathJoin.cpp \
|
---|
1178 | common/path/RTPathJoinA.cpp \
|
---|
1179 | common/path/RTPathParseSimple.cpp \
|
---|
1180 | common/path/RTPathRealDup.cpp \
|
---|
1181 | common/path/RTPathStripExt.cpp \
|
---|
1182 | common/path/RTPathStripFilename.cpp \
|
---|
1183 | common/path/RTPathStripTrailingSlash.cpp \
|
---|
1184 | common/string/RTStrCat.cpp \
|
---|
1185 | common/string/RTStrCatEx.cpp \
|
---|
1186 | common/string/RTStrCatP.cpp \
|
---|
1187 | common/string/RTStrCatPEx.cpp \
|
---|
1188 | common/string/RTStrCmp.cpp \
|
---|
1189 | common/string/RTStrCopy.cpp \
|
---|
1190 | common/string/RTStrCopyEx.cpp \
|
---|
1191 | common/string/RTStrCopyP.cpp \
|
---|
1192 | common/string/RTStrCopyPEx.cpp \
|
---|
1193 | common/string/RTStrNCmp.cpp \
|
---|
1194 | common/string/RTStrNLen.cpp \
|
---|
1195 | common/string/RTStrNLenEx.cpp \
|
---|
1196 | common/string/RTStrStr.cpp \
|
---|
1197 | common/string/straprintf.cpp \
|
---|
1198 | common/string/strformat.cpp \
|
---|
1199 | common/string/strformatnum.cpp \
|
---|
1200 | common/string/strformatrt.cpp \
|
---|
1201 | common/string/strformattype.cpp \
|
---|
1202 | common/string/stringalloc.cpp \
|
---|
1203 | common/string/strprintf.cpp \
|
---|
1204 | common/string/strtonum.cpp \
|
---|
1205 | common/string/unidata.cpp \
|
---|
1206 | common/string/utf-8.cpp \
|
---|
1207 | common/string/utf-8-case.cpp \
|
---|
1208 | common/string/utf-16.cpp \
|
---|
1209 | common/table/avlpv.cpp \
|
---|
1210 | generic/critsect-generic.cpp \
|
---|
1211 | generic/pathhost-generic.cpp \
|
---|
1212 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
1213 | generic/errvars-generic.cpp \
|
---|
1214 | r3/alloc.cpp \
|
---|
1215 | r3/alloc-ef.cpp \
|
---|
1216 | r3/fileio.cpp \
|
---|
1217 | r3/fs.cpp
|
---|
1218 | RuntimeGuestR3Mini_SOURCES.freebsd = \
|
---|
1219 | r3/posix/RTMemProtect-posix.cpp \
|
---|
1220 | r3/posix/rtmempage-exec-mmap-posix.cpp \
|
---|
1221 | r3/posix/RTPathUserHome-posix.cpp \
|
---|
1222 | r3/posix/env-posix.cpp \
|
---|
1223 | r3/posix/fileio-posix.cpp \
|
---|
1224 | r3/posix/fileio2-posix.cpp \
|
---|
1225 | r3/posix/path-posix.cpp \
|
---|
1226 | r3/posix/path2-posix.cpp \
|
---|
1227 | r3/posix/utf8-posix.cpp \
|
---|
1228 | r3/posix/thread2-posix.cpp \
|
---|
1229 | common/err/errmsgxpcom.cpp
|
---|
1230 | RuntimeGuestR3Mini_SOURCES.linux = \
|
---|
1231 | r3/posix/RTMemProtect-posix.cpp \
|
---|
1232 | r3/posix/rtmempage-exec-mmap-posix.cpp \
|
---|
1233 | r3/posix/RTPathUserHome-posix.cpp \
|
---|
1234 | r3/posix/env-posix.cpp \
|
---|
1235 | r3/posix/fileio-posix.cpp \
|
---|
1236 | r3/posix/fileio2-posix.cpp \
|
---|
1237 | r3/posix/path-posix.cpp \
|
---|
1238 | r3/posix/path2-posix.cpp \
|
---|
1239 | r3/posix/utf8-posix.cpp \
|
---|
1240 | r3/posix/thread2-posix.cpp \
|
---|
1241 | common/err/errmsgxpcom.cpp
|
---|
1242 | RuntimeGuestR3Mini_SOURCES.solaris = \
|
---|
1243 | r3/posix/RTMemProtect-posix.cpp \
|
---|
1244 | r3/posix/rtmempage-exec-mmap-posix.cpp \
|
---|
1245 | r3/posix/RTPathUserHome-posix.cpp \
|
---|
1246 | r3/posix/env-posix.cpp \
|
---|
1247 | r3/posix/fileio-posix.cpp \
|
---|
1248 | r3/posix/fileio2-posix.cpp \
|
---|
1249 | r3/posix/path-posix.cpp \
|
---|
1250 | r3/posix/path2-posix.cpp \
|
---|
1251 | r3/posix/utf8-posix.cpp \
|
---|
1252 | r3/posix/thread2-posix.cpp \
|
---|
1253 | common/err/errmsgxpcom.cpp
|
---|
1254 | RuntimeGuestR3Mini_SOURCES.win = \
|
---|
1255 | r3/win/alloc-win.cpp \
|
---|
1256 | r3/win/fileio-win.cpp \
|
---|
1257 | r3/win/path-win.cpp \
|
---|
1258 | r3/win/utf8-win.cpp \
|
---|
1259 | r3/win/thread2-win.cpp \
|
---|
1260 | win/errmsgwin.cpp \
|
---|
1261 | win/RTErrConvertFromWin32.cpp
|
---|
1262 |
|
---|
1263 | #
|
---|
1264 | # RuntimeGuestR3Mini-x86 - Same as RuntimeGuestR3Mini, except that it's targeting x86.
|
---|
1265 | #
|
---|
1266 | RuntimeGuestR3Mini-x86_EXTENDS := RuntimeGuestR3Mini
|
---|
1267 | RuntimeGuestR3Mini-x86_BLD_TRG_ARCH := x86
|
---|
1268 |
|
---|
1269 |
|
---|
1270 | # VBox specific stuff.
|
---|
1271 | RuntimeGuestR3Mini_SOURCES += \
|
---|
1272 | VBox/logbackdoor.cpp \
|
---|
1273 | VBox/logbackdoor-redirect.cpp
|
---|
1274 |
|
---|
1275 |
|
---|
1276 | #
|
---|
1277 | # VBoxRT - Shared Object / DLL version.
|
---|
1278 | #
|
---|
1279 | VBoxRT_TEMPLATE = VBoxR3DllNoPic
|
---|
1280 | VBoxRT_SDKS = VBOX_LIBXML2 VBOX_BOOST
|
---|
1281 | ifdef VBOX_WITH_LIBCURL
|
---|
1282 | VBoxRT_SDKS += VBOX_LIBCURL
|
---|
1283 | endif
|
---|
1284 | VBoxRT_SDKS += VBOX_OPENSSL
|
---|
1285 | VBoxRT_SDKS.win = $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
|
---|
1286 | if1of ($(KBUILD_TARGET)$(VBOX_WITH_HARDENING), darwin win)
|
---|
1287 | VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE)
|
---|
1288 | endif
|
---|
1289 | VBoxRT_DEFS := $(filter-out RT_NO_GIP,$(RuntimeR3_DEFS)) IN_SUP_R3 IN_SUP_R3
|
---|
1290 | ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
1291 | VBoxRT_DEFS += RT_NO_GIP
|
---|
1292 | endif
|
---|
1293 | ifdef VBOX_WITH_LIBCURL
|
---|
1294 | VBoxRT_DEFS += IPRT_WITH_HTTP
|
---|
1295 | endif
|
---|
1296 | VBoxRT_DEFS.$(KBUILD_TYPE) := $(RuntimeR3_DEFS.$(KBUILD_TYPE))
|
---|
1297 | VBoxRT_SOURCES := \
|
---|
1298 | VBox/VBoxRTDeps.cpp \
|
---|
1299 | r3/xml.cpp \
|
---|
1300 | $(filter-out common/checksum/crc32.cpp, $(RuntimeR3_SOURCES)) \
|
---|
1301 | common/checksum/crc32-zlib.cpp \
|
---|
1302 | common/misc/aiomgr.cpp
|
---|
1303 | ifdef VBOX_WITH_LIBCURL
|
---|
1304 | VBoxRT_SOURCES += common/misc/s3.cpp
|
---|
1305 | VBoxRT_SOURCES += common/misc/http.cpp
|
---|
1306 | endif
|
---|
1307 | VBoxRT_SOURCES.$(KBUILD_TARGET) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
|
---|
1308 | VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
|
---|
1309 | VBoxRT_SOURCES.$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
|
---|
1310 | VBoxRT_SOURCES.win += \
|
---|
1311 | r3/win/dllmain-win.cpp \
|
---|
1312 | r3/win/fileaio-win.cpp \
|
---|
1313 | $(VBoxRT_0_OUTDIR)/VBoxRT.def
|
---|
1314 | VBoxRT_SOURCES.linux += \
|
---|
1315 | r3/linux/fileaio-linux.cpp
|
---|
1316 | VBoxRT_SOURCES.solaris += \
|
---|
1317 | r3/solaris/fileaio-solaris.cpp
|
---|
1318 | VBoxRT_SOURCES.darwin += \
|
---|
1319 | r3/posix/fileaio-posix.cpp
|
---|
1320 | VBoxRT_SOURCES.freebsd += \
|
---|
1321 | r3/freebsd/fileaio-freebsd.cpp
|
---|
1322 | VBoxRT_INCS := $(RuntimeR3_INCS)
|
---|
1323 | VBoxRT_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
|
---|
1324 | VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
|
---|
1325 | VBoxRT_LIBS = \
|
---|
1326 | $(PATH_STAGE_LIB)/VBox-liblzf$(VBOX_SUFF_LIB)
|
---|
1327 | if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
1328 | VBoxRT_LIBS += \
|
---|
1329 | $(PATH_STAGE_LIB)/SUPR3$(VBOX_SUFF_LIB)
|
---|
1330 | endif
|
---|
1331 | ifdef IPRT_WITH_KSTUFF
|
---|
1332 | VBoxRT_LIBS += \
|
---|
1333 | $(PATH_STAGE_LIB)/VBox-kStuff$(VBOX_SUFF_LIB)
|
---|
1334 | endif
|
---|
1335 | ifndef SDK_VBOX_LIBXML2_LIBS
|
---|
1336 | VBoxRT_LIBS += \
|
---|
1337 | $(PATH_STAGE_LIB)/VBox-libxml2$(VBOX_SUFF_LIB)
|
---|
1338 | endif
|
---|
1339 | VBoxRT_LIBS += \
|
---|
1340 | $(SDK_VBOX_ZLIB_LIBS)
|
---|
1341 | ifndef SDK_VBOX_OPENSSL_LIBS
|
---|
1342 | VBoxRT_LIBS += \
|
---|
1343 | $(PATH_STAGE_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB) \
|
---|
1344 | $(PATH_STAGE_LIB)/VBox-libssl$(VBOX_SUFF_LIB)
|
---|
1345 | endif
|
---|
1346 | ifdef IPRT_WITH_LZO
|
---|
1347 | VBoxRT_LIBS += lzo2
|
---|
1348 | endif
|
---|
1349 | VBoxRT_LIBS.linux = \
|
---|
1350 | crypt
|
---|
1351 | VBoxRT_LIBS.darwin = \
|
---|
1352 | iconv
|
---|
1353 | VBoxRT_LIBS.freebsd = \
|
---|
1354 | iconv \
|
---|
1355 | rt
|
---|
1356 | VBoxRT_LIBS.haiku = \
|
---|
1357 | iconv
|
---|
1358 | VBoxRT_LIBS.solaris = \
|
---|
1359 | kstat \
|
---|
1360 | contract
|
---|
1361 | ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)
|
---|
1362 | # SMBIOS not available on Solaris SPARC.
|
---|
1363 | VBoxRT_LIBS.solaris += smbios
|
---|
1364 | endif
|
---|
1365 | VBoxRT_LIBS.win = \
|
---|
1366 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/vccomsup.lib \
|
---|
1367 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/wbemuuid.lib
|
---|
1368 | VBoxRT_LDFLAGS.darwin = -framework IOKit -framework CoreFoundation -framework CoreServices -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxRT.dylib
|
---|
1369 | VBoxRT_LDFLAGS.win = /MANIFEST
|
---|
1370 |
|
---|
1371 | if1of ($(DLLS), VBoxRT)
|
---|
1372 | $$(VBoxRT_0_OUTDIR)/VBoxRT.def: \
|
---|
1373 | $(PATH_SUB_CURRENT)/r3/win/VBoxRT-$$(if-expr $$(KBUILD_TARGET_ARCH) == amd64,win64,win32).def \
|
---|
1374 | $(PATH_SUB_CURRENT)/r3/win/$(if $(VBOX_OSE),VBoxRT-openssl-ose.def,VBoxRT-openssl.def)
|
---|
1375 | $(RM) -f -- $@
|
---|
1376 | $(REDIRECT) -wto $@ -- $(CAT_EXT) $^
|
---|
1377 | endif
|
---|
1378 |
|
---|
1379 |
|
---|
1380 | #
|
---|
1381 | # HACK ALERT! Make testcase run during build on SELinux boxes.
|
---|
1382 | # Create a dummy DLL that ensure that VBoxRT is installed
|
---|
1383 | # during the DLL pass and cleaned up later.
|
---|
1384 | #
|
---|
1385 | ifeq ($(KBUILD_TARGET),linux)
|
---|
1386 | if1of (VBoxRT, $(DLLS))
|
---|
1387 | ifneq ($(wildcard /usr/bin/chcon),)
|
---|
1388 | VBoxRT_INSTTYPE = none
|
---|
1389 | VBoxRT_DEBUG_INSTTYPE = both
|
---|
1390 |
|
---|
1391 | DLLS += VBoxRTDummy
|
---|
1392 | VBoxRTDummy_TEMPLATE = VBOXR3
|
---|
1393 | VBoxRTDummy_INSTTYPE = none
|
---|
1394 | VBoxRTDummy_LIBS = $(PATH_STAGE_BIN)/VBoxRT.so
|
---|
1395 | VBoxRTDummy_CLEAN = $(PATH_STAGE_BIN)/VBoxRT.so
|
---|
1396 | BLDDIRS += $(PATH_STAGE_BIN)
|
---|
1397 |
|
---|
1398 | $(PATH_STAGE_BIN)/VBoxRT.so: $$(VBoxRT_1_TARGET) | $$(dir $$@)
|
---|
1399 | $(INSTALL) $< $@
|
---|
1400 | chcon -t texrel_shlib_t $@ || true
|
---|
1401 |
|
---|
1402 | VBoxRT:: VBoxRTDummy
|
---|
1403 | endif # chcon present.
|
---|
1404 | endif # building VBoxRT
|
---|
1405 | endif # linux
|
---|
1406 |
|
---|
1407 |
|
---|
1408 | #
|
---|
1409 | # VBoxRTImp - Import library/hack.
|
---|
1410 | #
|
---|
1411 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
|
---|
1412 | $(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def r3/win/VBoxRT-openssl-ose.def r3/win/VBoxRT-win64.def)
|
---|
1413 | else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
|
---|
1414 | $(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def r3/win/VBoxRT-openssl-ose.def r3/win/VBoxRT-win32.def)
|
---|
1415 | else
|
---|
1416 | $(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def r3/win/VBoxRT-openssl-ose.def)
|
---|
1417 | endif
|
---|
1418 |
|
---|
1419 |
|
---|
1420 | #
|
---|
1421 | # RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
|
---|
1422 | # This is used together with VBoxRT.
|
---|
1423 | #
|
---|
1424 | ## @todo the *_alias.c stuff is busted, remove and use RT_WITH_NOCRT_ALIASES instead.
|
---|
1425 | RuntimeR3NoCRTGCC_TEMPLATE = VBOXNOCRTGCC
|
---|
1426 | RuntimeR3NoCRTGCC_LIBSUFF = $(VBOX_SUFF_LIB)
|
---|
1427 | ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
1428 | RuntimeR3NoCRTGCC_DEFS += RT_NO_GIP
|
---|
1429 | endif
|
---|
1430 | RuntimeR3NoCRTGCC_INCS = include
|
---|
1431 | RuntimeR3NoCRTGCC_SOURCES := \
|
---|
1432 | common/misc/sanity-cpp.cpp \
|
---|
1433 | common/misc/sanity-c.c \
|
---|
1434 | \
|
---|
1435 | $(RuntimeNoCrt_SOURCES)
|
---|
1436 |
|
---|
1437 | if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
1438 | RuntimeR3NoCRTGCC_SOURCES += \
|
---|
1439 | common/math/ceill.asm \
|
---|
1440 | common/math/cosl.asm \
|
---|
1441 | common/math/fabs.asm \
|
---|
1442 | common/math/fabsf.asm \
|
---|
1443 | common/math/fabsl.asm \
|
---|
1444 | common/math/floor.asm \
|
---|
1445 | common/math/floorf.asm \
|
---|
1446 | common/math/floorl.asm \
|
---|
1447 | common/math/ldexpl.asm \
|
---|
1448 | common/math/llrint.asm \
|
---|
1449 | common/math/llrintf.asm \
|
---|
1450 | common/math/llrintl.asm \
|
---|
1451 | common/math/logl.asm \
|
---|
1452 | common/math/lrint.asm \
|
---|
1453 | common/math/lrintf.asm \
|
---|
1454 | common/math/lrintl.asm \
|
---|
1455 | common/math/remainder.asm \
|
---|
1456 | common/math/remainderf.asm \
|
---|
1457 | common/math/remainderl.asm \
|
---|
1458 | common/math/sinl.asm \
|
---|
1459 | common/math/tanl.asm \
|
---|
1460 | common/math/trunc.asm \
|
---|
1461 | common/math/truncf.asm \
|
---|
1462 | common/math/truncl.asm \
|
---|
1463 | \
|
---|
1464 | common/string/memchr_alias.c \
|
---|
1465 | common/string/memcmp_alias.c \
|
---|
1466 | common/string/memcpy_alias.c \
|
---|
1467 | common/string/memmove_alias.c \
|
---|
1468 | common/string/memset_alias.c \
|
---|
1469 | common/string/strchr_alias.c \
|
---|
1470 | common/string/strcmp_alias.c \
|
---|
1471 | common/string/strlen_alias.c
|
---|
1472 | endif
|
---|
1473 |
|
---|
1474 | RuntimeR3NoCRTGCC_SOURCES.x86 = \
|
---|
1475 | common/math/x86/fenv-x86.c \
|
---|
1476 | common/math/gcc/adddi3.c \
|
---|
1477 | common/math/gcc/anddi3.c \
|
---|
1478 | common/math/gcc/ashldi3.c \
|
---|
1479 | common/math/gcc/ashrdi3.c \
|
---|
1480 | common/math/gcc/cmpdi2.c \
|
---|
1481 | common/math/gcc/divdi3.c \
|
---|
1482 | common/math/gcc/iordi3.c \
|
---|
1483 | common/math/gcc/lshldi3.c \
|
---|
1484 | common/math/gcc/lshrdi3.c \
|
---|
1485 | common/math/gcc/moddi3.c \
|
---|
1486 | common/math/gcc/muldi3.c \
|
---|
1487 | common/math/gcc/negdi2.c \
|
---|
1488 | common/math/gcc/notdi2.c \
|
---|
1489 | common/math/gcc/qdivrem.c \
|
---|
1490 | common/math/gcc/subdi3.c \
|
---|
1491 | common/math/gcc/ucmpdi2.c \
|
---|
1492 | common/math/gcc/udivdi3.c \
|
---|
1493 | common/math/gcc/umoddi3.c \
|
---|
1494 | common/math/gcc/xordi3.c
|
---|
1495 |
|
---|
1496 |
|
---|
1497 | ## @todo stop using the old memcpy.c and memset.c code.
|
---|
1498 |
|
---|
1499 | #
|
---|
1500 | # RuntimeR0 - Ring-0 library for VMMR0.
|
---|
1501 | #
|
---|
1502 | RuntimeR0_TEMPLATE = VBoxR0
|
---|
1503 | RuntimeR0_DEFS = IN_RT_R0 RT_WITH_VBOX
|
---|
1504 | ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
|
---|
1505 | RuntimeR0_DEFS += RT_NO_GIP
|
---|
1506 | endif
|
---|
1507 | RuntimeR0_INCS = include
|
---|
1508 | RuntimeR0_SOURCES := \
|
---|
1509 | common/log/logellipsis.cpp \
|
---|
1510 | common/log/logrelellipsis.cpp \
|
---|
1511 | common/log/logcom.cpp \
|
---|
1512 | common/log/logformat.cpp \
|
---|
1513 | common/log/tracebuf.cpp \
|
---|
1514 | common/log/tracedefault.cpp \
|
---|
1515 | common/misc/RTAssertMsg1Weak.cpp \
|
---|
1516 | common/misc/RTAssertMsg2.cpp \
|
---|
1517 | common/misc/RTAssertMsg2Add.cpp \
|
---|
1518 | common/misc/RTAssertMsg2AddWeak.cpp \
|
---|
1519 | common/misc/RTAssertMsg2AddWeakV.cpp \
|
---|
1520 | common/misc/RTAssertMsg2Weak.cpp \
|
---|
1521 | common/misc/RTAssertMsg2WeakV.cpp \
|
---|
1522 | common/misc/buildconfig.cpp \
|
---|
1523 | common/misc/once.cpp \
|
---|
1524 | common/misc/sanity-c.c \
|
---|
1525 | common/misc/sanity-cpp.cpp \
|
---|
1526 | common/misc/term.cpp \
|
---|
1527 | common/path/RTPathFilename.cpp \
|
---|
1528 | common/string/strhash1.cpp \
|
---|
1529 | common/string/strncmp.cpp \
|
---|
1530 | common/string/strpbrk.cpp \
|
---|
1531 | common/string/RTStrCat.cpp \
|
---|
1532 | common/string/RTStrCatEx.cpp \
|
---|
1533 | common/string/RTStrCatP.cpp \
|
---|
1534 | common/string/RTStrCatPEx.cpp \
|
---|
1535 | common/string/RTStrCopy.cpp \
|
---|
1536 | common/string/RTStrCopyEx.cpp \
|
---|
1537 | common/string/RTStrCopyP.cpp \
|
---|
1538 | common/string/RTStrCopyPEx.cpp \
|
---|
1539 | common/string/RTStrNLen.cpp \
|
---|
1540 | common/string/RTStrNLenEx.cpp \
|
---|
1541 | common/table/avlgcptr.cpp \
|
---|
1542 | common/table/avlhcphys.cpp \
|
---|
1543 | common/table/avllu32.cpp \
|
---|
1544 | common/table/avlogcphys.cpp \
|
---|
1545 | common/table/avlogcptr.cpp \
|
---|
1546 | common/table/avlohcphys.cpp \
|
---|
1547 | common/table/avloioport.cpp \
|
---|
1548 | common/table/avlpv.cpp \
|
---|
1549 | common/table/avlrogcphys.cpp \
|
---|
1550 | common/table/avlrogcptr.cpp \
|
---|
1551 | common/table/avlroioport.cpp \
|
---|
1552 | common/table/avlroogcptr.cpp \
|
---|
1553 | common/table/avlu32.cpp \
|
---|
1554 | common/table/avlou32.cpp \
|
---|
1555 | common/time/timesup.cpp \
|
---|
1556 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
1557 | \
|
---|
1558 | $(RuntimeNoCrt_SOURCES)
|
---|
1559 |
|
---|
1560 | if1of ($(KBUILD_TARGET), darwin solaris freebsd)
|
---|
1561 | RuntimeR0_SOURCES += \
|
---|
1562 | common/math/gcc/adddi3.c \
|
---|
1563 | common/math/gcc/anddi3.c \
|
---|
1564 | common/math/gcc/ashldi3.c \
|
---|
1565 | common/math/gcc/ashrdi3.c \
|
---|
1566 | common/math/gcc/cmpdi2.c \
|
---|
1567 | common/math/gcc/divdi3.c \
|
---|
1568 | common/math/gcc/iordi3.c \
|
---|
1569 | common/math/gcc/lshldi3.c \
|
---|
1570 | common/math/gcc/lshrdi3.c \
|
---|
1571 | common/math/gcc/moddi3.c \
|
---|
1572 | common/math/gcc/muldi3.c \
|
---|
1573 | common/math/gcc/negdi2.c \
|
---|
1574 | common/math/gcc/notdi2.c \
|
---|
1575 | common/math/gcc/qdivrem.c \
|
---|
1576 | common/math/gcc/subdi3.c \
|
---|
1577 | common/math/gcc/ucmpdi2.c \
|
---|
1578 | common/math/gcc/udivdi3.c \
|
---|
1579 | common/math/gcc/umoddi3.c \
|
---|
1580 | common/math/gcc/xordi3.c
|
---|
1581 | endif
|
---|
1582 |
|
---|
1583 | #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
|
---|
1584 | # RuntimeR0_SOURCES += common/time/timesupA.asm
|
---|
1585 | #else
|
---|
1586 | RuntimeR0_SOURCES += common/time/timesupref.cpp
|
---|
1587 | #endif
|
---|
1588 |
|
---|
1589 | RuntimeR0_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES)
|
---|
1590 | RuntimeR0_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES)
|
---|
1591 | RuntimeR0_SOURCES.win = \
|
---|
1592 | nt/NtProcessStartup-stub.cpp
|
---|
1593 |
|
---|
1594 | RuntimeR0_SOURCES.os2 = \
|
---|
1595 | os2/sys0.asm
|
---|
1596 |
|
---|
1597 |
|
---|
1598 | #
|
---|
1599 | # RuntimeR0Stub - Ring-0 context startup stub for Windows and Solaris.
|
---|
1600 | #
|
---|
1601 | RuntimeR0Stub_TEMPLATE = $(if-expr "$(KBUILD_TARGET)" == "solaris",VBoxR0DrvLib,VBoxR0)
|
---|
1602 | RuntimeR0Stub_SOURCES.win = \
|
---|
1603 | nt/NtProcessStartup-stub.cpp
|
---|
1604 | RuntimeR0Stub_SOURCES.solaris = \
|
---|
1605 | r0drv/solaris/modulestub-r0drv-solaris.c
|
---|
1606 |
|
---|
1607 |
|
---|
1608 | #
|
---|
1609 | # RuntimeR0Drv - Ring-0 library for host drivers.
|
---|
1610 | #
|
---|
1611 | RuntimeR0Drv_TEMPLATE = VBoxR0DrvLib
|
---|
1612 | RuntimeR0Drv_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK) $(VBOX_WINPSDK)INCS
|
---|
1613 | RuntimeR0Drv_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS RT_NO_EXPORT_SYMBOL
|
---|
1614 | RuntimeR0Drv_DEFS.win = IN_SUP_R0
|
---|
1615 | RuntimeR0Drv_DEFS.linux = MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) IN_SUP_R0
|
---|
1616 |
|
---|
1617 | RuntimeR0Drv_INCS := $(PATH_SUB_CURRENT) include
|
---|
1618 | RuntimeR0Drv_INCS.freebsd = \
|
---|
1619 | $(PATH_STAGE)/gen-sys-hdrs
|
---|
1620 | RuntimeR0Drv_INCS.linux = \
|
---|
1621 | r0drv/linux
|
---|
1622 | RuntimeR0Drv_INCS.solaris = \
|
---|
1623 | r0drv/solaris/vbi/i86pc \
|
---|
1624 | r0drv/solaris/vbi/i86pc/sys
|
---|
1625 |
|
---|
1626 | RuntimeR0Drv_SOURCES = \
|
---|
1627 | common/alloc/alloc.cpp \
|
---|
1628 | common/alloc/heapsimple.cpp \
|
---|
1629 | common/alloc/heapoffset.cpp \
|
---|
1630 | common/checksum/crc32.cpp \
|
---|
1631 | common/checksum/crc64.cpp \
|
---|
1632 | common/checksum/md5.cpp \
|
---|
1633 | common/checksum/ipv4.cpp \
|
---|
1634 | common/checksum/ipv6.cpp \
|
---|
1635 | common/err/RTErrConvertToErrno.cpp \
|
---|
1636 | common/err/RTErrConvertFromErrno.cpp \
|
---|
1637 | common/log/log.cpp \
|
---|
1638 | common/log/logellipsis.cpp \
|
---|
1639 | common/log/logrel.cpp \
|
---|
1640 | common/log/logrelellipsis.cpp \
|
---|
1641 | common/log/logcom.cpp \
|
---|
1642 | common/log/logformat.cpp \
|
---|
1643 | common/log/tracebuf.cpp \
|
---|
1644 | common/log/tracedefault.cpp \
|
---|
1645 | common/misc/RTAssertMsg1Weak.cpp \
|
---|
1646 | common/misc/RTAssertMsg2.cpp \
|
---|
1647 | common/misc/RTAssertMsg2Add.cpp \
|
---|
1648 | common/misc/RTAssertMsg2AddWeak.cpp \
|
---|
1649 | common/misc/RTAssertMsg2AddWeakV.cpp \
|
---|
1650 | common/misc/RTAssertMsg2Weak.cpp \
|
---|
1651 | common/misc/RTAssertMsg2WeakV.cpp \
|
---|
1652 | common/misc/assert.cpp \
|
---|
1653 | common/misc/buildconfig.cpp \
|
---|
1654 | common/misc/handletable.cpp \
|
---|
1655 | common/misc/handletablectx.cpp \
|
---|
1656 | common/misc/handletablesimple.cpp \
|
---|
1657 | common/misc/once.cpp \
|
---|
1658 | common/misc/sanity-c.c \
|
---|
1659 | common/misc/sanity-cpp.cpp \
|
---|
1660 | common/misc/term.cpp \
|
---|
1661 | common/path/rtPathVolumeSpecLen.cpp \
|
---|
1662 | common/path/RTPathAbsDup.cpp \
|
---|
1663 | common/path/RTPathAbsEx.cpp \
|
---|
1664 | common/path/RTPathAbsExDup.cpp \
|
---|
1665 | common/path/RTPathAppend.cpp \
|
---|
1666 | common/path/RTPathAppendEx.cpp \
|
---|
1667 | common/path/RTPathExt.cpp \
|
---|
1668 | common/path/RTPathFilename.cpp \
|
---|
1669 | common/path/RTPathHasExt.cpp \
|
---|
1670 | common/path/RTPathHasPath.cpp \
|
---|
1671 | common/path/RTPathParseSimple.cpp \
|
---|
1672 | common/path/RTPathRealDup.cpp \
|
---|
1673 | common/path/RTPathStripExt.cpp \
|
---|
1674 | common/path/RTPathStripFilename.cpp \
|
---|
1675 | common/path/RTPathStripTrailingSlash.cpp \
|
---|
1676 | common/rand/rand.cpp \
|
---|
1677 | common/rand/randadv.cpp \
|
---|
1678 | common/rand/randparkmiller.cpp \
|
---|
1679 | common/string/RTStrCat.cpp \
|
---|
1680 | common/string/RTStrCatEx.cpp \
|
---|
1681 | common/string/RTStrCatP.cpp \
|
---|
1682 | common/string/RTStrCatPEx.cpp \
|
---|
1683 | common/string/RTStrCmp.cpp \
|
---|
1684 | common/string/RTStrCopy.cpp \
|
---|
1685 | common/string/RTStrCopyEx.cpp \
|
---|
1686 | common/string/RTStrCopyP.cpp \
|
---|
1687 | common/string/RTStrCopyPEx.cpp \
|
---|
1688 | common/string/RTStrNCmp.cpp \
|
---|
1689 | common/string/RTStrNLen.cpp \
|
---|
1690 | common/string/RTStrNLenEx.cpp \
|
---|
1691 | common/string/straprintf.cpp \
|
---|
1692 | common/string/strformat.cpp \
|
---|
1693 | common/string/strformatnum.cpp \
|
---|
1694 | common/string/strformatrt.cpp \
|
---|
1695 | common/string/strformattype.cpp \
|
---|
1696 | common/string/strhash1.cpp \
|
---|
1697 | common/string/strprintf.cpp \
|
---|
1698 | common/string/strtonum.cpp \
|
---|
1699 | common/string/stringalloc.cpp \
|
---|
1700 | common/string/utf-16.cpp \
|
---|
1701 | common/string/utf-8.cpp \
|
---|
1702 | common/table/avlpv.cpp \
|
---|
1703 | common/time/time.cpp \
|
---|
1704 | generic/RTLogWriteStdErr-stub-generic.cpp \
|
---|
1705 | generic/RTLogWriteUser-generic.cpp \
|
---|
1706 | generic/RTMpGetArraySize-generic.cpp \
|
---|
1707 | generic/RTRandAdvCreateSystemFaster-generic.cpp \
|
---|
1708 | generic/RTSemEventWait-2-ex-generic.cpp \
|
---|
1709 | generic/RTSemEventWaitNoResume-2-ex-generic.cpp \
|
---|
1710 | generic/RTSemEventMultiWait-2-ex-generic.cpp \
|
---|
1711 | generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
|
---|
1712 | generic/errvars-generic.cpp \
|
---|
1713 | generic/uuid-generic.cpp \
|
---|
1714 | r0drv/alloc-r0drv.cpp \
|
---|
1715 | r0drv/initterm-r0drv.cpp \
|
---|
1716 | r0drv/generic/semspinmutex-r0drv-generic.c \
|
---|
1717 | VBox/log-vbox.cpp \
|
---|
1718 |
|
---|
1719 | RuntimeR0Drv_SOURCES.linux = \
|
---|
1720 | common/misc/thread.cpp \
|
---|
1721 | common/string/strpbrk.cpp \
|
---|
1722 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
1723 | generic/RTLogWriteStdOut-stub-generic.cpp \
|
---|
1724 | generic/RTMpGetCoreCount-generic.cpp \
|
---|
1725 | generic/mppresent-generic.cpp \
|
---|
1726 | r0drv/linux/alloc-r0drv-linux.c \
|
---|
1727 | r0drv/linux/assert-r0drv-linux.c \
|
---|
1728 | r0drv/linux/initterm-r0drv-linux.c \
|
---|
1729 | r0drv/linux/memobj-r0drv-linux.c \
|
---|
1730 | r0drv/linux/memuserkernel-r0drv-linux.c \
|
---|
1731 | r0drv/linux/mp-r0drv-linux.c \
|
---|
1732 | r0drv/linux/mpnotification-r0drv-linux.c \
|
---|
1733 | r0drv/linux/process-r0drv-linux.c \
|
---|
1734 | r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \
|
---|
1735 | r0drv/linux/semevent-r0drv-linux.c \
|
---|
1736 | r0drv/linux/semeventmulti-r0drv-linux.c \
|
---|
1737 | r0drv/linux/semfastmutex-r0drv-linux.c \
|
---|
1738 | r0drv/linux/semmutex-r0drv-linux.c \
|
---|
1739 | r0drv/linux/spinlock-r0drv-linux.c \
|
---|
1740 | r0drv/linux/thread-r0drv-linux.c \
|
---|
1741 | r0drv/linux/thread2-r0drv-linux.c \
|
---|
1742 | r0drv/linux/threadctxhooks-r0drv-linux.c \
|
---|
1743 | r0drv/linux/time-r0drv-linux.c \
|
---|
1744 | r0drv/linux/timer-r0drv-linux.c \
|
---|
1745 | r0drv/memobj-r0drv.cpp \
|
---|
1746 | r0drv/mpnotification-r0drv.c \
|
---|
1747 | r0drv/powernotification-r0drv.c
|
---|
1748 |
|
---|
1749 | RuntimeR0Drv_SOURCES.win = \
|
---|
1750 | common/misc/thread.cpp \
|
---|
1751 | common/string/memcmp.asm \
|
---|
1752 | common/string/memchr.asm \
|
---|
1753 | common/string/memcpy.asm \
|
---|
1754 | common/string/memset.asm \
|
---|
1755 | common/string/memmove.asm \
|
---|
1756 | common/string/strlen.asm \
|
---|
1757 | common/string/strncmp.cpp \
|
---|
1758 | common/string/strpbrk.cpp \
|
---|
1759 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
1760 | generic/RTLogWriteStdOut-stub-generic.cpp \
|
---|
1761 | generic/RTTimerCreate-generic.cpp \
|
---|
1762 | generic/mppresent-generic.cpp \
|
---|
1763 | generic/RTMpGetCoreCount-generic.cpp \
|
---|
1764 | nt/RTErrConvertFromNtStatus.cpp \
|
---|
1765 | r0drv/generic/threadctxhooks-r0drv-generic.cpp \
|
---|
1766 | r0drv/memobj-r0drv.cpp \
|
---|
1767 | r0drv/mpnotification-r0drv.c \
|
---|
1768 | r0drv/powernotification-r0drv.c \
|
---|
1769 | r0drv/nt/alloc-r0drv-nt.cpp \
|
---|
1770 | r0drv/nt/assert-r0drv-nt.cpp \
|
---|
1771 | r0drv/nt/initterm-r0drv-nt.cpp \
|
---|
1772 | r0drv/nt/memobj-r0drv-nt.cpp \
|
---|
1773 | r0drv/nt/memuserkernel-r0drv-nt.cpp \
|
---|
1774 | r0drv/nt/mp-r0drv-nt.cpp \
|
---|
1775 | r0drv/nt/mpnotification-r0drv-nt.cpp \
|
---|
1776 | r0drv/nt/process-r0drv-nt.cpp \
|
---|
1777 | r0drv/nt/RTLogWriteDebugger-r0drv-nt.cpp \
|
---|
1778 | r0drv/nt/semevent-r0drv-nt.cpp \
|
---|
1779 | r0drv/nt/semeventmulti-r0drv-nt.cpp \
|
---|
1780 | r0drv/nt/semfastmutex-r0drv-nt.cpp \
|
---|
1781 | r0drv/nt/semmutex-r0drv-nt.cpp \
|
---|
1782 | r0drv/nt/spinlock-r0drv-nt.cpp \
|
---|
1783 | r0drv/nt/thread-r0drv-nt.cpp \
|
---|
1784 | r0drv/nt/thread2-r0drv-nt.cpp \
|
---|
1785 | r0drv/nt/time-r0drv-nt.cpp \
|
---|
1786 | r0drv/nt/timer-r0drv-nt.cpp \
|
---|
1787 | r0drv/nt/RTTimerGetSystemGranularity-r0drv-nt.cpp
|
---|
1788 |
|
---|
1789 | RuntimeR0Drv_SOURCES.win.amd64 := $(RuntimeWin64ASM_SOURCES)
|
---|
1790 | RuntimeR0Drv_SOURCES.win.x86 := $(RuntimeWin32ASM_SOURCES)
|
---|
1791 |
|
---|
1792 | RuntimeR0Drv_SOURCES.darwin = \
|
---|
1793 | common/misc/thread.cpp \
|
---|
1794 | common/string/memchr.asm \
|
---|
1795 | common/string/strpbrk.cpp \
|
---|
1796 | darwin/RTErrConvertFromDarwin.cpp \
|
---|
1797 | darwin/RTErrConvertFromDarwinIO.cpp \
|
---|
1798 | darwin/RTErrConvertFromDarwinKern.cpp \
|
---|
1799 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
1800 | generic/RTTimerCreate-generic.cpp \
|
---|
1801 | generic/RTMpGetCoreCount-generic.cpp \
|
---|
1802 | generic/mppresent-generic.cpp \
|
---|
1803 | generic/timer-generic.cpp \
|
---|
1804 | r0drv/generic/mpnotification-r0drv-generic.cpp \
|
---|
1805 | r0drv/generic/threadctxhooks-r0drv-generic.cpp \
|
---|
1806 | r0drv/darwin/alloc-r0drv-darwin.cpp \
|
---|
1807 | r0drv/darwin/assert-r0drv-darwin.cpp \
|
---|
1808 | r0drv/darwin/initterm-r0drv-darwin.cpp \
|
---|
1809 | r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp \
|
---|
1810 | r0drv/darwin/memobj-r0drv-darwin.cpp \
|
---|
1811 | r0drv/darwin/mp-r0drv-darwin.cpp \
|
---|
1812 | r0drv/darwin/memuserkernel-r0drv-darwin.cpp \
|
---|
1813 | r0drv/darwin/process-r0drv-darwin.cpp \
|
---|
1814 | r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
|
---|
1815 | r0drv/darwin/RTLogWriteStdOut-r0drv-darwin.cpp \
|
---|
1816 | r0drv/darwin/semevent-r0drv-darwin.cpp \
|
---|
1817 | r0drv/darwin/semeventmulti-r0drv-darwin.cpp \
|
---|
1818 | r0drv/darwin/semfastmutex-r0drv-darwin.cpp \
|
---|
1819 | r0drv/darwin/semmutex-r0drv-darwin.cpp \
|
---|
1820 | r0drv/darwin/spinlock-r0drv-darwin.cpp \
|
---|
1821 | r0drv/darwin/thread-r0drv-darwin.cpp \
|
---|
1822 | r0drv/darwin/thread2-r0drv-darwin.cpp \
|
---|
1823 | r0drv/darwin/threadpreempt-r0drv-darwin.cpp \
|
---|
1824 | r0drv/darwin/time-r0drv-darwin.cpp \
|
---|
1825 | r0drv/memobj-r0drv.cpp \
|
---|
1826 | r0drv/powernotification-r0drv.c
|
---|
1827 |
|
---|
1828 | RuntimeR0Drv_SOURCES.os2 = \
|
---|
1829 | common/string/memchr.asm \
|
---|
1830 | common/string/memcmp.asm \
|
---|
1831 | common/string/memcpy.asm \
|
---|
1832 | common/string/mempcpy.asm \
|
---|
1833 | common/string/memmove.asm \
|
---|
1834 | common/string/memset.asm \
|
---|
1835 | common/string/strchr.asm \
|
---|
1836 | common/string/strcmp.asm \
|
---|
1837 | common/string/strcpy.asm \
|
---|
1838 | common/string/strlen.asm \
|
---|
1839 | \
|
---|
1840 | common/string/strncmp.cpp \
|
---|
1841 | common/string/strpbrk.cpp \
|
---|
1842 | \
|
---|
1843 | common/misc/thread.cpp \
|
---|
1844 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
1845 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
1846 | generic/RTLogWriteStdOut-stub-generic.cpp \
|
---|
1847 | generic/RTMpCpuId-generic.cpp \
|
---|
1848 | generic/RTMpCpuIdFromSetIndex-generic.cpp \
|
---|
1849 | generic/RTMpCpuIdToSetIndex-generic.cpp \
|
---|
1850 | generic/RTMpIsCpuPossible-generic.cpp \
|
---|
1851 | generic/RTMpGetCount-generic.cpp \
|
---|
1852 | generic/RTMpGetMaxCpuId-generic.cpp \
|
---|
1853 | generic/RTMpGetOnlineCount-generic.cpp \
|
---|
1854 | generic/RTMpGetOnlineSet-generic.cpp \
|
---|
1855 | generic/RTMpGetSet-generic.cpp \
|
---|
1856 | generic/RTMpIsCpuOnline-generic.cpp \
|
---|
1857 | generic/RTTimerCreate-generic.cpp \
|
---|
1858 | generic/mppresent-generic.cpp \
|
---|
1859 | os2/RTErrConvertFromOS2.cpp \
|
---|
1860 | os2/rtSemWaitOs2ConvertTimeout.cpp \
|
---|
1861 | os2/sys0.asm \
|
---|
1862 | r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
|
---|
1863 | r0drv/generic/RTMpOn-r0drv-generic.cpp \
|
---|
1864 | r0drv/generic/mpnotification-r0drv-generic.cpp \
|
---|
1865 | r0drv/generic/threadctxhooks-r0drv-generic.cpp \
|
---|
1866 | r0drv/memobj-r0drv.cpp \
|
---|
1867 | r0drv/powernotification-r0drv.c \
|
---|
1868 | r0drv/os2/alloc-r0drv-os2.cpp \
|
---|
1869 | r0drv/os2/assert-r0drv-os2.cpp \
|
---|
1870 | r0drv/os2/assertA-r0drv-os2.asm \
|
---|
1871 | r0drv/os2/initterm-r0drv-os2.cpp \
|
---|
1872 | r0drv/os2/memobj-r0drv-os2.cpp \
|
---|
1873 | r0drv/os2/memuserkernel-r0drv-os2.cpp \
|
---|
1874 | r0drv/os2/os2imports.imp \
|
---|
1875 | r0drv/os2/process-r0drv-os2.cpp \
|
---|
1876 | r0drv/os2/RTR0AssertPanicSystem-r0drv-os2.asm \
|
---|
1877 | r0drv/os2/RTR0Os2DHQueryDOSVar.asm \
|
---|
1878 | r0drv/os2/RTR0Os2DHVMGlobalToProcess.asm \
|
---|
1879 | r0drv/os2/semevent-r0drv-os2.cpp \
|
---|
1880 | r0drv/os2/semeventmulti-r0drv-os2.cpp \
|
---|
1881 | r0drv/os2/semfastmutex-r0drv-os2.cpp \
|
---|
1882 | r0drv/os2/spinlock-r0drv-os2.cpp \
|
---|
1883 | r0drv/os2/thread-r0drv-os2.cpp \
|
---|
1884 | r0drv/os2/thread2-r0drv-os2.cpp \
|
---|
1885 | r0drv/os2/time-r0drv-os2.cpp \
|
---|
1886 | r0drv/os2/timer-r0drv-os2.cpp \
|
---|
1887 | r0drv/os2/timerA-r0drv-os2.asm
|
---|
1888 |
|
---|
1889 | RuntimeR0Drv_SOURCES.freebsd = \
|
---|
1890 | common/misc/thread.cpp \
|
---|
1891 | common/string/memchr.asm \
|
---|
1892 | common/string/memmove.asm \
|
---|
1893 | common/string/strpbrk.cpp \
|
---|
1894 | common/string/memcmp.asm \
|
---|
1895 | common/string/strchr.asm \
|
---|
1896 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
1897 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
1898 | generic/RTLogWriteStdOut-stub-generic.cpp \
|
---|
1899 | generic/RTTimerCreate-generic.cpp \
|
---|
1900 | generic/mppresent-generic.cpp \
|
---|
1901 | r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
|
---|
1902 | r0drv/generic/mpnotification-r0drv-generic.cpp \
|
---|
1903 | r0drv/generic/threadctxhooks-r0drv-generic.cpp \
|
---|
1904 | r0drv/freebsd/alloc-r0drv-freebsd.c \
|
---|
1905 | r0drv/freebsd/assert-r0drv-freebsd.c \
|
---|
1906 | r0drv/freebsd/initterm-r0drv-freebsd.c \
|
---|
1907 | r0drv/freebsd/memobj-r0drv-freebsd.c \
|
---|
1908 | r0drv/freebsd/memuserkernel-r0drv-freebsd.c \
|
---|
1909 | r0drv/freebsd/process-r0drv-freebsd.c \
|
---|
1910 | r0drv/freebsd/semevent-r0drv-freebsd.c \
|
---|
1911 | r0drv/freebsd/semeventmulti-r0drv-freebsd.c \
|
---|
1912 | r0drv/freebsd/semfastmutex-r0drv-freebsd.c \
|
---|
1913 | r0drv/freebsd/semmutex-r0drv-freebsd.c \
|
---|
1914 | r0drv/freebsd/spinlock-r0drv-freebsd.c \
|
---|
1915 | r0drv/freebsd/thread-r0drv-freebsd.c \
|
---|
1916 | r0drv/freebsd/thread2-r0drv-freebsd.c \
|
---|
1917 | r0drv/freebsd/time-r0drv-freebsd.c \
|
---|
1918 | r0drv/freebsd/mp-r0drv-freebsd.c \
|
---|
1919 | generic/timer-generic.cpp \
|
---|
1920 | r0drv/memobj-r0drv.cpp \
|
---|
1921 | r0drv/powernotification-r0drv.c
|
---|
1922 |
|
---|
1923 | RuntimeR0Drv_SOURCES.solaris = \
|
---|
1924 | common/misc/thread.cpp \
|
---|
1925 | common/string/memchr.asm \
|
---|
1926 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
1927 | generic/RTLogWriteStdOut-stub-generic.cpp \
|
---|
1928 | generic/RTMpGetCoreCount-generic.cpp \
|
---|
1929 | generic/RTTimerCreate-generic.cpp \
|
---|
1930 | generic/mppresent-generic.cpp \
|
---|
1931 | r0drv/memobj-r0drv.cpp \
|
---|
1932 | r0drv/mpnotification-r0drv.c \
|
---|
1933 | r0drv/powernotification-r0drv.c \
|
---|
1934 | r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \
|
---|
1935 | r0drv/solaris/RTMpPokeCpu-r0drv-solaris.c \
|
---|
1936 | r0drv/solaris/alloc-r0drv-solaris.c \
|
---|
1937 | r0drv/solaris/assert-r0drv-solaris.c \
|
---|
1938 | r0drv/solaris/dbgkrnlinfo-r0drv-solaris.c \
|
---|
1939 | r0drv/solaris/initterm-r0drv-solaris.c \
|
---|
1940 | r0drv/solaris/memuserkernel-r0drv-solaris.c \
|
---|
1941 | r0drv/solaris/mpnotification-r0drv-solaris.c \
|
---|
1942 | r0drv/solaris/memobj-r0drv-solaris.c \
|
---|
1943 | r0drv/solaris/mp-r0drv-solaris.c \
|
---|
1944 | r0drv/solaris/process-r0drv-solaris.c \
|
---|
1945 | r0drv/solaris/semevent-r0drv-solaris.c \
|
---|
1946 | r0drv/solaris/semeventmulti-r0drv-solaris.c \
|
---|
1947 | r0drv/solaris/semfastmutex-r0drv-solaris.c \
|
---|
1948 | r0drv/solaris/semmutex-r0drv-solaris.c \
|
---|
1949 | r0drv/solaris/spinlock-r0drv-solaris.c \
|
---|
1950 | r0drv/solaris/thread-r0drv-solaris.c \
|
---|
1951 | r0drv/solaris/thread2-r0drv-solaris.c \
|
---|
1952 | r0drv/solaris/threadctxhooks-r0drv-solaris.c \
|
---|
1953 | r0drv/solaris/time-r0drv-solaris.c \
|
---|
1954 | r0drv/solaris/timer-r0drv-solaris.c
|
---|
1955 |
|
---|
1956 | RuntimeR0Drv_SOURCES.haiku = \
|
---|
1957 | common/misc/thread.cpp \
|
---|
1958 | common/string/memchr.asm \
|
---|
1959 | common/string/memmove.asm \
|
---|
1960 | common/string/strpbrk.cpp \
|
---|
1961 | common/string/memcmp.asm \
|
---|
1962 | common/string/strchr.asm \
|
---|
1963 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
1964 | generic/RTTimerCreate-generic.cpp \
|
---|
1965 | generic/mppresent-generic.cpp \
|
---|
1966 | r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
|
---|
1967 | r0drv/generic/mpnotification-r0drv-generic.cpp \
|
---|
1968 | r0drv/generic/threadctxhooks-r0drv-generic.cpp \
|
---|
1969 | r0drv/haiku/alloc-r0drv-haiku.c \
|
---|
1970 | r0drv/haiku/assert-r0drv-haiku.c \
|
---|
1971 | r0drv/haiku/initterm-r0drv-haiku.c \
|
---|
1972 | r0drv/haiku/memobj-r0drv-haiku.c \
|
---|
1973 | r0drv/haiku/mp-r0drv-haiku.c \
|
---|
1974 | r0drv/haiku/process-r0drv-haiku.c \
|
---|
1975 | r0drv/haiku/RTLogWriteDebugger-r0drv-haiku.c \
|
---|
1976 | r0drv/haiku/RTLogWriteStdOut-r0drv-haiku.c \
|
---|
1977 | r0drv/haiku/semevent-r0drv-haiku.c \
|
---|
1978 | r0drv/haiku/semeventmulti-r0drv-haiku.c \
|
---|
1979 | r0drv/haiku/semfastmutex-r0drv-haiku.c \
|
---|
1980 | r0drv/haiku/semmutex-r0drv-haiku.c \
|
---|
1981 | r0drv/haiku/spinlock-r0drv-haiku.c \
|
---|
1982 | r0drv/haiku/thread-r0drv-haiku.c \
|
---|
1983 | r0drv/haiku/thread2-r0drv-haiku.c \
|
---|
1984 | r0drv/haiku/time-r0drv-haiku.c \
|
---|
1985 | generic/timer-generic.cpp \
|
---|
1986 | r0drv/memobj-r0drv.cpp \
|
---|
1987 | r0drv/powernotification-r0drv.c
|
---|
1988 |
|
---|
1989 | ## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here.
|
---|
1990 |
|
---|
1991 | RuntimeR0Drv_ORDERDEPS.freebsd = \
|
---|
1992 | $(PATH_STAGE)/gen-sys-hdrs/bus_if.h \
|
---|
1993 | $(PATH_STAGE)/gen-sys-hdrs/device_if.h
|
---|
1994 |
|
---|
1995 |
|
---|
1996 | #
|
---|
1997 | # RuntimeGuestR0 - Guest driver runtime.
|
---|
1998 | # This is almost the same as the RuntimeR0Drv, the main difference
|
---|
1999 | # is in the backdoor logging and the lack of sup.h (which should be
|
---|
2000 | # made irrelevant even for RuntimeR0Drv).
|
---|
2001 | #
|
---|
2002 | RuntimeGuestR0_TEMPLATE := VBOXGUESTR0LIB
|
---|
2003 | RuntimeGuestR0_EXTENDS = RuntimeR0Drv
|
---|
2004 | RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES))
|
---|
2005 | RuntimeGuestR0_SOURCES += \
|
---|
2006 | VBox/logbackdoor.cpp
|
---|
2007 |
|
---|
2008 |
|
---|
2009 | #
|
---|
2010 | # RuntimeGuestR0NT4 - Win32 NT4 guest driver runtime.
|
---|
2011 | #
|
---|
2012 | RuntimeGuestR0NT4_EXTENDS = RuntimeGuestR0
|
---|
2013 | RuntimeGuestR0NT4_EXTENDS_BY = appending
|
---|
2014 | RuntimeGuestR0NT4_DEFS = IPRT_TARGET_NT4
|
---|
2015 |
|
---|
2016 |
|
---|
2017 | ifdef VBOX_WITH_RAW_MODE
|
---|
2018 | #
|
---|
2019 | # RuntimeRC - Raw-mode context library.
|
---|
2020 | #
|
---|
2021 | RuntimeRC_TEMPLATE = VBoxRc
|
---|
2022 | RuntimeRC_DEFS = IN_RT_RC RT_WITH_VBOX
|
---|
2023 | RuntimeRC_INCS = include
|
---|
2024 | RuntimeRC_SOURCES := \
|
---|
2025 | common/checksum/crc32.cpp \
|
---|
2026 | common/checksum/crc64.cpp \
|
---|
2027 | common/checksum/md5.cpp \
|
---|
2028 | common/log/log.cpp \
|
---|
2029 | common/log/logellipsis.cpp \
|
---|
2030 | common/log/logrel.cpp \
|
---|
2031 | common/log/logrelellipsis.cpp \
|
---|
2032 | common/log/logcom.cpp \
|
---|
2033 | common/log/logformat.cpp \
|
---|
2034 | common/log/tracebuf.cpp \
|
---|
2035 | common/log/tracedefault.cpp \
|
---|
2036 | common/misc/RTAssertMsg1Weak.cpp \
|
---|
2037 | common/misc/RTAssertMsg2.cpp \
|
---|
2038 | common/misc/RTAssertMsg2Add.cpp \
|
---|
2039 | common/misc/RTAssertMsg2AddWeak.cpp \
|
---|
2040 | common/misc/RTAssertMsg2AddWeakV.cpp \
|
---|
2041 | common/misc/RTAssertMsg2Weak.cpp \
|
---|
2042 | common/misc/RTAssertMsg2WeakV.cpp \
|
---|
2043 | common/misc/assert.cpp \
|
---|
2044 | common/misc/buildconfig.cpp \
|
---|
2045 | common/misc/sanity-c.c \
|
---|
2046 | common/misc/sanity-cpp.cpp \
|
---|
2047 | common/path/RTPathFilename.cpp \
|
---|
2048 | common/string/strformat.cpp \
|
---|
2049 | common/string/strformatnum.cpp \
|
---|
2050 | common/string/strformatrt.cpp \
|
---|
2051 | common/string/strformattype.cpp \
|
---|
2052 | common/string/strncmp.cpp \
|
---|
2053 | common/string/strpbrk.cpp \
|
---|
2054 | common/string/strprintf.cpp \
|
---|
2055 | common/string/RTStrCopy.cpp \
|
---|
2056 | common/string/RTStrCopyEx.cpp \
|
---|
2057 | common/table/avllu32.cpp \
|
---|
2058 | common/table/avlou32.cpp \
|
---|
2059 | common/table/avlogcphys.cpp \
|
---|
2060 | common/table/avlogcptr.cpp \
|
---|
2061 | common/table/avlohcphys.cpp \
|
---|
2062 | common/table/avloioport.cpp \
|
---|
2063 | common/table/avlrogcphys.cpp \
|
---|
2064 | common/table/avlrogcptr.cpp \
|
---|
2065 | common/table/avlroioport.cpp \
|
---|
2066 | common/table/avlroogcptr.cpp \
|
---|
2067 | common/table/avlu32.cpp \
|
---|
2068 | common/time/timeprog.cpp \
|
---|
2069 | common/time/timesup.cpp \
|
---|
2070 | gc/initterm-gc.cpp \
|
---|
2071 | generic/RTAssertShouldPanic-generic.cpp \
|
---|
2072 | generic/errvars-generic.cpp \
|
---|
2073 | \
|
---|
2074 | $(RuntimeNoCrt_SOURCES)
|
---|
2075 |
|
---|
2076 | #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
|
---|
2077 | # RuntimeRC_SOURCES += common/time/timesupA.asm
|
---|
2078 | #else
|
---|
2079 | RuntimeRC_SOURCES += common/time/timesupref.cpp
|
---|
2080 | #endif
|
---|
2081 |
|
---|
2082 | RuntimeRC_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
|
---|
2083 |
|
---|
2084 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
2085 | RuntimeRC_SOURCES += os2/sys0.asm
|
---|
2086 | endif
|
---|
2087 |
|
---|
2088 | if1of ($(KBUILD_TARGET), darwin solaris freebsd)
|
---|
2089 | RuntimeRC_SOURCES += \
|
---|
2090 | common/math/gcc/adddi3.c \
|
---|
2091 | common/math/gcc/anddi3.c \
|
---|
2092 | common/math/gcc/ashldi3.c \
|
---|
2093 | common/math/gcc/ashrdi3.c \
|
---|
2094 | common/math/gcc/cmpdi2.c \
|
---|
2095 | common/math/gcc/divdi3.c \
|
---|
2096 | common/math/gcc/iordi3.c \
|
---|
2097 | common/math/gcc/lshldi3.c \
|
---|
2098 | common/math/gcc/lshrdi3.c \
|
---|
2099 | common/math/gcc/moddi3.c \
|
---|
2100 | common/math/gcc/muldi3.c \
|
---|
2101 | common/math/gcc/negdi2.c \
|
---|
2102 | common/math/gcc/notdi2.c \
|
---|
2103 | common/math/gcc/qdivrem.c \
|
---|
2104 | common/math/gcc/subdi3.c \
|
---|
2105 | common/math/gcc/ucmpdi2.c \
|
---|
2106 | common/math/gcc/udivdi3.c \
|
---|
2107 | common/math/gcc/umoddi3.c \
|
---|
2108 | common/math/gcc/xordi3.c
|
---|
2109 | endif
|
---|
2110 |
|
---|
2111 |
|
---|
2112 | #
|
---|
2113 | # RuntimeRCStub - Raw-mode context startup stub for Windows.
|
---|
2114 | #
|
---|
2115 | RuntimeRCStub_TEMPLATE = VBoxRc
|
---|
2116 | RuntimeRCStub_SOURCES.win = \
|
---|
2117 | nt/NtProcessStartup-stub.cpp
|
---|
2118 |
|
---|
2119 |
|
---|
2120 | endif # VBOX_WITH_RAW_MODE
|
---|
2121 |
|
---|
2122 |
|
---|
2123 | #
|
---|
2124 | # Static library for new & delete for the electric fence.
|
---|
2125 | #
|
---|
2126 | RuntimeEFCPP_TEMPLATE := $(VBoxRT_TEMPLATE)
|
---|
2127 | RuntimeEFCPP_SDKS := $(RuntimeR3_SDKS)
|
---|
2128 | RuntimeEFCPP_SDKS.$(KBUILD_TARGET) := $(RuntimeR3_SDKS.$(KBUILD_TARGET))
|
---|
2129 | RuntimeEFCPP_DEFS := $(RuntimeR3_DEFS)
|
---|
2130 | RuntimeEFCPP_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
|
---|
2131 | RuntimeEFCPP_INCS := $(RuntimeR3_INCS)
|
---|
2132 | RuntimeEFCPP_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
|
---|
2133 | RuntimeEFCPP_SOURCES := r3/alloc-ef-cpp.cpp
|
---|
2134 |
|
---|
2135 |
|
---|
2136 |
|
---|
2137 | #
|
---|
2138 | # The NTDLL mini import library.
|
---|
2139 | #
|
---|
2140 | # Note! The reason for doing this is to avoid importing CRT symbols from the
|
---|
2141 | # NTDLL. We do not wish to do this because:
|
---|
2142 | # - Our compiler is usually a different one and we should use the
|
---|
2143 | # matching CRT,
|
---|
2144 | # - Older versions of NTDLL may not sport all the exports our w2k3 or
|
---|
2145 | # later WINDDK ntdll.lib have and thus we may easily end up with
|
---|
2146 | # images that does not load on older windows versions.
|
---|
2147 | #
|
---|
2148 | RuntimeR3NtDll-amd64_TEMPLATE = VBoxR3Dll
|
---|
2149 | RuntimeR3NtDll-amd64_BLD_TRG_ARCH = amd64
|
---|
2150 | RuntimeR3NtDll-amd64_ARFLAGS = /NODEFAULTLIB /MACHINE:amd64
|
---|
2151 | RuntimeR3NtDll-amd64_SOURCES = \
|
---|
2152 | r3/win/ntdll-mini-implib.c \
|
---|
2153 | r3/win/ntdll-mini-implib.def
|
---|
2154 |
|
---|
2155 | RuntimeR3NtDll-x86_EXTENDS = RuntimeR3NtDll-amd64
|
---|
2156 | RuntimeR3NtDll-x86_BLD_TRG_ARCH = x86
|
---|
2157 | RuntimeR3NtDll-x86_ARFLAGS = /NODEFAULTLIB /MACHINE:x86
|
---|
2158 |
|
---|
2159 |
|
---|
2160 | #
|
---|
2161 | # Bag of tricks required for making VCC100 output binaries work on NT4, W2K
|
---|
2162 | # early XP and early W2K3.
|
---|
2163 | #
|
---|
2164 | RuntimeR3VccTricks_TEMPLATE = VBoxR3Dll
|
---|
2165 | RuntimeR3VccTricks_SOURCES = \
|
---|
2166 | r3/win/vcc100-kernel32-fakes.cpp \
|
---|
2167 | r3/win/vcc100-kernel32-fakesA.asm
|
---|
2168 |
|
---|
2169 |
|
---|
2170 | #
|
---|
2171 | # errmsg.cpp depends on a generated header.
|
---|
2172 | #
|
---|
2173 | common/err/errmsg.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h
|
---|
2174 | common/err/errmsg.cpp_INCS = $(IPRT_OUT_DIR)
|
---|
2175 |
|
---|
2176 | win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgcomdata.h
|
---|
2177 | win/errmsgwin.cpp_INCS = $(IPRT_OUT_DIR)
|
---|
2178 |
|
---|
2179 | # Our COM errors only for R3 libraries on the host
|
---|
2180 | define def_errmsgwin_deps
|
---|
2181 | $(lib)_win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
|
---|
2182 | $(lib)_common/err/errmsgxpcom.cpp_INCS = $(IPRT_OUT_DIR)
|
---|
2183 | $(lib)_common/err/errmsgxpcom.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
|
---|
2184 | endef
|
---|
2185 | $(foreach lib,RuntimeR3 RuntimeBldProg VBoxRT,$(eval $(def_errmsgwin_deps)))
|
---|
2186 |
|
---|
2187 |
|
---|
2188 | #
|
---|
2189 | # Generate the status code data.
|
---|
2190 | #
|
---|
2191 | $(IPRT_OUT_DIR)/errmsgdata.h: \
|
---|
2192 | $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsg.sed \
|
---|
2193 | $(PATH_ROOT)/include/iprt/err.h \
|
---|
2194 | $(PATH_ROOT)/include/VBox/err.h \
|
---|
2195 | | $$(dir $$@)
|
---|
2196 | $(call MSG_GENERATE,,$@,$(filter %.h,$^))
|
---|
2197 | $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
|
---|
2198 |
|
---|
2199 | ## @todo r=bird: rename this to indicate that it's not only COM errors, but all win32/64 errors.
|
---|
2200 | $(IPRT_OUT_DIR)/errmsgcomdata.h: \
|
---|
2201 | $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsgcom.sed \
|
---|
2202 | $$(PATH_SDK_$(VBOX_WINPSDK)_INC)/WinError.h \
|
---|
2203 | | $$(dir $$@)
|
---|
2204 | $(call MSG_GENERATE,,$@,$(filter %.h,$^))
|
---|
2205 | $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
|
---|
2206 |
|
---|
2207 | $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts +| $(IPRT_OUT_DIR)/errmsgvboxcomdata.h: \
|
---|
2208 | $(VBOX_PATH_RUNTIME_SRC)/VBox/errmsgvboxcom.xsl \
|
---|
2209 | $(VBOX_XIDL_FILE_SRC) \
|
---|
2210 | | $$(dir $$@)
|
---|
2211 | $(call MSG_GENERATE,,$@,$(filter %.xidl,$^))
|
---|
2212 | $(QUIET)$(VBOX_XSLTPROC) -o $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts $< $(filter %.xidl,$^)
|
---|
2213 | $(QUIET)$(CP) --changed -fv $(IPRT_OUT_DIR)/errmsgvboxcomdata.h.ts $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
|
---|
2214 |
|
---|
2215 |
|
---|
2216 | if "$(KBUILD_TARGET)" == "freebsd"
|
---|
2217 | #
|
---|
2218 | # FreeBSDGeneratedKernelHeaders - Generate some kernel interface headers.
|
---|
2219 | #
|
---|
2220 | # These are used by:
|
---|
2221 | # - The RTMp* API in IPRT.
|
---|
2222 | # - VBoxGuest
|
---|
2223 | #
|
---|
2224 | # Note! We cannot give a output path to the awk program, it will always
|
---|
2225 | # generate the header next to the source. So, we'll have to temporarily copy
|
---|
2226 | # the source file to the destination directory to work.
|
---|
2227 | #
|
---|
2228 | VBOX_AWK := /usr/bin/awk
|
---|
2229 | INSTALLS += FreeBSDGeneratedKernelHeaders
|
---|
2230 | FreeBSDGeneratedKernelHeaders_INST = gen-sys-hdrs/
|
---|
2231 | FreeBSDGeneratedKernelHeaders_SOURCES = \
|
---|
2232 | $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h \
|
---|
2233 | $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h \
|
---|
2234 | $(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h
|
---|
2235 | FreeBSDGeneratedKernelHeaders_CLEAN = $(FreeBSDGeneratedKernelHeaders_SOURCES)
|
---|
2236 |
|
---|
2237 | $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h: $(VBOX_FREEBSD_SRC)/kern/bus_if.m | $$(dir $$@)
|
---|
2238 | $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
|
---|
2239 | $(QUIET)$(CP) -f $< $(@D)/bus_if.m
|
---|
2240 | $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/bus_if.m -h -p
|
---|
2241 | $(QUIET)$(RM) $(@D)/bus_if.m
|
---|
2242 |
|
---|
2243 | $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h: $(VBOX_FREEBSD_SRC)/kern/device_if.m | $$(dir $$@)
|
---|
2244 | $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
|
---|
2245 | $(QUIET)$(CP) -f $< $(@D)/device_if.m
|
---|
2246 | $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/device_if.m -h -p
|
---|
2247 | $(QUIET)$(RM) $(@D)/device_if.m
|
---|
2248 |
|
---|
2249 | $$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h: $(VBOX_FREEBSD_SRC)/dev/pci/pci_if.m | $$(dir $$@)
|
---|
2250 | $(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
|
---|
2251 | $(QUIET)$(CP) -f $< $(@D)/pci_if.m
|
---|
2252 | $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/pci_if.m -h -p
|
---|
2253 | $(QUIET)$(RM) $(@D)/pci_if.m
|
---|
2254 | endif # FreeBSD
|
---|
2255 |
|
---|
2256 |
|
---|
2257 | #
|
---|
2258 | # Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
|
---|
2259 | #
|
---|
2260 | ldrELFRelocatable.cpp.o: ldrELF.o
|
---|
2261 | ldrELFRelocatable.cpp.obj: ldrELF.obj
|
---|
2262 |
|
---|
2263 |
|
---|
2264 | #
|
---|
2265 | # Doxygen documentation.
|
---|
2266 | #
|
---|
2267 | IPRT_DOXYFILE_INPUT_DIRS = \
|
---|
2268 | $(PATH_ROOT)/include/iprt \
|
---|
2269 | $(PATH_ROOT)/include/iprt/cpp \
|
---|
2270 | $(PATH_ROOT)/include/iprt/linux \
|
---|
2271 | $(PATH_ROOT)/include/iprt/nocrt \
|
---|
2272 | $(PATH_ROOT)/include/iprt/nocrt/x86 \
|
---|
2273 | $(PATH_ROOT)/include/iprt/nocrt/amd64 \
|
---|
2274 | $(PATH_ROOT)/include/iprt/nocrt/compiler \
|
---|
2275 | $(VBOX_PATH_RUNTIME_SRC)/include/internal \
|
---|
2276 | $(VBOX_PATH_RUNTIME_SRC)/common/alloc \
|
---|
2277 | $(VBOX_PATH_RUNTIME_SRC)/common/asm \
|
---|
2278 | $(VBOX_PATH_RUNTIME_SRC)/common/checksum \
|
---|
2279 | $(VBOX_PATH_RUNTIME_SRC)/common/dbg \
|
---|
2280 | $(VBOX_PATH_RUNTIME_SRC)/common/err \
|
---|
2281 | $(VBOX_PATH_RUNTIME_SRC)/common/ldr \
|
---|
2282 | $(VBOX_PATH_RUNTIME_SRC)/common/log \
|
---|
2283 | $(VBOX_PATH_RUNTIME_SRC)/common/math \
|
---|
2284 | $(VBOX_PATH_RUNTIME_SRC)/common/math/amd64 \
|
---|
2285 | $(VBOX_PATH_RUNTIME_SRC)/common/math/gcc \
|
---|
2286 | $(VBOX_PATH_RUNTIME_SRC)/common/math/x86 \
|
---|
2287 | $(VBOX_PATH_RUNTIME_SRC)/common/misc \
|
---|
2288 | $(VBOX_PATH_RUNTIME_SRC)/common/path \
|
---|
2289 | $(VBOX_PATH_RUNTIME_SRC)/common/rand \
|
---|
2290 | $(VBOX_PATH_RUNTIME_SRC)/common/string \
|
---|
2291 | $(VBOX_PATH_RUNTIME_SRC)/common/table \
|
---|
2292 | $(VBOX_PATH_RUNTIME_SRC)/common/time \
|
---|
2293 | $(VBOX_PATH_RUNTIME_SRC)/VBox \
|
---|
2294 | $(foreach dir, $(VBOX_PATH_RUNTIME_SRC) $(VBOX_PATH_RUNTIME_SRC)/r3 $(VBOX_PATH_RUNTIME_SRC)/r0drv,\
|
---|
2295 | $(dir) \
|
---|
2296 | $(dir)/darwin \
|
---|
2297 | $(dir)/haiku \
|
---|
2298 | $(dir)/linux \
|
---|
2299 | $(dir)/nt \
|
---|
2300 | $(dir)/os2 \
|
---|
2301 | $(dir)/solaris \
|
---|
2302 | $(dir)/win \
|
---|
2303 | $(dir)/win32 \
|
---|
2304 | $(dir)/win64 \
|
---|
2305 | $(dir)/generic \
|
---|
2306 | )
|
---|
2307 |
|
---|
2308 | # These must come first in order to make things look nice.
|
---|
2309 | IPRT_DOXYFILE_INPUT_FIRST =\
|
---|
2310 | $(PATH_ROOT)/include/iprt/cdefs.h \
|
---|
2311 | $(PATH_ROOT)/include/iprt/types.h \
|
---|
2312 | $(PATH_ROOT)/include/iprt/runtime.h \
|
---|
2313 | $(PATH_ROOT)/include/iprt/param.h \
|
---|
2314 | $(PATH_ROOT)/include/iprt/assert.h \
|
---|
2315 | $(PATH_ROOT)/include/iprt/asm.h \
|
---|
2316 |
|
---|
2317 | IPRT_DOXYFILE_INPUT := \
|
---|
2318 | $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(IPRT_DOXYFILE_INPUT_DIRS)))) ) \
|
---|
2319 | $(foreach dir, $(IPRT_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
|
---|
2320 | IPRT_DOXYFILE_INPUT := \
|
---|
2321 | $(IPRT_DOXYFILE_INPUT_FIRST) \
|
---|
2322 | $(filter-out $(IPRT_DOXYFILE_INPUT_FIRST), $(IPRT_DOXYFILE_INPUT))
|
---|
2323 |
|
---|
2324 |
|
---|
2325 | IPRT_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/iprt
|
---|
2326 | BLDDIRS += $(IPRT_DOXYFILE_OUTPUT)
|
---|
2327 |
|
---|
2328 | includedep $(IPRT_OUT_DIR)/Doxyfile.iprt.dep
|
---|
2329 |
|
---|
2330 | # Generate the Doxyfile
|
---|
2331 | $(IPRT_OUT_DIR)/Doxyfile.iprt: \
|
---|
2332 | $(VBOX_PATH_RUNTIME_SRC)/Doxyfile \
|
---|
2333 | $(VBOX_PATH_RUNTIME_SRC)/Makefile.kmk \
|
---|
2334 | $(comp-vars IPRT_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
|
---|
2335 | $(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
|
---|
2336 | | $$(dir $$@)
|
---|
2337 | $(RM) -f $@ $@.tmp $@.dep
|
---|
2338 | $(CP) -f $(VBOX_PATH_RUNTIME_SRC)/Doxyfile $@.tmp
|
---|
2339 | $(APPEND) $@.tmp
|
---|
2340 | $(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(IPRT_DOXYFILE_OUTPUT)"
|
---|
2341 | $(APPEND) $@.tmp "WARN_LOGFILE = $(IPRT_DOXYFILE_OUTPUT)/errors"
|
---|
2342 | $(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include include . common/table"
|
---|
2343 | $(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
|
---|
2344 | $(APPEND) $@.tmp "PREDEFINED += $(ARCH_BITS_DEFS)"
|
---|
2345 | $(APPEND) $@.tmp
|
---|
2346 | $(APPEND) $@.tmp "INPUT = $(IPRT_DOXYFILE_INPUT)"
|
---|
2347 | $(APPEND) $@.tmp
|
---|
2348 | $(MV) -f $@.tmp $@
|
---|
2349 | @$(APPEND) $@.dep "DOXYGEN_OUTPUT_PREV = $(IPRT_DOXYFILE_OUTPUT)"
|
---|
2350 | @$(APPEND) $@.dep "DOXYGEN_INPUT_PREV = $(IPRT_DOXYFILE_INPUT)"
|
---|
2351 |
|
---|
2352 | # Do the actual job.
|
---|
2353 | $(IPRT_OUT_DIR)/docs.iprt: $(IPRT_OUT_DIR)/Doxyfile.iprt $$(IPRT_DOXYFILE_INPUT) | $(IPRT_DOXYFILE_OUTPUT)/
|
---|
2354 | $(RM) -f $(wildcard $(IPRT_DOXYFILE_OUTPUT)/html/*) $(IPRT_OUT_DIR)/docs.iprt
|
---|
2355 | doxygen $(IPRT_OUT_DIR)/Doxyfile.iprt
|
---|
2356 | $(APPEND) $(IPRT_OUT_DIR)/docs.iprt
|
---|
2357 |
|
---|
2358 | # aliases
|
---|
2359 | docs.iprt: $(IPRT_OUT_DIR)/docs.iprt
|
---|
2360 | if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
|
---|
2361 | docs: $(IPRT_OUT_DIR)/docs.iprt
|
---|
2362 | endif
|
---|
2363 |
|
---|
2364 | test-doxygen::
|
---|
2365 | @echo test-$(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE)
|
---|
2366 | @echo $(IPRT_DOXYFILE_OUTPUT)
|
---|
2367 | @echo $(DOXYGEN_OUTPUT_PREV)
|
---|
2368 | @echo $(IPRT_DOXYFILE_INPUT)
|
---|
2369 |
|
---|
2370 |
|
---|
2371 | #
|
---|
2372 | # Test mangling.
|
---|
2373 | #
|
---|
2374 | if1of ($(LIBRARIES),RuntimeR3 RuntimeR0 RuntimeR0Drv RuntimeRC)
|
---|
2375 | test-mangling:: $(IPRT_OUT_DIR)/mangling.run
|
---|
2376 | OTHERS += $(IPRT_OUT_DIR)/mangling.run
|
---|
2377 | CLEANS += $(IPRT_OUT_DIR)/mangling.run
|
---|
2378 | $(IPRT_OUT_DIR)/mangling.run: \
|
---|
2379 | $$(RuntimeR3_1_TARGET) \
|
---|
2380 | $$(RuntimeR0_1_TARGET) \
|
---|
2381 | $$(RuntimeR0Drv_1_TARGET) \
|
---|
2382 | $$(RuntimeRC_1_TARGET)
|
---|
2383 | if1of ($(KBUILD_TARGET), win os2)
|
---|
2384 | $(call MSG_L1,IPRT: skipped mangling test.)
|
---|
2385 | else
|
---|
2386 | # Generate a SED script from mangling.h that checks for known symbols.
|
---|
2387 | @$(SED) \
|
---|
2388 | -e '/# *define.*RT_MANGLER/!d' \
|
---|
2389 | -e 's/^.*RT_MANGLER(\([^)][^)]*\)).*$(DOLLAR)/\/^\1$(DOLLAR)\/b ok/' \
|
---|
2390 | $(PATH_ROOT)/include/iprt/mangling.h \
|
---|
2391 | --output "$@"
|
---|
2392 | @$(APPEND) -n '$@' \
|
---|
2393 | ':bad' \
|
---|
2394 | 's/^\(.*\)$(DOLLAR)/error: Missing # define \1 RT_MANGLER(\1)/' \
|
---|
2395 | 'p' \
|
---|
2396 | 'q 1' \
|
---|
2397 | '' \
|
---|
2398 | ':ok' \
|
---|
2399 | 'd'
|
---|
2400 | # Find the best way to generate a symbol list and subject it to mangling.h.
|
---|
2401 | if $(intersects $(KBUILD_TARGET), linux) && "$(VBOX_GCC_fvisibility-hidden)"
|
---|
2402 | $(call MSG_L1,IPRT: Testing mangling and visiblity...)
|
---|
2403 | @readelf -Ws $^ \
|
---|
2404 | | $(SED) \
|
---|
2405 | -e '/^ *[[:digit:]]\+:/!d' \
|
---|
2406 | -e 's/^ \+[[:digit:]]\+: \+[[:xdigit:]]\+ \+[[:digit:]]\+ \+//' \
|
---|
2407 | -e '/^SECTION/d' \
|
---|
2408 | -e '/^FILE/d' \
|
---|
2409 | -e 's/^[[:alpha:]]\+ \+//' \
|
---|
2410 | -e '/LOCAL/d' \
|
---|
2411 | -e 's/^[[:alpha:]]\+ \+//' \
|
---|
2412 | -e '/^HIDDEN/d' \
|
---|
2413 | -e 's/^[[:alpha:]]\+ \+//' \
|
---|
2414 | -e '/^UND/d' \
|
---|
2415 | -e 's/^[[:digit:]]\+ \+//' \
|
---|
2416 | \
|
---|
2417 | -e '/^nocrt_/d' \
|
---|
2418 | -e '/^memchr/d' \
|
---|
2419 | -e '/^memcmp/d' \
|
---|
2420 | -e '/^memcpy/d' \
|
---|
2421 | -e '/^mempcpy/d' \
|
---|
2422 | -e '/^memmove/d' \
|
---|
2423 | -e '/^memset/d' \
|
---|
2424 | -e '/^strchr/d' \
|
---|
2425 | -e '/^strpbrk/d' \
|
---|
2426 | -e '/^_Z7strpbrk/d' \
|
---|
2427 | -e '/^strcmp/d' \
|
---|
2428 | -e '/^strcpy/d' \
|
---|
2429 | -e '/^strncpy/d' \
|
---|
2430 | -e '/^strlen/d' \
|
---|
2431 | -e '/^_Z[[:alpha:]]*[[:digit:]]\+RTC/d' \
|
---|
2432 | \
|
---|
2433 | -e '/^_ZNSt9bad_allocC1Ev/d' \
|
---|
2434 | -e '/^_ZNSt9exceptionC2Ev/d' \
|
---|
2435 | \
|
---|
2436 | -e '/^_Z[[:digit:]]\+dbus/d' \
|
---|
2437 | -e '/^_Z13RTDBusLoadLibv/d' \
|
---|
2438 | \
|
---|
2439 | -e '/^VBoxHost_/d'\
|
---|
2440 | -e '/^VBoxGuest_/d'\
|
---|
2441 | | $(SED) -nf "$@"
|
---|
2442 | else
|
---|
2443 | $(call MSG_L1,IPRT: Testing mangling...)
|
---|
2444 | nm $^ | $(SED) -n \
|
---|
2445 | -e 's/^[0-9a-f][0-9a-f]* //' \
|
---|
2446 | -e '/^[TUDB] /!d' \
|
---|
2447 | -e 's/^. //' \
|
---|
2448 | \
|
---|
2449 | -e '/^g_cchrt/d'\
|
---|
2450 | -e '/^g_frt/d'\
|
---|
2451 | -e '/^g_offrt/d'\
|
---|
2452 | -e '/^g_pfnrt/d'\
|
---|
2453 | -e '/^g_rt/d'\
|
---|
2454 | -e '/^g_szrt/d'\
|
---|
2455 | -e '/^g_ProcessSelf/d'\
|
---|
2456 | -e '/^g_u64ProgramStart/d'\
|
---|
2457 | -e '/^g_enmProcessPriority/d'\
|
---|
2458 | -e '/^g_hDbgModStrCache/d'\
|
---|
2459 | \
|
---|
2460 | -e '/^RTDBusLoadLib/d' \
|
---|
2461 | \
|
---|
2462 | -e '/^RT/p' \
|
---|
2463 | -e '/^g_/p' \
|
---|
2464 | | $(SED) -nf "$@"
|
---|
2465 | endif
|
---|
2466 | endif
|
---|
2467 | endif
|
---|
2468 | $(QUIET)$(APPEND) -t $@
|
---|
2469 |
|
---|
2470 | if !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_TESTSUITE) && !defined(VBOX_ONLY_DOCS)
|
---|
2471 | #
|
---|
2472 | # Windows build tool.
|
---|
2473 | #
|
---|
2474 | BLDPROGS.win += ntBldSymDb
|
---|
2475 | ntBldSymDb_TEMPLATE = VBoxAdvBldProg
|
---|
2476 | ntBldSymDb_INCS = .
|
---|
2477 | ntBldSymDb_SOURCES = r0drv/nt/ntBldSymDb.cpp
|
---|
2478 | endif
|
---|
2479 |
|
---|
2480 | #
|
---|
2481 | # Generate the rules (we're the to sub-makefile).
|
---|
2482 | #
|
---|
2483 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
2484 |
|
---|