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