1 | # $Id: Makefile.kmk 9633 2008-06-11 23:22:50Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the IPRT (IPRT).
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 | # The contents of this file may alternatively be used under the terms
|
---|
18 | # of the Common Development and Distribution License Version 1.0
|
---|
19 | # (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | # VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | # CDDL are applicable instead of those of the GPL.
|
---|
22 | #
|
---|
23 | # You may elect to license modified versions of this file under the
|
---|
24 | # terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | #
|
---|
26 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
27 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
28 | # additional information or have any questions.
|
---|
29 | #
|
---|
30 |
|
---|
31 |
|
---|
32 | DEPTH ?= ../../..
|
---|
33 | SUB_DEPTH = .
|
---|
34 | include $(KBUILD_PATH)/subheader.kmk
|
---|
35 |
|
---|
36 | ifdef VBOX_ONLY_ADDITIONS
|
---|
37 | #
|
---|
38 | # Only build the additions, sort out the legacy names first.
|
---|
39 | #
|
---|
40 | LIBRARIES = RuntimeGuestR0 RuntimeGuestR3 RuntimeGuestR3Mini
|
---|
41 | #LIBRARIES.os2 = RuntimeGuestR0OS2Warp3
|
---|
42 | LIBRARIES.win.x86 = RuntimeGuestR0NT4
|
---|
43 | ifndef VBOX_WITH_ADDITION_DRIVERS
|
---|
44 | if1of ($(KBUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0.
|
---|
45 | LIBRARIES := $(filter-out RuntimeGuestR0, $(LIBRARIES))
|
---|
46 | endif
|
---|
47 | endif
|
---|
48 |
|
---|
49 | else
|
---|
50 |
|
---|
51 | #
|
---|
52 | # Normal build.
|
---|
53 | #
|
---|
54 | include testcase/Makefile.kmk
|
---|
55 |
|
---|
56 | BLDPROGS = uniread
|
---|
57 | LIBRARIES = RuntimeR3 RuntimeR0 RuntimeGC RuntimeEFCPP RuntimeR3NoCRTGCC
|
---|
58 | ifdef VBOX_WITH_VBOXDRV
|
---|
59 | LIBRARIES += RuntimeR0Drv
|
---|
60 | endif
|
---|
61 | ifdef VBOX_WITH_ADDITIONS
|
---|
62 | LIBRARIES += RuntimeGuestR0 RuntimeGuestR3 RuntimeGuestR3Mini
|
---|
63 | #LIBRARIES.os2 = RuntimeGuestR0OS2Warp3
|
---|
64 | LIBRARIES.win.x86 = RuntimeGuestR0NT4
|
---|
65 | ifndef VBOX_WITH_ADDITION_DRIVERS
|
---|
66 | if1of ($(KBUILD_TARGET), linux l4) # All drivers are optional, can skip RuntimeGuestR0.
|
---|
67 | LIBRARIES := $(filter-out RuntimeGuestR0, $(LIBRARIES))
|
---|
68 | endif
|
---|
69 | endif
|
---|
70 | endif # VBOX_WITH_ADDITIONS
|
---|
71 | LIBRARIES.l4 = RuntimeR3L4 RuntimeLnxHostR3
|
---|
72 | DLLS = VBoxRT
|
---|
73 | OTHER_CLEAN = \
|
---|
74 | $(PATH_TARGET)/errmsgdata.h \
|
---|
75 | $(PATH_TARGET)/errmsgcomdata.h \
|
---|
76 | $(PATH_TARGET)/Doxyfile \
|
---|
77 | $(PATH_TARGET)/Doxyfile.dep \
|
---|
78 | $(PATH_TARGET)/docs.iprt
|
---|
79 |
|
---|
80 | endif
|
---|
81 |
|
---|
82 |
|
---|
83 | #
|
---|
84 | # Unicode Specification reader used to regenerate unidata.cpp.
|
---|
85 | #
|
---|
86 | uniread_TEMPLATE = VBOXBLDPROG
|
---|
87 | uniread_SOURCES = common/string/uniread.cpp
|
---|
88 | uniread_INCS = include
|
---|
89 |
|
---|
90 | #
|
---|
91 | # Win64 assembly sources.
|
---|
92 | #
|
---|
93 | RuntimeWin64ASM_SOURCES = \
|
---|
94 | win/amd64/ASMAtomicBitClear.asm \
|
---|
95 | win/amd64/ASMAtomicBitTestAndToggle.asm \
|
---|
96 | win/amd64/ASMAtomicBitToggle.asm \
|
---|
97 | win/amd64/ASMAtomicReadU64.asm \
|
---|
98 | win/amd64/ASMAtomicXchgU16.asm \
|
---|
99 | win/amd64/ASMAtomicXchgU8.asm \
|
---|
100 | win/amd64/ASMBitFirstClear.asm \
|
---|
101 | win/amd64/ASMBitFirstSet.asm \
|
---|
102 | win/amd64/ASMGetCS.asm \
|
---|
103 | win/amd64/ASMGetDS.asm \
|
---|
104 | win/amd64/ASMGetES.asm \
|
---|
105 | win/amd64/ASMGetFlags.asm \
|
---|
106 | win/amd64/ASMGetFS.asm \
|
---|
107 | win/amd64/ASMGetGS.asm \
|
---|
108 | win/amd64/ASMGetIDTR.asm \
|
---|
109 | win/amd64/ASMGetGDTR.asm \
|
---|
110 | win/amd64/ASMGetTR.asm \
|
---|
111 | win/amd64/ASMGetSS.asm \
|
---|
112 | win/amd64/ASMProbeReadByte.asm \
|
---|
113 | win/amd64/ASMSetFlags.asm \
|
---|
114 | win/amd64/ASMGetDR0.asm \
|
---|
115 | win/amd64/ASMGetDR1.asm \
|
---|
116 | win/amd64/ASMGetDR2.asm \
|
---|
117 | win/amd64/ASMGetDR3.asm \
|
---|
118 | win/amd64/ASMGetDR6.asm \
|
---|
119 | win/amd64/ASMGetDR7.asm \
|
---|
120 | common/asm/ASMMultU64ByU32DivByU32.asm
|
---|
121 |
|
---|
122 | #
|
---|
123 | # Win32 assembly sources.
|
---|
124 | #
|
---|
125 | RuntimeWin32ASM_SOURCES = \
|
---|
126 | common/asm/ASMMultU64ByU32DivByU32.asm
|
---|
127 |
|
---|
128 | #
|
---|
129 | # RuntimeR3 - Static Runtime for Ring-3 executables.
|
---|
130 | #
|
---|
131 | RuntimeR3_TEMPLATE = VBOXR3EXE
|
---|
132 | RuntimeR3_SDKS.win = WINPSDK W2K3DDK
|
---|
133 | RuntimeR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX
|
---|
134 | ifdef IPRT_WITH_KSTUFF
|
---|
135 | RuntimeR3_DEFS += LDR_WITH_KLDR
|
---|
136 | endif
|
---|
137 | ifdef VBOX_MAIN_RELEASE_LOG ## @todo (dmik): temporary, until RTThreadSelf/RTThreadAdopt are properly updated
|
---|
138 | RuntimeR3_DEFS += RTCRITSECT_STRICT
|
---|
139 | endif
|
---|
140 | RuntimeR3_INCS = \
|
---|
141 | include \
|
---|
142 | $(PATH_ROOT)/src/libs/liblzf-1.51
|
---|
143 | ifdef IPRT_WITH_KSTUFF
|
---|
144 | RuntimeR3_INCS += \
|
---|
145 | $(PATH_ROOT)/src/libs/kStuff/kStuff/include
|
---|
146 | endif
|
---|
147 | RuntimeR3_INCS.l4 = \
|
---|
148 | $(L4_INCDIR)
|
---|
149 | # for iconv.h
|
---|
150 | RuntimeR3_INCS.freebsd = \
|
---|
151 | /usr/local/include
|
---|
152 |
|
---|
153 |
|
---|
154 | # RuntimeR3_INCS.solaris = \
|
---|
155 | # /usr/include
|
---|
156 |
|
---|
157 | RuntimeR3_SOURCES = \
|
---|
158 | common/alloc/alloc.cpp \
|
---|
159 | common/alloc/heapsimple.cpp \
|
---|
160 | common/checksum/crc32.cpp \
|
---|
161 | common/checksum/crc64.cpp \
|
---|
162 | common/checksum/md5.cpp \
|
---|
163 | common/err/errmsg.cpp \
|
---|
164 | common/err/RTErrConvertFromErrno.cpp \
|
---|
165 | common/ldr/ldr.cpp \
|
---|
166 | common/ldr/ldrELF.cpp \
|
---|
167 | common/ldr/ldrEx.cpp \
|
---|
168 | common/ldr/ldrFile.cpp \
|
---|
169 | common/ldr/ldrNative.cpp \
|
---|
170 | common/ldr/ldrPE.cpp \
|
---|
171 | common/log/log.cpp \
|
---|
172 | common/log/logcom.cpp \
|
---|
173 | common/log/logformat.cpp \
|
---|
174 | common/misc/assert.cpp \
|
---|
175 | common/misc/cidr.cpp \
|
---|
176 | common/misc/getopt.cpp \
|
---|
177 | common/misc/rand.cpp \
|
---|
178 | common/misc/req.cpp \
|
---|
179 | common/misc/sanity-c.c \
|
---|
180 | common/misc/sanity-cpp.cpp \
|
---|
181 | common/misc/semspingpong.cpp \
|
---|
182 | common/misc/thread.cpp \
|
---|
183 | common/misc/zip.cpp \
|
---|
184 | common/string/straprintf.cpp \
|
---|
185 | common/string/strformat.cpp \
|
---|
186 | common/string/strformatrt.cpp \
|
---|
187 | common/string/strformattype.cpp \
|
---|
188 | common/string/string.cpp \
|
---|
189 | common/string/strprintf.cpp \
|
---|
190 | common/string/strspace.cpp \
|
---|
191 | common/string/strstrip.cpp \
|
---|
192 | common/string/strtonum.cpp \
|
---|
193 | common/string/uni.cpp \
|
---|
194 | common/string/unidata.cpp \
|
---|
195 | common/string/utf-16.cpp \
|
---|
196 | common/string/utf-8.cpp \
|
---|
197 | common/table/avlgcptr.cpp \
|
---|
198 | common/table/avlhcphys.cpp \
|
---|
199 | common/table/avllu32.cpp \
|
---|
200 | common/table/avlou32.cpp \
|
---|
201 | common/table/avlogcphys.cpp \
|
---|
202 | common/table/avlogcptr.cpp \
|
---|
203 | common/table/avlohcphys.cpp \
|
---|
204 | common/table/avloioport.cpp \
|
---|
205 | common/table/avlpv.cpp \
|
---|
206 | common/table/avlrgcptr.cpp \
|
---|
207 | common/table/avlrogcphys.cpp \
|
---|
208 | common/table/avlrogcptr.cpp \
|
---|
209 | common/table/avlroioport.cpp \
|
---|
210 | common/table/avlroogcptr.cpp \
|
---|
211 | common/table/avlu32.cpp \
|
---|
212 | common/table/avlul.cpp \
|
---|
213 | common/table/table.cpp \
|
---|
214 | common/time/time.cpp \
|
---|
215 | common/time/timeprog.cpp \
|
---|
216 | common/time/timesup.cpp \
|
---|
217 | generic/critsect-generic.cpp \
|
---|
218 | generic/env-generic.cpp \
|
---|
219 | generic/RTFileCopy-generic.cpp \
|
---|
220 | generic/RTFileReadAll-generic.cpp \
|
---|
221 | generic/RTFileReadAllEx-generic.cpp \
|
---|
222 | generic/RTFileReadAllByHandle-generic.cpp \
|
---|
223 | generic/RTFileReadAllByHandleEx-generic.cpp \
|
---|
224 | generic/RTFileReadAllFree-generic.cpp \
|
---|
225 | generic/RTLogWriteStdErr-generic.cpp \
|
---|
226 | generic/RTLogWriteStdOut-generic.cpp \
|
---|
227 | generic/RTLogWriteUser-generic.cpp \
|
---|
228 | generic/semfastmutex-generic.cpp \
|
---|
229 | generic/spinlock-generic.cpp \
|
---|
230 | r3/alloc-ef.cpp \
|
---|
231 | r3/alloc.cpp \
|
---|
232 | r3/dir.cpp \
|
---|
233 | r3/fileio.cpp \
|
---|
234 | r3/fs.cpp \
|
---|
235 | r3/init.cpp \
|
---|
236 | r3/path.cpp \
|
---|
237 | r3/process.cpp \
|
---|
238 | r3/stream.cpp \
|
---|
239 | r3/tcp.cpp
|
---|
240 |
|
---|
241 | #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
|
---|
242 | # RuntimeR3_SOURCES += common/time/timesupA.asm
|
---|
243 | #else
|
---|
244 | RuntimeR3_SOURCES += common/time/timesupref.cpp
|
---|
245 | #endif
|
---|
246 |
|
---|
247 | ifdef IPRT_WITH_KSTUFF
|
---|
248 | RuntimeR3_SOURCES += \
|
---|
249 | common/ldr/ldrkStuff.cpp
|
---|
250 | endif
|
---|
251 |
|
---|
252 | # VBox specific stuff.
|
---|
253 | RuntimeR3_SOURCES += \
|
---|
254 | VBox/strformat-vbox.cpp \
|
---|
255 | VBox/RTAssertDoBreakpoint-vbox.cpp \
|
---|
256 | VBox/log-vbox.cpp
|
---|
257 | ifneq ($(KBUILD_TARGET),win)
|
---|
258 | RuntimeR3_SOURCES += \
|
---|
259 | common/err/errmsgxpcom.cpp
|
---|
260 | endif
|
---|
261 |
|
---|
262 | RuntimeR3_SOURCES.win = \
|
---|
263 | generic/rand-stubs-generic.cpp \
|
---|
264 | generic/RTDirQueryInfo-generic.cpp \
|
---|
265 | generic/RTDirSetTimes-generic.cpp \
|
---|
266 | generic/semnoint-generic.cpp \
|
---|
267 | generic/semsrw-generic.cpp \
|
---|
268 | nt/RTErrConvertFromNtStatus.cpp \
|
---|
269 | r3/posix/env-posix.cpp \
|
---|
270 | r3/win/alloc-win.cpp \
|
---|
271 | r3/win/dir-win.cpp \
|
---|
272 | r3/win/fileio-win.cpp \
|
---|
273 | r3/win/fs-win.cpp \
|
---|
274 | r3/win/ldrNative-win.cpp \
|
---|
275 | r3/win/mp-win.cpp \
|
---|
276 | r3/win/path-win.cpp \
|
---|
277 | r3/win/process-win.cpp \
|
---|
278 | r3/win/RTLogWriteDebugger-win.cpp \
|
---|
279 | r3/win/sched-win.cpp \
|
---|
280 | r3/win/sems-win.cpp \
|
---|
281 | r3/win/system-win.cpp \
|
---|
282 | r3/win/thread-win.cpp \
|
---|
283 | r3/win/time-win.cpp \
|
---|
284 | r3/win/timer-win.cpp \
|
---|
285 | r3/win/tls-win.cpp \
|
---|
286 | r3/win/utf16locale-win.cpp \
|
---|
287 | r3/win/utf8-win.cpp \
|
---|
288 | r3/win/uuid-win.cpp \
|
---|
289 | win/errmsgwin.cpp \
|
---|
290 | win/RTErrConvertFromWin32.cpp
|
---|
291 |
|
---|
292 | RuntimeR3_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
|
---|
293 | RuntimeR3_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
|
---|
294 |
|
---|
295 | RuntimeR3_SOURCES.linux = \
|
---|
296 | generic/pathhost-generic.cpp \
|
---|
297 | generic/RTDirQueryInfo-generic.cpp \
|
---|
298 | generic/RTDirSetTimes-generic.cpp \
|
---|
299 | generic/RTFileMove-generic.cpp \
|
---|
300 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
301 | generic/RTTimeLocalNow-generic.cpp \
|
---|
302 | generic/RTTimerCreate-generic.cpp \
|
---|
303 | generic/utf16locale-generic.cpp \
|
---|
304 | generic/uuid-generic.cpp \
|
---|
305 | r3/linux/sched-linux.cpp \
|
---|
306 | r3/linux/time-linux.cpp \
|
---|
307 | r3/posix/alloc-posix.cpp \
|
---|
308 | r3/posix/dir-posix.cpp \
|
---|
309 | r3/posix/env-posix.cpp \
|
---|
310 | r3/posix/fileio-posix.cpp \
|
---|
311 | r3/posix/filelock-posix.cpp \
|
---|
312 | r3/posix/fs-posix.cpp \
|
---|
313 | r3/posix/ldrNative-posix.cpp \
|
---|
314 | r3/posix/path-posix.cpp \
|
---|
315 | r3/posix/process-posix.cpp \
|
---|
316 | r3/posix/rand-posix.cpp \
|
---|
317 | r3/posix/RTMpGetCount-posix.cpp \
|
---|
318 | r3/posix/RTTimeNow-posix.cpp \
|
---|
319 | r3/posix/semrw-posix.cpp \
|
---|
320 | r3/posix/system-posix.cpp \
|
---|
321 | r3/posix/thread-posix.cpp \
|
---|
322 | r3/posix/timelocal-posix.cpp \
|
---|
323 | r3/posix/timer-posix.cpp \
|
---|
324 | r3/posix/tls-posix.cpp \
|
---|
325 | r3/posix/utf8-posix.cpp
|
---|
326 | RuntimeR3_SOURCES.linux.x86 += \
|
---|
327 | r3/posix/semevent-posix.cpp \
|
---|
328 | r3/posix/semeventmulti-posix.cpp \
|
---|
329 | r3/posix/semmutex-posix.cpp
|
---|
330 | RuntimeR3_SOURCES.linux.amd64 += \
|
---|
331 | r3/linux/semevent-linux.cpp \
|
---|
332 | r3/linux/semeventmulti-linux.cpp
|
---|
333 | ifdef RT_NEW_LINUX_MUTEX_CODE
|
---|
334 | RuntimeR3_SOURCES.linux.amd64 += \
|
---|
335 | r3/linux/semmutex-linux.cpp
|
---|
336 | else
|
---|
337 | RuntimeR3_SOURCES.linux.amd64 += \
|
---|
338 | r3/posix/semmutex-posix.cpp
|
---|
339 | endif
|
---|
340 |
|
---|
341 | RuntimeR3_SOURCES.os2 = \
|
---|
342 | generic/pathhost-generic.cpp \
|
---|
343 | generic/rand-stubs-generic.cpp \
|
---|
344 | generic/RTDirQueryInfo-generic.cpp \
|
---|
345 | generic/RTDirSetTimes-generic.cpp \
|
---|
346 | generic/RTFileMove-generic.cpp \
|
---|
347 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
348 | generic/RTTimeLocalNow-generic.cpp \
|
---|
349 | generic/RTTimerCreate-generic.cpp \
|
---|
350 | generic/semnoint-generic.cpp \
|
---|
351 | generic/semsrw-generic.cpp \
|
---|
352 | generic/timer-generic.cpp \
|
---|
353 | generic/utf16locale-generic.cpp \
|
---|
354 | generic/uuid-generic.cpp \
|
---|
355 | os2/RTErrConvertFromOS2.cpp \
|
---|
356 | r3/os2/filelock-os2.cpp \
|
---|
357 | r3/os2/mp-os2.cpp \
|
---|
358 | r3/os2/sched-os2.cpp \
|
---|
359 | r3/os2/sems-os2.cpp \
|
---|
360 | r3/os2/system-os2.cpp \
|
---|
361 | r3/os2/thread-os2.cpp \
|
---|
362 | r3/os2/time-os2.cpp \
|
---|
363 | r3/posix/alloc-posix.cpp \
|
---|
364 | r3/posix/dir-posix.cpp \
|
---|
365 | r3/posix/env-posix.cpp \
|
---|
366 | r3/posix/fileio-posix.cpp \
|
---|
367 | r3/posix/fs-posix.cpp \
|
---|
368 | r3/posix/ldrNative-posix.cpp \
|
---|
369 | r3/posix/path-posix.cpp \
|
---|
370 | r3/posix/process-posix.cpp \
|
---|
371 | r3/posix/RTTimeNow-posix.cpp \
|
---|
372 | r3/posix/timelocal-posix.cpp \
|
---|
373 | r3/posix/utf8-posix.cpp
|
---|
374 |
|
---|
375 | RuntimeR3_SOURCES.darwin = \
|
---|
376 | darwin/RTErrConvertFromDarwin.cpp \
|
---|
377 | darwin/RTErrConvertFromDarwinCOM.cpp \
|
---|
378 | darwin/RTErrConvertFromDarwinIO.cpp \
|
---|
379 | darwin/RTErrConvertFromDarwinKern.cpp \
|
---|
380 | generic/pathhost-generic.cpp \
|
---|
381 | generic/RTDirQueryInfo-generic.cpp \
|
---|
382 | generic/RTDirSetTimes-generic.cpp \
|
---|
383 | generic/RTFileMove-generic.cpp \
|
---|
384 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
385 | generic/RTTimeLocalNow-generic.cpp \
|
---|
386 | generic/RTTimerCreate-generic.cpp \
|
---|
387 | generic/sched-generic.cpp \
|
---|
388 | generic/timer-generic.cpp \
|
---|
389 | generic/utf16locale-generic.cpp \
|
---|
390 | generic/uuid-generic.cpp\
|
---|
391 | r3/darwin/alloc-darwin.cpp \
|
---|
392 | r3/darwin/filelock-darwin.cpp \
|
---|
393 | r3/darwin/time-darwin.cpp \
|
---|
394 | r3/posix/dir-posix.cpp \
|
---|
395 | r3/posix/env-posix.cpp \
|
---|
396 | r3/posix/fileio-posix.cpp \
|
---|
397 | r3/posix/fs-posix.cpp \
|
---|
398 | r3/posix/ldrNative-posix.cpp \
|
---|
399 | r3/posix/path-posix.cpp \
|
---|
400 | r3/posix/process-posix.cpp \
|
---|
401 | r3/posix/RTMpGetCount-posix.cpp \
|
---|
402 | r3/posix/rand-posix.cpp \
|
---|
403 | r3/posix/semevent-posix.cpp \
|
---|
404 | r3/posix/semeventmulti-posix.cpp \
|
---|
405 | r3/posix/semmutex-posix.cpp \
|
---|
406 | r3/posix/semrw-posix.cpp \
|
---|
407 | r3/posix/system-posix.cpp \
|
---|
408 | r3/posix/thread-posix.cpp \
|
---|
409 | r3/posix/timelocal-posix.cpp \
|
---|
410 | r3/posix/tls-posix.cpp \
|
---|
411 | r3/posix/utf8-posix.cpp
|
---|
412 |
|
---|
413 | ## @todo Make BSD sched.
|
---|
414 | RuntimeR3_SOURCES.freebsd = \
|
---|
415 | generic/pathhost-generic.cpp \
|
---|
416 | generic/RTDirQueryInfo-generic.cpp \
|
---|
417 | generic/RTDirSetTimes-generic.cpp \
|
---|
418 | generic/RTFileMove-generic.cpp \
|
---|
419 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
420 | generic/RTTimeLocalNow-generic.cpp \
|
---|
421 | generic/RTTimerCreate-generic.cpp \
|
---|
422 | generic/sched-generic.cpp \
|
---|
423 | generic/utf16locale-generic.cpp \
|
---|
424 | generic/uuid-generic.cpp \
|
---|
425 | r3/freebsd/alloc-freebsd.cpp \
|
---|
426 | r3/posix/dir-posix.cpp \
|
---|
427 | r3/posix/env-posix.cpp \
|
---|
428 | r3/posix/fileio-posix.cpp \
|
---|
429 | r3/posix/filelock-posix.cpp \
|
---|
430 | r3/posix/fs-posix.cpp \
|
---|
431 | r3/posix/ldrNative-posix.cpp \
|
---|
432 | r3/posix/path-posix.cpp \
|
---|
433 | r3/posix/process-posix.cpp \
|
---|
434 | r3/posix/rand-posix.cpp \
|
---|
435 | r3/posix/RTMpGetCount-posix.cpp \
|
---|
436 | r3/posix/RTTimeNow-posix.cpp \
|
---|
437 | r3/posix/semevent-posix.cpp \
|
---|
438 | r3/posix/semeventmulti-posix.cpp \
|
---|
439 | r3/posix/semmutex-posix.cpp \
|
---|
440 | r3/posix/semrw-posix.cpp \
|
---|
441 | r3/posix/system-posix.cpp \
|
---|
442 | r3/posix/thread-posix.cpp \
|
---|
443 | r3/posix/time-posix.cpp \
|
---|
444 | r3/posix/timelocal-posix.cpp \
|
---|
445 | r3/posix/timer-posix.cpp \
|
---|
446 | r3/posix/tls-posix.cpp \
|
---|
447 | r3/posix/utf8-posix.cpp
|
---|
448 |
|
---|
449 | RuntimeR3_SOURCES.solaris = \
|
---|
450 | generic/pathhost-generic.cpp \
|
---|
451 | generic/RTDirQueryInfo-generic.cpp \
|
---|
452 | generic/RTDirSetTimes-generic.cpp \
|
---|
453 | generic/RTFileMove-generic.cpp \
|
---|
454 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
455 | generic/RTTimeLocalNow-generic.cpp \
|
---|
456 | generic/RTTimerCreate-generic.cpp \
|
---|
457 | generic/sched-generic.cpp \
|
---|
458 | generic/utf16locale-generic.cpp \
|
---|
459 | generic/uuid-generic.cpp \
|
---|
460 | r3/posix/dir-posix.cpp \
|
---|
461 | r3/posix/env-posix.cpp \
|
---|
462 | r3/posix/fileio-posix.cpp \
|
---|
463 | r3/posix/filelock-posix.cpp \
|
---|
464 | r3/posix/fs-posix.cpp \
|
---|
465 | r3/posix/ldrNative-posix.cpp \
|
---|
466 | r3/posix/path-posix.cpp \
|
---|
467 | r3/posix/process-posix.cpp \
|
---|
468 | r3/posix/rand-posix.cpp \
|
---|
469 | r3/posix/RTMpGetCount-posix.cpp \
|
---|
470 | r3/posix/RTTimeNow-posix.cpp \
|
---|
471 | r3/posix/semevent-posix.cpp \
|
---|
472 | r3/posix/semeventmulti-posix.cpp \
|
---|
473 | r3/posix/semmutex-posix.cpp \
|
---|
474 | r3/posix/semrw-posix.cpp \
|
---|
475 | r3/posix/system-posix.cpp \
|
---|
476 | r3/posix/thread-posix.cpp \
|
---|
477 | r3/posix/time-posix.cpp \
|
---|
478 | r3/posix/timelocal-posix.cpp \
|
---|
479 | r3/posix/timer-posix.cpp \
|
---|
480 | r3/posix/tls-posix.cpp \
|
---|
481 | r3/posix/utf8-posix.cpp \
|
---|
482 | r3/solaris/alloc-solaris.cpp
|
---|
483 |
|
---|
484 | ## PORTME: Porters add their selection of platform specific files for Ring-3 here.
|
---|
485 |
|
---|
486 |
|
---|
487 | #
|
---|
488 | # L4 RuntimeR3 subtarget since L4 headers won't work with VBOXR3.
|
---|
489 | #
|
---|
490 | RuntimeR3L4_TEMPLATE = VBOXR3NP
|
---|
491 | RuntimeR3L4_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF LDR_WITH_PE
|
---|
492 | ifneq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
493 | RuntimeR3L4_DEFS += __PIC__
|
---|
494 | endif
|
---|
495 | RuntimeR3L4_INCS = \
|
---|
496 | include \
|
---|
497 | $(L4_INCDIR)
|
---|
498 |
|
---|
499 | RuntimeR3L4_SOURCES = \
|
---|
500 | generic/fs-stubs-generic.cpp \
|
---|
501 | generic/pathhost-generic.cpp \
|
---|
502 | generic/RTDirQueryInfo-generic.cpp \
|
---|
503 | generic/RTDirSetTimes-generic.cpp \
|
---|
504 | generic/RTFileMove-generic.cpp \
|
---|
505 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
506 | generic/RTTimeLocalNow-generic.cpp \
|
---|
507 | generic/sched-generic.cpp \
|
---|
508 | generic/semnoint-generic.cpp \
|
---|
509 | generic/semsrw-generic.cpp \
|
---|
510 | generic/utf16locale-generic.cpp \
|
---|
511 | generic/uuid-generic.cpp \
|
---|
512 | l4/l4-errno.cpp \
|
---|
513 | l4/process-l4env.cpp \
|
---|
514 | l4/sems-l4env.cpp \
|
---|
515 | l4/system-l4env.cpp \
|
---|
516 | l4/thread-l4env.cpp \
|
---|
517 | l4/timer-l4env.cpp \
|
---|
518 | l4/utf8-l4env.cpp \
|
---|
519 | r3/posix/alloc-posix.cpp \
|
---|
520 | r3/posix/dir-posix.cpp \
|
---|
521 | r3/posix/env-posix.cpp \
|
---|
522 | r3/posix/fileio-posix.cpp \
|
---|
523 | r3/posix/filelock-posix.cpp \
|
---|
524 | r3/posix/ldrNative-posix.cpp \
|
---|
525 | r3/posix/path-posix.cpp \
|
---|
526 | r3/posix/rand-posix.cpp \
|
---|
527 | r3/posix/RTTimeNow-posix.cpp \
|
---|
528 | r3/posix/time-posix.cpp \
|
---|
529 | r3/posix/timelocal-posix.cpp
|
---|
530 |
|
---|
531 |
|
---|
532 | #
|
---|
533 | # RuntimeGuestR3 - Guest Additions Runtime (static).
|
---|
534 | # (The KBUILD_HOST inheritance here is for l4 cross building the linux
|
---|
535 | # additions, while .x86 is for cross building x86 while targeting amd64.)
|
---|
536 | #
|
---|
537 | RuntimeGuestR3_TEMPLATE := VBOXGUESTR3LIB
|
---|
538 | ## @todo change this to EXTEND the RuntimeR3 target.
|
---|
539 | RuntimeGuestR3_SDKS.win := $(RuntimeR3_SDKS.win)
|
---|
540 | RuntimeGuestR3_DEFS := $(filter-out RTCRITSECT_STRICT, $(RuntimeR3_DEFS))
|
---|
541 | RuntimeGuestR3_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
|
---|
542 | RuntimeGuestR3_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST))
|
---|
543 | RuntimeGuestR3_INCS := $(RuntimeR3_INCS)
|
---|
544 | RuntimeGuestR3_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
|
---|
545 | RuntimeGuestR3_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST))
|
---|
546 | RuntimeGuestR3_SOURCES := $(filter-out \
|
---|
547 | common/time/timesupref.cpp \
|
---|
548 | common/time/timesupA.asm \
|
---|
549 | common/time/timesup.cpp \
|
---|
550 | generic/RTLogWriteUser-generic.cpp \
|
---|
551 | , $(RuntimeR3_SOURCES))
|
---|
552 | RuntimeGuestR3_SOURCES += \
|
---|
553 | common/time/timesysalias.cpp \
|
---|
554 | VBox/logbackdoor.cpp
|
---|
555 | RuntimeGuestR3_SOURCES.$(KBUILD_TARGET) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
|
---|
556 | RuntimeGuestR3_SOURCES.$(KBUILD_HOST) := $(RuntimeR3_SOURCES.$(KBUILD_HOST))
|
---|
557 | RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
|
---|
558 | RuntimeGuestR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH))
|
---|
559 |
|
---|
560 |
|
---|
561 | #
|
---|
562 | # RuntimeGuestR3Mini - Minimal Guest Additions Runtime which does not require
|
---|
563 | # initialization and can be linked into an .so. Intended
|
---|
564 | # for X11 drivers, GRADD and similar.
|
---|
565 | #
|
---|
566 | RuntimeGuestR3Mini_TEMPLATE := VBOXGUESTR3DLL
|
---|
567 | ## @todo change this to EXTEND the RuntimeGuestR3 target.
|
---|
568 | RuntimeGuestR3Mini_INST := $(INST_ADDITIONS_LIB)
|
---|
569 | RuntimeGuestR3Mini_SDKS.win := $(RuntimeR3_SDKS.win)
|
---|
570 | RuntimeGuestR3Mini_DEFS := $(filter-out RTCRITSECT_STRICT, $(RuntimeR3_DEFS)) RT_MINI
|
---|
571 | RuntimeGuestR3Mini_DEFS.$(KBUILD_TARGET) := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
|
---|
572 | RuntimeGuestR3Mini_DEFS.$(KBUILD_HOST) := $(RuntimeR3_DEFS.$(KBUILD_HOST))
|
---|
573 | RuntimeGuestR3Mini_INCS := $(RuntimeR3_INCS)
|
---|
574 | RuntimeGuestR3Mini_INCS.$(KBUILD_TARGET) := $(RuntimeR3_INCS.$(KBUILD_TARGET))
|
---|
575 | RuntimeGuestR3Mini_INCS.$(KBUILD_HOST) := $(RuntimeR3_INCS.$(KBUILD_HOST))
|
---|
576 | RuntimeGuestR3Mini_SOURCES = \
|
---|
577 | common/err/errmsg.cpp \
|
---|
578 | common/err/RTErrConvertFromErrno.cpp \
|
---|
579 | common/log/logformat.cpp \
|
---|
580 | common/misc/assert.cpp \
|
---|
581 | common/misc/sanity-c.c \
|
---|
582 | common/misc/sanity-cpp.cpp \
|
---|
583 | common/string/strformat.cpp \
|
---|
584 | common/string/strformatrt.cpp \
|
---|
585 | common/string/strformattype.cpp \
|
---|
586 | common/string/string.cpp \
|
---|
587 | common/string/strprintf.cpp \
|
---|
588 | common/string/unidata.cpp \
|
---|
589 | common/string/utf-8.cpp \
|
---|
590 | common/string/utf-16.cpp \
|
---|
591 | generic/pathhost-generic.cpp \
|
---|
592 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
593 | r3/alloc.cpp \
|
---|
594 | r3/fileio.cpp \
|
---|
595 | r3/fs.cpp \
|
---|
596 | r3/path.cpp
|
---|
597 | RuntimeGuestR3Mini_SOURCES.linux = \
|
---|
598 | r3/posix/fileio-posix.cpp \
|
---|
599 | r3/posix/path-posix.cpp \
|
---|
600 | r3/posix/utf8-posix.cpp
|
---|
601 | RuntimeGuestR3Mini_SOURCES.solaris = \
|
---|
602 | r3/posix/fileio-posix.cpp \
|
---|
603 | r3/posix/path-posix.cpp \
|
---|
604 | r3/posix/utf8-posix.cpp
|
---|
605 | RuntimeGuestR3Mini_SOURCES.freebsd = \
|
---|
606 | r3/posix/fileio-posix.cpp \
|
---|
607 | r3/posix/path-posix.cpp \
|
---|
608 | r3/posix/utf8-posix.cpp
|
---|
609 | # VBox specific stuff.
|
---|
610 | RuntimeGuestR3Mini_SOURCES += \
|
---|
611 | VBox/logbackdoor.cpp \
|
---|
612 | VBox/logbackdoor-redirect.cpp \
|
---|
613 | VBox/strformat-vbox.cpp
|
---|
614 |
|
---|
615 |
|
---|
616 | #
|
---|
617 | # RuntimeLnxHostR3 Linux host program runtime
|
---|
618 | # (Only used when building L4.)
|
---|
619 | #
|
---|
620 | RuntimeLnxHostR3_TEMPLATE = VBOXLNXHOSTR3LIB
|
---|
621 | RuntimeLnxHostR3_DEFS = IN_RT_R3 IN_SUP_R3 RT_WITH_VBOX RT_NO_GIP
|
---|
622 | RuntimeLnxHostR3_SOURCES = \
|
---|
623 | $(RuntimeR3_SOURCES.linux.$(KBUILD_TARGET_ARCH)) \
|
---|
624 | $(RuntimeR3_SOURCES.linux) \
|
---|
625 | $(RuntimeR3_SOURCES)
|
---|
626 | RuntimeLnxHostR3_INCS = \
|
---|
627 | $(RuntimeR3_INCS.linux.$(KBUILD_TARGET_ARCH)) \
|
---|
628 | $(RuntimeR3_INCS.linux) \
|
---|
629 | $(RuntimeR3_INCS)
|
---|
630 |
|
---|
631 |
|
---|
632 | #
|
---|
633 | # VBoxRT - Shared Object / DLL version.
|
---|
634 | #
|
---|
635 | VBoxRT_TEMPLATE = VBOXR3
|
---|
636 | VBoxRT_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
|
---|
637 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
638 | VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE)
|
---|
639 | endif
|
---|
640 | VBoxRT_DEFS = $(RuntimeR3_DEFS) IN_SUP_R3 IN_SUP_R3
|
---|
641 | VBoxRT_DEFS.$(KBUILD_TYPE) = $(RuntimeR3_DEFS.$(KBUILD_TYPE))
|
---|
642 | VBoxRT_SOURCES = \
|
---|
643 | VBox/VBoxRTDeps.cpp \
|
---|
644 | $(RuntimeR3_SOURCES)
|
---|
645 | VBoxRT_SOURCES.$(KBUILD_TARGET) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
|
---|
646 | VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
|
---|
647 | VBoxRT_SOURCES.win += r3/win/dllmain-win.cpp
|
---|
648 | VBoxRT_SOURCES.win.x86 += r3/win/VBoxRT-win32.def
|
---|
649 | VBoxRT_SOURCES.win.amd64 += r3/win/VBoxRT-win64.def
|
---|
650 | VBoxRT_INCS = $(RuntimeR3_INCS)
|
---|
651 | VBoxRT_INCS.$(KBUILD_TARGET) = $(RuntimeR3_INCS.$(KBUILD_TARGET))
|
---|
652 | VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
|
---|
653 | VBoxRT_LIBS = \
|
---|
654 | $(PATH_LIB)/SUPR3$(VBOX_SUFF_LIB) \
|
---|
655 | $(PATH_LIB)/VBox-liblzf$(VBOX_SUFF_LIB)
|
---|
656 | ifdef IPRT_WITH_KSTUFF
|
---|
657 | VBoxRT_LIBS += \
|
---|
658 | $(PATH_LIB)/VBox-kStuff$(VBOX_SUFF_LIB)
|
---|
659 | endif
|
---|
660 | VBoxRT_LIBS.darwin = \
|
---|
661 | iconv
|
---|
662 | VBoxRT_LIBS.freebsd = \
|
---|
663 | iconv
|
---|
664 | VBoxRT_LIBPATH.freebsd = \
|
---|
665 | /usr/local/lib
|
---|
666 | VBoxRT_LDFLAGS.darwin = -framework IOKit -install_name @executable_path/VBoxRT.dylib
|
---|
667 | ifdef VBOX_USE_VCC80
|
---|
668 | VBoxRT_LDFLAGS.win = /MANIFEST
|
---|
669 | endif
|
---|
670 | VBoxRT_LDFLAGS.l4 = \
|
---|
671 | -Wl,-whole-archive \
|
---|
672 | $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB) \
|
---|
673 | -Wl,-no-whole-archive
|
---|
674 | ifeq ($(KBUILD_TARGET),l4)
|
---|
675 | VBoxRT_LIBS += \
|
---|
676 | $(L4_LIBDIR)/libl4sys.a \
|
---|
677 | $(L4_LIBDIR)/libl4sys.p.a
|
---|
678 | endif
|
---|
679 | VBoxRT_LIBS.l4 = \
|
---|
680 | $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB)
|
---|
681 |
|
---|
682 |
|
---|
683 | #
|
---|
684 | # RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
|
---|
685 | # This is used together with VBoxRT.
|
---|
686 | #
|
---|
687 | RuntimeR3NoCRTGCC_TEMPLATE = VBOXNOCRTGCC
|
---|
688 | RuntimeR3NoCRTGCC_LIBSUFF = $(VBOX_SUFF_LIB)
|
---|
689 | RuntimeR3NoCRTGCC_INCS = include
|
---|
690 | RuntimeR3NoCRTGCC_SOURCES = \
|
---|
691 | common/misc/sanity-cpp.cpp \
|
---|
692 | common/misc/sanity-c.c \
|
---|
693 | \
|
---|
694 | common/math/ceill.asm \
|
---|
695 | common/math/cosl.asm \
|
---|
696 | common/math/fabs.asm \
|
---|
697 | common/math/fabsf.asm \
|
---|
698 | common/math/fabsl.asm \
|
---|
699 | common/math/floor.asm \
|
---|
700 | common/math/floorf.asm \
|
---|
701 | common/math/floorl.asm \
|
---|
702 | common/math/ldexpl.asm \
|
---|
703 | common/math/llrint.asm \
|
---|
704 | common/math/llrintf.asm \
|
---|
705 | common/math/llrintl.asm \
|
---|
706 | common/math/logl.asm \
|
---|
707 | common/math/lrint.asm \
|
---|
708 | common/math/lrintf.asm \
|
---|
709 | common/math/lrintl.asm \
|
---|
710 | common/math/remainder.asm \
|
---|
711 | common/math/remainderf.asm \
|
---|
712 | common/math/remainderl.asm \
|
---|
713 | common/math/sinl.asm \
|
---|
714 | common/math/tanl.asm \
|
---|
715 | common/math/trunc.asm \
|
---|
716 | common/math/truncf.asm \
|
---|
717 | common/math/truncl.asm \
|
---|
718 | \
|
---|
719 | common/misc/setjmp.asm \
|
---|
720 | \
|
---|
721 | common/string/memchr.asm \
|
---|
722 | common/string/memchr_alias.c \
|
---|
723 | common/string/memcmp.asm \
|
---|
724 | common/string/memcmp_alias.c \
|
---|
725 | common/string/memcpy.asm \
|
---|
726 | common/string/memcpy_alias.c \
|
---|
727 | common/string/mempcpy.asm \
|
---|
728 | common/string/memmove.asm \
|
---|
729 | common/string/memmove_alias.c \
|
---|
730 | common/string/memset.asm \
|
---|
731 | common/string/memset_alias.c \
|
---|
732 | common/string/strchr.asm \
|
---|
733 | common/string/strchr_alias.c \
|
---|
734 | common/string/strcmp.asm \
|
---|
735 | common/string/strcmp_alias.c \
|
---|
736 | common/string/strlen.asm \
|
---|
737 | common/string/strlen_alias.c
|
---|
738 |
|
---|
739 | RuntimeR3NoCRTGCC_SOURCES.x86 = \
|
---|
740 | common/math/x86/fenv-x86.c \
|
---|
741 | common/math/gcc/adddi3.c \
|
---|
742 | common/math/gcc/anddi3.c \
|
---|
743 | common/math/gcc/ashldi3.c \
|
---|
744 | common/math/gcc/ashrdi3.c \
|
---|
745 | common/math/gcc/cmpdi2.c \
|
---|
746 | common/math/gcc/divdi3.c \
|
---|
747 | common/math/gcc/iordi3.c \
|
---|
748 | common/math/gcc/lshldi3.c \
|
---|
749 | common/math/gcc/lshrdi3.c \
|
---|
750 | common/math/gcc/moddi3.c \
|
---|
751 | common/math/gcc/muldi3.c \
|
---|
752 | common/math/gcc/negdi2.c \
|
---|
753 | common/math/gcc/notdi2.c \
|
---|
754 | common/math/gcc/qdivrem.c \
|
---|
755 | common/math/gcc/subdi3.c \
|
---|
756 | common/math/gcc/ucmpdi2.c \
|
---|
757 | common/math/gcc/udivdi3.c \
|
---|
758 | common/math/gcc/umoddi3.c \
|
---|
759 | common/math/gcc/xordi3.c
|
---|
760 |
|
---|
761 |
|
---|
762 | ## @todo stop using the old memcpy.c and memset.c code.
|
---|
763 |
|
---|
764 | #
|
---|
765 | # RuntimeR0 - Ring0 library for VMMR0.
|
---|
766 | #
|
---|
767 | RuntimeR0_TEMPLATE = VBOXR0
|
---|
768 | RuntimeR0_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS
|
---|
769 | RuntimeR0_INCS = include
|
---|
770 | RuntimeR0_SOURCES = \
|
---|
771 | common/log/logcom.cpp \
|
---|
772 | common/log/logformat.cpp \
|
---|
773 | common/misc/assert.cpp \
|
---|
774 | common/misc/sanity-c.c \
|
---|
775 | common/misc/sanity-cpp.cpp \
|
---|
776 | common/string/memchr.cpp \
|
---|
777 | common/string/memcmp.cpp \
|
---|
778 | common/string/memcpy.cpp \
|
---|
779 | common/string/memmove.asm \
|
---|
780 | common/string/memset.cpp \
|
---|
781 | common/string/strcmp.asm \
|
---|
782 | common/string/strcpy.cpp \
|
---|
783 | common/string/strformat.cpp \
|
---|
784 | common/string/strformatrt.cpp \
|
---|
785 | common/string/strformattype.cpp \
|
---|
786 | common/string/strlen.asm \
|
---|
787 | common/string/strncmp.cpp \
|
---|
788 | common/string/strpbrk.cpp \
|
---|
789 | common/string/strprintf.cpp \
|
---|
790 | common/table/avlgcptr.cpp \
|
---|
791 | common/table/avlhcphys.cpp \
|
---|
792 | common/table/avllu32.cpp \
|
---|
793 | common/table/avlogcphys.cpp \
|
---|
794 | common/table/avlogcptr.cpp \
|
---|
795 | common/table/avlohcphys.cpp \
|
---|
796 | common/table/avloioport.cpp \
|
---|
797 | common/table/avlpv.cpp \
|
---|
798 | common/table/avlrogcphys.cpp \
|
---|
799 | common/table/avlrogcptr.cpp \
|
---|
800 | common/table/avlroioport.cpp \
|
---|
801 | common/table/avlroogcptr.cpp \
|
---|
802 | common/table/avlu32.cpp \
|
---|
803 | common/time/timesup.cpp \
|
---|
804 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
805 | VBox/strformat-vbox.cpp
|
---|
806 |
|
---|
807 | #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
|
---|
808 | # RuntimeR0_SOURCES += common/time/timesupA.asm
|
---|
809 | #else
|
---|
810 | RuntimeR0_SOURCES += common/time/timesupref.cpp
|
---|
811 | #endif
|
---|
812 |
|
---|
813 | RuntimeR0_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
|
---|
814 | RuntimeR0_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
|
---|
815 |
|
---|
816 | RuntimeR0_SOURCES.os2 = \
|
---|
817 | os2/RTErrConvertFromOS2.cpp \
|
---|
818 | os2/sys0.asm
|
---|
819 |
|
---|
820 | ifeq ($(filter-out darwin solaris freebsd,$(KBUILD_TARGET)),)
|
---|
821 | RuntimeR0_SOURCES += \
|
---|
822 | common/math/gcc/adddi3.c \
|
---|
823 | common/math/gcc/anddi3.c \
|
---|
824 | common/math/gcc/ashldi3.c \
|
---|
825 | common/math/gcc/ashrdi3.c \
|
---|
826 | common/math/gcc/cmpdi2.c \
|
---|
827 | common/math/gcc/divdi3.c \
|
---|
828 | common/math/gcc/iordi3.c \
|
---|
829 | common/math/gcc/lshldi3.c \
|
---|
830 | common/math/gcc/lshrdi3.c \
|
---|
831 | common/math/gcc/moddi3.c \
|
---|
832 | common/math/gcc/muldi3.c \
|
---|
833 | common/math/gcc/negdi2.c \
|
---|
834 | common/math/gcc/notdi2.c \
|
---|
835 | common/math/gcc/qdivrem.c \
|
---|
836 | common/math/gcc/subdi3.c \
|
---|
837 | common/math/gcc/ucmpdi2.c \
|
---|
838 | common/math/gcc/udivdi3.c \
|
---|
839 | common/math/gcc/umoddi3.c \
|
---|
840 | common/math/gcc/xordi3.c
|
---|
841 | endif
|
---|
842 |
|
---|
843 |
|
---|
844 | common/string/memchr.cpp_CXXFLAGS.win = -Oi-
|
---|
845 | common/string/memcmp.cpp_CXXFLAGS.win = -Oi-
|
---|
846 | common/string/memcpy.cpp_CXXFLAGS.win = -Oi-
|
---|
847 | common/string/memset.cpp_CXXFLAGS.win = -Oi-
|
---|
848 | common/string/strcpy.cpp_CXXFLAGS.win = -Oi-
|
---|
849 | common/string/strlen.cpp_CXXFLAGS.win = -Oi-
|
---|
850 |
|
---|
851 | ifeq ($(KBUILD_TARGET),l4)
|
---|
852 | RuntimeR0Drv_BLD_TRG = linux
|
---|
853 | RuntimeR0Drv_BLD_TRG_ARCH = x86
|
---|
854 | RuntimeR0Drv_BLD_TRG_CPU = i386
|
---|
855 | endif
|
---|
856 |
|
---|
857 | #
|
---|
858 | # RuntimeR0Drv - Ring0 library for host drivers.
|
---|
859 | #
|
---|
860 | RuntimeR0Drv_TEMPLATE = VBOXR0DRV
|
---|
861 | RuntimeR0Drv_SDKS.win = W2K3DDK WINPSDKINCS
|
---|
862 | RuntimeR0Drv_INCS := $(PATH_SUB_CURRENT) include
|
---|
863 | RuntimeR0Drv_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS
|
---|
864 | RuntimeR0Drv_DEFS.win = IN_SUP_R0
|
---|
865 | RuntimeR0Drv_DEFS.linux = MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) IN_SUP_R0 # why is IN_SUP_R0 here? because!
|
---|
866 |
|
---|
867 | RuntimeR0Drv_INCS.linux = \
|
---|
868 | r0drv/linux
|
---|
869 | ifdef VBOX_WITH_SOLARIS_VBI
|
---|
870 | RuntimeR0Drv_INCS.solaris = \
|
---|
871 | r0drv/solaris/vbi/i86pc
|
---|
872 | endif
|
---|
873 |
|
---|
874 | RuntimeR0Drv_SOURCES = \
|
---|
875 | common/checksum/crc32.cpp \
|
---|
876 | common/checksum/crc64.cpp \
|
---|
877 | common/log/log.cpp \
|
---|
878 | common/log/logcom.cpp \
|
---|
879 | common/log/logformat.cpp \
|
---|
880 | common/misc/assert.cpp \
|
---|
881 | common/misc/sanity-c.c \
|
---|
882 | common/misc/sanity-cpp.cpp \
|
---|
883 | common/string/strformat.cpp \
|
---|
884 | common/string/strformatrt.cpp \
|
---|
885 | common/string/strformattype.cpp \
|
---|
886 | common/string/strprintf.cpp \
|
---|
887 | common/string/strtonum.cpp \
|
---|
888 | common/table/avlpv.cpp \
|
---|
889 | generic/RTLogWriteStdErr-stub-generic.cpp \
|
---|
890 | generic/RTLogWriteStdOut-stub-generic.cpp \
|
---|
891 | generic/RTLogWriteUser-generic.cpp \
|
---|
892 | r0drv/alloc-r0drv.cpp \
|
---|
893 | r0drv/initterm-r0drv.cpp \
|
---|
894 | VBox/log-vbox.cpp \
|
---|
895 | VBox/strformat-vbox.cpp
|
---|
896 |
|
---|
897 | RuntimeR0Drv_SOURCES.linux = \
|
---|
898 | common/alloc/heapsimple.cpp \
|
---|
899 | common/string/strpbrk.cpp \
|
---|
900 | common/err/RTErrConvertToErrno.cpp \
|
---|
901 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
902 | r0drv/linux/alloc-r0drv-linux.c \
|
---|
903 | r0drv/linux/initterm-r0drv-linux.c \
|
---|
904 | r0drv/linux/memobj-r0drv-linux.c \
|
---|
905 | r0drv/linux/mp-r0drv-linux.c \
|
---|
906 | r0drv/linux/mpnotification-r0drv-linux.c \
|
---|
907 | r0drv/linux/process-r0drv-linux.c \
|
---|
908 | r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \
|
---|
909 | r0drv/linux/semevent-r0drv-linux.c \
|
---|
910 | r0drv/linux/semeventmulti-r0drv-linux.c \
|
---|
911 | r0drv/linux/semfastmutex-r0drv-linux.c \
|
---|
912 | r0drv/linux/spinlock-r0drv-linux.c \
|
---|
913 | r0drv/linux/thread-r0drv-linux.c \
|
---|
914 | r0drv/linux/time-r0drv-linux.c \
|
---|
915 | r0drv/linux/timer-r0drv-linux.c \
|
---|
916 | r0drv/memobj-r0drv.cpp \
|
---|
917 | r0drv/mpnotification-r0drv.c
|
---|
918 | ## @todo thread2-r0drv-linux.c and assert-r0drv-linux.c
|
---|
919 |
|
---|
920 | RuntimeR0Drv_SOURCES.win = \
|
---|
921 | common/misc/thread.cpp \
|
---|
922 | common/string/memcmp.asm \
|
---|
923 | common/string/memchr.asm \
|
---|
924 | common/string/memcpy.asm \
|
---|
925 | common/string/memset.asm \
|
---|
926 | common/string/memmove.asm \
|
---|
927 | common/string/strlen.asm \
|
---|
928 | common/string/strncmp.cpp \
|
---|
929 | common/string/strpbrk.cpp \
|
---|
930 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
931 | nt/RTErrConvertFromNtStatus.cpp \
|
---|
932 | r0drv/memobj-r0drv.cpp \
|
---|
933 | r0drv/mpnotification-r0drv.c \
|
---|
934 | r0drv/nt/alloc-r0drv-nt.cpp \
|
---|
935 | r0drv/nt/initterm-r0drv-nt.cpp \
|
---|
936 | r0drv/nt/memobj-r0drv-nt.cpp \
|
---|
937 | r0drv/nt/mp-r0drv-nt.cpp \
|
---|
938 | r0drv/nt/mpnotification-r0drv-nt.cpp \
|
---|
939 | r0drv/nt/process-r0drv-nt.cpp \
|
---|
940 | r0drv/nt/RTLogWriteDebugger-r0drv-nt.cpp \
|
---|
941 | r0drv/nt/semevent-r0drv-nt.cpp \
|
---|
942 | r0drv/nt/semeventmulti-r0drv-nt.cpp \
|
---|
943 | r0drv/nt/semfastmutex-r0drv-nt.cpp \
|
---|
944 | r0drv/nt/semmutex-r0drv-nt.cpp \
|
---|
945 | r0drv/nt/spinlock-r0drv-nt.cpp \
|
---|
946 | r0drv/nt/thread-r0drv-nt.cpp \
|
---|
947 | r0drv/nt/thread2-r0drv-nt.cpp \
|
---|
948 | r0drv/nt/time-r0drv-nt.cpp \
|
---|
949 | r0drv/nt/timer-r0drv-nt.cpp
|
---|
950 | ## @todo and assert-r0drv-nt.cpp
|
---|
951 |
|
---|
952 | RuntimeR0Drv_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
|
---|
953 | RuntimeR0Drv_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
|
---|
954 |
|
---|
955 | RuntimeR0Drv_SOURCES.darwin = \
|
---|
956 | common/err/RTErrConvertFromErrno.cpp \
|
---|
957 | common/misc/thread.cpp \
|
---|
958 | common/string/memchr.asm \
|
---|
959 | common/string/strpbrk.cpp \
|
---|
960 | darwin/RTErrConvertFromDarwin.cpp \
|
---|
961 | darwin/RTErrConvertFromDarwinIO.cpp \
|
---|
962 | darwin/RTErrConvertFromDarwinKern.cpp \
|
---|
963 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
964 | generic/RTMpCpuId-generic.cpp \
|
---|
965 | generic/RTMpCpuIdFromSetIndex-generic.cpp \
|
---|
966 | generic/RTMpCpuIdToSetIndex-generic.cpp \
|
---|
967 | generic/RTMpIsCpuPossible-generic.cpp \
|
---|
968 | generic/RTMpGetCount-generic.cpp \
|
---|
969 | generic/RTMpGetMaxCpuId-generic.cpp \
|
---|
970 | generic/RTMpGetOnlineCount-generic.cpp \
|
---|
971 | generic/RTMpGetOnlineSet-generic.cpp \
|
---|
972 | generic/RTMpGetSet-generic.cpp \
|
---|
973 | generic/RTMpIsCpuOnline-generic.cpp \
|
---|
974 | generic/RTTimerCreate-generic.cpp \
|
---|
975 | generic/timer-generic.cpp \
|
---|
976 | r0drv/generic/RTMpOn-r0drv-generic.cpp \
|
---|
977 | r0drv/generic/mpnotification-r0drv-generic.cpp \
|
---|
978 | r0drv/darwin/alloc-r0drv-darwin.cpp \
|
---|
979 | r0drv/darwin/assert-r0drv-darwin.cpp \
|
---|
980 | r0drv/darwin/initterm-r0drv-darwin.cpp \
|
---|
981 | r0drv/darwin/memobj-r0drv-darwin.cpp \
|
---|
982 | r0drv/darwin/process-r0drv-darwin.cpp \
|
---|
983 | r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
|
---|
984 | r0drv/darwin/semaphore-r0drv-darwin.cpp \
|
---|
985 | r0drv/darwin/spinlock-r0drv-darwin.cpp \
|
---|
986 | r0drv/darwin/thread-r0drv-darwin.cpp \
|
---|
987 | r0drv/darwin/thread2-r0drv-darwin.cpp \
|
---|
988 | r0drv/darwin/time-r0drv-darwin.cpp \
|
---|
989 | r0drv/memobj-r0drv.cpp
|
---|
990 |
|
---|
991 | RuntimeR0Drv_SOURCES.os2 = \
|
---|
992 | common/string/memchr.asm \
|
---|
993 | common/string/memcmp.asm \
|
---|
994 | common/string/memcpy.asm \
|
---|
995 | common/string/mempcpy.asm \
|
---|
996 | common/string/memmove.asm \
|
---|
997 | common/string/memset.asm \
|
---|
998 | common/string/strchr.asm \
|
---|
999 | common/string/strcmp.asm \
|
---|
1000 | common/string/strlen.asm \
|
---|
1001 | \
|
---|
1002 | common/string/strcpy.cpp \
|
---|
1003 | common/string/strncmp.cpp \
|
---|
1004 | common/string/strpbrk.cpp \
|
---|
1005 | \
|
---|
1006 | common/misc/thread.cpp \
|
---|
1007 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
1008 | generic/RTMpCpuId-generic.cpp \
|
---|
1009 | generic/RTMpCpuIdFromSetIndex-generic.cpp \
|
---|
1010 | generic/RTMpCpuIdToSetIndex-generic.cpp \
|
---|
1011 | generic/RTMpIsCpuPossible-generic.cpp \
|
---|
1012 | generic/RTMpGetCount-generic.cpp \
|
---|
1013 | generic/RTMpGetMaxCpuId-generic.cpp \
|
---|
1014 | generic/RTMpGetOnlineCount-generic.cpp \
|
---|
1015 | generic/RTMpGetOnlineSet-generic.cpp \
|
---|
1016 | generic/RTMpGetSet-generic.cpp \
|
---|
1017 | generic/RTMpIsCpuOnline-generic.cpp \
|
---|
1018 | generic/RTTimerCreate-generic.cpp \
|
---|
1019 | os2/RTErrConvertFromOS2.cpp \
|
---|
1020 | os2/sys0.asm \
|
---|
1021 | r0drv/memobj-r0drv.cpp \
|
---|
1022 | r0drv/generic/RTMpOn-r0drv-generic.cpp \
|
---|
1023 | r0drv/generic/mpnotification-r0drv-generic.cpp \
|
---|
1024 | r0drv/os2/alloc-r0drv-os2.cpp \
|
---|
1025 | r0drv/os2/assert-r0drv-os2.cpp \
|
---|
1026 | r0drv/os2/assertA-r0drv-os2.asm \
|
---|
1027 | r0drv/os2/initterm-r0drv-os2.cpp \
|
---|
1028 | r0drv/os2/memobj-r0drv-os2.cpp \
|
---|
1029 | r0drv/os2/os2imports.imp \
|
---|
1030 | r0drv/os2/process-r0drv-os2.cpp \
|
---|
1031 | r0drv/os2/RTAssertDoBreakpoint-r0drv-os2.asm \
|
---|
1032 | r0drv/os2/RTR0Os2DHQueryDOSVar.asm \
|
---|
1033 | r0drv/os2/RTR0Os2DHVMGlobalToProcess.asm \
|
---|
1034 | r0drv/os2/semevent-r0drv-os2.cpp \
|
---|
1035 | r0drv/os2/semeventmulti-r0drv-os2.cpp \
|
---|
1036 | r0drv/os2/semfastmutex-r0drv-os2.cpp \
|
---|
1037 | r0drv/os2/spinlock-r0drv-os2.cpp \
|
---|
1038 | r0drv/os2/thread-r0drv-os2.cpp \
|
---|
1039 | r0drv/os2/thread2-r0drv-os2.cpp \
|
---|
1040 | r0drv/os2/time-r0drv-os2.cpp \
|
---|
1041 | r0drv/os2/timer-r0drv-os2.cpp \
|
---|
1042 | r0drv/os2/timerA-r0drv-os2.asm
|
---|
1043 |
|
---|
1044 | RuntimeR0Drv_SOURCES.freebsd = \
|
---|
1045 | common/err/RTErrConvertFromErrno.cpp \
|
---|
1046 | common/err/RTErrConvertToErrno.cpp \
|
---|
1047 | common/misc/thread.cpp \
|
---|
1048 | common/string/memchr.asm \
|
---|
1049 | common/string/memmove.asm \
|
---|
1050 | common/string/strpbrk.cpp \
|
---|
1051 | common/string/memcmp.asm \
|
---|
1052 | common/string/strchr.asm \
|
---|
1053 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
1054 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
1055 | generic/RTMpCpuId-generic.cpp \
|
---|
1056 | generic/RTMpCpuIdFromSetIndex-generic.cpp \
|
---|
1057 | generic/RTMpCpuIdToSetIndex-generic.cpp \
|
---|
1058 | generic/RTMpIsCpuPossible-generic.cpp \
|
---|
1059 | generic/RTMpGetCount-generic.cpp \
|
---|
1060 | generic/RTMpGetMaxCpuId-generic.cpp \
|
---|
1061 | generic/RTMpGetOnlineCount-generic.cpp \
|
---|
1062 | generic/RTMpGetOnlineSet-generic.cpp \
|
---|
1063 | generic/RTMpGetSet-generic.cpp \
|
---|
1064 | generic/RTMpIsCpuOnline-generic.cpp \
|
---|
1065 | generic/RTTimerCreate-generic.cpp \
|
---|
1066 | r0drv/generic/RTMpOn-r0drv-generic.cpp \
|
---|
1067 | r0drv/generic/mpnotification-r0drv-generic.cpp \
|
---|
1068 | r0drv/freebsd/alloc-r0drv-freebsd.c \
|
---|
1069 | r0drv/freebsd/assert-r0drv-freebsd.c \
|
---|
1070 | r0drv/freebsd/initterm-r0drv-freebsd.c \
|
---|
1071 | r0drv/freebsd/memobj-r0drv-freebsd.c \
|
---|
1072 | r0drv/freebsd/process-r0drv-freebsd.c \
|
---|
1073 | r0drv/freebsd/semevent-r0drv-freebsd.c \
|
---|
1074 | r0drv/freebsd/semeventmulti-r0drv-freebsd.c \
|
---|
1075 | r0drv/freebsd/semfastmutex-r0drv-freebsd.c \
|
---|
1076 | r0drv/freebsd/spinlock-r0drv-freebsd.c \
|
---|
1077 | r0drv/freebsd/thread-r0drv-freebsd.c \
|
---|
1078 | r0drv/freebsd/thread2-r0drv-freebsd.c \
|
---|
1079 | r0drv/freebsd/time-r0drv-freebsd.c \
|
---|
1080 | r0drv/freebsd/timer-r0drv-freebsd.c \
|
---|
1081 | r0drv/memobj-r0drv.cpp
|
---|
1082 |
|
---|
1083 | RuntimeR0Drv_SOURCES.solaris = \
|
---|
1084 | common/err/RTErrConvertFromErrno.cpp \
|
---|
1085 | common/misc/thread.cpp \
|
---|
1086 | common/string/memchr.asm \
|
---|
1087 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
1088 | generic/RTTimerCreate-generic.cpp \
|
---|
1089 | r0drv/memobj-r0drv.cpp \
|
---|
1090 | r0drv/mpnotification-r0drv.c \
|
---|
1091 | r0drv/solaris/mpnotification-r0drv-solaris.c
|
---|
1092 |
|
---|
1093 | ifdef VBOX_WITH_SOLARIS_VBI
|
---|
1094 | RuntimeR0Drv_SOURCES.solaris += \
|
---|
1095 | r0drv/solaris/vbi/alloc-r0drv-solaris.c \
|
---|
1096 | r0drv/solaris/vbi/assert-r0drv-solaris.c \
|
---|
1097 | r0drv/solaris/vbi/initterm-r0drv-solaris.c \
|
---|
1098 | r0drv/solaris/vbi/memobj-r0drv-solaris.c \
|
---|
1099 | r0drv/solaris/vbi/mp-r0drv-solaris.c \
|
---|
1100 | r0drv/solaris/vbi/process-r0drv-solaris.c \
|
---|
1101 | r0drv/solaris/vbi/RTLogWriteDebugger-r0drv-solaris.c \
|
---|
1102 | r0drv/solaris/vbi/semevent-r0drv-solaris.c \
|
---|
1103 | r0drv/solaris/vbi/semeventmulti-r0drv-solaris.c \
|
---|
1104 | r0drv/solaris/vbi/semfastmutex-r0drv-solaris.c \
|
---|
1105 | r0drv/solaris/vbi/spinlock-r0drv-solaris.c \
|
---|
1106 | r0drv/solaris/vbi/thread-r0drv-solaris.c \
|
---|
1107 | r0drv/solaris/vbi/thread2-r0drv-solaris.c \
|
---|
1108 | r0drv/solaris/vbi/time-r0drv-solaris.c \
|
---|
1109 | r0drv/solaris/vbi/timer-r0drv-solaris.c
|
---|
1110 | else # !VBOX_WITH_SOLARIS_VBI
|
---|
1111 | RuntimeR0Drv_SOURCES.solaris += \
|
---|
1112 | r0drv/solaris/alloc-r0drv-solaris.c \
|
---|
1113 | r0drv/solaris/assert-r0drv-solaris.c \
|
---|
1114 | r0drv/solaris/initterm-r0drv-solaris.c \
|
---|
1115 | r0drv/solaris/memobj-r0drv-solaris.c \
|
---|
1116 | r0drv/solaris/process-r0drv-solaris.c \
|
---|
1117 | r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \
|
---|
1118 | r0drv/solaris/semevent-r0drv-solaris.c \
|
---|
1119 | r0drv/solaris/semeventmulti-r0drv-solaris.c \
|
---|
1120 | r0drv/solaris/semfastmutex-r0drv-solaris.c \
|
---|
1121 | r0drv/solaris/spinlock-r0drv-solaris.c \
|
---|
1122 | r0drv/solaris/thread-r0drv-solaris.c \
|
---|
1123 | r0drv/solaris/thread2-r0drv-solaris.c \
|
---|
1124 | r0drv/solaris/time-r0drv-solaris.c \
|
---|
1125 | r0drv/solaris/timer-r0drv-solaris.c
|
---|
1126 | # Don't use mp-r0drv-solaris.c because it will cause crashes due to incorrect memobj-r0drv-solaris.c code.
|
---|
1127 | ifeq (0,0)
|
---|
1128 | # Stub it. ## @todo limit the stubbing to RTMpOn*.
|
---|
1129 | RuntimeR0Drv_SOURCES.solaris += \
|
---|
1130 | generic/RTMpCpuId-generic.cpp \
|
---|
1131 | generic/RTMpCpuIdFromSetIndex-generic.cpp \
|
---|
1132 | generic/RTMpCpuIdToSetIndex-generic.cpp \
|
---|
1133 | generic/RTMpIsCpuPossible-generic.cpp \
|
---|
1134 | generic/RTMpGetCount-generic.cpp \
|
---|
1135 | generic/RTMpGetMaxCpuId-generic.cpp \
|
---|
1136 | generic/RTMpGetOnlineCount-generic.cpp \
|
---|
1137 | generic/RTMpGetOnlineSet-generic.cpp \
|
---|
1138 | generic/RTMpGetSet-generic.cpp \
|
---|
1139 | generic/RTMpIsCpuOnline-generic.cpp \
|
---|
1140 | r0drv/generic/RTMpOn-r0drv-generic.cpp
|
---|
1141 | else
|
---|
1142 | # Use mp-r0drv-solaris.c.
|
---|
1143 | RuntimeR0Drv_SOURCES.solaris += \
|
---|
1144 | r0drv/solaris/mp-r0drv-solaris.c
|
---|
1145 | # r0drv/solaris/mpnotification-r0drv-solaris.c
|
---|
1146 | endif
|
---|
1147 |
|
---|
1148 | endif # !VBOX_WITH_SOLARIS_VBI
|
---|
1149 |
|
---|
1150 | ## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here.
|
---|
1151 |
|
---|
1152 |
|
---|
1153 | #
|
---|
1154 | # RuntimeGuestR0 - Guest driver runtime.
|
---|
1155 | # This is almost the same as the RuntimeR0Drv, the main difference
|
---|
1156 | # is in the backdoor logging and the lack of sup.h (which should be
|
---|
1157 | # made irrelevant even for RuntimeR0Drv).
|
---|
1158 | #
|
---|
1159 | RuntimeGuestR0_TEMPLATE := VBOXGUESTR0LIB
|
---|
1160 | RuntimeGuestR0_SOURCES := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES))
|
---|
1161 | RuntimeGuestR0_SOURCES += VBox/logbackdoor.cpp
|
---|
1162 | RuntimeGuestR0_EXTENDS = RuntimeR0Drv
|
---|
1163 |
|
---|
1164 | # HACK: no vbi for the solaris guest additions - yet.
|
---|
1165 | RuntimeGuestR0_SOURCES.solaris = \
|
---|
1166 | common/err/RTErrConvertFromErrno.cpp \
|
---|
1167 | common/misc/thread.cpp \
|
---|
1168 | common/string/memchr.asm \
|
---|
1169 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
1170 | generic/RTTimerCreate-generic.cpp \
|
---|
1171 | r0drv/memobj-r0drv.cpp \
|
---|
1172 | generic/RTMpCpuId-generic.cpp \
|
---|
1173 | generic/RTMpCpuIdFromSetIndex-generic.cpp \
|
---|
1174 | generic/RTMpCpuIdToSetIndex-generic.cpp \
|
---|
1175 | generic/RTMpIsCpuPossible-generic.cpp \
|
---|
1176 | generic/RTMpGetCount-generic.cpp \
|
---|
1177 | generic/RTMpGetMaxCpuId-generic.cpp \
|
---|
1178 | generic/RTMpGetOnlineCount-generic.cpp \
|
---|
1179 | generic/RTMpGetOnlineSet-generic.cpp \
|
---|
1180 | generic/RTMpGetSet-generic.cpp \
|
---|
1181 | generic/RTMpIsCpuOnline-generic.cpp \
|
---|
1182 | r0drv/generic/RTMpOn-r0drv-generic.cpp \
|
---|
1183 | r0drv/generic/mpnotification-r0drv-generic.cpp \
|
---|
1184 | r0drv/solaris/alloc-r0drv-solaris.c \
|
---|
1185 | r0drv/solaris/assert-r0drv-solaris.c \
|
---|
1186 | r0drv/solaris/initterm-r0drv-solaris.c \
|
---|
1187 | r0drv/solaris/memobj-r0drv-solaris.c \
|
---|
1188 | r0drv/solaris/process-r0drv-solaris.c \
|
---|
1189 | r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \
|
---|
1190 | r0drv/solaris/semevent-r0drv-solaris.c \
|
---|
1191 | r0drv/solaris/semeventmulti-r0drv-solaris.c \
|
---|
1192 | r0drv/solaris/semfastmutex-r0drv-solaris.c \
|
---|
1193 | r0drv/solaris/spinlock-r0drv-solaris.c \
|
---|
1194 | r0drv/solaris/thread-r0drv-solaris.c \
|
---|
1195 | r0drv/solaris/thread2-r0drv-solaris.c \
|
---|
1196 | r0drv/solaris/time-r0drv-solaris.c \
|
---|
1197 | r0drv/solaris/timer-r0drv-solaris.c
|
---|
1198 |
|
---|
1199 | #
|
---|
1200 | # RuntimeGuestR0NT4 - Win32 NT4 guest driver runtime.
|
---|
1201 | #
|
---|
1202 | RuntimeGuestR0NT4_EXTENDS = RuntimeGuestR0
|
---|
1203 | RuntimeGuestR0NT4_EXTENDS_BY = appending
|
---|
1204 | RuntimeGuestR0NT4_DEFS = IPRT_TARGET_NT4
|
---|
1205 |
|
---|
1206 |
|
---|
1207 | #
|
---|
1208 | # RuntimeGC - Guest context library.
|
---|
1209 | #
|
---|
1210 | RuntimeGC_TEMPLATE = VBOXGC
|
---|
1211 | RuntimeGC_DEFS = IN_RT_GC RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS
|
---|
1212 | RuntimeGC_INCS = include
|
---|
1213 | RuntimeGC_SOURCES = \
|
---|
1214 | common/log/log.cpp \
|
---|
1215 | common/log/logcom.cpp \
|
---|
1216 | common/log/logformat.cpp \
|
---|
1217 | common/misc/assert.cpp \
|
---|
1218 | common/misc/sanity-c.c \
|
---|
1219 | common/misc/sanity-cpp.cpp \
|
---|
1220 | common/string/memchr.cpp \
|
---|
1221 | common/string/memcmp.cpp \
|
---|
1222 | common/string/memcpy.cpp \
|
---|
1223 | common/string/memset.cpp \
|
---|
1224 | common/string/memmove.asm \
|
---|
1225 | common/string/strcpy.cpp \
|
---|
1226 | common/string/strformat.cpp \
|
---|
1227 | common/string/strformatrt.cpp \
|
---|
1228 | common/string/strformattype.cpp \
|
---|
1229 | common/string/strlen.asm \
|
---|
1230 | common/string/strncmp.cpp \
|
---|
1231 | common/string/strpbrk.cpp \
|
---|
1232 | common/string/strprintf.cpp \
|
---|
1233 | common/table/avllu32.cpp \
|
---|
1234 | common/table/avlou32.cpp \
|
---|
1235 | common/table/avlogcphys.cpp \
|
---|
1236 | common/table/avlogcptr.cpp \
|
---|
1237 | common/table/avlohcphys.cpp \
|
---|
1238 | common/table/avloioport.cpp \
|
---|
1239 | common/table/avlrogcphys.cpp \
|
---|
1240 | common/table/avlrogcptr.cpp \
|
---|
1241 | common/table/avlroioport.cpp \
|
---|
1242 | common/table/avlroogcptr.cpp \
|
---|
1243 | common/table/avlu32.cpp \
|
---|
1244 | common/time/timeprog.cpp \
|
---|
1245 | common/time/timesup.cpp \
|
---|
1246 | gc/initterm-gc.cpp \
|
---|
1247 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
1248 | VBox/strformat-vbox.cpp \
|
---|
1249 |
|
---|
1250 | #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
|
---|
1251 | # RuntimeGC_SOURCES += common/time/timesupA.asm
|
---|
1252 | #else
|
---|
1253 | RuntimeGC_SOURCES += common/time/timesupref.cpp
|
---|
1254 | #endif
|
---|
1255 |
|
---|
1256 | RuntimeGC_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
|
---|
1257 |
|
---|
1258 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
1259 | RuntimeGC_SOURCES += os2/sys0.asm
|
---|
1260 | endif
|
---|
1261 |
|
---|
1262 | if1of ($(KBUILD_TARGET), darwin solaris freebsd)
|
---|
1263 | RuntimeGC_SOURCES += \
|
---|
1264 | common/math/gcc/adddi3.c \
|
---|
1265 | common/math/gcc/anddi3.c \
|
---|
1266 | common/math/gcc/ashldi3.c \
|
---|
1267 | common/math/gcc/ashrdi3.c \
|
---|
1268 | common/math/gcc/cmpdi2.c \
|
---|
1269 | common/math/gcc/divdi3.c \
|
---|
1270 | common/math/gcc/iordi3.c \
|
---|
1271 | common/math/gcc/lshldi3.c \
|
---|
1272 | common/math/gcc/lshrdi3.c \
|
---|
1273 | common/math/gcc/moddi3.c \
|
---|
1274 | common/math/gcc/muldi3.c \
|
---|
1275 | common/math/gcc/negdi2.c \
|
---|
1276 | common/math/gcc/notdi2.c \
|
---|
1277 | common/math/gcc/qdivrem.c \
|
---|
1278 | common/math/gcc/subdi3.c \
|
---|
1279 | common/math/gcc/ucmpdi2.c \
|
---|
1280 | common/math/gcc/udivdi3.c \
|
---|
1281 | common/math/gcc/umoddi3.c \
|
---|
1282 | common/math/gcc/xordi3.c
|
---|
1283 | endif
|
---|
1284 |
|
---|
1285 |
|
---|
1286 | #
|
---|
1287 | # Static library for new & delete for the electric fence.
|
---|
1288 | #
|
---|
1289 | RuntimeEFCPP_TEMPLATE = $(RuntimeR3_TEMPLATE)
|
---|
1290 | RuntimeEFCPP_SDKS = $(RuntimeR3_SDKS)
|
---|
1291 | RuntimeEFCPP_SDKS.$(KBUILD_TARGET) = $(RuntimeR3_SDKS.$(KBUILD_TARGET))
|
---|
1292 | RuntimeEFCPP_DEFS = $(RuntimeR3_DEFS)
|
---|
1293 | RuntimeEFCPP_DEFS.$(KBUILD_TARGET) = $(RuntimeR3_DEFS.$(KBUILD_TARGET))
|
---|
1294 | RuntimeEFCPP_INCS = $(RuntimeR3_INCS)
|
---|
1295 | RuntimeEFCPP_INCS.$(KBUILD_TARGET) = $(RuntimeR3_INCS.$(KBUILD_TARGET))
|
---|
1296 | RuntimeEFCPP_SOURCES = r3/alloc-ef-cpp.cpp
|
---|
1297 |
|
---|
1298 |
|
---|
1299 |
|
---|
1300 | #
|
---|
1301 | # errmsg.cpp depends on a generated header.
|
---|
1302 | #
|
---|
1303 | common/err/errmsg.cpp_DEPS = $(PATH_TARGET)/errmsgdata.h
|
---|
1304 | common/err/errmsg.cpp_INCS = $(PATH_TARGET)
|
---|
1305 |
|
---|
1306 | win/errmsgwin.cpp_DEPS = $(PATH_TARGET)/errmsgcomdata.h
|
---|
1307 | win/errmsgwin.cpp_INCS = $(PATH_TARGET)
|
---|
1308 |
|
---|
1309 |
|
---|
1310 | #
|
---|
1311 | # Generate the rules (we're the to sub-makefile).
|
---|
1312 | #
|
---|
1313 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
1314 |
|
---|
1315 |
|
---|
1316 | ifneq ($(wildcard /usr/bin/chcon),)
|
---|
1317 | # this is needed for testcases executed at build time
|
---|
1318 | ## @todo Make a special installer tool that does this.
|
---|
1319 | $(PATH_BIN)/VBoxRT.so:
|
---|
1320 | $(INSTALL) $(TARGET_VBoxRT) $@
|
---|
1321 | chcon -t texrel_shlib_t $@ || true
|
---|
1322 | endif
|
---|
1323 |
|
---|
1324 |
|
---|
1325 | #
|
---|
1326 | # Generate the status code data.
|
---|
1327 | #
|
---|
1328 | $(PATH_TARGET)/errmsgdata.h: common/err/errmsg.sed $(DEPTH)/include/iprt/err.h $(DEPTH)/include/VBox/err.h
|
---|
1329 | $(call MSG_GENERATE,,$@,$(filter %.h,$^))
|
---|
1330 | $(QUIET)$(MKDIR) -p $(PATH_TARGET)
|
---|
1331 | $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
|
---|
1332 |
|
---|
1333 | ## @todo r=bird: rename this to indicate that it's not only COM errors, but all win32/64 errors.
|
---|
1334 | $(PATH_TARGET)/errmsgcomdata.h: common/err/errmsgcom.sed $(PATH_SDK_WINPSDK_INC)/WinError.h
|
---|
1335 | $(call MSG_GENERATE,,$@,$(filter %.h,$^))
|
---|
1336 | $(QUIET)$(MKDIR) -p $(PATH_TARGET)
|
---|
1337 | $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
|
---|
1338 |
|
---|
1339 |
|
---|
1340 | #
|
---|
1341 | # Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
|
---|
1342 | #
|
---|
1343 | ldrELFRelocatable.cpp.o: ldrELF.o
|
---|
1344 | ldrELFRelocatable.cpp.obj: ldrELF.obj
|
---|
1345 |
|
---|
1346 |
|
---|
1347 | #
|
---|
1348 | # Doxygen documentation.
|
---|
1349 | #
|
---|
1350 | DOXYGEN_INPUT_DIRS = \
|
---|
1351 | $(PATH_ROOT)/include/iprt \
|
---|
1352 | $(PATH_ROOT)/include/iprt/nocrt \
|
---|
1353 | $(PATH_ROOT)/include/iprt/nocrt/x86 \
|
---|
1354 | $(PATH_ROOT)/include/iprt/nocrt/amd64 \
|
---|
1355 | include/internal \
|
---|
1356 | common/alloc \
|
---|
1357 | common/checksum \
|
---|
1358 | common/err \
|
---|
1359 | common/ldr \
|
---|
1360 | common/log \
|
---|
1361 | common/misc \
|
---|
1362 | common/string \
|
---|
1363 | common/table \
|
---|
1364 | common/time \
|
---|
1365 | VBox/ \
|
---|
1366 | $(foreach dir, . r3 r0drv,\
|
---|
1367 | $(dir) \
|
---|
1368 | $(dir)/darwin \
|
---|
1369 | $(dir)/l4 \
|
---|
1370 | $(dir)/linux \
|
---|
1371 | $(dir)/nt \
|
---|
1372 | $(dir)/os2 \
|
---|
1373 | $(dir)/win \
|
---|
1374 | $(dir)/win32 \
|
---|
1375 | $(dir)/win64 \
|
---|
1376 | $(dir)/generic \
|
---|
1377 | )
|
---|
1378 |
|
---|
1379 | # These must come first in order to make things look nice.
|
---|
1380 | DOXYGEN_INPUT_FIRST =\
|
---|
1381 | $(PATH_ROOT)/include/iprt/cdefs.h \
|
---|
1382 | $(PATH_ROOT)/include/iprt/types.h \
|
---|
1383 | $(PATH_ROOT)/include/iprt/runtime.h \
|
---|
1384 | $(PATH_ROOT)/include/iprt/param.h \
|
---|
1385 | $(PATH_ROOT)/include/iprt/assert.h \
|
---|
1386 | $(PATH_ROOT)/include/iprt/asm.h \
|
---|
1387 |
|
---|
1388 | DOXYGEN_INPUT := \
|
---|
1389 | $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(DOXYGEN_INPUT_DIRS)))) ) \
|
---|
1390 | $(foreach dir, $(DOXYGEN_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
|
---|
1391 | DOXYGEN_INPUT := \
|
---|
1392 | $(DOXYGEN_INPUT_FIRST) \
|
---|
1393 | $(filter-out $(DOXYGEN_INPUT_FIRST), $(DOXYGEN_INPUT))
|
---|
1394 |
|
---|
1395 |
|
---|
1396 | DOXYGEN_OUTPUT = $(PATH_OUT)/docs/iprt
|
---|
1397 |
|
---|
1398 | -include $(PATH_TARGET)/Doxyfile.dep
|
---|
1399 |
|
---|
1400 | # Generate the Doxyfile
|
---|
1401 | $(PATH_TARGET)/Doxyfile: Doxyfile Makefile.kmk \
|
---|
1402 | $(comp-vars DOXYGEN_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
|
---|
1403 | $(comp-vars DOXYGEN_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
|
---|
1404 | | $(call DIRDEP, $(PATH_TARGET))
|
---|
1405 | $(RM) -f $@ [email protected] $(PATH_TARGET)/Doxyfile.dep
|
---|
1406 | $(CP) -f Doxyfile [email protected]
|
---|
1407 | $(APPEND) [email protected]
|
---|
1408 | $(APPEND) [email protected] "OUTPUT_DIRECTORY = $(DOXYGEN_OUTPUT)"
|
---|
1409 | $(APPEND) [email protected] "WARN_LOGFILE = $(DOXYGEN_OUTPUT)/errors"
|
---|
1410 | $(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include include . common/table"
|
---|
1411 | $(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
|
---|
1412 | $(APPEND) [email protected] "PREDEFINED += $(ARCH_BITS_DEFS)"
|
---|
1413 | $(APPEND) [email protected]
|
---|
1414 | $(APPEND) [email protected] "INPUT = $(DOXYGEN_INPUT)"
|
---|
1415 | $(APPEND) [email protected]
|
---|
1416 | $(MV) -f [email protected] $@
|
---|
1417 | @$(APPEND) $(PATH_TARGET)/Doxyfile.dep "DOXYGEN_OUTPUT_PREV = $(DOXYGEN_OUTPUT)"
|
---|
1418 | @$(APPEND) $(PATH_TARGET)/Doxyfile.dep "DOXYGEN_INPUT_PREV = $(DOXYGEN_INPUT)"
|
---|
1419 |
|
---|
1420 | # Create the output directory.
|
---|
1421 | $(call DIRDEP, $(DOXYGEN_OUTPUT)):
|
---|
1422 | $(MKDIR) -p $@
|
---|
1423 |
|
---|
1424 | # Do the actual job.
|
---|
1425 | $(PATH_TARGET)/docs.iprt: $(PATH_TARGET)/Doxyfile $(DOXYGEN_INPUT) | $(call DIRDEP, $(DOXYGEN_OUTPUT))
|
---|
1426 | $(RM) -f $(wildcard $(DOXYGEN_OUTPUT)/html/*) $(PATH_TARGET)/docs.iprt
|
---|
1427 | doxygen $(PATH_TARGET)/Doxyfile
|
---|
1428 | $(APPEND) $(PATH_TARGET)/docs.iprt
|
---|
1429 |
|
---|
1430 | # alias
|
---|
1431 | docs: $(PATH_TARGET)/docs.iprt
|
---|
1432 |
|
---|
1433 | test:
|
---|
1434 | @echo test-$(comp-vars DOXYGEN_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE)
|
---|
1435 | @echo $(DOXYGEN_OUTPUT)
|
---|
1436 | @echo $(DOXYGEN_OUTPUT_PREV)
|
---|
1437 | @echo $(DOXYGEN_INPUT)
|
---|
1438 |
|
---|