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