~siretart/ubuntu/raring/virtualbox-ose/bug.1101867

0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1
# $Id: Makefile.kmk 35585 2011-01-17 14:20:13Z vboxsync $
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2
## @file
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
3
# Sub-Makefile for the IPRT (IPRT).
4
#
5
6
#
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
7
# Copyright (C) 2006-2010 Oracle Corporation
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
8
#
9
# This file is part of VirtualBox Open Source Edition (OSE), as
10
# available from http://www.virtualbox.org. This file is free software;
11
# you can redistribute it and/or modify it under the terms of the GNU
12
# General Public License (GPL) as published by the Free Software
13
# Foundation, in version 2 as it comes in the "COPYING" file of the
14
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16
#
17
# The contents of this file may alternatively be used under the terms
18
# of the Common Development and Distribution License Version 1.0
19
# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20
# VirtualBox OSE distribution, in which case the provisions of the
21
# CDDL are applicable instead of those of the GPL.
22
#
23
# You may elect to license modified versions of this file under the
24
# terms and conditions of either the GPL or the CDDL or both.
25
#
26
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
27
SUB_DEPTH = ../../..
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
28
include $(KBUILD_PATH)/subheader.kmk
29
30
ifdef VBOX_ONLY_ADDITIONS
31
 #
32
 # Only build the additions, sort out the legacy names first.
33
 #
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
34
 LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeGuestR3Mini
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
35
 LIBRARIES.win.amd64 += RuntimeGuestR3-x86 RuntimeGuestR3Shared-x86
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
36
 ifdef VBOX_WITH_ADDITION_DRIVERS
37
  LIBRARIES += RuntimeGuestR0
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
38
  #LIBRARIES.os2 += RuntimeGuestR0OS2Warp3
39
  LIBRARIES.win.x86 += RuntimeGuestR0NT4
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
40
 endif
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
41
42
else ifdef VBOX_ONLY_TESTSUITE
43
 #
44
 # Only build the testsuite.
45
 #
46
 LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeR3 RuntimeR0
47
 LIBRARIES.win += RuntimeR0Stub
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
48
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
49
else ifdef VBOX_ONLY_DOCS
50
 #
51
 # Build docs only - need just regular R3 runtime.
52
 #
53
 LIBRARIES += RuntimeR3
54
 DLLS += VBoxRT
55
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
56
else ifdef VBOX_ONLY_EXTPACKS_USE_IMPLIBS
57
 #
58
 # Build docs only - need just regular R3 runtime.
59
 #
60
 LIBRARIES += RuntimeBldProg
61
 IMPORT_LIBS += VBoxRTImp
62
 LIBRARIES.win += RuntimeR0Stub RuntimeRCStub
63
 include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
64
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
65
else # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_TESTSUITE && !VBOX_ONLY_DOCS
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
66
67
 #
68
 # Normal build.
69
 #
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
70
 ifndef VBOX_ONLY_EXTPACKS
71
  include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
72
 endif
73
 include $(PATH_SUB_CURRENT)/tools/Makefile.kmk
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
74
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
75
 BLDPROGS += uniread
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
76
 IMPORT_LIBS += VBoxRTImp
77
 LIBRARIES += RuntimeR3 RuntimeBldProg RuntimeR0 RuntimeEFCPP RuntimeR3NoCRTGCC
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
78
 LIBRARIES.win += RuntimeR0Stub
0.5.5 by Felix Geyer
Import upstream version 3.1.6-dfsg
79
 ifdef VBOX_WITH_RAW_MODE
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
80
  LIBRARIES += RuntimeRC
81
  LIBRARIES.win += RuntimeRCStub
0.5.5 by Felix Geyer
Import upstream version 3.1.6-dfsg
82
 endif
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
83
 ifdef VBOX_WITH_VBOXDRV
84
  LIBRARIES += RuntimeR0Drv
85
 endif
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
86
 ifdef VBOX_WITH_ADDITIONS
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
87
  LIBRARIES += RuntimeGuestR3 RuntimeGuestR3Shared RuntimeGuestR3Mini
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
88
  LIBRARIES.win.amd64 += RuntimeGuestR3-x86 RuntimeGuestR3Shared-x86
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
89
  ifdef VBOX_WITH_ADDITION_DRIVERS
90
   LIBRARIES += RuntimeGuestR0
91
  endif
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
92
  #LIBRARIES.os2 += RuntimeGuestR0OS2Warp3
93
  LIBRARIES.win.x86 += RuntimeGuestR0NT4
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
94
 endif # VBOX_WITH_ADDITIONS
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
95
 LIBRARIES.l4 += RuntimeR3L4 RuntimeLnxHostR3
96
 DLLS += VBoxRT
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
97
endif
98
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
99
100
# Always build the ntdll import libraries on windows.
101
LIBRARIES.win += RuntimeR3NtDll-x86
102
if1of (amd64, $(KBUILD_TARGET_ARCH) $(KBUILD_HOST_ARCH))
103
 LIBRARIES.win += RuntimeR3NtDll-amd64
104
endif
105
106
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
107
# Where the generated stuff goes.
108
IPRT_OUT_DIR := $(PATH_TARGET)/Runtime
109
BLDDIRS += $(IPRT_OUT_DIR)
110
OTHER_CLEAN += \
111
	$(IPRT_OUT_DIR)/errmsgdata.h \
112
	$(IPRT_OUT_DIR)/errmsgcomdata.h \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
113
	$(IPRT_OUT_DIR)/errmsgvboxcomdata.h \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
114
	$(IPRT_OUT_DIR)/Doxyfile.iprt \
115
	$(IPRT_OUT_DIR)/Doxyfile.iprt.dep \
116
	$(IPRT_OUT_DIR)/docs.iprt
117
118
119
#
120
# Globals
121
#
122
VBOX_PATH_RUNTIME_SRC := $(PATH_SUB_CURRENT)
123
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
124
125
#
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
126
# Set the defines that buildconfig.cpp needs. Its used by several targets.
127
#
128
common/misc/buildconfig.cpp_DEFS = \
129
	IPRT_BLDCFG_SCM_REV=$(VBOX_SVN_REV) \
130
	IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
131
	IPRT_BLDCFG_VERSION_MAJOR=$(VBOX_VERSION_MAJOR) \
132
	IPRT_BLDCFG_VERSION_MINOR=$(VBOX_VERSION_MINOR) \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
133
	IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD) \
134
	IPRT_BLDCFG_TARGET=\"$(KBUILD_TARGET)\" \
135
	IPRT_BLDCFG_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\" \
136
	IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\"
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
137
138
#
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
139
# Unicode Specification reader used to regenerate unidata.cpp.
140
#
141
uniread_TEMPLATE = VBOXBLDPROG
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
142
uniread_SOURCES  = common/string/uniread.cpp
143
uniread_INCS = include
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
144
145
#
146
# Win64 assembly sources.
147
#
148
RuntimeWin64ASM_SOURCES = \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
149
	win/amd64/ASMAtomicBitClear.asm \
150
	win/amd64/ASMAtomicBitTestAndToggle.asm \
151
	win/amd64/ASMAtomicBitToggle.asm \
152
	win/amd64/ASMAtomicReadU64.asm \
153
	win/amd64/ASMAtomicXchgU16.asm \
154
	win/amd64/ASMAtomicXchgU8.asm \
155
	win/amd64/ASMBitFirstClear.asm \
156
	win/amd64/ASMBitFirstSet.asm \
157
	win/amd64/ASMGetCS.asm \
158
	win/amd64/ASMGetDS.asm \
159
	win/amd64/ASMGetES.asm \
160
	win/amd64/ASMGetFlags.asm \
161
	win/amd64/ASMGetFS.asm \
162
	win/amd64/ASMGetGS.asm \
163
	win/amd64/ASMGetIDTR.asm \
164
	win/amd64/ASMGetGDTR.asm \
165
	win/amd64/ASMGetTR.asm \
166
	win/amd64/ASMGetSS.asm \
167
	win/amd64/ASMProbeReadByte.asm \
168
	win/amd64/ASMSetFlags.asm \
169
	win/amd64/ASMGetDR0.asm \
170
	win/amd64/ASMGetDR1.asm \
171
	win/amd64/ASMGetDR2.asm \
172
	win/amd64/ASMGetDR3.asm \
173
	win/amd64/ASMGetDR6.asm \
174
	win/amd64/ASMGetDR7.asm \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
175
	common/asm/ASMAtomicCmpXchgU8.asm \
0.2.7 by Michael Meskes
Import upstream version 3.0.6-dfsg
176
	common/asm/ASMMultU64ByU32DivByU32.asm \
177
	common/asm/ASMNopPause.asm
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
178
179
#
180
# Win32 assembly sources.
181
#
182
RuntimeWin32ASM_SOURCES = \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
183
	common/asm/ASMAtomicCmpXchgU8.asm \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
184
	common/asm/ASMMultU64ByU32DivByU32.asm
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
185
186
#
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
187
# NoCRT sources (minus math stuff).
188
#
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
189
if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
190
RuntimeNoCrt_SOURCES = \
191
	common/misc/setjmp.asm \
192
	common/string/memchr.asm \
193
	common/string/memcmp.asm \
194
	common/string/memcpy.asm \
195
	common/string/mempcpy.asm \
196
	common/string/memmove.asm \
197
	common/string/memset.asm \
198
	common/string/strchr.asm \
199
	common/string/strcpy.asm \
200
	common/string/strcmp.asm \
201
	common/string/strlen.asm
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
202
endif
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
203
204
205
#
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
206
# RuntimeR3 - Static Runtime for Ring-3 executables.
207
#
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
208
RuntimeR3_TEMPLATE      = VBoxR3Static
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
209
RuntimeR3_SDKS          = VBOX_LIBXML2 VBOX_OPENSSL VBOX_BOOST ## @todo why is BOOST and XML2 here? r3/xml.cpp is not in this lib...
210
RuntimeR3_SDKS.win      = WINPSDK $(VBOX_WINDDK)
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
211
RuntimeR3_DEFS          = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF32 LDR_WITH_PE RT_WITH_VBOX RT_NO_GIP
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
212
#RuntimeR3_DEFS         += RTMEM_WRAP_TO_EF_APIS
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
213
ifdef IPRT_WITH_KSTUFF
214
 RuntimeR3_DEFS        += LDR_WITH_KLDR
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
215
endif
216
ifdef VBOX_MAIN_RELEASE_LOG ## @todo (dmik): temporary, until RTThreadSelf/RTThreadAdopt are properly updated
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
217
 RuntimeR3_DEFS        += RTCRITSECT_STRICT
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
218
endif
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
219
ifdef IPRT_WITH_LZJB
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
220
 RuntimeR3_DEFS        += RTZIP_USE_LZJB
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
221
endif
222
ifdef IPRT_WITH_LZO
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
223
 RuntimeR3_DEFS        += RTZIP_USE_LZO
224
endif
225
ifn1of ($(KBUILD_TARGET), win)
226
 RuntimeR3_DEFS        += RT_WITH_ICONV_CACHE
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
227
endif
0.2.8 by Michael Meskes
Import upstream version 3.0.8-dfsg
228
ifdef IPRT_WITH_FUTEX_BASED_SEMS
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
229
 RuntimeR3_DEFS.linux  += IPRT_WITH_FUTEX_BASED_SEMS
0.2.8 by Michael Meskes
Import upstream version 3.0.8-dfsg
230
endif
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
231
RuntimeR3_INCS          = \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
232
	include \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
233
	$(SDK_VBOX_ZLIB_INCS)
234
RuntimeR3_INCS         += \
235
	$(PATH_ROOT)/src/libs/liblzf-3.4
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
236
ifdef IPRT_WITH_KSTUFF
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
237
 RuntimeR3_INCS        += \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
238
	$(PATH_ROOT)/src/libs/kStuff/kStuff/include
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
239
endif
240
RuntimeR3_INCS.l4       = \
241
	$(L4_INCDIR)
242
243
# RuntimeR3_INCS.solaris  = \
244
#    /usr/include
245
246
RuntimeR3_SOURCES       = \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
247
	common/alloc/alloc.cpp \
248
	common/alloc/heapsimple.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
249
	common/alloc/heapoffset.cpp \
0.5.6 by Felix Geyer
Import upstream version 3.1.8-dfsg
250
	common/alloc/memcache.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
251
	common/checksum/adler32.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
252
	common/checksum/crc32.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
253
	common/checksum/crc64.cpp \
254
	common/checksum/md5.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
255
	common/checksum/md5str.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
256
	common/checksum/ipv4.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
257
	common/checksum/ipv6.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
258
	common/checksum/manifest.cpp \
259
	common/checksum/manifest2.cpp \
260
	common/checksum/manifest3.cpp \
261
	common/checksum/manifest-file.cpp \
262
	common/checksum/RTSha1Digest.cpp \
263
	common/checksum/sha1.cpp \
264
	common/checksum/sha1str.cpp \
265
	common/checksum/sha256.cpp \
266
	common/checksum/sha256str.cpp \
267
	common/checksum/sha512.cpp \
268
	common/checksum/sha512str.cpp \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
269
	common/dbg/dbg.cpp \
270
	common/dbg/dbgas.cpp \
271
	common/dbg/dbgmod.cpp \
272
	common/dbg/dbgmodcontainer.cpp \
273
	common/dbg/dbgmodnm.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
274
	common/err/errinfo.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
275
	common/err/errmsg.cpp \
276
	common/err/RTErrConvertFromErrno.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
277
	common/err/RTErrConvertToErrno.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
278
	common/ldr/ldr.cpp \
279
	common/ldr/ldrELF.cpp \
280
	common/ldr/ldrEx.cpp \
281
	common/ldr/ldrFile.cpp \
282
	common/ldr/ldrNative.cpp \
283
	common/ldr/ldrPE.cpp \
284
	common/log/log.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
285
	common/log/logellipsis.cpp \
286
	common/log/logrel.cpp \
287
	common/log/logrelellipsis.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
288
	common/log/logcom.cpp \
289
	common/log/logformat.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
290
	common/misc/RTAssertMsg1Weak.cpp \
291
	common/misc/RTAssertMsg2.cpp \
292
	common/misc/RTAssertMsg2Add.cpp \
293
	common/misc/RTAssertMsg2AddWeak.cpp \
294
	common/misc/RTAssertMsg2AddWeakV.cpp \
295
	common/misc/RTAssertMsg2Weak.cpp \
296
	common/misc/RTAssertMsg2WeakV.cpp \
297
	common/misc/RTFileOpenF.cpp \
298
	common/misc/RTFileOpenV.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
299
	common/misc/RTMemWipeThoroughly.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
300
	common/misc/assert.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
301
	common/misc/buildconfig.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
302
	common/misc/cidr.cpp \
