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