1 | # $Id: Makefile.kmk 4155 2007-08-15 19:41:26Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the innotek Portable Runtime (IPRT).
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 innotek GmbH
|
---|
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 as published by the Free Software Foundation,
|
---|
13 | # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
14 | # distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
15 | # be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 |
|
---|
17 |
|
---|
18 | DEPTH = ../../..
|
---|
19 | include $(PATH_KBUILD)/header.kmk
|
---|
20 |
|
---|
21 | ifdef VBOX_ADDITIONS_LINUX_ONLY
|
---|
22 | LIBRARIES = RuntimeLnx32GuestR0 RuntimeLnx32GuestR3
|
---|
23 | else ifdef VBOX_ADDITIONS_WIN32_ONLY
|
---|
24 | LIBRARIES = RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0
|
---|
25 | else ifdef VBOX_ADDITIONS_OS2_ONLY
|
---|
26 | LIBRARIES += RuntimeOS2GuestR0 RuntimeOS2GuestR3 #RuntimeOS2Warp3GuestR0
|
---|
27 | else
|
---|
28 | # Build everything.
|
---|
29 | BLDPROGS = uniread
|
---|
30 | LIBRARIES = RuntimeR3 RuntimeR0 RuntimeGC RuntimeEFCPP RuntimeR3NoCRTGCC
|
---|
31 | ifdef VBOX_WITH_VBOXDRV
|
---|
32 | LIBRARIES += RuntimeR0Drv
|
---|
33 | endif
|
---|
34 | ifdef VBOX_WITH_WIN32_ADDITIONS
|
---|
35 | LIBRARIES += RuntimeW32GuestR0 RuntimeW32GuestR3 RuntimeW32NT4GuestR0
|
---|
36 | endif
|
---|
37 | ifdef VBOX_WITH_LINUX_ADDITIONS
|
---|
38 | LIBRARIES += RuntimeLnx32GuestR3
|
---|
39 | ifdef VBOX_WITH_LINUX_ADDITIONS_32BIT_R0
|
---|
40 | LIBRARIES += RuntimeLnx32GuestR0
|
---|
41 | endif
|
---|
42 | endif
|
---|
43 | ifdef VBOX_WITH_OS2_ADDITIONS
|
---|
44 | LIBRARIES += RuntimeOS2GuestR0 RuntimeOS2GuestR3 #RuntimeOS2Warp3GuestR0
|
---|
45 | endif
|
---|
46 | LIBRARIES.l4= RuntimeR3L4
|
---|
47 | DLLS = VBoxRT
|
---|
48 | OTHER_CLEAN = \
|
---|
49 | $(PATH_TARGET)/errmsgdata.h \
|
---|
50 | $(PATH_TARGET)/errmsgcomdata.h \
|
---|
51 | $(PATH_TARGET)/Doxyfile \
|
---|
52 | $(PATH_TARGET)/Doxyfile.dep \
|
---|
53 | $(PATH_TARGET)/docs.iprt
|
---|
54 |
|
---|
55 | SUBDIRS_AFTER = testcase
|
---|
56 | endif
|
---|
57 |
|
---|
58 |
|
---|
59 | # global (for now at least)
|
---|
60 | INCS += include
|
---|
61 |
|
---|
62 | ifneq ($(wildcard ./kLdr/kLdrModMachO.c),)
|
---|
63 | ifeq ($(filter-out darwin win os2,$(BUILD_TARGET)),)
|
---|
64 | IPRT_WITH_KLDR=1
|
---|
65 | IPRT_PATH_KLDR=./kLdr
|
---|
66 | endif
|
---|
67 | endif
|
---|
68 |
|
---|
69 | #
|
---|
70 | # Unicode Specification reader used to regenerate unidata.cpp.
|
---|
71 | #
|
---|
72 | uniread_TEMPLATE = VBOXBLDPROG
|
---|
73 | uniread_SOURCES = uniread.cpp
|
---|
74 |
|
---|
75 | #
|
---|
76 | # Win64 assembly sources.
|
---|
77 | #
|
---|
78 | RuntimeWin64ASM_SOURCES = \
|
---|
79 | win64/ASMAtomicBitClear.asm \
|
---|
80 | win64/ASMAtomicBitTestAndToggle.asm \
|
---|
81 | win64/ASMAtomicBitToggle.asm \
|
---|
82 | win64/ASMAtomicReadU64.asm \
|
---|
83 | win64/ASMAtomicXchgU16.asm \
|
---|
84 | win64/ASMAtomicXchgU8.asm \
|
---|
85 | win64/ASMBitFirstClear.asm \
|
---|
86 | win64/ASMBitFirstSet.asm \
|
---|
87 | win64/ASMGetCS.asm \
|
---|
88 | win64/ASMGetDS.asm \
|
---|
89 | win64/ASMGetES.asm \
|
---|
90 | win64/ASMGetFlags.asm \
|
---|
91 | win64/ASMGetFS.asm \
|
---|
92 | win64/ASMGetGS.asm \
|
---|
93 | win64/ASMGetIDTR.asm \
|
---|
94 | win64/ASMGetGDTR.asm \
|
---|
95 | win64/ASMGetTR.asm \
|
---|
96 | win64/ASMGetSS.asm \
|
---|
97 | win64/ASMProbeReadByte.asm \
|
---|
98 | win64/ASMSetFlags.asm \
|
---|
99 | win64/ASMGetDR0.asm \
|
---|
100 | win64/ASMGetDR1.asm \
|
---|
101 | win64/ASMGetDR2.asm \
|
---|
102 | win64/ASMGetDR3.asm \
|
---|
103 | win64/ASMGetDR6.asm \
|
---|
104 | win64/ASMGetDR7.asm \
|
---|
105 | win64/ASMMultU64ByU32DivByU32.asm \
|
---|
106 |
|
---|
107 | #
|
---|
108 | # RuntimeR3 - Static Runtime for Ring-3 executables.
|
---|
109 | #
|
---|
110 | RuntimeR3_TEMPLATE = VBOXR3EXE
|
---|
111 | RuntimeR3_SDKS.win = WINPSDK W2K3DDK
|
---|
112 | RuntimeR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX
|
---|
113 | ifdef IPRT_WITH_KLDR
|
---|
114 | RuntimeR3_DEFS += LDR_WITH_KLDR KLDR_USE_CRT
|
---|
115 | RuntimeR3_DEFS.debug += KLDRMOD_STRICT KLDRMODLX_STRICT KLDRMODPE_STRICT KLDRMODNATIVE_STRICT KLDRRDR_STRICT
|
---|
116 | endif
|
---|
117 | ifdef VBOX_MAIN_RELEASE_LOG ## @todo (dmik): temporary, until RTThreadSelf/RTThreadAdopt are properly updated
|
---|
118 | RuntimeR3_DEFS += RTCRITSECT_STRICT
|
---|
119 | endif
|
---|
120 | RuntimeR3_INCS = \
|
---|
121 | $(PATH_ROOT)/src/libs/liblzf-1.51
|
---|
122 | ifdef IPRT_WITH_KLDR
|
---|
123 | RuntimeR3_INCS += \
|
---|
124 | $(IPRT_PATH_KLDR)
|
---|
125 | endif
|
---|
126 | RuntimeR3_INCS.l4 = \
|
---|
127 | $(L4_INCDIR)
|
---|
128 | # for iconv.h
|
---|
129 | RuntimeR3_INCS.freebsd = \
|
---|
130 | /usr/local/include
|
---|
131 |
|
---|
132 |
|
---|
133 | # RuntimeR3_INCS.solaris = \
|
---|
134 | # /usr/include
|
---|
135 |
|
---|
136 | RuntimeR3_SOURCES = \
|
---|
137 | misc/sanity-cpp.cpp \
|
---|
138 | misc/sanity-c.c \
|
---|
139 | alloc.cpp \
|
---|
140 | alloc/heapsimple.cpp \
|
---|
141 | assert.cpp \
|
---|
142 | table/avlhcphys.cpp \
|
---|
143 | table/avlgcptr.cpp \
|
---|
144 | table/avlogcphys.cpp \
|
---|
145 | table/avlogcptr.cpp \
|
---|
146 | table/avlohcphys.cpp \
|
---|
147 | table/avloioport.cpp \
|
---|
148 | table/avlpv.cpp \
|
---|
149 | table/avlrgcptr.cpp \
|
---|
150 | table/avlrogcphys.cpp \
|
---|
151 | table/avlrogcptr.cpp \
|
---|
152 | table/avlroogcptr.cpp \
|
---|
153 | table/avlroioport.cpp \
|
---|
154 | table/avlu32.cpp \
|
---|
155 | table/avlul.cpp \
|
---|
156 | table/table.cpp \
|
---|
157 | crc32.cpp \
|
---|
158 | crc64.cpp \
|
---|
159 | dir.cpp \
|
---|
160 | errmsg.cpp \
|
---|
161 | fileio.cpp \
|
---|
162 | fs.cpp \
|
---|
163 | generic/critsect-generic.cpp \
|
---|
164 | generic/RTFileCopy-generic.cpp \
|
---|
165 | generic/RTLogWriteStdErr-generic.cpp \
|
---|
166 | generic/RTLogWriteStdOut-generic.cpp \
|
---|
167 | generic/RTLogWriteUser-generic.cpp \
|
---|
168 | generic/semfastmutex-generic.cpp \
|
---|
169 | generic/spinlock-generic.cpp \
|
---|
170 | generic/env-generic.cpp \
|
---|
171 | ldr.cpp \
|
---|
172 | ldrFile.cpp \
|
---|
173 | ldrNative.cpp \
|
---|
174 | ldrELF.cpp \
|
---|
175 | ldrEx.cpp \
|
---|
176 | ldrPE.cpp \
|
---|
177 | log.cpp \
|
---|
178 | logcom.cpp \
|
---|
179 | logformat.cpp \
|
---|
180 | md5.cpp \
|
---|
181 | path.cpp \
|
---|
182 | req.cpp \
|
---|
183 | r3/alloc-ef.cpp \
|
---|
184 | r3/alloc.cpp \
|
---|
185 | r3/init.cpp \
|
---|
186 | r3/process.cpp \
|
---|
187 | r3/stream.cpp \
|
---|
188 | r3/tcp.cpp \
|
---|
189 | RTErrConvertFromErrno.cpp \
|
---|
190 | semspingpong.cpp \
|
---|
191 | straprintf.cpp \
|
---|
192 | strformat.cpp \
|
---|
193 | strformatrt.cpp \
|
---|
194 | string.cpp \
|
---|
195 | strprintf.cpp \
|
---|
196 | strspace.cpp \
|
---|
197 | strstrip.cpp \
|
---|
198 | strtonum.cpp \
|
---|
199 | thread.cpp \
|
---|
200 | time.cpp \
|
---|
201 | timeprog.cpp \
|
---|
202 | uni.cpp \
|
---|
203 | unidata.cpp \
|
---|
204 | utf-16.cpp \
|
---|
205 | utf-8.cpp \
|
---|
206 | zip.cpp \
|
---|
207 | misc/rand.cpp \
|
---|
208 |
|
---|
209 | ifdef IPRT_WITH_KLDR
|
---|
210 | RuntimeR3_SOURCES += \
|
---|
211 | ldrkLdr.cpp \
|
---|
212 | $(IPRT_PATH_KLDR)/kLdrMod.c \
|
---|
213 | $(IPRT_PATH_KLDR)/kLdrModLX.c \
|
---|
214 | $(IPRT_PATH_KLDR)/kLdrModPE.c \
|
---|
215 | $(IPRT_PATH_KLDR)/kLdrModMachO.c \
|
---|
216 | $(IPRT_PATH_KLDR)/kLdrModNative.c \
|
---|
217 | $(IPRT_PATH_KLDR)/kLdrMisc.c \
|
---|
218 | $(IPRT_PATH_KLDR)/kLdrRdr.c \
|
---|
219 | $(IPRT_PATH_KLDR)/kLdrHlpStr.c
|
---|
220 | # We Implement these using IPRT facilities.
|
---|
221 | # $(IPRT_PATH_KLDR)/kLdrHlp.c \
|
---|
222 | # $(IPRT_PATH_KLDR)/kLdrHlpHeap.c \
|
---|
223 | # $(IPRT_PATH_KLDR)/kLdrHlpSem.c \
|
---|
224 | # $(IPRT_PATH_KLDR)/kLdrHlpMem.c \
|
---|
225 | # $(IPRT_PATH_KLDR)/kLdrHlpPath.c
|
---|
226 |
|
---|
227 | endif
|
---|
228 |
|
---|
229 | # VBox specific stuff.
|
---|
230 | RuntimeR3_SOURCES += \
|
---|
231 | VBox/strformat-vbox.cpp \
|
---|
232 | VBox/RTAssertDoBreakpoint-vbox.cpp \
|
---|
233 | VBox/log-vbox.cpp
|
---|
234 |
|
---|
235 | RuntimeR3_SOURCES.win = \
|
---|
236 | generic/RTDirQueryInfo-generic.cpp \
|
---|
237 | generic/RTDirSetTimes-generic.cpp \
|
---|
238 | generic/semsrw-generic.cpp \
|
---|
239 | generic/semnoint-generic.cpp \
|
---|
240 | generic/rand-stubs-generic.cpp \
|
---|
241 | nt/RTErrConvertFromNtStatus.cpp \
|
---|
242 | win32/errmsgwin.cpp \
|
---|
243 | r3/posix/env-posix.cpp \
|
---|
244 | r3/win32/alloc-win32.cpp \
|
---|
245 | r3/win32/dir-win32.cpp \
|
---|
246 | r3/win32/fileio-win32.cpp \
|
---|
247 | r3/win32/fs-win32.cpp \
|
---|
248 | r3/win32/ldrNative-win32.cpp \
|
---|
249 | r3/win32/path-win32.cpp \
|
---|
250 | r3/win32/process-win32.cpp \
|
---|
251 | r3/win32/RTLogWriteDebugger-win32.cpp \
|
---|
252 | r3/win32/sched-win32.cpp \
|
---|
253 | r3/win32/sems-win32.cpp \
|
---|
254 | r3/win32/system-win32.cpp \
|
---|
255 | r3/win32/thread-win32.cpp \
|
---|
256 | r3/win32/time-win32.cpp \
|
---|
257 | r3/win32/timer-win32.cpp \
|
---|
258 | r3/win32/utf16locale-win32.cpp \
|
---|
259 | r3/win32/utf8-win32.cpp \
|
---|
260 | r3/win32/uuid-win32.cpp \
|
---|
261 | timesup.cpp \
|
---|
262 | win32/RTErrConvertFromWin32.cpp
|
---|
263 |
|
---|
264 | RuntimeR3_SOURCES.win.amd64 = \
|
---|
265 | $(RuntimeWin64ASM_SOURCES)
|
---|
266 |
|
---|
267 | RuntimeR3_SOURCES.linux = \
|
---|
268 | generic/RTDirQueryInfo-generic.cpp \
|
---|
269 | generic/RTDirSetTimes-generic.cpp \
|
---|
270 | generic/RTFileMove-generic.cpp \
|
---|
271 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
272 | generic/RTTimeLocalNow-generic.cpp \
|
---|
273 | generic/RTTimerCreate-generic.cpp \
|
---|
274 | r3/posix/RTTimeNow-posix.cpp \
|
---|
275 | r3/posix/alloc-posix.cpp \
|
---|
276 | r3/posix/dir-posix.cpp \
|
---|
277 | r3/posix/env-posix.cpp \
|
---|
278 | r3/posix/fileio-posix.cpp \
|
---|
279 | r3/posix/filelock-posix.cpp \
|
---|
280 | r3/posix/fs-posix.cpp \
|
---|
281 | r3/posix/ldrNative-posix.cpp \
|
---|
282 | r3/posix/path-posix.cpp \
|
---|
283 | generic/pathhost-generic.cpp \
|
---|
284 | r3/posix/process-posix.cpp \
|
---|
285 | r3/posix/rand-posix.cpp \
|
---|
286 | r3/posix/system-posix.cpp \
|
---|
287 | r3/linux/sched-linux.cpp \
|
---|
288 | r3/posix/thread-posix.cpp \
|
---|
289 | r3/linux/time-linux.cpp \
|
---|
290 | r3/posix/timelocal-posix.cpp \
|
---|
291 | r3/posix/timer-posix.cpp \
|
---|
292 | generic/utf16locale-generic.cpp \
|
---|
293 | r3/posix/utf8-posix.cpp \
|
---|
294 | generic/uuid-generic.cpp \
|
---|
295 | timesup.cpp
|
---|
296 | ifeq ($(BUILD_TARGET_ARCH),amd64)
|
---|
297 | RuntimeR3_SOURCES.linux += r3/linux/sems-linux.cpp
|
---|
298 | else
|
---|
299 | RuntimeR3_SOURCES.linux += r3/posix/sems-posix.cpp
|
---|
300 | endif
|
---|
301 |
|
---|
302 | RuntimeR3_SOURCES.os2 = \
|
---|
303 | generic/RTDirQueryInfo-generic.cpp \
|
---|
304 | generic/RTDirSetTimes-generic.cpp \
|
---|
305 | generic/RTFileMove-generic.cpp \
|
---|
306 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
307 | generic/RTTimeLocalNow-generic.cpp \
|
---|
308 | generic/RTTimerCreate-generic.cpp \
|
---|
309 | os2/RTErrConvertFromOS2.cpp \
|
---|
310 | r3/os2/sems-os2.cpp \
|
---|
311 | r3/os2/system-os2.cpp \
|
---|
312 | r3/os2/thread-os2.cpp \
|
---|
313 | r3/posix/alloc-posix.cpp \
|
---|
314 | r3/posix/dir-posix.cpp \
|
---|
315 | r3/posix/env-posix.cpp \
|
---|
316 | r3/posix/fileio-posix.cpp \
|
---|
317 | r3/posix/filelock-posix.cpp \
|
---|
318 | r3/posix/fs-posix.cpp \
|
---|
319 | r3/posix/ldrNative-posix.cpp \
|
---|
320 | r3/posix/path-posix.cpp \
|
---|
321 | generic/pathhost-generic.cpp \
|
---|
322 | r3/posix/process-posix.cpp \
|
---|
323 | generic/rand-stubs-generic.cpp \
|
---|
324 | generic/semsrw-generic.cpp \
|
---|
325 | generic/semnoint-generic.cpp \
|
---|
326 | generic/sched-generic.cpp \
|
---|
327 | r3/os2/time-os2.cpp \
|
---|
328 | r3/posix/timelocal-posix.cpp \
|
---|
329 | generic/timer-generic.cpp \
|
---|
330 | r3/posix/RTTimeNow-posix.cpp \
|
---|
331 | generic/utf16locale-generic.cpp \
|
---|
332 | r3/posix/utf8-posix.cpp \
|
---|
333 | generic/uuid-generic.cpp \
|
---|
334 | timesup.cpp \
|
---|
335 |
|
---|
336 | RuntimeR3_SOURCES.darwin = \
|
---|
337 | darwin/RTErrConvertFromDarwinCOM.cpp \
|
---|
338 | darwin/RTErrConvertFromDarwinIO.cpp \
|
---|
339 | darwin/RTErrConvertFromDarwinKern.cpp \
|
---|
340 | generic/RTDirQueryInfo-generic.cpp \
|
---|
341 | generic/RTDirSetTimes-generic.cpp \
|
---|
342 | generic/RTFileMove-generic.cpp \
|
---|
343 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
344 | generic/RTTimeLocalNow-generic.cpp \
|
---|
345 | generic/RTTimerCreate-generic.cpp \
|
---|
346 | generic/pathhost-generic.cpp \
|
---|
347 | generic/sched-generic.cpp \
|
---|
348 | generic/timer-generic.cpp \
|
---|
349 | generic/utf16locale-generic.cpp \
|
---|
350 | generic/uuid-generic.cpp\
|
---|
351 | r3/darwin/alloc-darwin.cpp \
|
---|
352 | r3/posix/dir-posix.cpp \
|
---|
353 | r3/posix/env-posix.cpp \
|
---|
354 | r3/posix/fileio-posix.cpp \
|
---|
355 | r3/darwin/filelock-darwin.cpp \
|
---|
356 | r3/posix/fs-posix.cpp \
|
---|
357 | r3/posix/ldrNative-posix.cpp \
|
---|
358 | r3/posix/path-posix.cpp \
|
---|
359 | r3/posix/process-posix.cpp \
|
---|
360 | r3/posix/rand-posix.cpp \
|
---|
361 | r3/posix/sems-posix.cpp \
|
---|
362 | r3/posix/system-posix.cpp \
|
---|
363 | r3/posix/thread-posix.cpp \
|
---|
364 | r3/darwin/time-darwin.cpp \
|
---|
365 | r3/posix/timelocal-posix.cpp \
|
---|
366 | r3/posix/utf8-posix.cpp \
|
---|
367 | timesup.cpp \
|
---|
368 |
|
---|
369 | ## @todo Make BSD sched.
|
---|
370 | RuntimeR3_SOURCES.freebsd = \
|
---|
371 | generic/RTDirQueryInfo-generic.cpp \
|
---|
372 | generic/RTDirSetTimes-generic.cpp \
|
---|
373 | generic/RTFileMove-generic.cpp \
|
---|
374 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
375 | generic/RTTimerCreate-generic.cpp \
|
---|
376 | generic/pathhost-generic.cpp \
|
---|
377 | generic/sched-generic.cpp \
|
---|
378 | generic/uuid-generic.cpp \
|
---|
379 | r3/freebsd/alloc-freebsd.cpp \
|
---|
380 | r3/posix/dir-posix.cpp \
|
---|
381 | r3/posix/env-posix.cpp \
|
---|
382 | r3/posix/fileio-posix.cpp \
|
---|
383 | r3/posix/filelock-posix.cpp \
|
---|
384 | r3/posix/fs-posix.cpp \
|
---|
385 | r3/posix/ldrNative-posix.cpp \
|
---|
386 | r3/posix/path-posix.cpp \
|
---|
387 | r3/posix/process-posix.cpp \
|
---|
388 | r3/posix/rand-posix.cpp \
|
---|
389 | r3/posix/sems-posix.cpp \
|
---|
390 | r3/posix/system-posix.cpp \
|
---|
391 | r3/posix/thread-posix.cpp \
|
---|
392 | r3/posix/time-posix.cpp \
|
---|
393 | r3/posix/timelocal-posix.cpp \
|
---|
394 | r3/posix/timer-posix.cpp \
|
---|
395 | r3/posix/RTTimeNow-posix.cpp \
|
---|
396 | generic/utf16locale-generic.cpp \
|
---|
397 | r3/posix/utf8-posix.cpp \
|
---|
398 | timesup.cpp \
|
---|
399 |
|
---|
400 | RuntimeR3_SOURCES.solaris = \
|
---|
401 | generic/RTDirQueryInfo-generic.cpp \
|
---|
402 | generic/RTDirSetTimes-generic.cpp \
|
---|
403 | generic/RTFileMove-generic.cpp \
|
---|
404 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
405 | generic/RTTimeLocalNow-generic.cpp \
|
---|
406 | generic/RTTimerCreate-generic.cpp \
|
---|
407 | generic/pathhost-generic.cpp \
|
---|
408 | generic/sched-generic.cpp \
|
---|
409 | generic/uuid-generic.cpp \
|
---|
410 | r3/solaris/alloc-solaris.cpp \
|
---|
411 | r3/posix/dir-posix.cpp \
|
---|
412 | r3/posix/env-posix.cpp \
|
---|
413 | r3/posix/fileio-posix.cpp \
|
---|
414 | r3/posix/filelock-posix.cpp \
|
---|
415 | r3/posix/fs-posix.cpp \
|
---|
416 | r3/posix/ldrNative-posix.cpp \
|
---|
417 | r3/posix/path-posix.cpp \
|
---|
418 | r3/posix/process-posix.cpp \
|
---|
419 | r3/posix/rand-posix.cpp \
|
---|
420 | r3/posix/sems-posix.cpp \
|
---|
421 | r3/posix/system-posix.cpp \
|
---|
422 | r3/posix/thread-posix.cpp \
|
---|
423 | r3/posix/time-posix.cpp \
|
---|
424 | r3/posix/timelocal-posix.cpp \
|
---|
425 | r3/posix/timer-posix.cpp \
|
---|
426 | r3/posix/RTTimeNow-posix.cpp \
|
---|
427 | generic/utf16locale-generic.cpp \
|
---|
428 | r3/posix/utf8-posix.cpp \
|
---|
429 | timesup.cpp \
|
---|
430 |
|
---|
431 |
|
---|
432 | ## PORTME: Porters add their selection of platform specific files for Ring-3 here.
|
---|
433 |
|
---|
434 |
|
---|
435 | #
|
---|
436 | # L4 RuntimeR3 subtarget since L4 headers won't work with VBOXR3.
|
---|
437 | #
|
---|
438 | RuntimeR3L4_TEMPLATE = VBOXR3NP
|
---|
439 | RuntimeR3L4_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF LDR_WITH_PE
|
---|
440 | ifneq ($(BUILD_TARGET_ARCH),amd64)
|
---|
441 | RuntimeR3L4_DEFS += __PIC__
|
---|
442 | endif
|
---|
443 | RuntimeR3L4_INCS = $(L4_INCDIR)
|
---|
444 |
|
---|
445 | RuntimeR3L4_SOURCES = \
|
---|
446 | generic/RTDirQueryInfo-generic.cpp \
|
---|
447 | generic/RTDirSetTimes-generic.cpp \
|
---|
448 | generic/RTFileMove-generic.cpp \
|
---|
449 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
450 | generic/RTTimeLocalNow-generic.cpp \
|
---|
451 | generic/fs-stubs-generic.cpp \
|
---|
452 | generic/pathhost-generic.cpp \
|
---|
453 | generic/sched-generic.cpp \
|
---|
454 | generic/semsrw-generic.cpp \
|
---|
455 | generic/semnoint-generic.cpp \
|
---|
456 | generic/uuid-generic.cpp \
|
---|
457 | l4/l4-errno.cpp \
|
---|
458 | l4/process-l4env.cpp \
|
---|
459 | l4/sems-l4env.cpp \
|
---|
460 | l4/system-l4env.cpp \
|
---|
461 | l4/thread-l4env.cpp \
|
---|
462 | l4/timer-l4env.cpp \
|
---|
463 | generic/utf16locale-generic.cpp \
|
---|
464 | l4/utf8-l4env.cpp \
|
---|
465 | r3/posix/alloc-posix.cpp \
|
---|
466 | r3/posix/env-posix.cpp \
|
---|
467 | r3/posix/dir-posix.cpp \
|
---|
468 | r3/posix/fileio-posix.cpp \
|
---|
469 | r3/posix/filelock-posix.cpp \
|
---|
470 | r3/posix/ldrNative-posix.cpp \
|
---|
471 | r3/posix/path-posix.cpp \
|
---|
472 | r3/posix/rand-posix.cpp \
|
---|
473 | r3/posix/time-posix.cpp \
|
---|
474 | r3/posix/timelocal-posix.cpp \
|
---|
475 | r3/posix/RTTimeNow-posix.cpp \
|
---|
476 | timesup.cpp
|
---|
477 |
|
---|
478 | #
|
---|
479 | # RuntimeW32GuestR3 - Win32 guest program runtime.
|
---|
480 | #
|
---|
481 | RuntimeW32GuestR3_TEMPLATE = VBOXW32GUESTR3LIB
|
---|
482 | RuntimeW32GuestR3_SDKS = WINPSDK W2K3DDK
|
---|
483 | RuntimeW32GuestR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX
|
---|
484 | ifdef IPRT_WITH_KLDR
|
---|
485 | RuntimeW32GuestR3_DEFS += LDR_WITH_KLDR KLDR_USE_CRT
|
---|
486 | RuntimeW32GuestR3_DEFS.debug += KLDRMOD_STRICT KLDRMODLX_STRICT KLDRMODPE_STRICT KLDRMODNATIVE_STRICT KLDRRDR_STRICT
|
---|
487 | endif
|
---|
488 | RuntimeW32GuestR3_SOURCES = $(RuntimeR3_SOURCES.win) $(RuntimeR3_SOURCES)
|
---|
489 | RuntimeW32GuestR3_INCS = $(RuntimeR3_INCS.win) $(RuntimeR3_INCS)
|
---|
490 |
|
---|
491 |
|
---|
492 | #
|
---|
493 | # RuntimeLnx32GuestR3 - 32-bit Linux guest program runtime.
|
---|
494 | #
|
---|
495 | RuntimeLnx32GuestR3_TEMPLATE = VBOXLNX32GUESTR3LIB
|
---|
496 | RuntimeLnx32GuestR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX
|
---|
497 | ifdef IPRT_WITH_KLDR
|
---|
498 | RuntimeLnx32GuestR3_DEFS += LDR_WITH_KLDR KLDR_USE_CRT
|
---|
499 | RuntimeLnx32GuestR3_DEFS.debug += KLDRMOD_STRICT KLDRMODLX_STRICT KLDRMODPE_STRICT KLDRMODNATIVE_STRICT KLDRRDR_STRICT
|
---|
500 | endif
|
---|
501 | RuntimeLnx32GuestR3_SOURCES = $(RuntimeR3_SOURCES.linux) $(RuntimeR3_SOURCES)
|
---|
502 | RuntimeLnx32GuestR3_INCS = $(RuntimeR3_INCS.linux) $(RuntimeR3_INCS)
|
---|
503 |
|
---|
504 |
|
---|
505 | #
|
---|
506 | # RuntimeOS2GuestR3 - OS/2 guest program runtime.
|
---|
507 | #
|
---|
508 | RuntimeOS2GuestR3_TEMPLATE = VBOXOS2GUESTR3LIB
|
---|
509 | RuntimeOS2GuestR3_DEFS = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX
|
---|
510 | ifdef IPRT_WITH_KLDR
|
---|
511 | RuntimeOS2GuestR3_DEFS += LDR_WITH_KLDR KLDR_USE_CRT
|
---|
512 | RuntimeOS2GuestR3_DEFS.debug += KLDRMOD_STRICT KLDRMODLX_STRICT KLDRMODPE_STRICT KLDRMODNATIVE_STRICT KLDRRDR_STRICT
|
---|
513 | endif
|
---|
514 | RuntimeOS2GuestR3_SOURCES = $(RuntimeR3_SOURCES.os2) $(RuntimeR3_SOURCES)
|
---|
515 | RuntimeOS2GuestR3_INCS = $(RuntimeR3_INCS.os2) $(RuntimeR3_INCS)
|
---|
516 |
|
---|
517 |
|
---|
518 | #
|
---|
519 | # VBoxRT - Shared Object / DLL version.
|
---|
520 | #
|
---|
521 | VBoxRT_TEMPLATE = VBOXR3
|
---|
522 | VBoxRT_SDKS.win = WINPSDK W2K3DDK VBOX_NTDLL
|
---|
523 | ifeq ($(BUILD_TARGET),darwin)
|
---|
524 | VBoxRT_INST = $(INST_DLL) $(INST_TESTCASE)
|
---|
525 | endif
|
---|
526 | VBoxRT_DEFS = $(RuntimeR3_DEFS) IN_SUP_R3 IN_SUP_R3
|
---|
527 | VBoxRT_DEFS.$(BUILD_TYPE) = $(RuntimeR3_DEFS.$(BUILD_TYPE))
|
---|
528 | VBoxRT_SOURCES = \
|
---|
529 | VBox/VBoxRTDeps.cpp \
|
---|
530 | $(RuntimeR3_SOURCES)
|
---|
531 | VBoxRT_SOURCES.$(BUILD_TARGET) = $(RuntimeR3_SOURCES.$(BUILD_TARGET))
|
---|
532 | VBoxRT_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH))
|
---|
533 | VBoxRT_SOURCES.win += r3/win32/dllmain-win32.cpp
|
---|
534 | VBoxRT_SOURCES.win.amd64 += r3/win64/VBoxRT-win64.def
|
---|
535 | VBoxRT_INCS = $(RuntimeR3_INCS)
|
---|
536 | VBoxRT_INCS.$(BUILD_TARGET) = $(RuntimeR3_INCS.$(BUILD_TARGET))
|
---|
537 | VBoxRT_INCS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH) = $(RuntimeR3_INCS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH))
|
---|
538 | VBoxRT_LIBS = \
|
---|
539 | $(PATH_LIB)/SUPR3$(VBOX_SUFF_LIB) \
|
---|
540 | $(PATH_LIB)/VBox-liblzf$(VBOX_SUFF_LIB)
|
---|
541 | VBoxRT_LIBS.darwin = \
|
---|
542 | iconv
|
---|
543 | VBoxRT_LIBS.freebsd = \
|
---|
544 | iconv
|
---|
545 | VBoxRT_LIBPATH.freebsd = \
|
---|
546 | /usr/local/lib
|
---|
547 | VBoxRT_LDFLAGS.darwin = -framework IOKit -install_name @executable_path/VBoxRT.dylib
|
---|
548 | ifdef VBOX_USE_VCC80
|
---|
549 | VBoxRT_LDFLAGS.win = /MANIFEST
|
---|
550 | endif
|
---|
551 | VBoxRT_LDFLAGS.l4 = \
|
---|
552 | -Wl,-whole-archive \
|
---|
553 | $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB) \
|
---|
554 | -Wl,-no-whole-archive
|
---|
555 | ifeq ($(BUILD_TARGET),l4)
|
---|
556 | VBoxRT_LIBS += \
|
---|
557 | $(L4_LIBDIR)/libl4sys.a \
|
---|
558 | $(L4_LIBDIR)/libl4sys.p.a
|
---|
559 | endif
|
---|
560 | VBoxRT_LIBS.l4 = \
|
---|
561 | $(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB)
|
---|
562 |
|
---|
563 |
|
---|
564 | #
|
---|
565 | # RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
|
---|
566 | # This is used together with VBoxRT.
|
---|
567 | #
|
---|
568 | RuntimeR3NoCRTGCC_TEMPLATE = VBOXNOCRTGCC
|
---|
569 | RuntimeR3NoCRTGCC_LIBSUFF = $(VBOX_SUFF_LIB)
|
---|
570 | RuntimeR3NoCRTGCC_SOURCES = \
|
---|
571 | misc/sanity-cpp.cpp \
|
---|
572 | misc/sanity-c.c \
|
---|
573 | \
|
---|
574 | math/ceill.asm \
|
---|
575 | math/cosl.asm \
|
---|
576 | math/fabs.asm \
|
---|
577 | math/fabsf.asm \
|
---|
578 | math/fabsl.asm \
|
---|
579 | math/floor.asm \
|
---|
580 | math/floorf.asm \
|
---|
581 | math/floorl.asm \
|
---|
582 | math/ldexpl.asm \
|
---|
583 | math/llrint.asm \
|
---|
584 | math/llrintf.asm \
|
---|
585 | math/llrintl.asm \
|
---|
586 | math/logl.asm \
|
---|
587 | math/lrint.asm \
|
---|
588 | math/lrintf.asm \
|
---|
589 | math/lrintl.asm \
|
---|
590 | math/remainder.asm \
|
---|
591 | math/remainderf.asm \
|
---|
592 | math/remainderl.asm \
|
---|
593 | math/sinl.asm \
|
---|
594 | math/tanl.asm \
|
---|
595 | math/trunc.asm \
|
---|
596 | math/truncf.asm \
|
---|
597 | math/truncl.asm \
|
---|
598 | \
|
---|
599 | misc/setjmp.asm \
|
---|
600 | \
|
---|
601 | string/memchr.asm \
|
---|
602 | string/memchr_alias.c \
|
---|
603 | string/memcmp.asm \
|
---|
604 | string/memcmp_alias.c \
|
---|
605 | string/memcpy.asm \
|
---|
606 | string/memcpy_alias.c \
|
---|
607 | string/mempcpy.asm \
|
---|
608 | string/memset.asm \
|
---|
609 | string/memset_alias.c \
|
---|
610 | string/strchr.asm \
|
---|
611 | string/strchr_alias.c \
|
---|
612 | string/strcmp.asm \
|
---|
613 | string/strcmp_alias.c
|
---|
614 |
|
---|
615 | RuntimeR3NoCRTGCC_SOURCES.x86 = \
|
---|
616 | math/x86/fenv-x86.c \
|
---|
617 | math/gcc/adddi3.c \
|
---|
618 | math/gcc/anddi3.c \
|
---|
619 | math/gcc/ashldi3.c \
|
---|
620 | math/gcc/ashrdi3.c \
|
---|
621 | math/gcc/cmpdi2.c \
|
---|
622 | math/gcc/divdi3.c \
|
---|
623 | math/gcc/iordi3.c \
|
---|
624 | math/gcc/lshldi3.c \
|
---|
625 | math/gcc/lshrdi3.c \
|
---|
626 | math/gcc/moddi3.c \
|
---|
627 | math/gcc/muldi3.c \
|
---|
628 | math/gcc/negdi2.c \
|
---|
629 | math/gcc/notdi2.c \
|
---|
630 | math/gcc/qdivrem.c \
|
---|
631 | math/gcc/subdi3.c \
|
---|
632 | math/gcc/ucmpdi2.c \
|
---|
633 | math/gcc/udivdi3.c \
|
---|
634 | math/gcc/umoddi3.c \
|
---|
635 | math/gcc/xordi3.c
|
---|
636 |
|
---|
637 |
|
---|
638 | ## @todo stop using the old memcpy.c and memset.c code.
|
---|
639 |
|
---|
640 | #
|
---|
641 | # RuntimeR0 - Ring0 library for VMMR0.
|
---|
642 | #
|
---|
643 | RuntimeR0_TEMPLATE = VBOXR0
|
---|
644 | RuntimeR0_DEFS = IN_RT_R0 RT_WITH_VBOX
|
---|
645 | RuntimeR0_SOURCES = \
|
---|
646 | misc/sanity-cpp.cpp \
|
---|
647 | misc/sanity-c.c \
|
---|
648 | assert.cpp \
|
---|
649 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
650 | table/avlhcphys.cpp \
|
---|
651 | table/avlgcptr.cpp \
|
---|
652 | table/avlogcphys.cpp \
|
---|
653 | table/avlohcphys.cpp \
|
---|
654 | table/avlpv.cpp \
|
---|
655 | table/avlrogcphys.cpp \
|
---|
656 | table/avlogcptr.cpp \
|
---|
657 | table/avlrogcptr.cpp \
|
---|
658 | table/avlroogcptr.cpp \
|
---|
659 | table/avloioport.cpp \
|
---|
660 | table/avlroioport.cpp \
|
---|
661 | logcom.cpp \
|
---|
662 | logformat.cpp \
|
---|
663 | strformat.cpp \
|
---|
664 | strformatrt.cpp \
|
---|
665 | strprintf.cpp \
|
---|
666 | string/memchr.cpp \
|
---|
667 | string/memcmp.cpp \
|
---|
668 | string/memcpy.cpp \
|
---|
669 | string/memset.cpp \
|
---|
670 | string/strcpy.cpp \
|
---|
671 | string/strlen.cpp \
|
---|
672 | string/strncmp.cpp \
|
---|
673 | string/strpbrk.cpp \
|
---|
674 | VBox/strformat-vbox.cpp \
|
---|
675 | timesup.cpp
|
---|
676 |
|
---|
677 | RuntimeR0_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
|
---|
678 |
|
---|
679 | RuntimeR0_SOURCES.os2 = \
|
---|
680 | os2/RTErrConvertFromOS2.cpp \
|
---|
681 | os2/sys0.asm
|
---|
682 |
|
---|
683 | RuntimeR0_SOURCES.darwin.x86 = \
|
---|
684 | math/gcc/adddi3.c \
|
---|
685 | math/gcc/anddi3.c \
|
---|
686 | math/gcc/ashldi3.c \
|
---|
687 | math/gcc/ashrdi3.c \
|
---|
688 | math/gcc/cmpdi2.c \
|
---|
689 | math/gcc/divdi3.c \
|
---|
690 | math/gcc/iordi3.c \
|
---|
691 | math/gcc/lshldi3.c \
|
---|
692 | math/gcc/lshrdi3.c \
|
---|
693 | math/gcc/moddi3.c \
|
---|
694 | math/gcc/muldi3.c \
|
---|
695 | math/gcc/negdi2.c \
|
---|
696 | math/gcc/notdi2.c \
|
---|
697 | math/gcc/qdivrem.c \
|
---|
698 | math/gcc/subdi3.c \
|
---|
699 | math/gcc/ucmpdi2.c \
|
---|
700 | math/gcc/udivdi3.c \
|
---|
701 | math/gcc/umoddi3.c \
|
---|
702 | math/gcc/xordi3.c
|
---|
703 |
|
---|
704 |
|
---|
705 | string/memchr.cpp_CXXFLAGS.win = -Oi-
|
---|
706 | string/memcmp.cpp_CXXFLAGS.win = -Oi-
|
---|
707 | string/memcpy.cpp_CXXFLAGS.win = -Oi-
|
---|
708 | string/memset.cpp_CXXFLAGS.win = -Oi-
|
---|
709 | string/strcpy.cpp_CXXFLAGS.win = -Oi-
|
---|
710 | string/strlen.cpp_CXXFLAGS.win = -Oi-
|
---|
711 |
|
---|
712 | ifeq ($(BUILD_TARGET),l4)
|
---|
713 | RuntimeR0Drv_BLD_TRG = linux
|
---|
714 | RuntimeR0Drv_BLD_TRG_ARCH = x86
|
---|
715 | RuntimeR0Drv_BLD_TRG_CPU = i386
|
---|
716 | endif
|
---|
717 |
|
---|
718 | #
|
---|
719 | # RuntimeR0Drv - Ring0 library for host drivers.
|
---|
720 | #
|
---|
721 | RuntimeR0Drv_TEMPLATE = VBOXR0DRV
|
---|
722 | RuntimeR0Drv_SDKS.win = W2K3DDK WINPSDKINCS
|
---|
723 | RuntimeR0Drv_INCS := $(PATH_SUB_CURRENT)
|
---|
724 | RuntimeR0Drv_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS
|
---|
725 | RuntimeR0Drv_DEFS.win = IN_SUP_R0
|
---|
726 | RuntimeR0Drv_DEFS.linux = MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) IN_SUP_R0 # why is IN_SUP_R0 here? because!
|
---|
727 |
|
---|
728 | RuntimeR0Drv_INCS.linux = \
|
---|
729 | r0drv/linux
|
---|
730 |
|
---|
731 | RuntimeR0Drv_SOURCES = \
|
---|
732 | misc/sanity-cpp.cpp \
|
---|
733 | misc/sanity-c.c \
|
---|
734 | assert.cpp \
|
---|
735 | log.cpp \
|
---|
736 | logcom.cpp \
|
---|
737 | logformat.cpp \
|
---|
738 | string/strpbrk.cpp \
|
---|
739 | strformat.cpp \
|
---|
740 | strformatrt.cpp \
|
---|
741 | strtonum.cpp \
|
---|
742 | strprintf.cpp \
|
---|
743 | VBox/strformat-vbox.cpp \
|
---|
744 | r0drv/alloc-r0drv.cpp \
|
---|
745 | r0drv/initterm-r0drv.cpp \
|
---|
746 | generic/RTLogWriteStdErr-stub-generic.cpp \
|
---|
747 | generic/RTLogWriteStdOut-stub-generic.cpp \
|
---|
748 | generic/RTLogWriteUser-generic.cpp \
|
---|
749 | VBox/log-vbox.cpp \
|
---|
750 | table/avlpv.cpp \
|
---|
751 | crc32.cpp \
|
---|
752 | crc64.cpp
|
---|
753 |
|
---|
754 | RuntimeR0Drv_SOURCES.linux = \
|
---|
755 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
756 | alloc/heapsimple.cpp \
|
---|
757 | r0drv/memobj-r0drv.cpp \
|
---|
758 | r0drv/linux/alloc-r0drv-linux.c \
|
---|
759 | r0drv/linux/initterm-r0drv-linux.c \
|
---|
760 | r0drv/linux/memobj-r0drv-linux.c \
|
---|
761 | r0drv/linux/process-r0drv-linux.c \
|
---|
762 | r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \
|
---|
763 | r0drv/linux/semaphore-r0drv-linux.c \
|
---|
764 | r0drv/linux/spinlock-r0drv-linux.c \
|
---|
765 | r0drv/linux/thread-r0drv-linux.c
|
---|
766 |
|
---|
767 | RuntimeR0Drv_SOURCES.win = \
|
---|
768 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
769 | nt/RTErrConvertFromNtStatus.cpp \
|
---|
770 | r0drv/nt/alloc-r0drv-nt.cpp \
|
---|
771 | r0drv/nt/initterm-r0drv-nt.cpp \
|
---|
772 | r0drv/nt/process-r0drv-nt.cpp \
|
---|
773 | r0drv/nt/RTLogWriteDebugger-r0drv-nt.cpp \
|
---|
774 | r0drv/nt/semaphore-r0drv-nt.cpp \
|
---|
775 | r0drv/nt/spinlock-r0drv-nt.cpp \
|
---|
776 | r0drv/nt/thread-r0drv-nt.cpp \
|
---|
777 | string/strncmp.cpp
|
---|
778 |
|
---|
779 | #RuntimeR0Drv_SOURCES.win += \
|
---|
780 | # r0drv/memobj-r0drv.cpp \
|
---|
781 | # r0drv/nt/memobj-r0drv-nt.cpp
|
---|
782 |
|
---|
783 | RuntimeR0Drv_SOURCES.win.amd64 = \
|
---|
784 | $(RuntimeWin64ASM_SOURCES)
|
---|
785 |
|
---|
786 | RuntimeR0Drv_SOURCES.darwin = \
|
---|
787 | darwin/RTErrConvertFromDarwinKern.cpp \
|
---|
788 | darwin/RTErrConvertFromDarwinIO.cpp \
|
---|
789 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
790 | generic/RTTimerCreate-generic.cpp \
|
---|
791 | RTErrConvertFromErrno.cpp \
|
---|
792 | string/memchr.asm \
|
---|
793 | r0drv/memobj-r0drv.cpp \
|
---|
794 | r0drv/darwin/alloc-r0drv-darwin.cpp \
|
---|
795 | r0drv/darwin/assert-r0drv-darwin.cpp \
|
---|
796 | r0drv/darwin/memobj-r0drv-darwin.cpp \
|
---|
797 | r0drv/darwin/initterm-r0drv-darwin.cpp \
|
---|
798 | r0drv/darwin/process-r0drv-darwin.cpp \
|
---|
799 | r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
|
---|
800 | r0drv/darwin/semaphore-r0drv-darwin.cpp \
|
---|
801 | r0drv/darwin/spinlock-r0drv-darwin.cpp \
|
---|
802 | r0drv/darwin/thread-r0drv-darwin.cpp \
|
---|
803 | r0drv/darwin/thread2-r0drv-darwin.cpp \
|
---|
804 | r0drv/darwin/time-r0drv-darwin.cpp \
|
---|
805 | thread.cpp \
|
---|
806 | generic/timer-generic.cpp
|
---|
807 |
|
---|
808 | RuntimeR0Drv_DEFS.os2 += RT_WITHOUT_NOCRT_WRAPPERS
|
---|
809 | RuntimeR0Drv_SOURCES.os2 = \
|
---|
810 | string/memchr.asm \
|
---|
811 | string/memcmp.asm \
|
---|
812 | string/memcpy.asm \
|
---|
813 | string/mempcpy.asm \
|
---|
814 | string/memset.asm \
|
---|
815 | string/strchr.asm \
|
---|
816 | string/strcmp.asm \
|
---|
817 | \
|
---|
818 | string/strcpy.cpp \
|
---|
819 | string/strlen.cpp \
|
---|
820 | string/strncmp.cpp \
|
---|
821 | \
|
---|
822 | os2/RTErrConvertFromOS2.cpp \
|
---|
823 | os2/sys0.asm \
|
---|
824 | thread.cpp \
|
---|
825 | r0drv/memobj-r0drv.cpp \
|
---|
826 | r0drv/os2/alloc-r0drv-os2.cpp \
|
---|
827 | r0drv/os2/assert-r0drv-os2.cpp \
|
---|
828 | r0drv/os2/assertA-r0drv-os2.asm \
|
---|
829 | r0drv/os2/initterm-r0drv-os2.cpp \
|
---|
830 | r0drv/os2/memobj-r0drv-os2.cpp \
|
---|
831 | r0drv/os2/os2imports.imp \
|
---|
832 | r0drv/os2/process-r0drv-os2.cpp \
|
---|
833 | r0drv/os2/semevent-r0drv-os2.cpp \
|
---|
834 | r0drv/os2/semeventmulti-r0drv-os2.cpp \
|
---|
835 | r0drv/os2/semfastmutex-r0drv-os2.cpp \
|
---|
836 | r0drv/os2/spinlock-r0drv-os2.cpp \
|
---|
837 | r0drv/os2/thread-r0drv-os2.cpp \
|
---|
838 | r0drv/os2/thread2-r0drv-os2.cpp \
|
---|
839 | r0drv/os2/time-r0drv-os2.cpp \
|
---|
840 | r0drv/os2/timer-r0drv-os2.cpp \
|
---|
841 | r0drv/os2/timerA-r0drv-os2.asm \
|
---|
842 | r0drv/os2/RTAssertDoBreakpoint-r0drv-os2.asm \
|
---|
843 | r0drv/os2/RTR0Os2DHQueryDOSVar.asm \
|
---|
844 | r0drv/os2/RTR0Os2DHVMGlobalToProcess.asm \
|
---|
845 | generic/RTLogWriteDebugger-generic.cpp
|
---|
846 |
|
---|
847 | RuntimeR0Drv_SOURCES.freebsd = \
|
---|
848 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
849 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
850 | RTErrConvertFromErrno.cpp \
|
---|
851 | string/memchr.asm \
|
---|
852 | r0drv/memobj-r0drv.cpp \
|
---|
853 | thread.cpp \
|
---|
854 | r0drv/freebsd/alloc-r0drv-freebsd.c \
|
---|
855 | r0drv/freebsd/assert-r0drv-freebsd.c \
|
---|
856 | r0drv/freebsd/initterm-r0drv-freebsd.c \
|
---|
857 | r0drv/freebsd/memobj-r0drv-freebsd.c \
|
---|
858 | r0drv/freebsd/process-r0drv-freebsd.c \
|
---|
859 | r0drv/freebsd/semevent-r0drv-freebsd.c \
|
---|
860 | r0drv/freebsd/semeventmulti-r0drv-freebsd.c \
|
---|
861 | r0drv/freebsd/semfastmutex-r0drv-freebsd.c \
|
---|
862 | r0drv/freebsd/spinlock-r0drv-freebsd.c \
|
---|
863 | r0drv/freebsd/thread-r0drv-freebsd.c \
|
---|
864 | r0drv/freebsd/thread2-r0drv-freebsd.c \
|
---|
865 | r0drv/freebsd/time-r0drv-freebsd.c \
|
---|
866 | r0drv/freebsd/timer-r0drv-freebsd.c \
|
---|
867 | generic/RTTimerCreate-generic.cpp
|
---|
868 |
|
---|
869 | # SOLARISTODO - Todo for Solaris
|
---|
870 | RuntimeR0Drv_SOURCES.solaris = \
|
---|
871 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
872 | generic/RTLogWriteDebugger-generic.cpp \
|
---|
873 | RTErrConvertFromErrno.cpp \
|
---|
874 | string/memchr.asm \
|
---|
875 | r0drv/memobj-r0drv.cpp \
|
---|
876 | thread.cpp \
|
---|
877 | r0drv/solaris/alloc-r0drv-solaris.c \
|
---|
878 | r0drv/solaris/assert-r0drv-solaris.c \
|
---|
879 | r0drv/solaris/initterm-r0drv-solaris.c \
|
---|
880 | r0drv/solaris/process-r0drv-solaris.c \
|
---|
881 | r0drv/solaris/semevent-r0drv-solaris.c \
|
---|
882 | r0drv/solaris/semfastmutex-r0drv-solaris.c \
|
---|
883 | r0drv/solaris/spinlock-r0drv-solaris.c \
|
---|
884 | r0drv/solaris/thread-r0drv-solaris.c \
|
---|
885 | r0drv/solaris/thread2-r0drv-solaris.c
|
---|
886 |
|
---|
887 | ## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here.
|
---|
888 |
|
---|
889 | #
|
---|
890 | # RuntimeW32GuestR0 - Win32 guest driver runtime.
|
---|
891 | #
|
---|
892 | RuntimeW32GuestR0_TEMPLATE = VBOXW32GUESTR0LIB
|
---|
893 | RuntimeW32GuestR0_SDKS = W2K3DDKX86 WINPSDKINCS
|
---|
894 | RuntimeW32GuestR0_INCS := $(PATH_SUB_CURRENT)
|
---|
895 | RuntimeW32GuestR0_DEFS = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS IN_SUP_R0
|
---|
896 | RuntimeW32GuestR0_SOURCES = \
|
---|
897 | $(filter-out generic/RTLogWriteUser-generic.cpp,$(RuntimeR0Drv_SOURCES)) \
|
---|
898 | $(RuntimeR0Drv_SOURCES.win) \
|
---|
899 | VBox/logbackdoor.cpp
|
---|
900 | ifdef VBOX_USE_VCC80
|
---|
901 | RuntimeW32GuestR0_SOURCES += \
|
---|
902 | string/memchr.cpp \
|
---|
903 | string/memcmp.cpp \
|
---|
904 | string/memcpy.cpp \
|
---|
905 | string/memset.cpp \
|
---|
906 | string/strlen.cpp
|
---|
907 | endif
|
---|
908 |
|
---|
909 |
|
---|
910 | #
|
---|
911 | # RuntimeW32NT4GuestR0 - Win32 NT4 guest driver runtime.
|
---|
912 | #
|
---|
913 | RuntimeW32NT4GuestR0_TEMPLATE = VBOXW32GUESTR0LIB
|
---|
914 | RuntimeW32NT4GuestR0_SDKS = $(RuntimeW32GuestR0_SDKS)
|
---|
915 | RuntimeW32NT4GuestR0_DEFS = $(RuntimeW32GuestR0_DEFS) IPRT_TARGET_NT4
|
---|
916 | RuntimeW32NT4GuestR0_INCS = $(RuntimeW32GuestR0_INCS)
|
---|
917 | RuntimeW32NT4GuestR0_SOURCES = $(RuntimeW32GuestR0_SOURCES)
|
---|
918 |
|
---|
919 |
|
---|
920 | #
|
---|
921 | # RuntimeLnx32GuestR0 - 32-bit Linux guest driver runtime.
|
---|
922 | #
|
---|
923 | RuntimeLnx32GuestR0_TEMPLATE = VBOXLNX32GUESTR0
|
---|
924 | RuntimeLnx32GuestR0_DEFS = RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS IN_SUP_R0 \
|
---|
925 | MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\)
|
---|
926 | RuntimeLnx32GuestR0_INCS = $(RuntimeR0Drv_INCS.linux) $(RuntimeR0Drv_INCS)
|
---|
927 | RuntimeLnx32GuestR0_SOURCES = \
|
---|
928 | $(RuntimeR0Drv_SOURCES) \
|
---|
929 | $(RuntimeR0Drv_SOURCES.linux) \
|
---|
930 | VBox/logbackdoor.cpp
|
---|
931 |
|
---|
932 |
|
---|
933 | #
|
---|
934 | # RuntimeOS2GuestR0 - OS/2 Warp 4.5 guest driver runtime.
|
---|
935 | #
|
---|
936 | RuntimeOS2GuestR0_TEMPLATE = VBOXOS2GUESTR0LIB
|
---|
937 | RuntimeOS2GuestR0_INCS := $(PATH_SUB_CURRENT)
|
---|
938 | RuntimeOS2GuestR0_DEFS = RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS
|
---|
939 | RuntimeOS2GuestR0_SOURCES = \
|
---|
940 | $(filter-out assert.cpp generic/RTLogWriteUser-generic.cpp,$(RuntimeR0Drv_SOURCES)) \
|
---|
941 | $(RuntimeR0Drv_SOURCES.os2) \
|
---|
942 | VBox/logbackdoor.cpp
|
---|
943 |
|
---|
944 |
|
---|
945 | #
|
---|
946 | # RuntimeGC - Guest context library.
|
---|
947 | #
|
---|
948 | RuntimeGC_TEMPLATE = VBOXGC
|
---|
949 | RuntimeGC_DEFS = IN_RT_GC RT_WITH_VBOX
|
---|
950 | RuntimeGC_SOURCES = \
|
---|
951 | gc/initterm-gc.cpp \
|
---|
952 | misc/sanity-cpp.cpp \
|
---|
953 | misc/sanity-c.c \
|
---|
954 | table/avlogcphys.cpp \
|
---|
955 | table/avlrogcphys.cpp \
|
---|
956 | table/avlogcptr.cpp \
|
---|
957 | table/avlohcphys.cpp \
|
---|
958 | table/avlrogcptr.cpp \
|
---|
959 | table/avlroogcptr.cpp \
|
---|
960 | table/avloioport.cpp \
|
---|
961 | table/avlroioport.cpp \
|
---|
962 | assert.cpp \
|
---|
963 | generic/RTAssertDoBreakpoint-generic.cpp \
|
---|
964 | log.cpp \
|
---|
965 | logcom.cpp \
|
---|
966 | logformat.cpp \
|
---|
967 | string/strpbrk.cpp \
|
---|
968 | string/strncmp.cpp \
|
---|
969 | strformat.cpp \
|
---|
970 | strformatrt.cpp \
|
---|
971 | strprintf.cpp \
|
---|
972 | VBox/strformat-vbox.cpp \
|
---|
973 | timesup.cpp \
|
---|
974 | timeprog.cpp \
|
---|
975 | string/memchr.cpp \
|
---|
976 | string/memcmp.cpp \
|
---|
977 | string/memcpy.cpp \
|
---|
978 | string/memset.cpp \
|
---|
979 | string/strcpy.cpp \
|
---|
980 | string/strlen.cpp
|
---|
981 |
|
---|
982 | ifeq ($(VBOX_LDR_FMT32),lx)
|
---|
983 | RuntimeGC_SOURCES += os2/sys0.asm
|
---|
984 | endif
|
---|
985 |
|
---|
986 | RuntimeGC_SOURCES.darwin = \
|
---|
987 | math/gcc/adddi3.c \
|
---|
988 | math/gcc/anddi3.c \
|
---|
989 | math/gcc/ashldi3.c \
|
---|
990 | math/gcc/ashrdi3.c \
|
---|
991 | math/gcc/cmpdi2.c \
|
---|
992 | math/gcc/divdi3.c \
|
---|
993 | math/gcc/iordi3.c \
|
---|
994 | math/gcc/lshldi3.c \
|
---|
995 | math/gcc/lshrdi3.c \
|
---|
996 | math/gcc/moddi3.c \
|
---|
997 | math/gcc/muldi3.c \
|
---|
998 | math/gcc/negdi2.c \
|
---|
999 | math/gcc/notdi2.c \
|
---|
1000 | math/gcc/qdivrem.c \
|
---|
1001 | math/gcc/subdi3.c \
|
---|
1002 | math/gcc/ucmpdi2.c \
|
---|
1003 | math/gcc/udivdi3.c \
|
---|
1004 | math/gcc/umoddi3.c \
|
---|
1005 | math/gcc/xordi3.c
|
---|
1006 |
|
---|
1007 |
|
---|
1008 | #
|
---|
1009 | # Static library for new & delete for the electric fence.
|
---|
1010 | #
|
---|
1011 | RuntimeEFCPP_TEMPLATE = $(RuntimeR3_TEMPLATE)
|
---|
1012 | RuntimeEFCPP_SDKS = $(RuntimeR3_SDKS)
|
---|
1013 | RuntimeEFCPP_SDKS.$(BUILD_TARGET) = $(RuntimeR3_SDKS.$(BUILD_TARGET))
|
---|
1014 | RuntimeEFCPP_DEFS = $(RuntimeR3_DEFS)
|
---|
1015 | RuntimeEFCPP_DEFS.$(BUILD_TARGET) = $(RuntimeR3_DEFS.$(BUILD_TARGET))
|
---|
1016 | RuntimeEFCPP_INCS = $(RuntimeR3_INCS)
|
---|
1017 | RuntimeEFCPP_INCS.$(BUILD_TARGET) = $(RuntimeR3_INCS.$(BUILD_TARGET))
|
---|
1018 | RuntimeEFCPP_SOURCES = r3/alloc-ef-cpp.cpp
|
---|
1019 |
|
---|
1020 |
|
---|
1021 |
|
---|
1022 | #
|
---|
1023 | # errmsg.cpp depends on a generated header.
|
---|
1024 | #
|
---|
1025 | errmsg.cpp_DEPS = $(PATH_TARGET)/errmsgdata.h
|
---|
1026 | errmsg.cpp_INCS = $(PATH_TARGET)
|
---|
1027 |
|
---|
1028 | win32/errmsgwin.cpp_DEPS = $(PATH_TARGET)/errmsgcomdata.h
|
---|
1029 | win32/errmsgwin.cpp_INCS = $(PATH_TARGET)
|
---|
1030 |
|
---|
1031 | linux/errmsglinux.cpp_DEPS = $(PATH_TARGET)/errmsgxpcomdata.h
|
---|
1032 | linux/errmsglinux.cpp_INCS = $(PATH_TARGET)
|
---|
1033 |
|
---|
1034 |
|
---|
1035 | # Generate the rules
|
---|
1036 | include $(PATH_KBUILD)/footer.kmk
|
---|
1037 |
|
---|
1038 |
|
---|
1039 | ifneq ($(wildcard /usr/bin/chcon),)
|
---|
1040 | # this is needed for testcases executed at build time
|
---|
1041 | $(PATH_BIN)/VBoxRT.so:
|
---|
1042 | $(INSTALL) $(out) $@
|
---|
1043 | chcon -t texrel_shlib_t $@ || true
|
---|
1044 | endif
|
---|
1045 |
|
---|
1046 |
|
---|
1047 | #
|
---|
1048 | # Generate the status code data.
|
---|
1049 | #
|
---|
1050 | $(PATH_TARGET)/errmsgdata.h: errmsg.sed $(DEPTH)/include/iprt/err.h $(DEPTH)/include/VBox/err.h
|
---|
1051 | $(call MSG_GENERATE,,$@,$(filter %.h,$^))
|
---|
1052 | $(QUIET)$(MKDIR) -p $(PATH_TARGET)
|
---|
1053 | $(QUIET)$(SED) -f $< $(filter %.h,$^) > $@
|
---|
1054 | ## @todo r=bird: rename this to indicate that it's not only COM errors, but all win32/64 errors.
|
---|
1055 | $(PATH_TARGET)/errmsgcomdata.h: errmsgcom.sed $(PATH_SDK_WINPSDK_INC)/WinError.h
|
---|
1056 | $(call MSG_GENERATE,,$@,$(filter %.h,$^))
|
---|
1057 | $(QUIET)$(MKDIR) -p $(PATH_TARGET)
|
---|
1058 | $(QUIET)$(SED) -f $< $(filter %.h,$^) > $@
|
---|
1059 | $(PATH_TARGET)/errmsgxpcomdata.h: errmsgxpcom.sed $(DEPTH)/src/libs/xpcom18a4/xpcom/base/nsError.h
|
---|
1060 | $(call MSG_GENERATE,,$@,$(filter %.h,$^))
|
---|
1061 | $(QUIET)$(MKDIR) -p $(PATH_TARGET)
|
---|
1062 | $(QUIET)$(SED) -f $< $(filter %.h,$^) > $@
|
---|
1063 |
|
---|
1064 |
|
---|
1065 | #
|
---|
1066 | # Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
|
---|
1067 | #
|
---|
1068 | ldrELFRelocatable.cpp.o: ldrELF.o
|
---|
1069 | ldrELFRelocatable.cpp.obj: ldrELF.obj
|
---|
1070 |
|
---|
1071 |
|
---|
1072 | #
|
---|
1073 | # Doxygen documentation.
|
---|
1074 | #
|
---|
1075 | DOXYGEN_INPUT_DIRS = \
|
---|
1076 | $(PATH_ROOT)/include/iprt \
|
---|
1077 | $(PATH_ROOT)/include/iprt/nocrt \
|
---|
1078 | $(PATH_ROOT)/include/iprt/nocrt/x86 \
|
---|
1079 | $(PATH_ROOT)/include/iprt/nocrt/amd64 \
|
---|
1080 | include/internal \
|
---|
1081 | string \
|
---|
1082 | table \
|
---|
1083 | $(foreach dir, . r3 r0drv,\
|
---|
1084 | $(dir) \
|
---|
1085 | $(dir)/darwin \
|
---|
1086 | $(dir)/l4 \
|
---|
1087 | $(dir)/linux \
|
---|
1088 | $(dir)/nt \
|
---|
1089 | $(dir)/os2 \
|
---|
1090 | $(dir)/win \
|
---|
1091 | $(dir)/win32 \
|
---|
1092 | $(dir)/win64 \
|
---|
1093 | $(dir)/generic \
|
---|
1094 | )
|
---|
1095 |
|
---|
1096 | # These must come first in order to make things look nice.
|
---|
1097 | DOXYGEN_INPUT_FIRST =\
|
---|
1098 | $(PATH_ROOT)/include/iprt/cdefs.h \
|
---|
1099 | $(PATH_ROOT)/include/iprt/types.h \
|
---|
1100 | $(PATH_ROOT)/include/iprt/runtime.h \
|
---|
1101 | $(PATH_ROOT)/include/iprt/param.h \
|
---|
1102 | $(PATH_ROOT)/include/iprt/assert.h \
|
---|
1103 | $(PATH_ROOT)/include/iprt/asm.h \
|
---|
1104 |
|
---|
1105 | DOXYGEN_INPUT := \
|
---|
1106 | $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(DOXYGEN_INPUT_DIRS)))) ) \
|
---|
1107 | $(foreach dir, $(DOXYGEN_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
|
---|
1108 | DOXYGEN_INPUT := \
|
---|
1109 | $(DOXYGEN_INPUT_FIRST) \
|
---|
1110 | $(filter-out $(DOXYGEN_INPUT_FIRST), $(DOXYGEN_INPUT))
|
---|
1111 |
|
---|
1112 |
|
---|
1113 | DOXYGEN_OUTPUT = $(PATH_OUT)/docs/iprt
|
---|
1114 |
|
---|
1115 | -include $(PATH_TARGET)/Doxyfile.dep
|
---|
1116 |
|
---|
1117 | # Generate the Doxyfile
|
---|
1118 | $(PATH_TARGET)/Doxyfile: Doxyfile \
|
---|
1119 | $(comp-vars DOXYGEN_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
|
---|
1120 | $(comp-vars DOXYGEN_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
|
---|
1121 | | $(call DIRDEP, $(PATH_TARGET))
|
---|
1122 | $(RM) -f $@ [email protected] $(PATH_TARGET)/Doxyfile.dep
|
---|
1123 | $(CP) -f Doxyfile [email protected]
|
---|
1124 | $(APPEND) [email protected]
|
---|
1125 | $(APPEND) [email protected] "OUTPUT_DIRECTORY = $(DOXYGEN_OUTPUT)"
|
---|
1126 | $(APPEND) [email protected] "WARN_LOGFILE = $(DOXYGEN_OUTPUT)/errors"
|
---|
1127 | $(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include include . table"
|
---|
1128 | $(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
|
---|
1129 | $(APPEND) [email protected]
|
---|
1130 | $(APPEND) [email protected] "INPUT = $(DOXYGEN_INPUT)"
|
---|
1131 | $(APPEND) [email protected]
|
---|
1132 | $(MV) -f [email protected] $@
|
---|
1133 | @$(APPEND) $(PATH_TARGET)/Doxyfile.dep "DOXYGEN_OUTPUT_PREV = $(DOXYGEN_OUTPUT)"
|
---|
1134 | @$(APPEND) $(PATH_TARGET)/Doxyfile.dep "DOXYGEN_INPUT_PREV = $(DOXYGEN_INPUT)"
|
---|
1135 |
|
---|
1136 | # Create the output directory.
|
---|
1137 | $(call DIRDEP, $(DOXYGEN_OUTPUT)):
|
---|
1138 | $(MKDIR) -p $@
|
---|
1139 |
|
---|
1140 | # Do the actual job.
|
---|
1141 | $(PATH_TARGET)/docs.iprt: $(PATH_TARGET)/Doxyfile $(DOXYGEN_INPUT) | $(call DIRDEP, $(DOXYGEN_OUTPUT))
|
---|
1142 | $(RM) -f $(wildcard $(DOXYGEN_OUTPUT)/html/*) $(PATH_TARGET)/docs.iprt
|
---|
1143 | doxygen $(PATH_TARGET)/Doxyfile
|
---|
1144 | $(APPEND) $(PATH_TARGET)/docs.iprt
|
---|
1145 |
|
---|
1146 | # alias
|
---|
1147 | docs: $(PATH_TARGET)/docs.iprt
|
---|
1148 |
|
---|
1149 | test:
|
---|
1150 | @echo test-$(comp-vars DOXYGEN_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE)
|
---|
1151 | @echo $(DOXYGEN_OUTPUT)
|
---|
1152 | @echo $(DOXYGEN_OUTPUT_PREV)
|
---|
1153 |
|
---|