303
	common/misc/getopt.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
304
	common/misc/getoptargv.cpp \
305
	common/misc/handle.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
306
	common/misc/handletable.cpp \
307
	common/misc/handletablectx.cpp \
308
	common/misc/handletablesimple.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
309
	common/misc/lockvalidator.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
310
	common/misc/message.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
311
	common/misc/once.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
312
	common/misc/req.cpp \
313
	common/misc/sanity-c.c \
314
	common/misc/sanity-cpp.cpp \
315
	common/misc/semspingpong.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
316
	common/misc/sg.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
317
	common/misc/circbuf.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
318
	common/misc/thread.cpp \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
319
	common/misc/term.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
320
	common/path/rtPathRootSpecLen.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
321
	common/path/rtPathVolumeSpecLen.cpp \
322
	common/path/RTPathAbsDup.cpp \
323
	common/path/RTPathAbsEx.cpp \
324
	common/path/RTPathAbsExDup.cpp \
325
	common/path/RTPathAppend.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
326
	common/path/RTPathAppendEx.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
327
	common/path/RTPathChangeToDosSlashes.cpp \
328
	common/path/RTPathChangeToUnixSlashes.cpp \
329
	common/path/RTPathCopyComponents.cpp \
330
	common/path/RTPathCountComponents.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
331
	common/path/RTPathExt.cpp \
332
	common/path/RTPathFilename.cpp \
333
	common/path/RTPathHaveExt.cpp \
334
	common/path/RTPathHavePath.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
335
	common/path/RTPathJoin.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
336
	common/path/RTPathJoinA.cpp \
337
	common/path/RTPathJoinEx.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
338
	common/path/RTPathParse.cpp \
339
	common/path/RTPathRealDup.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
340
	common/path/RTPathStartsWithRoot.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
341
	common/path/RTPathStripExt.cpp \
342
	common/path/RTPathStripFilename.cpp \
343
	common/path/RTPathStripTrailingSlash.cpp \
344
	common/path/RTPathTraverseList.cpp \
345
	common/path/comparepaths.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
346
	common/rand/rand.cpp \
347
	common/rand/randadv.cpp \
348
	common/rand/randparkmiller.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
349
	common/sort/RTSortIsSorted.cpp \
350
	common/sort/RTSortApvIsSorted.cpp \
351
	common/sort/shellsort.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
352
	common/string/RTStrCat.cpp \
353
	common/string/RTStrCatEx.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
354
	common/string/RTStrCmp.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
355
	common/string/RTStrConvertHexBytes.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
356
	common/string/RTStrCopy.cpp \
357
	common/string/RTStrCopyEx.cpp \
358
	common/string/RTStrNCmp.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
359
	common/string/RTStrNLen.cpp \
360
	common/string/RTStrNLenEx.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
361
	common/string/RTStrPrintHexBytes.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
362
	common/string/RTStrStr.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
363
	common/string/base64.cpp \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
364
	common/string/simplepattern.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
365
	common/string/straprintf.cpp \
366
	common/string/strformat.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
367
	common/string/strformatnum.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
368
	common/string/strformatrt.cpp \
369
	common/string/strformattype.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
370
	common/string/stringalloc.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
371
	common/string/strprintf.cpp \
372
	common/string/strspace.cpp \
373
	common/string/strstrip.cpp \
374
	common/string/strtonum.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
375
	common/string/strversion.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
376
	common/string/uni.cpp \
377
	common/string/unidata.cpp \
378
	common/string/utf-16.cpp \
379
	common/string/utf-8.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
380
	common/string/utf-8-case.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
381
	common/string/ministring.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
382
	common/table/avlgcptr.cpp \
383
	common/table/avlhcphys.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
384
	common/table/avlgcphys.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
385
	common/table/avllu32.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
386
	common/table/avlou32.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
387
	common/table/avlogcphys.cpp \
388
	common/table/avlogcptr.cpp \
389
	common/table/avlohcphys.cpp \
390
	common/table/avloioport.cpp \
391
	common/table/avlpv.cpp \
392
	common/table/avlrgcptr.cpp \
393
	common/table/avlrogcphys.cpp \
394
	common/table/avlrogcptr.cpp \
395
	common/table/avlroioport.cpp \
396
	common/table/avlroogcptr.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
397
	common/table/avlrpv.cpp \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
398
	common/table/avlruintptr.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
399
	common/table/avlrfoff.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
400
	common/table/avlru64.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
401
	common/table/avlu32.cpp \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
402
	common/table/avluintptr.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
403
	common/table/avlul.cpp \
404
	common/table/table.cpp \
405
	common/time/time.cpp \
406
	common/time/timeprog.cpp \
407
	common/time/timesup.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
408
	common/vfs/vfsbase.cpp \
409
	common/vfs/vfschain.cpp \
410
	common/vfs/vfsiosmisc.cpp \
411
	common/vfs/vfsmemory.cpp \
412
	common/vfs/vfsmisc.cpp \
413
	common/vfs/vfsstdfile.cpp \
414
	common/zip/tar.cpp \
415
	common/zip/tarcmd.cpp \
416
	common/zip/tarvfs.cpp \
417
	common/zip/gzipvfs.cpp \
418
	common/zip/zip.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
419
	generic/critsect-generic.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
420
	generic/env-generic.cpp \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
421
	generic/RTDirCreateTemp-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
422
	generic/RTEnvDupEx-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
423
	generic/RTFileCopy-generic.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
424
	generic/RTFileQuerySize-generic.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
425
	generic/RTFileReadAll-generic.cpp \
426
	generic/RTFileReadAllEx-generic.cpp \
427
	generic/RTFileReadAllByHandle-generic.cpp \
428
	generic/RTFileReadAllByHandleEx-generic.cpp \
429
	generic/RTFileReadAllFree-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
430
	generic/RTLogWriteStdErr-generic.cpp \
431
	generic/RTLogWriteStdOut-generic.cpp \
432
	generic/RTLogWriteUser-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
433
	generic/RTTimerLRCreate-generic.cpp \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
434
	generic/mempool-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
435
	generic/semfastmutex-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
436
	generic/semxroads-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
437
	generic/spinlock-generic.cpp \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
438
	generic/strcache-stubs-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
439
	generic/timerlr-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
440
	r3/alloc-ef.cpp \
441
	r3/alloc.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
442
	r3/dir.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
443
	r3/dir2.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
444
	r3/fileio.cpp \
445
	r3/fs.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
446
	r3/init.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
447
	r3/isofs.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
448
	r3/path.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
449
	r3/process.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
450
	r3/socket.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
451
	r3/stream.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
452
	r3/test.cpp \
0.2.4 by Michael Meskes
Import upstream version 2.2.2-dfsg
453
	r3/testi.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
454
	r3/tcp.cpp \
455
	r3/generic/semspinmutex-r3-generic.cpp
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
456
457
#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
458
# RuntimeR3_SOURCES += common/time/timesupA.asm
459
#else
460
 RuntimeR3_SOURCES += common/time/timesupref.cpp
461
#endif
462
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
463
RuntimeR3_SOURCES.x86 += \
464
	generic/RTMpGetDescription-generic.cpp
465
RuntimeR3_SOURCES.amd64 += \
466
	generic/RTMpGetDescription-generic.cpp
467
RuntimeR3_SOURCES.sparc32 += \
468
	generic/RTMpGetDescription-generic-stub.cpp \
469
	common/asm/asm-fake.cpp
470
RuntimeR3_SOURCES.sparc64 += \
471
	generic/RTMpGetDescription-generic-stub.cpp \
472
	common/asm/asm-fake.cpp
473
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
474
ifdef IPRT_WITH_LZJB
475
 RuntimeR3_SOURCES += common/misc/lzjb.c
476
endif
477
1.1.9 by Felix Geyer
Import upstream version 2.2.4-dfsg
478
# Some versions of GCC might require this.
479
RuntimeR3_SOURCES.x86 += \
0.5.5 by Felix Geyer
Import upstream version 3.1.6-dfsg
480
	common/asm/ASMAtomicXchgU64.asm \
1.1.9 by Felix Geyer
Import upstream version 2.2.4-dfsg
481
	common/asm/ASMAtomicCmpXchgU64.asm \
0.5.5 by Felix Geyer
Import upstream version 3.1.6-dfsg
482
	common/asm/ASMAtomicCmpXchgExU64.asm \
483
	common/asm/ASMAtomicReadU64.asm	\
484
	common/asm/ASMAtomicUoReadU64.asm
1.1.9 by Felix Geyer
Import upstream version 2.2.4-dfsg
485
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
486
ifdef IPRT_WITH_KSTUFF
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
487
 RuntimeR3_SOURCES += \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
488
	common/ldr/ldrkStuff.cpp
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
489
endif
490
491
# VBox specific stuff.
492
RuntimeR3_SOURCES += \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
493
	VBox/RTAssertShouldPanic-vbox.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
494
	VBox/log-vbox.cpp
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
495
ifneq ($(KBUILD_TARGET),win)
496
RuntimeR3_SOURCES += \
497
	common/err/errmsgxpcom.cpp
498
endif
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
499
if1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd solaris)
500
RuntimeR3_SOURCES += \
501
	$(if $(VBOX_WITH_DBUS),VBox/dbus.cpp,)
502
endif
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
503
504
RuntimeR3_SOURCES.win = \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
505
	generic/RTDirExists-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
506
	generic/RTDirQueryInfo-generic.cpp \
507
	generic/RTDirSetTimes-generic.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
508
	generic/RTFileExists-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
509
	generic/RTMpGetCurFrequency-generic.cpp \
510
	generic/RTMpGetMaxFrequency-generic.cpp \
511
	generic/RTRandAdvCreateSystemFaster-generic.cpp \
512
	generic/RTRandAdvCreateSystemTruer-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
513
	generic/RTSemEventWait-generic.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
514
 	generic/RTSemEventMultiWait-2-ex-generic.cpp \
515
 	generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
516
	generic/RTSemMutexRequest-generic.cpp \
517
	generic/RTSemMutexRequestDebug-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
518
	generic/mppresent-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
519
	generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
520
	generic/uuid-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
521
	generic/RTProcDaemonize-generic.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
522
	generic/RTProcIsRunningByName-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
523
	generic/RTThreadGetNativeState-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
524
	nt/RTErrConvertFromNtStatus.cpp \
525
	r3/posix/env-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
526
	r3/win/RTHandleGetStandard-win.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
527
	r3/win/RTSystemQueryOSInfo-win.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
528
	r3/win/RTSystemQueryDmiString-win.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
529
        r3/win/RTSystemQueryTotalRam-win.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
530
	r3/win/alloc-win.cpp \
531
	r3/win/dir-win.cpp \
532
	r3/win/fileio-win.cpp \
533
	r3/win/fs-win.cpp \
534
	r3/win/ldrNative-win.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
535
	r3/win/localipc-win.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
536
	r3/win/mp-win.cpp \
537
	r3/win/path-win.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
538
	r3/win/pipe-win.cpp \
539
	r3/win/poll-win.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
540
	r3/win/process-win.cpp \
541
	r3/win/RTLogWriteDebugger-win.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
542
	r3/win/rtProcInitExePath-win.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
543
	r3/win/sched-win.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
544
	r3/win/semevent-win.cpp \
545
	r3/win/semeventmulti-win.cpp \
546
	r3/win/semmutex-win.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
547
	r3/win/symlink-win.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
548
	r3/win/rtFileNativeSetAttributes-win.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
549
	r3/win/thread-win.cpp \
550
	r3/win/time-win.cpp \
551
	r3/win/timer-win.cpp \
552
	r3/win/tls-win.cpp \
553
	r3/win/utf16locale-win.cpp \
554
	r3/win/utf8-win.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
555
	r3/win/RTUuidCreate-win.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
556
	win/errmsgwin.cpp \
557
	win/RTErrConvertFromWin32.cpp
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
558
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
559
RuntimeR3_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
560
RuntimeR3_SOURCES.win.x86   = $(RuntimeWin32ASM_SOURCES)
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
561
562
RuntimeR3_SOURCES.linux = \
563
	generic/RTDirQueryInfo-generic.cpp \
564
	generic/RTDirSetTimes-generic.cpp \
565
	generic/RTFileMove-generic.cpp \
566
	generic/RTLogWriteDebugger-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
567
	generic/RTProcDaemonize-generic.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
568
 	generic/RTSemEventMultiWait-2-ex-generic.cpp \
569
 	generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
570
	generic/RTTimeLocalNow-generic.cpp \
571
	generic/RTTimerCreate-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
572
	generic/RTUuidCreate-generic.cpp \
573
	generic/mppresent-generic.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
574
	generic/utf16locale-generic.cpp \
575
	generic/uuid-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
576
	r3/linux/RTThreadGetNativeState-linux.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
577
	r3/linux/mp-linux.cpp \
578
	r3/linux/rtProcInitExePath-linux.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
579
	r3/linux/sched-linux.cpp \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
580
	r3/linux/sysfs.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
581
	r3/linux/time-linux.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
582
	r3/linux/RTProcIsRunningByName-linux.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
583
	r3/linux/RTSystemQueryDmiString-linux.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
584
	r3/posix/RTFileQueryFsSizes-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
585
	r3/posix/RTHandleGetStandard-posix.cpp \
586
	r3/posix/RTMemProtect-posix.cpp \
587
	r3/posix/RTPathUserHome-posix.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
588
	r3/posix/RTSystemQueryOSInfo-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
589
        r3/posix/RTSystemQueryTotalRam-posix.cpp \
590
	r3/posix/RTTimeNow-posix.cpp \
591
	r3/posix/RTTimeSet-posix.cpp \
592
	r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
593
	r3/posix/dir-posix.cpp \
594
	r3/posix/env-posix.cpp \
595
	r3/posix/fileio-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
596
	r3/posix/fileio2-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
597
	r3/posix/filelock-posix.cpp \
598
	r3/posix/fs-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
599
	r3/posix/fs2-posix.cpp \
600
	r3/posix/fs3-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
601
	r3/posix/ldrNative-posix.cpp \
602
	r3/posix/path-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
603
	r3/posix/path2-posix.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
604
	r3/posix/pathhost-posix.cpp \
605
	r3/posix/pipe-posix.cpp \
606
	r3/posix/poll-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
607
	r3/posix/process-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
608
	r3/posix/process-creation-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
609
	r3/posix/rand-posix.cpp \
610
	r3/posix/semrw-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
611
	r3/posix/symlink-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
612
	r3/posix/thread-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
613
	r3/posix/timelocal-posix.cpp \
614
	r3/posix/timer-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
615
	r3/posix/tls-posix.cpp \
616
	r3/posix/utf8-posix.cpp
