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