0.2.8 by Michael Meskes
Import upstream version 3.0.8-dfsg
617
ifdef IPRT_WITH_FUTEX_BASED_SEMS
618
 RuntimeR3_SOURCES.linux += \
619
 	r3/linux/semevent-linux.cpp \
620
 	r3/linux/semeventmulti-linux.cpp \
621
 	r3/linux/semmutex-linux.cpp
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
622
else
0.2.8 by Michael Meskes
Import upstream version 3.0.8-dfsg
623
 RuntimeR3_SOURCES.linux.x86 += \
624
 	r3/posix/semevent-posix.cpp \
625
 	r3/posix/semeventmulti-posix.cpp \
626
 	r3/posix/semmutex-posix.cpp
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
627
 RuntimeR3_SOURCES.linux.amd64 += \
0.2.8 by Michael Meskes
Import upstream version 3.0.8-dfsg
628
 	r3/linux/semevent-linux.cpp \
629
 	r3/linux/semeventmulti-linux.cpp
630
 ifdef RT_NEW_LINUX_MUTEX_CODE
631
  RuntimeR3_SOURCES.linux.amd64 += \
632
 	r3/linux/semmutex-linux.cpp
633
 else
634
  RuntimeR3_SOURCES.linux.amd64 += \
635
 	r3/posix/semmutex-posix.cpp
636
 endif
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
637
endif
638
639
RuntimeR3_SOURCES.os2   = \
640
	generic/RTDirQueryInfo-generic.cpp \
641
	generic/RTDirSetTimes-generic.cpp \
642
	generic/RTFileMove-generic.cpp \
643
	generic/RTLogWriteDebugger-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
644
	generic/RTProcDaemonize-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
645
	generic/RTRandAdvCreateSystemFaster-generic.cpp \
646
	generic/RTRandAdvCreateSystemTruer-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
647
	generic/RTSystemQueryDmiString-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
648
	generic/RTTimeLocalNow-generic.cpp \
649
	generic/RTTimerCreate-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
650
	generic/RTUuidCreate-generic.cpp \
651
	generic/mppresent-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
652
	generic/RTSemEventWait-generic.cpp \
653
	generic/RTSemEventMultiWait-generic.cpp \
654
	generic/RTSemMutexRequest-generic.cpp \
655
	generic/RTSemMutexRequestDebug-generic.cpp \
656
	generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
657
	generic/timer-generic.cpp \
658
	generic/utf16locale-generic.cpp \
659
	generic/uuid-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
660
	generic/RTMpGetCurFrequency-generic.cpp \
661
	generic/RTMpGetMaxFrequency-generic.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
662
	generic/RTProcIsRunningByName-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
663
	generic/RTThreadGetNativeState-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
664
	os2/RTErrConvertFromOS2.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
665
	r3/os2/filelock-os2.cpp \
666
	r3/os2/mp-os2.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
667
	r3/os2/pipe-os2.cpp \
668
	r3/os2/poll-os2.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
669
	r3/os2/rtProcInitExePath-os2.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
670
	r3/os2/sched-os2.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
671
	r3/os2/sems-os2.cpp \
672
	r3/os2/thread-os2.cpp \
673
	r3/os2/time-os2.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
674
	r3/posix/RTFileQueryFsSizes-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
675
	r3/posix/RTHandleGetStandard-posix.cpp \
676
	r3/posix/RTMemProtect-posix.cpp \
677
	r3/posix/RTPathUserHome-posix.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
678
	r3/posix/RTSystemQueryOSInfo-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
679
	r3/posix/RTTimeNow-posix.cpp \
680
	r3/posix/RTTimeSet-posix.cpp \
681
	r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
682
	r3/posix/dir-posix.cpp \
683
	r3/posix/env-posix.cpp \
684
	r3/posix/fileio-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
685
	r3/posix/fileio2-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
686
	r3/posix/fs-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
687
	r3/posix/fs2-posix.cpp \
688
	r3/posix/fs3-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
689
	r3/posix/ldrNative-posix.cpp \
690
	r3/posix/path-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
691
	r3/posix/path2-posix.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
692
	r3/posix/pathhost-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
693
	r3/posix/process-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
694
	r3/posix/process-creation-posix.cpp \
695
	r3/posix/symlink-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
696
	r3/posix/timelocal-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
697
	r3/posix/utf8-posix.cpp
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
698
699
RuntimeR3_SOURCES.darwin = \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
700
	darwin/RTErrConvertFromDarwin.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
701
	darwin/RTErrConvertFromDarwinCOM.cpp \
702
	darwin/RTErrConvertFromDarwinIO.cpp \
703
	darwin/RTErrConvertFromDarwinKern.cpp \
704
	generic/RTDirQueryInfo-generic.cpp \
705
	generic/RTDirSetTimes-generic.cpp \
706
	generic/RTFileMove-generic.cpp \
707
	generic/RTLogWriteDebugger-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
708
	generic/RTProcDaemonize-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
709
	generic/RTTimeLocalNow-generic.cpp \
710
	generic/RTTimerCreate-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
711
	generic/RTUuidCreate-generic.cpp \
712
	generic/mppresent-generic.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
713
 	generic/RTSemEventMultiWait-2-ex-generic.cpp \
714
 	generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
715
	generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
716
	generic/timer-generic.cpp \
717
	generic/utf16locale-generic.cpp \
718
	generic/uuid-generic.cpp\
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
719
	generic/RTProcIsRunningByName-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
720
	generic/RTThreadGetNativeState-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
721
	r3/darwin/filelock-darwin.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
722
	r3/darwin/mp-darwin.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
723
	r3/darwin/pathhost-darwin.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
724
	r3/darwin/rtProcInitExePath-darwin.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
725
	r3/darwin/RTSystemQueryDmiString-darwin.cpp \
0.2.1 by Michael Meskes
Import upstream version 2.1.2-dfsg
726
	r3/darwin/sched-darwin.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
727
	r3/darwin/time-darwin.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
728
	r3/posix/RTFileQueryFsSizes-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
729
	r3/posix/RTHandleGetStandard-posix.cpp \
730
	r3/posix/RTMemProtect-posix.cpp \
731
	r3/posix/RTPathUserHome-posix.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
732
	r3/posix/RTSystemQueryOSInfo-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
733
        r3/posix/RTSystemQueryTotalRam-posix.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
734
	r3/posix/RTTimeSet-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
735
	r3/posix/dir-posix.cpp \
736
	r3/posix/env-posix.cpp \
737
	r3/posix/fileio-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
738
	r3/posix/fileio2-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
739
	r3/posix/fs-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
740
	r3/posix/fs2-posix.cpp \
741
	r3/posix/fs3-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
742
	r3/posix/ldrNative-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
743
	r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
744
	r3/posix/path-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
745
	r3/posix/path2-posix.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
746
	r3/posix/pipe-posix.cpp \
747
	r3/posix/poll-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
748
	r3/posix/process-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
749
	r3/posix/process-creation-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
750
	r3/posix/rand-posix.cpp \
751
	r3/posix/semevent-posix.cpp \
752
	r3/posix/semeventmulti-posix.cpp \
753
	r3/posix/semmutex-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
754
	r3/posix/symlink-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
755
	r3/posix/thread-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
756
	r3/posix/timelocal-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
757
	r3/posix/tls-posix.cpp \
758
	r3/posix/utf8-posix.cpp
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
759
0.2.1 by Michael Meskes
Import upstream version 2.1.2-dfsg
760
## @todo Make BSD sched, implement RTMP*.
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
761
RuntimeR3_SOURCES.freebsd = \
762
	generic/RTDirQueryInfo-generic.cpp \
763
	generic/RTDirSetTimes-generic.cpp \
764
	generic/RTFileMove-generic.cpp \
765
	generic/RTLogWriteDebugger-generic.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
766
 	generic/RTSemEventMultiWait-2-ex-generic.cpp \
767
 	generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
768
	generic/RTSystemQueryDmiString-generic.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
769
	generic/RTTimeLocalNow-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
770
	generic/RTTimerCreate-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
771
	generic/RTUuidCreate-generic.cpp \
772
	generic/mppresent-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
773
	generic/sched-generic.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
774
	generic/utf16locale-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
775
	generic/uuid-generic.cpp \
0.2.1 by Michael Meskes
Import upstream version 2.1.2-dfsg
776
	generic/RTMpCpuId-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
777
	generic/RTProcDaemonize-generic.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
778
	generic/RTProcIsRunningByName-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
779
	generic/RTThreadGetNativeState-generic.cpp \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
780
	r3/freebsd/mp-freebsd.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
781
	r3/freebsd/rtProcInitExePath-freebsd.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
782
	r3/posix/RTFileQueryFsSizes-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
783
	r3/posix/RTHandleGetStandard-posix.cpp \
784
	r3/posix/RTMemProtect-posix.cpp \
785
	r3/posix/RTPathUserHome-posix.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
786
	r3/posix/RTSystemQueryOSInfo-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
787
	r3/posix/RTSystemQueryTotalRam-posix.cpp \
788
	r3/posix/RTTimeNow-posix.cpp \
789
	r3/posix/RTTimeSet-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
790
	r3/posix/dir-posix.cpp \
791
	r3/posix/env-posix.cpp \
792
	r3/posix/fileio-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
793
	r3/posix/fileio2-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
794
	r3/posix/filelock-posix.cpp \
795
	r3/posix/fs-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
796
	r3/posix/fs2-posix.cpp \
797
	r3/posix/fs3-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
798
	r3/posix/ldrNative-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
799
	r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
800
	r3/posix/path-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
801
	r3/posix/path2-posix.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
802
	r3/posix/pathhost-posix.cpp \
803
	r3/posix/pipe-posix.cpp \
804
	r3/posix/poll-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
805
	r3/posix/process-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
806
	r3/posix/process-creation-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
807
	r3/posix/rand-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
808
	r3/posix/semevent-posix.cpp \
809
	r3/posix/semeventmulti-posix.cpp \
810
	r3/posix/semmutex-posix.cpp \
811
	r3/posix/semrw-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
812
	r3/posix/symlink-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
813
	r3/posix/thread-posix.cpp \
814
	r3/posix/time-posix.cpp \
815
	r3/posix/timelocal-posix.cpp \
816
	r3/posix/timer-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
817
	r3/posix/tls-posix.cpp \
818
	r3/posix/utf8-posix.cpp
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
819
820
RuntimeR3_SOURCES.solaris = \
821
	generic/RTDirQueryInfo-generic.cpp \
822
	generic/RTDirSetTimes-generic.cpp \
823
	generic/RTFileMove-generic.cpp \
824
	generic/RTLogWriteDebugger-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
825
	generic/RTProcDaemonize-generic.cpp \
826
	generic/RTProcIsRunningByName-generic.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
827
 	generic/RTSemEventMultiWait-2-ex-generic.cpp \
828
 	generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
829
	generic/RTTimeLocalNow-generic.cpp \
830
	generic/RTTimerCreate-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
831
	generic/RTUuidCreate-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
832
	generic/sched-generic.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
833
	generic/utf16locale-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
834
	generic/uuid-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
835
	generic/RTThreadGetNativeState-generic.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
836
	r3/posix/RTFileQueryFsSizes-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
837
	r3/posix/RTHandleGetStandard-posix.cpp \
838
	r3/posix/RTMemProtect-posix.cpp \
839
	r3/posix/RTPathUserHome-posix.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
840
	r3/posix/RTSystemQueryOSInfo-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
841
        r3/posix/RTSystemQueryTotalRam-posix.cpp \
842
	r3/posix/RTTimeNow-posix.cpp \
843
	r3/posix/RTTimeSet-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
844
	r3/posix/dir-posix.cpp \
845
	r3/posix/env-posix.cpp \
846
	r3/posix/fileio-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
847
	r3/posix/fileio2-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
848
	r3/posix/filelock-posix.cpp \
849
	r3/posix/fs-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
850
	r3/posix/fs2-posix.cpp \
851
	r3/posix/fs3-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
852
	r3/posix/ldrNative-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
853
	r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
854
	r3/posix/path-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
855
	r3/posix/path2-posix.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
856
	r3/posix/pathhost-posix.cpp \
857
	r3/posix/pipe-posix.cpp \
858
	r3/posix/poll-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
859
	r3/posix/process-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
860
	r3/posix/process-creation-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
861
	r3/posix/rand-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
862
	r3/posix/semevent-posix.cpp \
863
	r3/posix/semeventmulti-posix.cpp \
864
	r3/posix/semmutex-posix.cpp \
865
	r3/posix/semrw-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
866
	r3/posix/symlink-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
867
	r3/posix/thread-posix.cpp \
868
	r3/posix/time-posix.cpp \
869
	r3/posix/timelocal-posix.cpp \
870
	r3/posix/timer-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
871
	r3/posix/tls-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
872
	r3/posix/utf8-posix.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
873
	r3/solaris/mp-solaris.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
874
	r3/solaris/rtProcInitExePath-solaris.cpp
875
RuntimeR3_SOURCES.solaris.amd64 = \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
876
	r3/solaris/coredumper-solaris.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
877
	r3/solaris/RTSystemQueryDmiString-solaris.cpp
878
RuntimeR3_SOURCES.solaris.x86 = \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
879
	r3/solaris/coredumper-solaris.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
880
	r3/solaris/RTSystemQueryDmiString-solaris.cpp
881
RuntimeR3_SOURCES.solaris.sparc32 = \
882
	generic/RTSystemQueryDmiString-generic.cpp
883
RuntimeR3_SOURCES.solaris.sparc64 = \
884
	generic/RTSystemQueryDmiString-generic.cpp
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
885
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
886
## PORTME: Porters add their selection of platform specific files for Ring-3 here.
887
888
889
#
890
# L4 RuntimeR3 subtarget since L4 headers won't work with VBOXR3.
891
#
892
RuntimeR3L4_TEMPLATE      = VBOXR3NP
893
RuntimeR3L4_DEFS          = IN_RT_R3 IN_SUP_R3 LDR_WITH_NATIVE LDR_WITH_ELF LDR_WITH_PE
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
894
ifneq ($(KBUILD_TARGET_ARCH),amd64)
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
895
RuntimeR3L4_DEFS         += __PIC__
896
endif
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
897
RuntimeR3L4_INCS          = \
898
	include \
899
	$(L4_INCDIR)
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
900
901
RuntimeR3L4_SOURCES = \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
902
	generic/fs-stubs-generic.cpp \
903
	generic/pathhost-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
904
	generic/RTDirQueryInfo-generic.cpp \
905
	generic/RTDirSetTimes-generic.cpp \
906
	generic/RTFileMove-generic.cpp \
907
	generic/RTLogWriteDebugger-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
908
	generic/RTProcDaemonize-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
909
	generic/RTSystemQueryOSInfo-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
910
	generic/RTSystemQueryDmiString-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
911
	generic/RTTimeLocalNow-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
912
	generic/RTUuidCreate-generic.cpp \
913
	generic/mppresent-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
914
	generic/sched-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
915
	generic/RTSemEventWait-generic.cpp \
916
	generic/RTSemEventMultiWait-generic.cpp \
917
	generic/RTSemMutexRequest-generic.cpp \
918
	generic/RTSemMutexRequestDebug-generic.cpp \
919
	generic/semrw-$(if-expr defined(VBOX_WITH_LOCKLESS_SEMRW),lockless-,)generic.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
920
	generic/utf16locale-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
921
	generic/uuid-generic.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
922
	generic/RTProcIsRunningByName-generic.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
923
	generic/RTThreadGetNativeState-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
924
	l4/l4-errno.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
925
	l4/rtProcInitExePath-l4.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
926
	l4/process-l4env.cpp \
927
	l4/sems-l4env.cpp \
928
	l4/thread-l4env.cpp \
929
	l4/timer-l4env.cpp \
930
	l4/utf8-l4env.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
931
	r3/posix/RTFileQueryFsSizes-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
932
	r3/posix/RTMemProtect-posix.cpp \
933
	r3/posix/rtmempage-exec-mmap-heap-posix.cpp \
934
	r3/posix/RTPathUserHome-posix.cpp \
935
	r3/posix/RTTimeNow-posix.cpp \
936
	r3/posix/RTTimeSet-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
937
	r3/posix/dir-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
938
	r3/posix/env-posix.cpp \
939
	r3/posix/fileio-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
940
	r3/posix/fileio2-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
941
	r3/posix/filelock-posix.cpp \
942
	r3/posix/ldrNative-posix.cpp \
943
	r3/posix/path-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
944
	r3/posix/path2-posix.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
945
	r3/posix/rand-posix.cpp \
946
	r3/posix/time-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
947
	r3/posix/timelocal-posix.cpp
948
949
950
#
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
951
# RuntimeBldProg - Static Runtime for build programs.
952
#
953
# Note! This is a bit of hacky since kBuild doesn't support building libraries
954
#       for build programs.
955
#
956
RuntimeBldProg_TEMPLATE         := VBOXBLDPROG
957
RuntimeBldProg_EXTENDS          := RuntimeR3
958
RuntimeBldProg_BLD_TRG          := $(KBUILD_HOST)
959
RuntimeBldProg_BLD_TRG_ARCH     := $(KBUILD_HOST_ARCH)
960
RuntimeBldProg_BLD_TRG_CPU      := $(KBUILD_HOST_CPU)
961
962
963
#
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
964
# RuntimeGuestR3 - Guest Additions Runtime (static/exe).
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
965
# (The KBUILD_HOST inheritance here is for l4 cross building the linux
966
# additions, while .x86 is for cross building x86 while targeting amd64.)
967
#
968
RuntimeGuestR3_TEMPLATE                 := VBOXGUESTR3LIB
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
969
## @todo change this to EXTEND the RuntimeR3 target.
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
970
RuntimeGuestR3_SDKS.win                 := $(RuntimeR3_SDKS.win)
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
971
RuntimeGuestR3_DEFS                     := $(filter-out RTCRITSECT_STRICT RT_NO_GIP, $(RuntimeR3_DEFS))
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
972
RuntimeGuestR3_DEFS.$(KBUILD_TARGET)    := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
973
RuntimeGuestR3_DEFS.$(KBUILD_HOST)	:= $(RuntimeR3_DEFS.$(KBUILD_HOST))
974
RuntimeGuestR3_INCS                     := $(RuntimeR3_INCS)
975
RuntimeGuestR3_INCS.$(KBUILD_TARGET)    := $(RuntimeR3_INCS.$(KBUILD_TARGET))
976
RuntimeGuestR3_INCS.$(KBUILD_HOST)      := $(RuntimeR3_INCS.$(KBUILD_HOST))
977
RuntimeGuestR3_SOURCES                  := $(filter-out \
978
	common/time/timesupref.cpp \
979
	common/time/timesupA.asm \
980
	common/time/timesup.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
981
	common/checksum/RTSha1Digest.cpp \
982
	common/checksum/sha% \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
983
	generic/RTLogWriteUser-generic.cpp \
984
	, $(RuntimeR3_SOURCES))
985
RuntimeGuestR3_SOURCES              += \
986
	common/time/timesysalias.cpp \
987
	VBox/logbackdoor.cpp
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
988
RuntimeGuestR3_SOURCES.$(KBUILD_TARGET)      := $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
989
RuntimeGuestR3_SOURCES.$(KBUILD_HOST)        := $(RuntimeR3_SOURCES.$(KBUILD_HOST))
990
RuntimeGuestR3_SOURCES.$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
991
RuntimeGuestR3_SOURCES.x86                   := $(RuntimeR3_SOURCES.x86)
992
RuntimeGuestR3_SOURCES.amd64                 := $(RuntimeR3_SOURCES.amd64)
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
993
RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
994
RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).x86  := $(RuntimeR3_SOURCES.$(KBUILD_TARGET).x86)
995
RuntimeGuestR3_SOURCES.$(KBUILD_TARGET).amd64:= $(RuntimeR3_SOURCES.$(KBUILD_TARGET).amd64)
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
996
RuntimeGuestR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH)   := $(RuntimeR3_SOURCES.$(KBUILD_HOST).$(KBUILD_TARGET_ARCH))
997
998
999
#
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1000
# RuntimeGuestR3-x86 - Same as RuntimeGuestR3, except that it's targeting x86.
1001
#
1002
RuntimeGuestR3-x86_EXTENDS           	:= RuntimeGuestR3
1003
RuntimeGuestR3-x86_BLD_TRG_ARCH         := x86
1004
1005
1006
#
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
1007
# RuntimeGuestR3Shared - Guest Additions Runtime (static/dll).
1008
#
1009
RuntimeGuestR3Shared_TEMPLATE           := VBOXGUESTR3DLL
1010
RuntimeGuestR3Shared_EXTENDS            := RuntimeGuestR3
1011
RuntimeGuestR3Shared_INST                = $(INST_ADDITIONS_LIB)
1012
1013
1014
#
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1015
# RuntimeGuestR3Shared-x86 - Same as RuntimeGuestR3Shared, except that it's targeting x86.
1016
#
1017
RuntimeGuestR3Shared-x86_EXTENDS           	:= RuntimeGuestR3Shared
1018
RuntimeGuestR3Shared-x86_BLD_TRG_ARCH         := x86
1019
1020
1021
#
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1022
# RuntimeGuestR3Mini - Minimal Guest Additions Runtime which does not require
1023
#                      initialization and can be linked into an .so. Intended
1024
#                      for X11 drivers, GRADD and similar.
1025
#
1026
RuntimeGuestR3Mini_TEMPLATE                 := VBOXGUESTR3DLL
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1027
## @todo change this to EXTEND the RuntimeGuestR3 target.
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1028
RuntimeGuestR3Mini_INST                     := $(INST_ADDITIONS_LIB)
1029
RuntimeGuestR3Mini_SDKS.win                 := $(RuntimeR3_SDKS.win)
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1030
RuntimeGuestR3Mini_DEFS                     := \
1031
	$(filter-out RTCRITSECT_STRICT RT_NO_GIP RT_WITH_ICONV_CACHE, $(RuntimeR3_DEFS)) \
1032
	RT_MINI
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1033
RuntimeGuestR3Mini_DEFS.$(KBUILD_TARGET)    := $(RuntimeR3_DEFS.$(KBUILD_TARGET))
1034
RuntimeGuestR3Mini_DEFS.$(KBUILD_HOST)      := $(RuntimeR3_DEFS.$(KBUILD_HOST))
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1035
RuntimeGuestR3Mini_INCS                     := $(RuntimeR3_INCS)
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1036
RuntimeGuestR3Mini_INCS.$(KBUILD_TARGET)    := $(RuntimeR3_INCS.$(KBUILD_TARGET))
1037
RuntimeGuestR3Mini_INCS.$(KBUILD_HOST)      := $(RuntimeR3_INCS.$(KBUILD_HOST))
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1038
RuntimeGuestR3Mini_SOURCES = \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1039
	common/alloc/alloc.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1040
	common/err/errmsg.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1041
	common/err/errmsgxpcom.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1042
	common/err/RTErrConvertFromErrno.cpp \
1043
	common/log/logformat.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1044
	common/misc/RTAssertMsg1Weak.cpp \
1045
	common/misc/RTAssertMsg2.cpp \
1046
	common/misc/RTAssertMsg2Add.cpp \
1047
	common/misc/RTAssertMsg2AddWeak.cpp \
1048
	common/misc/RTAssertMsg2AddWeakV.cpp \
1049
	common/misc/RTAssertMsg2Weak.cpp \
1050
	common/misc/RTAssertMsg2WeakV.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1051
	common/misc/assert.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1052
	common/misc/buildconfig.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1053
	common/misc/sanity-c.c \
1054
	common/misc/sanity-cpp.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1055
	common/path/rtPathVolumeSpecLen.cpp \
1056
	common/path/RTPathAbsDup.cpp \
1057
	common/path/RTPathAbsEx.cpp \
1058
	common/path/RTPathAbsExDup.cpp \
1059
	common/path/RTPathAppend.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1060
	common/path/RTPathAppendEx.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1061
	common/path/RTPathExt.cpp \
1062
	common/path/RTPathFilename.cpp \
1063
	common/path/RTPathHaveExt.cpp \
1064
	common/path/RTPathHavePath.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1065
	common/path/RTPathJoin.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1066
	common/path/RTPathJoinA.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1067
	common/path/RTPathParse.cpp \
1068
	common/path/RTPathRealDup.cpp \
1069
	common/path/RTPathStripExt.cpp \
1070
	common/path/RTPathStripFilename.cpp \
1071
	common/path/RTPathStripTrailingSlash.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1072
	common/string/RTStrCat.cpp \
1073
	common/string/RTStrCatEx.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1074
	common/string/RTStrCmp.cpp \
1075
	common/string/RTStrCopy.cpp \
1076
	common/string/RTStrCopyEx.cpp \
1077
	common/string/RTStrNCmp.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1078
        common/string/RTStrNLen.cpp \
1079
        common/string/RTStrNLenEx.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1080
	common/string/RTStrStr.cpp \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
1081
	common/string/straprintf.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1082
	common/string/strformat.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1083
	common/string/strformatnum.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1084
	common/string/strformatrt.cpp \
1085
	common/string/strformattype.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1086
	common/string/stringalloc.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1087
	common/string/strprintf.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1088
	common/string/strtonum.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1089
	common/string/unidata.cpp \
1090
	common/string/utf-8.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1091
	common/string/utf-8-case.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1092
	common/string/utf-16.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1093
	common/table/avlpv.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1094
	generic/critsect-generic.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1095
	generic/pathhost-generic.cpp \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1096
	generic/RTAssertShouldPanic-generic.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1097
	r3/alloc.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1098
	r3/alloc-ef.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1099
	r3/fileio.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1100
	r3/fs.cpp
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
1101
RuntimeGuestR3Mini_SOURCES.freebsd = \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1102
	r3/posix/RTMemProtect-posix.cpp \
1103
	r3/posix/rtmempage-exec-mmap-posix.cpp \
1104
	r3/posix/RTPathUserHome-posix.cpp \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
1105
	r3/posix/env-posix.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
1106
	r3/posix/fileio-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1107
	r3/posix/fileio2-posix.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
1108
	r3/posix/path-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1109
	r3/posix/path2-posix.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
1110
	r3/posix/utf8-posix.cpp
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1111
RuntimeGuestR3Mini_SOURCES.linux = \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1112
	r3/posix/RTMemProtect-posix.cpp \
1113
	r3/posix/rtmempage-exec-mmap-posix.cpp \
1114
	r3/posix/RTPathUserHome-posix.cpp \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
1115
	r3/posix/env-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1116
	r3/posix/fileio-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1117
	r3/posix/fileio2-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1118
	r3/posix/path-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1119
	r3/posix/path2-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1120
	r3/posix/utf8-posix.cpp
1121
RuntimeGuestR3Mini_SOURCES.solaris = \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1122
	r3/posix/RTMemProtect-posix.cpp \
1123
	r3/posix/rtmempage-exec-mmap-posix.cpp \
1124
	r3/posix/RTPathUserHome-posix.cpp \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
1125
	r3/posix/env-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1126
	r3/posix/fileio-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1127
	r3/posix/fileio2-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1128
	r3/posix/path-posix.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1129
	r3/posix/path2-posix.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1130
	r3/posix/utf8-posix.cpp
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
1131
RuntimeGuestR3Mini_SOURCES.win = \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1132
	r3/win/alloc-win.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
1133
	r3/win/fileio-win.cpp \
1134
	r3/win/path-win.cpp \
1135
	r3/win/utf8-win.cpp \
1136
	win/errmsgwin.cpp \
1137
	win/RTErrConvertFromWin32.cpp
1138
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1139
# VBox specific stuff.
1140
RuntimeGuestR3Mini_SOURCES += \
1141
	VBox/logbackdoor.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1142
	VBox/logbackdoor-redirect.cpp
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1143
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1144
1145
#
1.1.1 by Emilio Pozuelo Monfort
Import upstream version 1.5.4-dfsg
1146
# RuntimeLnxHostR3 Linux host program runtime
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1147
# (Only used when building L4.)
1.1.1 by Emilio Pozuelo Monfort
Import upstream version 1.5.4-dfsg
1148
#
1149
RuntimeLnxHostR3_TEMPLATE      = VBOXLNXHOSTR3LIB
1150
RuntimeLnxHostR3_DEFS          = IN_RT_R3 IN_SUP_R3 RT_WITH_VBOX RT_NO_GIP
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1151
RuntimeLnxHostR3_SOURCES       = \
1152
	$(RuntimeR3_SOURCES.linux.$(KBUILD_TARGET_ARCH)) \
1153
	$(RuntimeR3_SOURCES.linux) \
1154
	$(RuntimeR3_SOURCES)
1155
RuntimeLnxHostR3_INCS          = \
1156
	$(RuntimeR3_INCS.linux.$(KBUILD_TARGET_ARCH)) \
1157
	$(RuntimeR3_INCS.linux) \
1158
	$(RuntimeR3_INCS)
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1159
1160
1161
#
1162
# VBoxRT - Shared Object / DLL version.
1163
#
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1164
VBoxRT_TEMPLATE                = VBoxR3DllNoPic
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1165
VBoxRT_SDKS                    = VBOX_OPENSSL VBOX_LIBXML2 VBOX_BOOST
1166
ifdef VBOX_WITH_LIBCURL
1167
 VBoxRT_SDKS                  += VBOX_LIBCURL
1168
endif
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1169
VBoxRT_SDKS.win                = WINPSDK $(VBOX_WINDDK) VBOX_NTDLL
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1170
if1of ($(KBUILD_TARGET)$(VBOX_WITH_HARDENING), darwin win)
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1171
VBoxRT_INST                    = $(INST_DLL) $(INST_TESTCASE)
1172
endif
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
1173
VBoxRT_DEFS                    = $(filter-out RT_NO_GIP,$(RuntimeR3_DEFS)) IN_SUP_R3 IN_SUP_R3
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1174
ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1175
 VBoxRT_DEFS                  += RT_NO_GIP
1176
endif
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1177
VBoxRT_DEFS.$(KBUILD_TYPE)     = $(RuntimeR3_DEFS.$(KBUILD_TYPE))
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1178
VBoxRT_SOURCES                 = \
1179
	VBox/VBoxRTDeps.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1180
	r3/xml.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1181
	$(filter-out common/checksum/crc32.cpp, $(RuntimeR3_SOURCES)) \
1182
	common/checksum/crc32-zlib.cpp
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1183
ifdef VBOX_WITH_LIBCURL
1184
 VBoxRT_SOURCES               += common/misc/s3.cpp
1185
endif
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1186
VBoxRT_SOURCES.$(KBUILD_TARGET) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET))
1187
VBoxRT_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
1.1.9 by Felix Geyer
Import upstream version 2.2.4-dfsg
1188
VBoxRT_SOURCES.$(KBUILD_TARGET_ARCH) = $(RuntimeR3_SOURCES.$(KBUILD_TARGET_ARCH))
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1189
VBoxRT_SOURCES.win            += \
1190
	r3/win/dllmain-win.cpp \
1191
	r3/win/fileaio-win.cpp \
1192
	$(VBoxRT_0_OUTDIR)/VBoxRT.def
1193
VBoxRT_SOURCES.linux          += \
1194
	r3/linux/fileaio-linux.cpp
1195
VBoxRT_SOURCES.solaris        += \
1196
	r3/solaris/fileaio-solaris.cpp
1197
VBoxRT_SOURCES.darwin         += \
1198
	r3/posix/fileaio-posix.cpp
1199
VBoxRT_SOURCES.freebsd        += \
1200
	r3/freebsd/fileaio-freebsd.cpp
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1201
VBoxRT_INCS                    = $(RuntimeR3_INCS)
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1202
VBoxRT_INCS.$(KBUILD_TARGET)   = $(RuntimeR3_INCS.$(KBUILD_TARGET))
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1203
VBoxRT_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) = $(RuntimeR3_INCS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1204
VBoxRT_LIBS                    = \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
1205
	$(PATH_LIB)/VBox-liblzf$(VBOX_SUFF_LIB) \
1206
	$(SDK_VBOX_ZLIB_LIBS)
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1207
if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1208
VBoxRT_LIBS                   += \
1209
	$(PATH_LIB)/SUPR3$(VBOX_SUFF_LIB)
1210
endif
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1211
ifdef IPRT_WITH_KSTUFF
1212
 VBoxRT_LIBS                  += \
1213
   	$(PATH_LIB)/VBox-kStuff$(VBOX_SUFF_LIB)
1214
endif
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1215
ifndef SDK_VBOX_LIBXML2_LIBS
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1216
 VBoxRT_LIBS                 += \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
1217
	$(PATH_LIB)/VBox-libxml2$(VBOX_SUFF_LIB)
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1218
endif
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1219
ifndef SDK_VBOX_OPENSSL_LIBS
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1220
 VBoxRT_LIBS                 += \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
1221
	$(PATH_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB)
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1222
endif
1223
ifdef IPRT_WITH_LZO
1224
 VBoxRT_LIBS                  += lzo2
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
1225
endif
0.5.7 by Michael Meskes
Import upstream version 3.2.0-dfsg
1226
VBoxRT_LIBS.linux              = \
1227
	crypt
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1228
VBoxRT_LIBS.darwin             = \
1229
	iconv
1230
VBoxRT_LIBS.freebsd            = \
0.2.1 by Michael Meskes
Import upstream version 2.1.2-dfsg
1231
	iconv \
1232
	rt
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1233
VBoxRT_LIBS.solaris            = \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1234
	kstat \
1235
        contract
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1236
ifn1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64)
1237
 # SMBIOS not available on Solaris SPARC.
1238
 VBoxRT_LIBS.solaris += smbios
1239
endif
1240
VBoxRT_LIBS.win                = \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1241
	$(PATH_SDK_$(VBOX_WINDDK)_LIB)/vccomsup.lib \
1242
	$(PATH_SDK_$(VBOX_WINDDK)_LIB)/wbemuuid.lib
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1243
VBoxRT_LDFLAGS.darwin          = -framework IOKit -framework CoreFoundation -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxRT.dylib
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1244
ifdef VBOX_USE_VCC80
1245
VBoxRT_LDFLAGS.win             = /MANIFEST
1246
endif
1247
VBoxRT_LDFLAGS.l4              = \
1248
	-Wl,-whole-archive \
1249
	$(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB) \
1250
	-Wl,-no-whole-archive
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1251
ifeq ($(KBUILD_TARGET),l4)
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1252
VBoxRT_LIBS                   += \
1253
	$(L4_LIBDIR)/libl4sys.a \
1254
	$(L4_LIBDIR)/libl4sys.p.a
1255
endif
1256
VBoxRT_LIBS.l4                 = \
1257
	$(PATH_LIB)/RuntimeR3L4$(VBOX_SUFF_LIB)
1258
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
1259
if1of ($(DLLS), VBoxRT)
1260
$$(VBoxRT_0_OUTDIR)/VBoxRT.def: \
1261
		$(PATH_SUB_CURRENT)/r3/win/VBoxRT-$$(if-expr $$(KBUILD_TARGET_ARCH) == amd64,win64,win32).def \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1262
		$(PATH_SUB_CURRENT)/r3/win/$(if $(VBOX_OSE),VBoxRT-openssl-ose.def,VBoxRT-openssl.def)
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
1263
	$(RM) -f -- $@
1264
	$(REDIRECT) -wto $@ -- $(CAT_EXT) $^
1265
endif
1266
1267
18 by Daniel Hahler, Jonathan Ernst, Daniel Hahler
[ Jonathan Ernst ]
1268
#
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1269
# HACK ALERT!  Make testcase run during build on SELinux boxes.
18 by Daniel Hahler, Jonathan Ernst, Daniel Hahler
[ Jonathan Ernst ]
1270
#              Create a dummy DLL that ensure that VBoxRT is installed
1271
#              during the DLL pass and cleaned up later.
1272
#
1273
ifeq ($(KBUILD_TARGET),linux)
1274
 if1of (VBoxRT, $(DLLS))
1275
  ifneq ($(wildcard /usr/bin/chcon),)
1276
VBoxRT_NOINST = true
1277
1278
DLLS += VBoxRTDummy
1279
VBoxRTDummy_TEMPLATE = VBOXR3
1280
VBoxRTDummy_NOINST = true
1281
VBoxRTDummy_LIBS = $(PATH_BIN)/VBoxRT.so
1282
VBoxRTDummy_CLEAN= $(PATH_BIN)/VBoxRT.so
1283
BLDDIRS += $(PATH_BIN)
1284
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1285
$(PATH_BIN)/VBoxRT.so: $$(VBoxRT_1_TARGET) | $$(dir $$@)
18 by Daniel Hahler, Jonathan Ernst, Daniel Hahler
[ Jonathan Ernst ]
1286
	$(INSTALL) $< $@
1287
	chcon -t texrel_shlib_t $@ || true
1288
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
1289
VBoxRT:: VBoxRTDummy
18 by Daniel Hahler, Jonathan Ernst, Daniel Hahler
[ Jonathan Ernst ]
1290
  endif # chcon present.
1291
 endif # building VBoxRT
1292
endif # linux
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1293
1294
#
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1295
# VBoxRTImp - Import library/hack.
1296
#
1297
ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
1298
$(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def r3/win/VBoxRT-openssl-ose.def r3/win/VBoxRT-win64.def)
1299
else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
1300
$(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def r3/win/VBoxRT-openssl-ose.def r3/win/VBoxRT-win32.def)
1301
else
1302
$(call VBOX_GENERATE_IMPORT_TARGET_FN,VBoxRTImp,VBoxRT,VBox/VBoxRTImp.def r3/win/VBoxRT-openssl-ose.def)
1303
endif
1304
1305
1306
#
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1307
# RuntimeR3NoCRTGCC - CRT replacement lib for VBoxREM.
1308
# This is used together with VBoxRT.
1309
#
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1310
## @todo the *_alias.c stuff is busted, remove and use RT_WITH_NOCRT_ALIASES instead.
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1311
RuntimeR3NoCRTGCC_TEMPLATE = VBOXNOCRTGCC
1312
RuntimeR3NoCRTGCC_LIBSUFF = $(VBOX_SUFF_LIB)
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1313
ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1314
 RuntimeR3NoCRTGCC_DEFS  += RT_NO_GIP
1315
endif
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1316
RuntimeR3NoCRTGCC_INCS  = include
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1317
RuntimeR3NoCRTGCC_SOURCES  = \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1318
	common/misc/sanity-cpp.cpp \
1319
	common/misc/sanity-c.c \
1320
	\
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1321
	$(RuntimeNoCrt_SOURCES)
1322
1323
if1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1324
RuntimeR3NoCRTGCC_SOURCES += \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1325
	common/math/ceill.asm \
1326
	common/math/cosl.asm \
1327
	common/math/fabs.asm \
1328
	common/math/fabsf.asm \
1329
	common/math/fabsl.asm \
1330
	common/math/floor.asm \
1331
	common/math/floorf.asm \
1332
	common/math/floorl.asm \
1333
	common/math/ldexpl.asm \
1334
	common/math/llrint.asm \
1335
	common/math/llrintf.asm \
1336
	common/math/llrintl.asm \
1337
	common/math/logl.asm \
1338
	common/math/lrint.asm \
1339
	common/math/lrintf.asm \
1340
	common/math/lrintl.asm \
1341
	common/math/remainder.asm \
1342
	common/math/remainderf.asm \
1343
	common/math/remainderl.asm \
1344
	common/math/sinl.asm \
1345
	common/math/tanl.asm \
1346
	common/math/trunc.asm \
1347
	common/math/truncf.asm \
1348
	common/math/truncl.asm \
1349
	\
1350
	common/string/memchr_alias.c \
1351
	common/string/memcmp_alias.c \
1352
	common/string/memcpy_alias.c \
1353
	common/string/memmove_alias.c \
1354
	common/string/memset_alias.c \
1355
	common/string/strchr_alias.c \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1356
	common/string/strcmp_alias.c \
1357
	common/string/strlen_alias.c
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1358
endif
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1359
1360
RuntimeR3NoCRTGCC_SOURCES.x86 = \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1361
	common/math/x86/fenv-x86.c \
1362
	common/math/gcc/adddi3.c \
1363
	common/math/gcc/anddi3.c \
1364
	common/math/gcc/ashldi3.c \
1365
	common/math/gcc/ashrdi3.c \
1366
	common/math/gcc/cmpdi2.c \
1367
	common/math/gcc/divdi3.c \
1368
	common/math/gcc/iordi3.c \
1369
	common/math/gcc/lshldi3.c \
1370
	common/math/gcc/lshrdi3.c \
1371
	common/math/gcc/moddi3.c \
1372
	common/math/gcc/muldi3.c \
1373
	common/math/gcc/negdi2.c \
1374
	common/math/gcc/notdi2.c \
1375
	common/math/gcc/qdivrem.c \
1376
	common/math/gcc/subdi3.c \
1377
	common/math/gcc/ucmpdi2.c \
1378
	common/math/gcc/udivdi3.c \
1379
	common/math/gcc/umoddi3.c \
1380
	common/math/gcc/xordi3.c
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1381
1382
1383
## @todo stop using the old memcpy.c and memset.c code.
1384
1385
#
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1386
# RuntimeR0 - Ring-0 library for VMMR0.
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1387
#
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1388
RuntimeR0_TEMPLATE      = VBoxR0
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1389
RuntimeR0_DEFS          = IN_RT_R0 RT_WITH_VBOX
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1390
ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86)
1391
 RuntimeR0_DEFS        += RT_NO_GIP
1392
endif
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1393
RuntimeR0_INCS          = include
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1394
RuntimeR0_SOURCES       = \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1395
	common/log/logellipsis.cpp \
1396
	common/log/logrelellipsis.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1397
	common/log/logcom.cpp \
1398
	common/log/logformat.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1399
	common/misc/RTAssertMsg1Weak.cpp \
1400
	common/misc/RTAssertMsg2.cpp \
1401
	common/misc/RTAssertMsg2Add.cpp \
1402
	common/misc/RTAssertMsg2AddWeak.cpp \
1403
	common/misc/RTAssertMsg2AddWeakV.cpp \
1404
	common/misc/RTAssertMsg2Weak.cpp \
1405
	common/misc/RTAssertMsg2WeakV.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1406
	common/misc/buildconfig.cpp \
0.5.7 by Michael Meskes
Import upstream version 3.2.0-dfsg
1407
	common/misc/once.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1408
	common/misc/sanity-c.c \
1409
	common/misc/sanity-cpp.cpp \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
1410
	common/misc/term.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1411
	common/string/strncmp.cpp \
1412
	common/string/strpbrk.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1413
	common/string/RTStrCat.cpp \
1414
	common/string/RTStrCatEx.cpp \
1415
	common/string/RTStrCopy.cpp \
1416
	common/string/RTStrCopyEx.cpp \
1417
	common/string/RTStrNLen.cpp \
1418
	common/string/RTStrNLenEx.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1419
	common/table/avlgcptr.cpp \
1420
	common/table/avlhcphys.cpp \
1421
	common/table/avllu32.cpp \
1422
	common/table/avlogcphys.cpp \
1423
	common/table/avlogcptr.cpp \
1424
	common/table/avlohcphys.cpp \
1425
	common/table/avloioport.cpp \
1426
	common/table/avlpv.cpp \
1427
	common/table/avlrogcphys.cpp \
1428
	common/table/avlrogcptr.cpp \
1429
	common/table/avlroioport.cpp \
1430
	common/table/avlroogcptr.cpp \
1431
	common/table/avlu32.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1432
	common/table/avlou32.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1433
	common/time/timesup.cpp \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1434
	generic/RTAssertShouldPanic-generic.cpp \
1435
	\
1436
	$(RuntimeNoCrt_SOURCES)
1437
1438
if1of ($(KBUILD_TARGET), darwin solaris freebsd)
1439
RuntimeR0_SOURCES += \
1440
	common/math/gcc/adddi3.c \
1441
	common/math/gcc/anddi3.c \
1442
	common/math/gcc/ashldi3.c \
1443
	common/math/gcc/ashrdi3.c \
1444
	common/math/gcc/cmpdi2.c \
1445
	common/math/gcc/divdi3.c \
1446
	common/math/gcc/iordi3.c \
1447
	common/math/gcc/lshldi3.c \
1448
	common/math/gcc/lshrdi3.c \
1449
	common/math/gcc/moddi3.c \
1450
	common/math/gcc/muldi3.c \
1451
	common/math/gcc/negdi2.c \
1452
	common/math/gcc/notdi2.c \
1453
	common/math/gcc/qdivrem.c \
1454
	common/math/gcc/subdi3.c \
1455
	common/math/gcc/ucmpdi2.c \
1456
	common/math/gcc/udivdi3.c \
1457
	common/math/gcc/umoddi3.c \
1458
	common/math/gcc/xordi3.c
1459
endif
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1460
1461
#if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
1462
# RuntimeR0_SOURCES += common/time/timesupA.asm
1463
#else
1464
 RuntimeR0_SOURCES += common/time/timesupref.cpp
1465
#endif
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1466
1467
RuntimeR0_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1468
RuntimeR0_SOURCES.win.x86   = $(RuntimeWin32ASM_SOURCES)
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
1469
RuntimeR0_SOURCES.win = \
1470
	nt/NtProcessStartup-stub.cpp
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1471
1472
RuntimeR0_SOURCES.os2 = \
1473
	os2/sys0.asm
1474
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1475
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1476
#
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1477
# RuntimeR0Stub - Ring-0 context startup stub for Windows.
1478
#
1479
RuntimeR0Stub_TEMPLATE    = VBoxR0
1480
RuntimeR0Stub_SOURCES.win = \
1481
	nt/NtProcessStartup-stub.cpp
1482
1483
1484
#
1485
# RuntimeR0Drv - Ring-0 library for host drivers.
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1486
#
1487
RuntimeR0Drv_TEMPLATE   = VBOXR0DRV
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1488
RuntimeR0Drv_SDKS.win   = $(VBOX_WINDDK) WINPSDKINCS
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1489
RuntimeR0Drv_DEFS       = IN_RT_R0 RT_WITH_VBOX RT_WITHOUT_NOCRT_WRAPPERS RT_NO_EXPORT_SYMBOL
1490
RuntimeR0Drv_DEFS.win   = IN_SUP_R0
1491
RuntimeR0Drv_DEFS.linux = MODULE KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) IN_SUP_R0
1492
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1493
RuntimeR0Drv_INCS      := $(PATH_SUB_CURRENT) include
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1494
RuntimeR0Drv_INCS.freebsd = \
1495
	$(PATH_INS)/gen-sys-hdrs
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1496
RuntimeR0Drv_INCS.linux = \
1497
	r0drv/linux
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1498
RuntimeR0Drv_INCS.solaris = \
1499
	r0drv/solaris/vbi/i86pc \
1500
	r0drv/solaris/vbi/i86pc/sys
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1501
1502
RuntimeR0Drv_SOURCES    = \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1503
	common/alloc/alloc.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
1504
	common/alloc/heapsimple.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1505
	common/alloc/heapoffset.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1506
	common/checksum/crc32.cpp \
1507
	common/checksum/crc64.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1508
	common/checksum/md5.cpp \
1509
	common/checksum/ipv4.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1510
	common/checksum/ipv6.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1511
	common/log/log.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1512
	common/log/logellipsis.cpp \
1513
	common/log/logrel.cpp \
1514
	common/log/logrelellipsis.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1515
	common/log/logcom.cpp \
1516
	common/log/logformat.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1517
	common/misc/RTAssertMsg1Weak.cpp \
1518
	common/misc/RTAssertMsg2.cpp \
1519
	common/misc/RTAssertMsg2Add.cpp \
1520
	common/misc/RTAssertMsg2AddWeak.cpp \
1521
	common/misc/RTAssertMsg2AddWeakV.cpp \
1522
	common/misc/RTAssertMsg2Weak.cpp \
1523
	common/misc/RTAssertMsg2WeakV.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1524
	common/misc/assert.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1525
	common/misc/buildconfig.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1526
	common/misc/handletable.cpp \
1527
	common/misc/handletablectx.cpp \
1528
	common/misc/handletablesimple.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
1529
	common/misc/once.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1530
	common/misc/sanity-c.c \
1531
	common/misc/sanity-cpp.cpp \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
1532
	common/misc/term.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1533
	common/path/rtPathVolumeSpecLen.cpp \
1534
	common/path/RTPathAbsDup.cpp \
1535
	common/path/RTPathAbsEx.cpp \
1536
	common/path/RTPathAbsExDup.cpp \
1537
	common/path/RTPathAppend.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1538
	common/path/RTPathAppendEx.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1539
	common/path/RTPathExt.cpp \
1540
	common/path/RTPathFilename.cpp \
1541
	common/path/RTPathHaveExt.cpp \
1542
	common/path/RTPathHavePath.cpp \
1543
	common/path/RTPathParse.cpp \
1544
	common/path/RTPathRealDup.cpp \
1545
	common/path/RTPathStripExt.cpp \
1546
	common/path/RTPathStripFilename.cpp \
1547
	common/path/RTPathStripTrailingSlash.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
1548
	common/rand/rand.cpp \
1549
	common/rand/randadv.cpp \
1550
	common/rand/randparkmiller.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1551
	common/string/RTStrCat.cpp \
1552
	common/string/RTStrCatEx.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1553
	common/string/RTStrCmp.cpp \
1554
	common/string/RTStrCopy.cpp \
1555
	common/string/RTStrCopyEx.cpp \
1556
	common/string/RTStrNCmp.cpp \
1557
	common/string/RTStrNLen.cpp \
1558
	common/string/RTStrNLenEx.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1559
	common/string/strformat.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1560
	common/string/strformatnum.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1561
	common/string/strformatrt.cpp \
1562
	common/string/strformattype.cpp \
1563
	common/string/strprintf.cpp \
1564
	common/string/strtonum.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1565
	common/string/stringalloc.cpp \
1566
	common/string/utf-16.cpp \
1567
	common/string/utf-8.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1568
	common/table/avlpv.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1569
	common/time/time.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1570
	generic/RTLogWriteStdErr-stub-generic.cpp \
1571
	generic/RTLogWriteUser-generic.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1572
	generic/RTMpGetArraySize-generic.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
1573
	generic/RTRandAdvCreateSystemFaster-generic.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1574
 	generic/RTSemEventWait-2-ex-generic.cpp \
1575
 	generic/RTSemEventWaitNoResume-2-ex-generic.cpp \
1576
 	generic/RTSemEventMultiWait-2-ex-generic.cpp \
1577
 	generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1578
	generic/uuid-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1579
	r0drv/alloc-r0drv.cpp \
1580
	r0drv/initterm-r0drv.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1581
	r0drv/generic/semspinmutex-r0drv-generic.c \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1582
	VBox/log-vbox.cpp \
1583
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1584
## @todo: Linking against RuntimeR0Drv on Linux will result in unresolved external
1585
## references to several string functions (e.g. strlen). We could include the
1586
## missing functions here but our own implementations conflict with declarations
1587
## of some Linux kernels (inline versus not inline, size_t versus unsigned int).
1588
##
1589
## The prototypes for the unresolved externals are declared in <linux/string.h>.
1590
## This file is not included with extern "C" { ... } and therefore the function
1591
## prototypes are mangled during C++ compilation. That's why we have to provide
1592
## implementations with mangled function names.
1593
##
1594
## bird: Why don't we just extern "C" {} that file then?
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1595
RuntimeR0Drv_SOURCES.linux = \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1596
	common/string/strpbrk.cpp \
1597
	common/err/RTErrConvertToErrno.cpp \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1598
	common/err/RTErrConvertFromErrno.cpp \
1599
	generic/RTAssertShouldPanic-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1600
	generic/RTLogWriteStdOut-stub-generic.cpp \
1601
	generic/mppresent-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1602
	r0drv/linux/alloc-r0drv-linux.c \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1603
	r0drv/linux/assert-r0drv-linux.c \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1604
	r0drv/linux/initterm-r0drv-linux.c \
1605
	r0drv/linux/memobj-r0drv-linux.c \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1606
	r0drv/linux/memuserkernel-r0drv-linux.c \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1607
	r0drv/linux/mp-r0drv-linux.c \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1608
	r0drv/linux/mpnotification-r0drv-linux.c \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1609
	r0drv/linux/process-r0drv-linux.c \
1610
	r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1611
	r0drv/linux/semevent-r0drv-linux.c \
1612
	r0drv/linux/semeventmulti-r0drv-linux.c \
1613
	r0drv/linux/semfastmutex-r0drv-linux.c \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1614
	r0drv/linux/semmutex-r0drv-linux.c \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1615
	r0drv/linux/spinlock-r0drv-linux.c \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1616
	r0drv/linux/thread-r0drv-linux.c \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1617
	r0drv/linux/thread2-r0drv-linux.c \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1618
	r0drv/linux/time-r0drv-linux.c \
1619
	r0drv/linux/timer-r0drv-linux.c \
1620
	r0drv/memobj-r0drv.cpp \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1621
	r0drv/mpnotification-r0drv.c \
1622
	r0drv/powernotification-r0drv.c
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1623
1624
RuntimeR0Drv_SOURCES.win = \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1625
	common/misc/thread.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1626
	common/string/memcmp.asm \
1627
	common/string/memchr.asm \
1628
  	common/string/memcpy.asm \
1629
  	common/string/memset.asm \
1630
  	common/string/memmove.asm \
1631
  	common/string/strlen.asm \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1632
	common/string/strncmp.cpp \
1633
	common/string/strpbrk.cpp \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1634
	generic/RTAssertShouldPanic-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1635
	generic/RTLogWriteStdOut-stub-generic.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1636
	generic/RTTimerCreate-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1637
	generic/mppresent-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1638
	nt/RTErrConvertFromNtStatus.cpp \
1639
	r0drv/memobj-r0drv.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1640
	r0drv/mpnotification-r0drv.c \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1641
	r0drv/powernotification-r0drv.c \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1642
	r0drv/nt/alloc-r0drv-nt.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1643
	r0drv/nt/assert-r0drv-nt.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1644
	r0drv/nt/initterm-r0drv-nt.cpp \
1645
	r0drv/nt/memobj-r0drv-nt.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1646
	r0drv/nt/memuserkernel-r0drv-nt.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1647
	r0drv/nt/mp-r0drv-nt.cpp \
1648
	r0drv/nt/mpnotification-r0drv-nt.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1649
	r0drv/nt/process-r0drv-nt.cpp \
1650
	r0drv/nt/RTLogWriteDebugger-r0drv-nt.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1651
	r0drv/nt/semevent-r0drv-nt.cpp \
1652
	r0drv/nt/semeventmulti-r0drv-nt.cpp \
1653
	r0drv/nt/semfastmutex-r0drv-nt.cpp \
1654
	r0drv/nt/semmutex-r0drv-nt.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1655
	r0drv/nt/spinlock-r0drv-nt.cpp \
1656
	r0drv/nt/thread-r0drv-nt.cpp \
1657
	r0drv/nt/thread2-r0drv-nt.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1658
	r0drv/nt/time-r0drv-nt.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1659
	r0drv/nt/timer-r0drv-nt.cpp \
1660
	r0drv/nt/RTTimerGetSystemGranularity-r0drv-nt.cpp
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1661
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1662
RuntimeR0Drv_SOURCES.win.amd64 = $(RuntimeWin64ASM_SOURCES)
1663
RuntimeR0Drv_SOURCES.win.x86   = $(RuntimeWin32ASM_SOURCES)
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1664
1665
RuntimeR0Drv_SOURCES.darwin = \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1666
	common/err/RTErrConvertFromErrno.cpp \
1667
	common/misc/thread.cpp \
1668
	common/string/memchr.asm \
1669
	common/string/strpbrk.cpp \
1670
	darwin/RTErrConvertFromDarwin.cpp \
1671
	darwin/RTErrConvertFromDarwinIO.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1672
	darwin/RTErrConvertFromDarwinKern.cpp \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1673
	generic/RTAssertShouldPanic-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1674
	generic/RTTimerCreate-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1675
	generic/mppresent-generic.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1676
	generic/timer-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1677
	r0drv/generic/mpnotification-r0drv-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1678
	r0drv/darwin/alloc-r0drv-darwin.cpp \
1679
	r0drv/darwin/assert-r0drv-darwin.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1680
	r0drv/darwin/initterm-r0drv-darwin.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1681
	r0drv/darwin/memobj-r0drv-darwin.cpp \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1682
	r0drv/darwin/mp-r0drv-darwin.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1683
	r0drv/darwin/memuserkernel-r0drv-darwin.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1684
	r0drv/darwin/process-r0drv-darwin.cpp \
1685
	r0drv/darwin/RTLogWriteDebugger-r0drv-darwin.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1686
	r0drv/darwin/RTLogWriteStdOut-r0drv-darwin.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1687
	r0drv/darwin/semevent-r0drv-darwin.cpp \
1688
	r0drv/darwin/semeventmulti-r0drv-darwin.cpp \
1689
	r0drv/darwin/semfastmutex-r0drv-darwin.cpp \
1690
	r0drv/darwin/semmutex-r0drv-darwin.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1691
	r0drv/darwin/spinlock-r0drv-darwin.cpp \
1692
	r0drv/darwin/thread-r0drv-darwin.cpp \
1693
	r0drv/darwin/thread2-r0drv-darwin.cpp \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
1694
	r0drv/darwin/threadpreempt-r0drv-darwin.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1695
	r0drv/darwin/time-r0drv-darwin.cpp \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1696
	r0drv/memobj-r0drv.cpp \
1697
	r0drv/powernotification-r0drv.c
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1698
1699
RuntimeR0Drv_SOURCES.os2 = \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1700
	common/string/memchr.asm \
1701
	common/string/memcmp.asm \
1702
	common/string/memcpy.asm \
1703
	common/string/mempcpy.asm \
1704
	common/string/memmove.asm \
1705
	common/string/memset.asm \
1706
	common/string/strchr.asm \
1707
	common/string/strcmp.asm \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1708
	common/string/strcpy.asm \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1709
	common/string/strlen.asm \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1710
	\
1711
	common/string/strncmp.cpp \
1712
	common/string/strpbrk.cpp \
1713
	\
1714
	common/misc/thread.cpp \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1715
	generic/RTAssertShouldPanic-generic.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1716
	generic/RTLogWriteDebugger-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1717
	generic/RTLogWriteStdOut-stub-generic.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1718
	generic/RTMpCpuId-generic.cpp \
1719
	generic/RTMpCpuIdFromSetIndex-generic.cpp \
1720
	generic/RTMpCpuIdToSetIndex-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1721
	generic/RTMpIsCpuPossible-generic.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1722
	generic/RTMpGetCount-generic.cpp \
1723
	generic/RTMpGetMaxCpuId-generic.cpp \
1724
	generic/RTMpGetOnlineCount-generic.cpp \
1725
	generic/RTMpGetOnlineSet-generic.cpp \
1726
	generic/RTMpGetSet-generic.cpp \
1727
	generic/RTMpIsCpuOnline-generic.cpp \
1728
	generic/RTTimerCreate-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1729
	generic/mppresent-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1730
	os2/RTErrConvertFromOS2.cpp \
1731
	os2/sys0.asm \
0.2.1 by Michael Meskes
Import upstream version 2.1.2-dfsg
1732
	r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1733
	r0drv/generic/RTMpOn-r0drv-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1734
	r0drv/generic/mpnotification-r0drv-generic.cpp \
0.1.1 by Michael Meskes
Import upstream version 1.6.6-dfsg
1735
	r0drv/memobj-r0drv.cpp \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1736
	r0drv/powernotification-r0drv.c \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1737
	r0drv/os2/alloc-r0drv-os2.cpp \
1738
	r0drv/os2/assert-r0drv-os2.cpp \
1739
	r0drv/os2/assertA-r0drv-os2.asm \
1740
	r0drv/os2/initterm-r0drv-os2.cpp \
1741
	r0drv/os2/memobj-r0drv-os2.cpp \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1742
	r0drv/os2/memuserkernel-r0drv-os2.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1743
	r0drv/os2/os2imports.imp \
1744
	r0drv/os2/process-r0drv-os2.cpp \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1745
	r0drv/os2/RTR0AssertPanicSystem-r0drv-os2.asm \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1746
	r0drv/os2/RTR0Os2DHQueryDOSVar.asm \
1747
	r0drv/os2/RTR0Os2DHVMGlobalToProcess.asm \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1748
	r0drv/os2/semevent-r0drv-os2.cpp \
1749
	r0drv/os2/semeventmulti-r0drv-os2.cpp \
1750
	r0drv/os2/semfastmutex-r0drv-os2.cpp \
1751
	r0drv/os2/spinlock-r0drv-os2.cpp \
1752
	r0drv/os2/thread-r0drv-os2.cpp \
1753
	r0drv/os2/thread2-r0drv-os2.cpp \
1754
	r0drv/os2/time-r0drv-os2.cpp \
1755
	r0drv/os2/timer-r0drv-os2.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1756
	r0drv/os2/timerA-r0drv-os2.asm
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1757
1758
RuntimeR0Drv_SOURCES.freebsd = \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1759
	common/err/RTErrConvertFromErrno.cpp \
1760
	common/err/RTErrConvertToErrno.cpp \
1761
	common/misc/thread.cpp \
1762
	common/string/memchr.asm \
1763
	common/string/memmove.asm \
1764
	common/string/strpbrk.cpp \
1765
	common/string/memcmp.asm \
1766
	common/string/strchr.asm \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1767
	generic/RTAssertShouldPanic-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1768
	generic/RTLogWriteDebugger-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1769
	generic/RTLogWriteStdOut-stub-generic.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1770
	generic/RTTimerCreate-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1771
	generic/mppresent-generic.cpp \
0.2.1 by Michael Meskes
Import upstream version 2.1.2-dfsg
1772
	r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1773
	r0drv/generic/mpnotification-r0drv-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1774
	r0drv/freebsd/alloc-r0drv-freebsd.c \
1775
	r0drv/freebsd/assert-r0drv-freebsd.c \
1776
	r0drv/freebsd/initterm-r0drv-freebsd.c \
1777
	r0drv/freebsd/memobj-r0drv-freebsd.c \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1778
	r0drv/freebsd/memuserkernel-r0drv-freebsd.c \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1779
	r0drv/freebsd/process-r0drv-freebsd.c \
1780
	r0drv/freebsd/semevent-r0drv-freebsd.c \
1781
	r0drv/freebsd/semeventmulti-r0drv-freebsd.c \
1782
	r0drv/freebsd/semfastmutex-r0drv-freebsd.c \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1783
	r0drv/freebsd/semmutex-r0drv-freebsd.c \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1784
	r0drv/freebsd/spinlock-r0drv-freebsd.c \
1785
	r0drv/freebsd/thread-r0drv-freebsd.c \
1786
	r0drv/freebsd/thread2-r0drv-freebsd.c \
1787
	r0drv/freebsd/time-r0drv-freebsd.c \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
1788
	r0drv/freebsd/mp-r0drv-freebsd.c \
1789
	generic/timer-generic.cpp \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1790
	r0drv/memobj-r0drv.cpp \
1791
	r0drv/powernotification-r0drv.c
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1792
1793
RuntimeR0Drv_SOURCES.solaris = \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1794
	common/err/RTErrConvertFromErrno.cpp \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
1795
	common/err/RTErrConvertToErrno.cpp \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1796
	common/misc/thread.cpp \
1797
	common/string/memchr.asm \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1798
	generic/RTAssertShouldPanic-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1799
	generic/RTLogWriteStdOut-stub-generic.cpp \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1800
	generic/RTTimerCreate-generic.cpp \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1801
	generic/mppresent-generic.cpp \
1802
	r0drv/memobj-r0drv.cpp \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
1803
	r0drv/mpnotification-r0drv.c \
1804
	r0drv/powernotification-r0drv.c \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1805
	r0drv/solaris/RTLogWriteDebugger-r0drv-solaris.c \
1806
	r0drv/solaris/assert-r0drv-solaris.c \
1807
	r0drv/solaris/initterm-r0drv-solaris.c \
1808
	r0drv/solaris/memuserkernel-r0drv-solaris.c \
1809
	r0drv/solaris/semevent-r0drv-solaris.c \
1810
	r0drv/solaris/semeventmulti-r0drv-solaris.c \
1811
	r0drv/solaris/semfastmutex-r0drv-solaris.c \
1812
	r0drv/solaris/semmutex-r0drv-solaris.c \
1813
	r0drv/solaris/spinlock-r0drv-solaris.c
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1814
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1815
 # VBI is now compiled into IPRT
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1816
 RuntimeR0Drv_SOURCES.solaris += \
0.2.5 by Michael Meskes
Import upstream version 3.0.2-dfsg
1817
	r0drv/solaris/vbi/RTMpPokeCpu-r0drv-solaris.c \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1818
	r0drv/solaris/vbi/mpnotification-r0drv-solaris.c \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1819
 	r0drv/solaris/vbi/alloc-r0drv-solaris.c \
1820
 	r0drv/solaris/vbi/memobj-r0drv-solaris.c \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1821
 	r0drv/solaris/vbi/mp-r0drv-solaris.c \
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1822
 	r0drv/solaris/vbi/process-r0drv-solaris.c \
1823
 	r0drv/solaris/vbi/thread-r0drv-solaris.c \
1824
 	r0drv/solaris/vbi/thread2-r0drv-solaris.c \
1825
 	r0drv/solaris/vbi/time-r0drv-solaris.c \
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1826
 	r0drv/solaris/vbi/timer-r0drv-solaris.c \
1827
 	r0drv/solaris/vbi/i86pc/os/vbi.c
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1828
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1829
1830
## PORTME: Porters create and add their selection of platform specific Ring-0 Driver files here.
1831
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
1832
RuntimeR0Drv_ORDERDEPS.freebsd = \
1833
  	$(PATH_INS)/gen-sys-hdrs/bus_if.h \
1834
  	$(PATH_INS)/gen-sys-hdrs/device_if.h
1835
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1836
1837
#
1838
# RuntimeGuestR0 - Guest driver runtime.
1839
#                  This is almost the same as the RuntimeR0Drv, the main difference
1840
#                  is in the backdoor logging and the lack of sup.h (which should be
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1841
#                  made irrelevant even for RuntimeR0Drv).
1842
#
1843
RuntimeGuestR0_TEMPLATE  := VBOXGUESTR0LIB
1844
RuntimeGuestR0_SOURCES   := $(filter-out generic/RTLogWriteUser-generic.cpp, $(RuntimeR0Drv_SOURCES))
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
1845
RuntimeGuestR0_SOURCES   += \
1846
	VBox/logbackdoor.cpp
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1847
RuntimeGuestR0_EXTENDS    = RuntimeR0Drv
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1848
1849
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1850
#
1851
# RuntimeGuestR0NT4 - Win32 NT4 guest driver runtime.
1852
#
1853
RuntimeGuestR0NT4_EXTENDS = RuntimeGuestR0
1854
RuntimeGuestR0NT4_EXTENDS_BY = appending
1855
RuntimeGuestR0NT4_DEFS = IPRT_TARGET_NT4
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1856
1857
0.5.5 by Felix Geyer
Import upstream version 3.1.6-dfsg
1858
ifdef VBOX_WITH_RAW_MODE
1859
 #
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1860
 # RuntimeRC - Raw-mode context library.
0.5.5 by Felix Geyer
Import upstream version 3.1.6-dfsg
1861
 #
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1862
 RuntimeRC_TEMPLATE      = VBoxRc
1863
 RuntimeRC_DEFS          = IN_RT_RC RT_WITH_VBOX
1864
 RuntimeRC_INCS          = include
1865
 RuntimeRC_SOURCES       = \
1866
	common/checksum/crc32.cpp \
1867
	common/checksum/crc64.cpp \
1868
	common/checksum/md5.cpp \
1869
 	common/log/log.cpp \
1870
 	common/log/logellipsis.cpp \
1871
 	common/log/logrel.cpp \
1872
 	common/log/logrelellipsis.cpp \
1873
 	common/log/logcom.cpp \
1874
 	common/log/logformat.cpp \
1875
 	common/misc/RTAssertMsg1Weak.cpp \
1876
 	common/misc/RTAssertMsg2.cpp \
1877
 	common/misc/RTAssertMsg2Add.cpp \
1878
 	common/misc/RTAssertMsg2AddWeak.cpp \
1879
 	common/misc/RTAssertMsg2AddWeakV.cpp \
1880
 	common/misc/RTAssertMsg2Weak.cpp \
1881
 	common/misc/RTAssertMsg2WeakV.cpp \
1882
 	common/misc/assert.cpp \
1883
 	common/misc/buildconfig.cpp \
1884
 	common/misc/sanity-c.c \
1885
 	common/misc/sanity-cpp.cpp \
1886
 	common/string/strformat.cpp \
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1887
 	common/string/strformatnum.cpp \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1888
 	common/string/strformatrt.cpp \
1889
 	common/string/strformattype.cpp \
1890
 	common/string/strncmp.cpp \
1891
 	common/string/strpbrk.cpp \
1892
 	common/string/strprintf.cpp \
1893
 	common/table/avllu32.cpp \
1894
 	common/table/avlou32.cpp \
1895
 	common/table/avlogcphys.cpp \
1896
 	common/table/avlogcptr.cpp \
1897
 	common/table/avlohcphys.cpp \
1898
 	common/table/avloioport.cpp \
1899
 	common/table/avlrogcphys.cpp \
1900
 	common/table/avlrogcptr.cpp \
1901
 	common/table/avlroioport.cpp \
1902
 	common/table/avlroogcptr.cpp \
1903
 	common/table/avlu32.cpp \
1904
 	common/time/timeprog.cpp \
1905
 	common/time/timesup.cpp \
1906
 	gc/initterm-gc.cpp \
1907
 	generic/RTAssertShouldPanic-generic.cpp \
1908
 	\
1909
 	$(RuntimeNoCrt_SOURCES)
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1910
0.5.5 by Felix Geyer
Import upstream version 3.1.6-dfsg
1911
 #if1of ($(KBUILD_TARGET_ARCH),amd64 x86)
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1912
 # RuntimeRC_SOURCES += common/time/timesupA.asm
0.5.5 by Felix Geyer
Import upstream version 3.1.6-dfsg
1913
 #else
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1914
  RuntimeRC_SOURCES += common/time/timesupref.cpp
0.5.5 by Felix Geyer
Import upstream version 3.1.6-dfsg
1915
 #endif
1916
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1917
 RuntimeRC_SOURCES.win.x86 = $(RuntimeWin32ASM_SOURCES)
0.5.5 by Felix Geyer
Import upstream version 3.1.6-dfsg
1918
1919
 ifeq ($(VBOX_LDR_FMT32),lx)
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1920
  RuntimeRC_SOURCES += os2/sys0.asm
0.5.5 by Felix Geyer
Import upstream version 3.1.6-dfsg
1921
 endif
1922
1923
 if1of ($(KBUILD_TARGET), darwin solaris freebsd)
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1924
  RuntimeRC_SOURCES += \
1925
 	common/math/gcc/adddi3.c \
1926
 	common/math/gcc/anddi3.c \
1927
 	common/math/gcc/ashldi3.c \
1928
 	common/math/gcc/ashrdi3.c \
1929
 	common/math/gcc/cmpdi2.c \
1930
 	common/math/gcc/divdi3.c \
1931
 	common/math/gcc/iordi3.c \
1932
 	common/math/gcc/lshldi3.c \
1933
 	common/math/gcc/lshrdi3.c \
1934
 	common/math/gcc/moddi3.c \
1935
 	common/math/gcc/muldi3.c \
1936
 	common/math/gcc/negdi2.c \
1937
 	common/math/gcc/notdi2.c \
1938
 	common/math/gcc/qdivrem.c \
1939
 	common/math/gcc/subdi3.c \
1940
 	common/math/gcc/ucmpdi2.c \
1941
 	common/math/gcc/udivdi3.c \
1942
 	common/math/gcc/umoddi3.c \
1943
 	common/math/gcc/xordi3.c
0.5.5 by Felix Geyer
Import upstream version 3.1.6-dfsg
1944
 endif
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1945
1946
1947
 #
1948
 # RuntimeRCStub - Raw-mode context startup stub for Windows.
1949
 #
1950
 RuntimeRCStub_TEMPLATE    = VBoxRc
1951
 RuntimeRCStub_SOURCES.win = \
1952
	nt/NtProcessStartup-stub.cpp
1953
1954
0.5.5 by Felix Geyer
Import upstream version 3.1.6-dfsg
1955
endif # VBOX_WITH_RAW_MODE
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1956
1957
1958
#
1959
# Static library for new & delete for the electric fence.
1960
#
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
1961
RuntimeEFCPP_TEMPLATE   = $(VBoxRT_TEMPLATE)
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1962
RuntimeEFCPP_SDKS       = $(RuntimeR3_SDKS)
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1963
RuntimeEFCPP_SDKS.$(KBUILD_TARGET) = $(RuntimeR3_SDKS.$(KBUILD_TARGET))
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1964
RuntimeEFCPP_DEFS       = $(RuntimeR3_DEFS)
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1965
RuntimeEFCPP_DEFS.$(KBUILD_TARGET) = $(RuntimeR3_DEFS.$(KBUILD_TARGET))
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1966
RuntimeEFCPP_INCS       = $(RuntimeR3_INCS)
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
1967
RuntimeEFCPP_INCS.$(KBUILD_TARGET) = $(RuntimeR3_INCS.$(KBUILD_TARGET))
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1968
RuntimeEFCPP_SOURCES    = r3/alloc-ef-cpp.cpp
1969
1970
1971
1972
#
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
1973
# The NTDLL mini import library.
1974
#
1975
# Note! The reason for doing this is to avoid importing CRT symbols from the
1976
#       NTDLL.  We do not wish to do this because:
1977
#         - Our compiler is usually a different one and we should use the
1978
#           matching CRT,
1979
#         - Older versions of NTDLL may not sport all the exports our w2k3 or
1980
#           later WINDDK ntdll.lib have and thus we may easily end up with
1981
#           images that does not load on older windows versions.
1982
#
1983
RuntimeR3NtDll-amd64_TEMPLATE     = VBoxR3Dll
1984
RuntimeR3NtDll-amd64_BLD_TRG_ARCH = amd64
1985
RuntimeR3NtDll-amd64_ARFLAGS      = /NODEFAULTLIB /MACHINE:amd64
1986
RuntimeR3NtDll-amd64_SOURCES      = \
1987
	r3/win/ntdll-mini-implib.c \
1988
	r3/win/ntdll-mini-implib.def
1989
1990
RuntimeR3NtDll-x86_EXTENDS        = RuntimeR3NtDll-amd64
1991
RuntimeR3NtDll-x86_BLD_TRG_ARCH   = x86
1992
RuntimeR3NtDll-x86_ARFLAGS        = /NODEFAULTLIB /MACHINE:x86
1993
1994
1995
#
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
1996
# errmsg.cpp depends on a generated header.
1997
#
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
1998
common/err/errmsg.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgdata.h
1999
common/err/errmsg.cpp_INCS = $(IPRT_OUT_DIR)
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
2000
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2001
win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgcomdata.h
2002
win/errmsgwin.cpp_INCS = $(IPRT_OUT_DIR)
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
2003
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
2004
# Our COM errors only for R3 libraries on the host
2005
define def_errmsgwin_deps
2006
 $(lib)_win/errmsgwin.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
2007
 $(lib)_common/err/errmsgxpcom.cpp_INCS = $(IPRT_OUT_DIR)
2008
 $(lib)_common/err/errmsgxpcom.cpp_DEPS = $(IPRT_OUT_DIR)/errmsgvboxcomdata.h
2009
endef
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
2010
$(foreach lib,RuntimeR3 RuntimeBldProg VBoxRT RuntimeLnxHostR3,$(eval $(def_errmsgwin_deps)))
0.1.1 by Michael Meskes
Import upstream version 1.6.6-dfsg
2011
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
2012
2013
#
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2014
# Generate the status code data.
2015
#
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2016
$(IPRT_OUT_DIR)/errmsgdata.h: \
2017
		$(VBOX_PATH_RUNTIME_SRC)/common/err/errmsg.sed \
2018
		$(PATH_ROOT)/include/iprt/err.h \
2019
		$(PATH_ROOT)/include/VBox/err.h \
2020
		| $$(dir $$@)
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2021
	$(call MSG_GENERATE,,$@,$(filter %.h,$^))
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
2022
	$(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
2023
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2024
## @todo r=bird: rename this to indicate that it's not only COM errors, but all win32/64 errors.
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2025
$(IPRT_OUT_DIR)/errmsgcomdata.h: \
2026
		$(VBOX_PATH_RUNTIME_SRC)/common/err/errmsgcom.sed \
2027
		$$(PATH_SDK_WINPSDK_INC)/WinError.h \
2028
		| $$(dir $$@)
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
2029
	$(call MSG_GENERATE,,$@,$(filter %.h,$^))
2030
	$(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2031
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
2032
$(IPRT_OUT_DIR)/errmsgvboxcomdata.h: \
2033
		$(VBOX_PATH_RUNTIME_SRC)/VBox/errmsgvboxcom.xsl \
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
2034
		$(VBOX_XIDL_FILE_SRC) \
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
2035
		| $$(dir $$@)
2036
	$(call MSG_GENERATE,,$@,$(filter %.xidl,$^))
0.3.12 by Felix Geyer
Import upstream version 4.0.2-dfsg
2037
	$(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(filter %.xidl,$^)
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
2038
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2039
0.2.11 by Michael Meskes
Import upstream version 3.1.0-dfsg
2040
if "$(KBUILD_TARGET)" == "freebsd"
2041
#
2042
# FreeBSDGeneratedKernelHeaders - Generate some kernel interface headers.
2043
#
2044
# These are used by:
2045
#      - The RTMp* API in IPRT.
2046
#      - VBoxGuest
2047
#
2048
# Note! We cannot give a output path to the awk program, it will always
2049
# generate the header next to the source. So, we'll have to temporarily copy
2050
# the source file to the destination directory to work.
2051
#
2052
VBOX_AWK := /usr/bin/awk
2053
INSTALLS += FreeBSDGeneratedKernelHeaders
2054
FreeBSDGeneratedKernelHeaders_INST = gen-sys-hdrs/
2055
FreeBSDGeneratedKernelHeaders_SOURCES = \
2056
	$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h \
2057
	$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h \
2058
	$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h
2059
FreeBSDGeneratedKernelHeaders_CLEAN = $(FreeBSDGeneratedKernelHeaders_SOURCES)
2060
2061
$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/bus_if.h: $(VBOX_FREEBSD_SRC)/kern/bus_if.m | $$(dir $$@)
2062
	$(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
2063
	$(QUIET)$(CP) -f $< $(@D)/bus_if.m
2064
	$(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/bus_if.m -h -p
2065
	$(QUIET)$(RM) $(@D)/bus_if.m
2066
2067
$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/device_if.h: $(VBOX_FREEBSD_SRC)/kern/device_if.m | $$(dir $$@)
2068
	$(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
2069
	$(QUIET)$(CP) -f $< $(@D)/device_if.m
2070
	$(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/device_if.m -h -p
2071
	$(QUIET)$(RM) $(@D)/device_if.m
2072
2073
$$(FreeBSDGeneratedKernelHeaders_0_OUTDIR)/pci_if.h: $(VBOX_FREEBSD_SRC)/dev/pci/pci_if.m | $$(dir $$@)
2074
	$(call MSG_TOOL,awk,FreeBSDGeneratedKernelHeaders,$<,$@)
2075
	$(QUIET)$(CP) -f $< $(@D)/pci_if.m
2076
	$(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/makeobjops.awk $(@D)/pci_if.m -h -p
2077
	$(QUIET)$(RM) $(@D)/pci_if.m
2078
endif # FreeBSD
2079
2080
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2081
#
2082
# Aliases for .cpp.h files so we can more easily do syntax checking from the editor.
2083
#
2084
ldrELFRelocatable.cpp.o: ldrELF.o
2085
ldrELFRelocatable.cpp.obj: ldrELF.obj
2086
2087
2088
#
2089
# Doxygen documentation.
2090
#
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2091
IPRT_DOXYFILE_INPUT_DIRS = \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2092
	$(PATH_ROOT)/include/iprt \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
2093
	$(PATH_ROOT)/include/iprt/cpp \
2094
	$(PATH_ROOT)/include/iprt/linux \
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2095
	$(PATH_ROOT)/include/iprt/nocrt \
2096
	$(PATH_ROOT)/include/iprt/nocrt/x86 \
2097
	$(PATH_ROOT)/include/iprt/nocrt/amd64 \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
2098
	$(PATH_ROOT)/include/iprt/nocrt/compiler \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2099
	$(VBOX_PATH_RUNTIME_SRC)/include/internal \
2100
	$(VBOX_PATH_RUNTIME_SRC)/common/alloc \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
2101
	$(VBOX_PATH_RUNTIME_SRC)/common/asm \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2102
	$(VBOX_PATH_RUNTIME_SRC)/common/checksum \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
2103
	$(VBOX_PATH_RUNTIME_SRC)/common/dbg \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2104
	$(VBOX_PATH_RUNTIME_SRC)/common/err \
2105
	$(VBOX_PATH_RUNTIME_SRC)/common/ldr \
2106
	$(VBOX_PATH_RUNTIME_SRC)/common/log \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
2107
	$(VBOX_PATH_RUNTIME_SRC)/common/math \
2108
	$(VBOX_PATH_RUNTIME_SRC)/common/math/amd64 \
2109
	$(VBOX_PATH_RUNTIME_SRC)/common/math/gcc \
2110
	$(VBOX_PATH_RUNTIME_SRC)/common/math/x86 \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2111
	$(VBOX_PATH_RUNTIME_SRC)/common/misc \
0.2.12 by Felix Geyer
Import upstream version 3.1.53-dfsg
2112
	$(VBOX_PATH_RUNTIME_SRC)/common/path \
2113
	$(VBOX_PATH_RUNTIME_SRC)/common/rand \
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2114
	$(VBOX_PATH_RUNTIME_SRC)/common/string \
2115
	$(VBOX_PATH_RUNTIME_SRC)/common/table \
2116
	$(VBOX_PATH_RUNTIME_SRC)/common/time \
2117
	$(VBOX_PATH_RUNTIME_SRC)/VBox \
2118
	$(foreach dir, $(VBOX_PATH_RUNTIME_SRC) $(VBOX_PATH_RUNTIME_SRC)/r3 $(VBOX_PATH_RUNTIME_SRC)/r0drv,\
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2119
		$(dir) \
2120
		$(dir)/darwin \
2121
		$(dir)/l4 \
2122
		$(dir)/linux \
2123
		$(dir)/nt \
2124
		$(dir)/os2 \
2125
		$(dir)/win \
2126
		$(dir)/win32 \
2127
		$(dir)/win64 \
2128
		$(dir)/generic \
2129
		)
2130
2131
# These must come first in order to make things look nice.
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2132
IPRT_DOXYFILE_INPUT_FIRST =\
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2133
	$(PATH_ROOT)/include/iprt/cdefs.h \
2134
	$(PATH_ROOT)/include/iprt/types.h \
2135
	$(PATH_ROOT)/include/iprt/runtime.h \
2136
	$(PATH_ROOT)/include/iprt/param.h \
2137
	$(PATH_ROOT)/include/iprt/assert.h \
2138
	$(PATH_ROOT)/include/iprt/asm.h \
2139
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2140
IPRT_DOXYFILE_INPUT := \
2141
	$(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(IPRT_DOXYFILE_INPUT_DIRS)))) ) \
2142
	$(foreach dir, $(IPRT_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/.c $(dir)/.asm))
2143
IPRT_DOXYFILE_INPUT := \
2144
	$(IPRT_DOXYFILE_INPUT_FIRST) \
2145
	$(filter-out $(IPRT_DOXYFILE_INPUT_FIRST), $(IPRT_DOXYFILE_INPUT))
2146
2147
2148
IPRT_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/iprt
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
2149
BLDDIRS += $(IPRT_DOXYFILE_OUTPUT)
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2150
2151
includedep $(IPRT_OUT_DIR)/Doxyfile.iprt.dep
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2152
2153
# Generate the Doxyfile
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2154
$(IPRT_OUT_DIR)/Doxyfile.iprt: \
2155
		$(VBOX_PATH_RUNTIME_SRC)/Doxyfile \
2156
		$(VBOX_PATH_RUNTIME_SRC)/Makefile.kmk \
2157
		$(comp-vars IPRT_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
2158
		$(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
2159
		| $$(dir $$@)
2160
	$(RM) -f $@ $@.tmp $@.dep
2161
	$(CP) -f $(VBOX_PATH_RUNTIME_SRC)/Doxyfile $@.tmp
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2162
	$(APPEND) $@.tmp
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2163
	$(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(IPRT_DOXYFILE_OUTPUT)"
2164
	$(APPEND) $@.tmp "WARN_LOGFILE = $(IPRT_DOXYFILE_OUTPUT)/errors"
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
2165
	$(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include include . common/table"
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2166
	$(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
1.1.3 by Daniel Hahler
Import upstream version 1.6.2-dfsg
2167
	$(APPEND) $@.tmp "PREDEFINED += $(ARCH_BITS_DEFS)"
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2168
	$(APPEND) $@.tmp
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2169
	$(APPEND) $@.tmp "INPUT = $(IPRT_DOXYFILE_INPUT)"
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2170
	$(APPEND) $@.tmp
2171
	$(MV) -f $@.tmp $@
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2172
	@$(APPEND) $@.dep "DOXYGEN_OUTPUT_PREV = $(IPRT_DOXYFILE_OUTPUT)"
2173
	@$(APPEND) $@.dep "DOXYGEN_INPUT_PREV = $(IPRT_DOXYFILE_INPUT)"
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2174
2175
# Do the actual job.
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
2176
$(IPRT_OUT_DIR)/docs.iprt: $(IPRT_OUT_DIR)/Doxyfile.iprt $$(IPRT_DOXYFILE_INPUT) | $(IPRT_DOXYFILE_OUTPUT)/
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2177
	$(RM) -f $(wildcard $(IPRT_DOXYFILE_OUTPUT)/html/*) $(IPRT_OUT_DIR)/docs.iprt
2178
	doxygen $(IPRT_OUT_DIR)/Doxyfile.iprt
2179
	$(APPEND) $(IPRT_OUT_DIR)/docs.iprt
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2180
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
2181
# aliases
2182
docs.iprt: $(IPRT_OUT_DIR)/docs.iprt
2183
if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
2184
docs:      $(IPRT_OUT_DIR)/docs.iprt
2185
endif
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2186
1.1.6 by Daniel Hahler
Import upstream version 2.1.0-dfsg
2187
test-doxygen::
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2188
	@echo test-$(comp-vars IPRT_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE)
2189
	@echo $(IPRT_DOXYFILE_OUTPUT)
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2190
	@echo $(DOXYGEN_OUTPUT_PREV)
1.1.4 by Mario Limonciello
Import upstream version 2.0.2-dfsg
2191
	@echo $(IPRT_DOXYFILE_INPUT)
1 by Steve Kowalik
Import upstream version 1.5.0-dfsg2
2192
0.2.3 by Michael Meskes
Import upstream version 2.2.0-dfsg
2193
#
2194
# Generate the rules (we're the to sub-makefile).
2195
#
2196
include $(KBUILD_PATH)/subfooter.kmk
2197