1 | # $Id: Makefile.kmk 34517 2010-11-30 14:09:55Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top level makefile.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2010 Oracle Corporation
|
---|
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 |
|
---|
18 | SUB_DEPTH = .
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # Sub-makefiles / Sub-directories.
|
---|
23 | #
|
---|
24 | ifdef VBOX_SINGLE_MAKEFILE
|
---|
25 | if defined(VBOX_WITH_DOCS) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_EXTPACKS) && !defined(VBOX_ONLY_TESTSUITE)
|
---|
26 | include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk
|
---|
27 | endif
|
---|
28 | include $(PATH_SUB_CURRENT)/src/Makefile.kmk
|
---|
29 | else
|
---|
30 | if defined(VBOX_WITH_DOCS) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_EXTPACKS) && !defined(VBOX_ONLY_TESTSUITE)
|
---|
31 | SUBDIRS = doc/manual
|
---|
32 | endif
|
---|
33 | SUBDIRS += src
|
---|
34 | endif
|
---|
35 |
|
---|
36 |
|
---|
37 | #
|
---|
38 | # Clean up global stuff that Config.kmk generates.
|
---|
39 | #
|
---|
40 | OTHER_CLEAN += \
|
---|
41 | $(VBOX_PACKAGE_HEADER) \
|
---|
42 | $(VBOX_LICENSE_VER_KMK) \
|
---|
43 | $(VBOX_VERSION_MK) \
|
---|
44 | $(VBOX_VERSION_HEADER) \
|
---|
45 | $(VBOX_VERSION_STAMP) \
|
---|
46 | $(wildcard $(PATH_OUT)/version-stamp-*.*.*) \
|
---|
47 | $(VBOX_SVN_REV_KMK).ts \
|
---|
48 | $(VBOX_SVN_REV_KMK) \
|
---|
49 | $(PATH_OUT)/GCCConfig.kmk
|
---|
50 |
|
---|
51 |
|
---|
52 | if !defined(VBOX_ONLY_ADDITIONS) \
|
---|
53 | && !defined(VBOX_ONLY_DOCS) \
|
---|
54 | && !defined(VBOX_ONLY_EXTPACKS) \
|
---|
55 | && !defined(VBOX_ONLY_TESTSUITE) # -> line 418b ;-)
|
---|
56 |
|
---|
57 | ifndef VBOX_OSE
|
---|
58 | #
|
---|
59 | # Install the license (and misc non-executable stuff).
|
---|
60 | #
|
---|
61 | INSTALLS += nobin
|
---|
62 | nobin_INST = $(INST_BIN)
|
---|
63 | nobin_MODE = 0644
|
---|
64 | nobin_SOURCES =
|
---|
65 | ifdef VBOX_LICENSE_FILES
|
---|
66 | nobin_SOURCES += \
|
---|
67 | $(VBOX_BRAND_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER).html \
|
---|
68 | $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES),$(VBOX_BRAND_$(f)_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER)-$(f).html)
|
---|
69 | endif
|
---|
70 | endif # !OSE
|
---|
71 |
|
---|
72 |
|
---|
73 | #
|
---|
74 | # Install external binaries (mostly redistributable parts of tools we use).
|
---|
75 | # This must be done *before* we build the manual.
|
---|
76 | #
|
---|
77 | # To avoid dragging in unnecessary tools and sdks here, we don't use the .win
|
---|
78 | # and .linux property suffixes.
|
---|
79 | #
|
---|
80 | INSTALLS += bin
|
---|
81 |
|
---|
82 | bin_INST = $(INST_BIN)
|
---|
83 |
|
---|
84 | # The SDL DLLs
|
---|
85 | if1of ($(KBUILD_TARGET), win os2)
|
---|
86 | ifneq ($(VBOX_WITH_VBOXSDL)$(VBOX_WITH_VBOXBFE),)
|
---|
87 | include $(KBUILD_PATH)/sdks/LIBSDL.kmk
|
---|
88 | bin_SOURCES += \
|
---|
89 | $(DLL_SDK_LIBSDL_SDL)
|
---|
90 | ifdef VBOX_WITH_SECURELABEL
|
---|
91 | bin_SOURCES += \
|
---|
92 | $(DLL_SDK_LIBSDL_SDLTTF)
|
---|
93 | endif
|
---|
94 | ifeq ($(KBUILD_TARGET),os2)
|
---|
95 | bin_SOURCES += \
|
---|
96 | $(DLL_SDK_LIBSDL_FSLIB)
|
---|
97 | endif
|
---|
98 | endif
|
---|
99 | endif
|
---|
100 |
|
---|
101 |
|
---|
102 | # The compiler runtime DLLs.
|
---|
103 | ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
|
---|
104 | ifdef VBOX_USE_VCC80
|
---|
105 | include $(KBUILD_PATH)/tools/VCC80X86.kmk
|
---|
106 | include $(KBUILD_PATH)/tools/VCC80AMD64.kmk
|
---|
107 | bin_SOURCES.x86 += \
|
---|
108 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
109 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
|
---|
110 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
|
---|
111 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
112 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
|
---|
113 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
|
---|
114 | bin_SOURCES.amd64 += \
|
---|
115 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
116 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
|
---|
117 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
|
---|
118 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
119 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
|
---|
120 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
|
---|
121 | ifeq ($(VBOX_VCC_CRT_TYPE),d)
|
---|
122 | bin_SOURCES.x86 += \
|
---|
123 | $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest=>Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest \
|
---|
124 | $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/msvcr80d.dll=>Microsoft.VC80.DebugCRT/msvcr80d.dll \
|
---|
125 | $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/msvcp80d.dll=>Microsoft.VC80.DebugCRT/msvcp80d.dll \
|
---|
126 | $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest=>testcase/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest \
|
---|
127 | $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/msvcr80d.dll=>testcase/Microsoft.VC80.DebugCRT/msvcr80d.dll \
|
---|
128 | $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/msvcp80d.dll=>testcase/Microsoft.VC80.DebugCRT/msvcp80d.dll
|
---|
129 | bin_SOURCES.amd64 += \
|
---|
130 | $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest=>Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest \
|
---|
131 | $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/msvcr80d.dll=>Microsoft.VC80.DebugCRT/msvcr80d.dll \
|
---|
132 | $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/msvcp80d.dll=>Microsoft.VC80.DebugCRT/msvcp80d.dll \
|
---|
133 | $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest=>testcase/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest \
|
---|
134 | $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/msvcr80d.dll=>testcase/Microsoft.VC80.DebugCRT/msvcr80d.dll \
|
---|
135 | $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/msvcp80d.dll=>testcase/Microsoft.VC80.DebugCRT/msvcp80d.dll
|
---|
136 | endif
|
---|
137 | endif
|
---|
138 | ifndef VBOX_USE_VCC80
|
---|
139 | VBOX_INSTALL_VCC70_RT = 1
|
---|
140 | endif
|
---|
141 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
|
---|
142 | VBOX_INSTALL_VCC70_RT = 1
|
---|
143 | endif
|
---|
144 | ifdef VBOX_INSTALL_VCC70_RT
|
---|
145 | include $(KBUILD_PATH)/tools/VCC70.kmk
|
---|
146 |
|
---|
147 | ## @todo Move these defines to VCC70.
|
---|
148 | DLL_TOOL_VCC70_MSVCR71 ?= $(PATH_TOOL_VCC70)/bin/msvcr71.dll
|
---|
149 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCR71)),)
|
---|
150 | bin_SOURCES += \
|
---|
151 | $(DLL_TOOL_VCC70_MSVCR71)=>msvcr71.dll \
|
---|
152 | $(DLL_TOOL_VCC70_MSVCR71)=>testcase/msvcr71.dll
|
---|
153 | endif
|
---|
154 | ifeq ($(VBOX_VCC_CRT_TYPE),d)
|
---|
155 | DLL_TOOL_VCC70_MSVCR71D ?= $(PATH_TOOL_VCC70)/bin/msvcr71d.dll
|
---|
156 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCR71D)),)
|
---|
157 | bin_SOURCES += \
|
---|
158 | $(DLL_TOOL_VCC70_MSVCR71D)=>msvcr71d.dll \
|
---|
159 | $(DLL_TOOL_VCC70_MSVCR71D)=>testcase/msvcr71d.dll
|
---|
160 | endif
|
---|
161 | endif
|
---|
162 |
|
---|
163 | DLL_TOOL_VCC70_MSVCP71 ?= $(PATH_TOOL_VCC70)/bin/msvcp71.dll
|
---|
164 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCP71)),)
|
---|
165 | bin_SOURCES += \
|
---|
166 | $(DLL_TOOL_VCC70_MSVCP71)=>msvcp71.dll \
|
---|
167 | $(DLL_TOOL_VCC70_MSVCP71)=>testcase/msvcp71.dll
|
---|
168 | endif
|
---|
169 | ifeq ($(VBOX_VCC_CRT_TYPE),d)
|
---|
170 | DLL_TOOL_VCC70_MSVCP71D ?= $(PATH_TOOL_VCC70)/bin/msvcp71d.dll
|
---|
171 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCP71D)),)
|
---|
172 | bin_SOURCES += \
|
---|
173 | $(DLL_TOOL_VCC70_MSVCP71D)=>msvcp71d.dll \
|
---|
174 | $(DLL_TOOL_VCC70_MSVCP71D)=>testcase/msvcp71d.dll
|
---|
175 | endif
|
---|
176 | endif
|
---|
177 |
|
---|
178 | DLL_TOOL_VCC70_MSVCRT ?= $(PATH_TOOL_VCC70)/bin/msvcrt.dll
|
---|
179 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCRT)),)
|
---|
180 | bin_SOURCES += \
|
---|
181 | $(DLL_TOOL_VCC70_MSVCRT)=>msvcrt.dll \
|
---|
182 | $(DLL_TOOL_VCC70_MSVCRT)=>testcase/msvcrt.dll
|
---|
183 | endif
|
---|
184 | endif
|
---|
185 | endif
|
---|
186 |
|
---|
187 |
|
---|
188 | #
|
---|
189 | # Install our Qt DLLs / Shared Objects / Frameworks.
|
---|
190 | # Note: The installer fixes the darwin .dylibs when hardening is enabled.
|
---|
191 | #
|
---|
192 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
193 | INSTALLS += qt4-bin
|
---|
194 | qt4-bin_MODE = 755
|
---|
195 | qt4-bin_INST = $(INST_VIRTUALBOX)Contents/
|
---|
196 | qt4-bin_SOURCES = $(foreach qtmod,$(VBOX_QT4_MOD_NAMES) \
|
---|
197 | ,$(PATH_SDK_QT4_LIB)/$(qtmod).framework/Versions/4/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/4/$(qtmod))
|
---|
198 | ifdef VBOX_WITH_COCOA_QT
|
---|
199 | qt4-bin_SOURCES += \
|
---|
200 | $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib \
|
---|
201 | $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib \
|
---|
202 | $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib
|
---|
203 | endif
|
---|
204 | ifneq ($(wildcard $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib),)
|
---|
205 | qt4-bin_SOURCES += \
|
---|
206 | $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib=>MacOS/accessible/libqtaccessiblewidgets.dylib
|
---|
207 | endif
|
---|
208 | qt4-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT4_MOD_NAMES) \
|
---|
209 | ,Frameworks/$(qtmod).framework/$(qtmod)=>Versions/4/$(qtmod))
|
---|
210 | ifdef VBOX_WITH_COCOA_QT
|
---|
211 | qt4-bin_SYMLINKS += \
|
---|
212 | Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Resources=>Versions/4/Resources/
|
---|
213 | endif
|
---|
214 | else
|
---|
215 | ifdef VBOX_WITH_QT4_SUN
|
---|
216 | ifeq ($(KBUILD_TARGET),win)
|
---|
217 | INSTALLS += qt4-bin
|
---|
218 | qt4-bin_MODE = 755
|
---|
219 | qt4-bin_INST = $(INST_BIN)
|
---|
220 | qt4-bin_SOURCES = \
|
---|
221 | $(foreach qtmod,$(VBOX_QT4_MOD_NAMES),$(VBOX_PATH_QT4_LIB)/$(qtmod)4$(SUFF_DLL)) \
|
---|
222 | $(VBOX_PATH_QT4)/plugins/accessible/qtaccessiblewidgets4$(SUFF_DLL)=>accessible/qtaccessiblewidgets4$(SUFF_DLL)
|
---|
223 | else
|
---|
224 | INSTALLS += qt4-bin
|
---|
225 | qt4-bin_MODE = 755
|
---|
226 | qt4-bin_INST = $(INST_BIN)
|
---|
227 | qt4-bin_SOURCES = \
|
---|
228 | $(foreach qtmod,$(VBOX_QT4_MOD_NAMES),$(VBOX_PATH_QT4_LIB)/lib$(qtmod)$(SUFF_DLL).4) \
|
---|
229 | $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets$(SUFF_DLL)=>accessible/libqtaccessiblewidgets$(SUFF_DLL)
|
---|
230 | endif
|
---|
231 | endif # VBOX_WITH_QT4_SUN
|
---|
232 | endif
|
---|
233 |
|
---|
234 |
|
---|
235 | #
|
---|
236 | # For building the combined package, just get the additions .ISO
|
---|
237 | # once for amd64 to prevent version inconsistences. In all other
|
---|
238 | # cases we get the .ISO per target architecture.
|
---|
239 | #
|
---|
240 | ifdef VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
|
---|
241 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
242 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
243 | INSTALLS += buildserver-additions
|
---|
244 | endif
|
---|
245 | else
|
---|
246 | INSTALLS += buildserver-additions
|
---|
247 | endif
|
---|
248 |
|
---|
249 | #
|
---|
250 | # Install additions iso from the build server.
|
---|
251 | # The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
|
---|
252 | # been added to kBuild.
|
---|
253 | #
|
---|
254 | buildserver-additions_INST = $(INST_ADDITIONS_ISO)
|
---|
255 | buildserver-additions_MODE = 0644
|
---|
256 | buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
|
---|
257 | buildserver-additions_CLEANS = $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
258 |
|
---|
259 | $(PATH_TARGET)/VBoxGuestAdditions.iso: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
|
---|
260 | $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
261 | ifneq ($(KBUILD_HOST),win)
|
---|
262 | $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
263 | else
|
---|
264 | $(KMK) --affinity 1 -f $(MAKEFILE) VBOX_SINGLE_MAKEFILE= buildserver-additions-affinity-hack
|
---|
265 | endif
|
---|
266 | $(CP) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp $(PATH_TARGET)/VBoxGuestAdditions.iso
|
---|
267 | $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
268 |
|
---|
269 | ifeq ($(KBUILD_HOST),win)
|
---|
270 | buildserver-additions-affinity-hack:
|
---|
271 | $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
272 | endif
|
---|
273 | endif
|
---|
274 |
|
---|
275 |
|
---|
276 | #
|
---|
277 | #
|
---|
278 | # Install documentation files (at the moment the .chm) from the build server.
|
---|
279 | #
|
---|
280 | ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
|
---|
281 | ## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
|
---|
282 | INSTALLS += buildserver-docs
|
---|
283 | buildserver-docs_INST = $(INST_BIN)
|
---|
284 | buildserver-docs_MODE = 0644
|
---|
285 | buildserver-docs_SOURCES = \
|
---|
286 | $(addprefix $(PATH_TARGET)/, \
|
---|
287 | VirtualBox.chm UserManual.pdf \
|
---|
288 | $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
|
---|
289 | buildserver-docs_CLEANS = \
|
---|
290 | $(buildserver-docs_0_OUTDIR)/unpacked.ts \
|
---|
291 | $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip \
|
---|
292 | $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp \
|
---|
293 | $(addprefix $(PATH_TARGET)/, \
|
---|
294 | VirtualBox.chm UserManual.pdf \
|
---|
295 | $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
|
---|
296 |
|
---|
297 | ## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
|
---|
298 | include $(KBUILD_PATH)/tools/ZIP.kmk
|
---|
299 |
|
---|
300 | $$(buildserver-docs_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VirtualBox.chm $(PATH_TARGET)/UserManual.pdf \
|
---|
301 | $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(PATH_TARGET)/VirtualBox_$(f).chm $(PATH_TARGET)/UserManual_$(f).pdf): \
|
---|
302 | $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip
|
---|
303 | $(call MSG_L1,Unpacking documentation)
|
---|
304 | $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
|
---|
305 | $(APPEND) -t $@ "done"
|
---|
306 |
|
---|
307 | $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
|
---|
308 | $(RM) -f $@ $@.tmp
|
---|
309 | ifneq ($(KBUILD_HOST),win)
|
---|
310 | $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $@.tmp
|
---|
311 | else
|
---|
312 | $(KMK) --affinity 1 -f $(MAKEFILE) VBOX_SINGLE_MAKEFILE= buildserver-documentation-affinity-hack
|
---|
313 | endif
|
---|
314 | $(CP) -f $@.tmp $@
|
---|
315 | $(RM) -f $@.tmp
|
---|
316 | ## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
|
---|
317 |
|
---|
318 | ifeq ($(KBUILD_HOST),win)
|
---|
319 | buildserver-documentation-affinity-hack:
|
---|
320 | $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp
|
---|
321 | endif
|
---|
322 | endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
|
---|
323 |
|
---|
324 |
|
---|
325 | ifdef VBOX_WITH_EFI
|
---|
326 | #
|
---|
327 | # Install EFI firmware image
|
---|
328 | #
|
---|
329 | ifdef VBOX_WITH_EFIFW_FROM_BUILD_SERVER
|
---|
330 | #
|
---|
331 | # Either from the build server.
|
---|
332 | #
|
---|
333 | INSTALLS += buildserver-efifw
|
---|
334 | buildserver-efifw_INST = $(INST_BIN)
|
---|
335 | buildserver-efifw_MODE = 0644
|
---|
336 | buildserver-efifw_SOURCES = \
|
---|
337 | $(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd=>VBoxEFI32.fd \
|
---|
338 | $(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd=>VBoxEFI64.fd
|
---|
339 | buildserver-efifw_CLEANS = \
|
---|
340 | $(buildserver-efifw_0_OUTDIR)/unpacked.ts \
|
---|
341 | $(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd \
|
---|
342 | $(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd \
|
---|
343 | $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip \
|
---|
344 | $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp
|
---|
345 | ## @todo rainy day: cleanup the output directory (zip contains lots more)
|
---|
346 |
|
---|
347 | ## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
|
---|
348 | include $(KBUILD_PATH)/tools/ZIP.kmk
|
---|
349 |
|
---|
350 | $$(buildserver-efifw_0_OUTDIR)/unpacked.ts \
|
---|
351 | +| $$(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd \
|
---|
352 | $$(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd: \
|
---|
353 | $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip
|
---|
354 | $(call MSG_L1,Unpacking EFI firmware)
|
---|
355 | $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(buildserver-efifw_0_OUTDIR)
|
---|
356 | $(APPEND) -t $@ "done"
|
---|
357 |
|
---|
358 | $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip: \
|
---|
359 | $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/efi_firmware.sh | $$(dir $$@)
|
---|
360 | $(RM) -f $@ $@.tmp
|
---|
361 | ifneq ($(KBUILD_HOST),win)
|
---|
362 | $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename $@.tmp
|
---|
363 | else
|
---|
364 | $(KMK) --affinity 1 -f $(MAKEFILE) VBOX_SINGLE_MAKEFILE= buildserver-efifw-affinity-hack
|
---|
365 | endif
|
---|
366 | $(CP) -f $@.tmp $@
|
---|
367 | $(RM) -f $@.tmp
|
---|
368 | ## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
|
---|
369 |
|
---|
370 | ifeq ($(KBUILD_HOST),win)
|
---|
371 | buildserver-efifw-affinity-hack:
|
---|
372 | $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp
|
---|
373 | endif
|
---|
374 | else # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
|
---|
375 | #
|
---|
376 | # Or from the local copy
|
---|
377 | #
|
---|
378 | INSTALLS += local-efifw
|
---|
379 | local-efifw_INST = $(INST_BIN)
|
---|
380 | local-efifw_MODE = 0644
|
---|
381 | local-efifw_SOURCES = \
|
---|
382 | $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI32.fd=>VBoxEFI32.fd \
|
---|
383 | $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI64.fd=>VBoxEFI64.fd
|
---|
384 | endif # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
|
---|
385 | endif # VBOX_WITH_EFI
|
---|
386 |
|
---|
387 |
|
---|
388 | #
|
---|
389 | # Install staged binaries on platforms where we can't cross
|
---|
390 | # compile things.
|
---|
391 | #
|
---|
392 | ifn1of ($(KBUILD_TARGET), l4 linux win)
|
---|
393 | VBOX_PATH_STAGED ?= .
|
---|
394 |
|
---|
395 | # Additions.
|
---|
396 | ifndef VBOX_WITH_LINUX_ADDITIONS
|
---|
397 | ifndef VBOX_WITH_WIN32_ADDITIONS
|
---|
398 | ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
|
---|
399 | INSTALLS += staged-additions
|
---|
400 | staged-additions_INST = $(INST_ADDITIONS_ISO)
|
---|
401 | staged-additions_MODE = 0644
|
---|
402 | staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
|
---|
403 | endif
|
---|
404 | endif
|
---|
405 | endif
|
---|
406 |
|
---|
407 | # guesttool.exe
|
---|
408 | ifndef VBOX_WITH_WIN32_ADDITIONS
|
---|
409 | ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
|
---|
410 | INSTALLS += staged-guesttool
|
---|
411 | staged-guesttool_INST = $(INST_BIN)
|
---|
412 | staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
|
---|
413 | endif
|
---|
414 | endif
|
---|
415 |
|
---|
416 | endif
|
---|
417 |
|
---|
418 | endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_TESTSUITE
|
---|
419 |
|
---|
420 |
|
---|
421 | ifdef VBOX_ONLY_DOCS
|
---|
422 | # It may sound a bit odd, but for preparing the documentation package the
|
---|
423 | # doxygen documentation isn't needed and increases the build time a lot.
|
---|
424 | docs:
|
---|
425 | else # !VBOX_ONLY_DOCS
|
---|
426 | #
|
---|
427 | # Generate documentation.
|
---|
428 | # (This should be converted into a separate pass or merged with an existing one later.)
|
---|
429 | #
|
---|
430 | ifdef VBOX_SINGLE_MAKEFILE
|
---|
431 | ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
|
---|
432 | docs: docs.Core
|
---|
433 | endif
|
---|
434 | else # !VBOX_SINGLE_MAKEFILE
|
---|
435 | docs: $(if $(VBOX_WITH_ALL_DOXYGEN_TARGETS),docs.Core)
|
---|
436 | $(KMK) -C src/VBox/Main docs.Main
|
---|
437 | ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
|
---|
438 | $(KMK) -C src/VBox/Runtime docs.iprt
|
---|
439 | endif
|
---|
440 | endif # !VBOX_SINGLE_MAKEFILE
|
---|
441 | endif # !VBOX_ONLY_DOCS
|
---|
442 |
|
---|
443 | docs.Core docs.core: $(PATH_TARGET)/docs.Core
|
---|
444 |
|
---|
445 |
|
---|
446 |
|
---|
447 | #
|
---|
448 | # The core (VMM+REM+Devices+Main) documentation.
|
---|
449 | #
|
---|
450 | # This includes so much because we wish to have the complete CFGM
|
---|
451 | # and GCFGM lists.
|
---|
452 | #
|
---|
453 | OTHER_CLEAN += \
|
---|
454 | $(PATH_TARGET)/Doxyfile.Core \
|
---|
455 | $(PATH_TARGET)/Doxyfile.Core.dep
|
---|
456 |
|
---|
457 | VBOX_CORE_DOXYFILE_INPUT_DIRS = \
|
---|
458 | include/iprt \
|
---|
459 | include/iprt/cpp \
|
---|
460 | include/iprt/linux \
|
---|
461 | include/VBox \
|
---|
462 | include/VBox/com \
|
---|
463 | include/VBox/HostServices \
|
---|
464 | include/VBox/GuestHost \
|
---|
465 | include/VBox/HGSMI \
|
---|
466 | src/VBox/VMM \
|
---|
467 | src/VBox/VMM/VMMR0 \
|
---|
468 | src/VBox/VMM/VMMGC \
|
---|
469 | src/VBox/VMM/VMMAll \
|
---|
470 | src/VBox/VMM/PATM \
|
---|
471 | src/VBox/VMM/PATM/VMMR0 \
|
---|
472 | src/VBox/VMM/PATM/VMMGC \
|
---|
473 | src/VBox/VMM/PATM/VMMAll \
|
---|
474 | src/VBox/VMM/VMMSwitcher \
|
---|
475 | src/VBox/Debugger \
|
---|
476 | src/VBox/Devices \
|
---|
477 | src/VBox/Devices/Audio \
|
---|
478 | src/VBox/Devices/Bus \
|
---|
479 | src/VBox/Devices/Graphics \
|
---|
480 | src/VBox/Devices/Graphics/BIOS \
|
---|
481 | src/VBox/Devices/Input \
|
---|
482 | src/VBox/Devices/Networking \
|
---|
483 | src/VBox/Devices/PC \
|
---|
484 | src/VBox/Devices/PC/BIOS \
|
---|
485 | src/VBox/Devices/Parallel \
|
---|
486 | src/VBox/Devices/Serial \
|
---|
487 | src/VBox/Devices/Storage \
|
---|
488 | src/VBox/Devices/USB \
|
---|
489 | src/VBox/Devices/USB/darwin \
|
---|
490 | src/VBox/Devices/USB/linux \
|
---|
491 | src/VBox/Devices/USB/os2 \
|
---|
492 | src/VBox/Devices/USB/solaris \
|
---|
493 | src/VBox/Devices/USB/vrdp \
|
---|
494 | src/VBox/Devices/USB/win32 \
|
---|
495 | src/VBox/Devices/VMMDev \
|
---|
496 | src/VBox/Main/include \
|
---|
497 | src/VBox/Main/include/hgcm \
|
---|
498 | src/VBox/Main \
|
---|
499 | src/VBox/Main/glue \
|
---|
500 | src/VBox/Main/hgcm \
|
---|
501 | src/VBox/Main/webservice \
|
---|
502 | src/VBox/Main/xml \
|
---|
503 | src/VBox/Main/darwin \
|
---|
504 | src/VBox/Main/linux \
|
---|
505 | src/VBox/Main/os2 \
|
---|
506 | src/VBox/Main/solaris \
|
---|
507 | src/VBox/Main/win \
|
---|
508 | src/VBox/Main/xpcom \
|
---|
509 | src/VBox/HostServices \
|
---|
510 | src/VBox/HostServices/SharedClipboard \
|
---|
511 | src/VBox/HostServices/SharedFolders \
|
---|
512 | src/VBox/HostServices/SharedInfoServices \
|
---|
513 | src/VBox/HostServices/SharedOpenGL \
|
---|
514 | src/VBox/HostDrivers/Support \
|
---|
515 | src/VBox/HostDrivers/Support/darwin \
|
---|
516 | src/VBox/HostDrivers/Support/freebsd \
|
---|
517 | src/VBox/HostDrivers/Support/l4 \
|
---|
518 | src/VBox/HostDrivers/Support/linux \
|
---|
519 | src/VBox/HostDrivers/Support/os2 \
|
---|
520 | src/VBox/HostDrivers/Support/solaris \
|
---|
521 | src/VBox/HostDrivers/Support/win \
|
---|
522 | src/VBox/HostDrivers/VBoxNetFlt \
|
---|
523 | src/VBox/HostDrivers/VBoxNetFlt/darwin \
|
---|
524 | src/VBox/HostDrivers/VBoxNetFlt/linux \
|
---|
525 | src/VBox/HostDrivers/VBoxNetFlt/solaris \
|
---|
526 | src/VBox/HostDrivers/VBoxNetFlt/win \
|
---|
527 | src/VBox/HostDrivers/VBoxNetNat \
|
---|
528 | src/VBox/HostDrivers/VBoxNetNat/darwin \
|
---|
529 | src/VBox/HostDrivers/VBoxNetNat/linux \
|
---|
530 | src/VBox/HostDrivers/VBoxNetNat/solaris \
|
---|
531 | src/VBox/HostDrivers/VBoxNetNat/win \
|
---|
532 | src/VBox/HostDrivers/VBoxNetAdp \
|
---|
533 | src/VBox/HostDrivers/VBoxNetAdp/darwin \
|
---|
534 | src/VBox/HostDrivers/VBoxNetAdp/linux \
|
---|
535 | src/VBox/HostDrivers/VBoxNetAdp/solaris \
|
---|
536 | src/VBox/HostDrivers/VBoxNetAdp/win \
|
---|
537 | src/VBox/HostDrivers/VBoxUSB \
|
---|
538 | src/VBox/HostDrivers/VBoxUSB/darwin \
|
---|
539 | src/VBox/HostDrivers/VBoxUSB/os2 \
|
---|
540 | src/VBox/HostDrivers/VBoxUSB/solaris \
|
---|
541 | src/VBox/HostDrivers/VBoxUSB/win \
|
---|
542 | src/VBox/HostDrivers/VBoxUSB/win/Device \
|
---|
543 | src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
|
---|
544 | src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
|
---|
545 | src/VBox/HostDrivers/VBoxUSB/win/Filter \
|
---|
546 | src/VBox/HostDrivers/VBoxUSB/win/Install \
|
---|
547 | src/VBox/HostDrivers/VBoxUSB/win/Monitor \
|
---|
548 | src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
|
---|
549 | src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
|
---|
550 | src/VBox/HostDrivers/VBoxUSB/win/usbd \
|
---|
551 | src/VBox/Storage
|
---|
552 |
|
---|
553 | # These must come first in order to make things look nice.
|
---|
554 | VBOX_CORE_DOXYFILE_INPUT_FIRST =\
|
---|
555 | $(PATH_ROOT)/doc/VBox-doc.c \
|
---|
556 | $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
|
---|
557 | $(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
|
---|
558 | $(PATH_ROOT)/src/VBox/VMM/VMMCodingGuidelines.cpp \
|
---|
559 | $(PATH_ROOT)/src/VBox/VMM/VMMDocsRawMode.cpp \
|
---|
560 | $(PATH_ROOT)/include/VBox/cdefs.h \
|
---|
561 | $(PATH_ROOT)/include/VBox/vmapi.h \
|
---|
562 | $(PATH_ROOT)/include/VBox/vmm.h \
|
---|
563 | $(PATH_ROOT)/include/VBox/cpum.h \
|
---|
564 | $(PATH_ROOT)/include/VBox/mm.h \
|
---|
565 | $(PATH_ROOT)/include/VBox/pgm.h \
|
---|
566 | $(PATH_ROOT)/include/VBox/selm.h \
|
---|
567 | $(PATH_ROOT)/include/VBox/trpm.h \
|
---|
568 | $(PATH_ROOT)/include/VBox/patm.h \
|
---|
569 | $(PATH_ROOT)/include/VBox/dbgf.h \
|
---|
570 | $(PATH_ROOT)/include/VBox/stam.h \
|
---|
571 | $(PATH_ROOT)/include/VBox/em.h \
|
---|
572 | $(PATH_ROOT)/include/VBox/pdm.h \
|
---|
573 | $(PATH_ROOT)/include/VBox/rem.h \
|
---|
574 | $(PATH_ROOT)/include/VBox/iom.h \
|
---|
575 | $(PATH_ROOT)/include/VBox/cfgm.h \
|
---|
576 | $(PATH_ROOT)/include/VBox/tm.h \
|
---|
577 | $(PATH_ROOT)/include/VBox/csam.h \
|
---|
578 | $(PATH_ROOT)/include/VBox/ssm.h \
|
---|
579 | $(PATH_ROOT)/include/VBox/hwaccm.h \
|
---|
580 | $(PATH_ROOT)/include/VBox/hwacc_svm.h \
|
---|
581 | $(PATH_ROOT)/include/VBox/hwacc_vmx.h \
|
---|
582 | \
|
---|
583 | $(PATH_ROOT)/src/VBox/VMM/CFGMInternal.h \
|
---|
584 | $(PATH_ROOT)/src/VBox/VMM/CPUMInternal.h \
|
---|
585 | $(PATH_ROOT)/src/VBox/VMM/DBGFInternal.h \
|
---|
586 | $(PATH_ROOT)/src/VBox/VMM/EMInternal.h \
|
---|
587 | $(PATH_ROOT)/src/VBox/VMM/HWACCMInternal.h \
|
---|
588 | $(PATH_ROOT)/src/VBox/VMM/IOMInternal.h \
|
---|
589 | $(PATH_ROOT)/src/VBox/VMM/MMInternal.h \
|
---|
590 | $(PATH_ROOT)/src/VBox/VMM/PDMInternal.h \
|
---|
591 | $(PATH_ROOT)/src/VBox/VMM/PGMInternal.h \
|
---|
592 | $(PATH_ROOT)/src/VBox/VMM/PATM/CSAMInternal.h \
|
---|
593 | $(PATH_ROOT)/src/VBox/VMM/PATM/PATMInternal.h \
|
---|
594 | $(PATH_ROOT)/src/VBox/VMM/REMInternal.h \
|
---|
595 | $(PATH_ROOT)/src/VBox/VMM/SELMInternal.h \
|
---|
596 | $(PATH_ROOT)/src/VBox/VMM/SSMInternal.h \
|
---|
597 | $(PATH_ROOT)/src/VBox/VMM/STAMInternal.h \
|
---|
598 | $(PATH_ROOT)/src/VBox/VMM/TMInternal.h \
|
---|
599 | $(PATH_ROOT)/src/VBox/VMM/TRPMInternal.h \
|
---|
600 | $(PATH_ROOT)/src/VBox/VMM/VMInternal.h \
|
---|
601 | $(PATH_ROOT)/src/VBox/VMM/VMMInternal.h \
|
---|
602 | \
|
---|
603 | $(PATH_ROOT)/include/VBox/vm.h \
|
---|
604 | \
|
---|
605 | $(PATH_ROOT)/include/VBox/sup.h \
|
---|
606 | $(PATH_ROOT)/include/VBox/vd.h \
|
---|
607 | $(PATH_ROOT)/include/VBox/types.h \
|
---|
608 | $(PATH_ROOT)/include/VBox/err.h \
|
---|
609 | $(PATH_ROOT)/include/VBox/x86.h \
|
---|
610 | $(PATH_ROOT)/include/VBox/cpumdis.h \
|
---|
611 | $(PATH_ROOT)/include/VBox/dbggui.h \
|
---|
612 | $(PATH_ROOT)/include/VBox/dis.h \
|
---|
613 | $(PATH_ROOT)/include/VBox/disopcode.h \
|
---|
614 | $(PATH_ROOT)/include/VBox/intnet.h \
|
---|
615 | $(PATH_ROOT)/include/VBox/settings.h \
|
---|
616 | $(PATH_ROOT)/include/VBox/pci.h \
|
---|
617 | $(PATH_ROOT)/include/VBox/scsi.h \
|
---|
618 | $(PATH_ROOT)/include/VBox/shflsvc.h \
|
---|
619 | $(PATH_ROOT)/include/VBox/hgcmsvc.h \
|
---|
620 | $(PATH_ROOT)/include/VBox/usb.h \
|
---|
621 | $(PATH_ROOT)/include/VBox/vusb.h \
|
---|
622 | \
|
---|
623 | $(PATH_ROOT)/include/VBox/log.h \
|
---|
624 | $(PATH_ROOT)/include/VBox/param.h \
|
---|
625 | $(PATH_ROOT)/include/VBox/version.h
|
---|
626 |
|
---|
627 | VBOX_CORE_DOXYFILE_INPUT := \
|
---|
628 | $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
|
---|
629 | $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/.asm))
|
---|
630 | VBOX_CORE_DOXYFILE_INPUT := \
|
---|
631 | $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
|
---|
632 | $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT))
|
---|
633 |
|
---|
634 | # And some some additional stuff.
|
---|
635 | VBOX_CORE_DOXYFILE_INPUT += \
|
---|
636 | $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
|
---|
637 | $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
|
---|
638 |
|
---|
639 |
|
---|
640 | VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
|
---|
641 | BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
|
---|
642 |
|
---|
643 | -include $(PATH_TARGET)/Doxyfile.Core.dep
|
---|
644 |
|
---|
645 | # Generate the Doxyfile
|
---|
646 | $(PATH_TARGET)/Doxyfile.Core: Doxyfile.Core \
|
---|
647 | $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
|
---|
648 | $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
|
---|
649 | | $$(dir $$@)
|
---|
650 | $(RM) -f $@ $@.tmp $(PATH_TARGET)/Doxyfile.Core.dep
|
---|
651 | $(CP) -f Doxyfile.Core $@.tmp
|
---|
652 | $(APPEND) $@.tmp
|
---|
653 | $(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
|
---|
654 | $(APPEND) $@.tmp "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
|
---|
655 | $(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
|
---|
656 | $(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
|
---|
657 | $(APPEND) $@.tmp
|
---|
658 | $(APPEND) $@.tmp "INPUT = $(VBOX_CORE_DOXYFILE_INPUT)"
|
---|
659 | $(APPEND) $@.tmp
|
---|
660 | $(APPEND) $@.tmp "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
|
---|
661 | $(APPEND) $@.tmp "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
|
---|
662 | $(APPEND) $@.tmp
|
---|
663 | $(MV) -f $@.tmp $@
|
---|
664 | @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
|
---|
665 | @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
|
---|
666 |
|
---|
667 | # Do the actual job.
|
---|
668 | $(PATH_TARGET)/docs.Core: $(PATH_TARGET)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) | $(VBOX_CORE_DOXYFILE_OUTPUT)/
|
---|
669 | $(RM) -f $(PATH_TARGET)/docs.Core
|
---|
670 | $(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
|
---|
671 | doxygen $(PATH_TARGET)/Doxyfile.Core
|
---|
672 | $(APPEND) $(PATH_TARGET)/docs.Core
|
---|
673 |
|
---|
674 |
|
---|
675 | #
|
---|
676 | # Alias for kmk_time. Used by both the additions and testsuite build setups.
|
---|
677 | #
|
---|
678 | VBOX_KMK_TIME = $(KBUILD_BIN_PATH)/kmk_time
|
---|
679 |
|
---|
680 |
|
---|
681 | #
|
---|
682 | # Build the additions, all of them.
|
---|
683 | #
|
---|
684 | # This is currently tailored (hardcoded) for the additions
|
---|
685 | # build box. Can make it pretty and configurable later.
|
---|
686 | #
|
---|
687 | # The fetching must be done in serial fashion, while the building
|
---|
688 | # should be more flexible wrt to -jN.
|
---|
689 | #
|
---|
690 | additions-fetch:
|
---|
691 | + $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
|
---|
692 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
|
---|
693 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
|
---|
694 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
|
---|
695 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
|
---|
696 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
|
---|
697 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
|
---|
698 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
|
---|
699 |
|
---|
700 |
|
---|
701 | ## @todo Currently combined solaris additions building assumes that amd64 is
|
---|
702 | # built first. The windows amd64 additions need some x86 files, so don't change
|
---|
703 | # the order of the windows builds. TODO: Split building and packing for these two VMs.
|
---|
704 | additions-build: \
|
---|
705 | additions-build-solaris.amd64 \
|
---|
706 | additions-build-solaris.x86 \
|
---|
707 | additions-build-win.x86 \
|
---|
708 | additions-build-win.amd64 \
|
---|
709 | additions-build-os2.x86 \
|
---|
710 | additions-build-linux.x86.combined
|
---|
711 |
|
---|
712 | VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
|
---|
713 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
714 | KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
|
---|
715 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
716 |
|
---|
717 | VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
|
---|
718 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
719 | KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
|
---|
720 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
721 |
|
---|
722 | # Automatically determine the additions build subdir name. Used for figuring
|
---|
723 | # out directory names inside the additions building VMs.
|
---|
724 | VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
|
---|
725 |
|
---|
726 | # When building in parallel on a Windows host, make sure we finish the host
|
---|
727 | # bit before kicking off any UNIX guest or we'll run into file sharing issues.
|
---|
728 | ifeq ($(KBUILD_TARGET),win)
|
---|
729 | VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = additions-build-win.x86 additions-build-win.amd64
|
---|
730 | else
|
---|
731 | VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
|
---|
732 | endif
|
---|
733 |
|
---|
734 | # ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
|
---|
735 | additions-build-win.amd64: additions-build-win.x86
|
---|
736 | ifeq ($(KBUILD_TARGET),win)
|
---|
737 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
738 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
|
---|
739 | else
|
---|
740 | $(call MSG_L1,Building Windows/amd64 additions)
|
---|
741 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.5 " echo $@ && cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing "
|
---|
742 | endif
|
---|
743 |
|
---|
744 | additions-build-win.x86:
|
---|
745 | ifeq ($(KBUILD_TARGET),win)
|
---|
746 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
747 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
|
---|
748 | else
|
---|
749 | $(call MSG_L1,Building Windows/x86 additions)
|
---|
750 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.5 " echo $@ && cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86) all packing"
|
---|
751 | endif
|
---|
752 |
|
---|
753 | # ASSUMES the 64-bit edition are built first. This also serializes VM access.
|
---|
754 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
755 | additions-build-solaris.amd64:
|
---|
756 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
757 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
|
---|
758 |
|
---|
759 | additions-build-solaris.x86: additions-build-solaris.amd64
|
---|
760 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
761 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
|
---|
762 |
|
---|
763 | else
|
---|
764 | additions-build-solaris.rsync-into-vm: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
|
---|
765 | $(VBOX_KMK_TIME) rsync -a --delete --delete-excluded --exclude .svn --exclude FetchDir --exclude tinderclient.log --exclude win.amd64 --exclude win.x86 . 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
|
---|
766 |
|
---|
767 | additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
|
---|
768 | $(call MSG_L1,Building Solaris/amd64 additions)
|
---|
769 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.4 " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing"
|
---|
770 | $(call MSG_L1,Building Solaris/x86 additions)
|
---|
771 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.4 " echo $@/x86 && cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1"
|
---|
772 |
|
---|
773 | additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
|
---|
774 | $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
|
---|
775 | $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
|
---|
776 |
|
---|
777 | .NOTPARALLEL: additions-build-solaris.rsync-out-of-vm additions-build-solaris.rsync-into-vm
|
---|
778 | .PHONY: additions-build-solaris.rsync-out-of-vm additions-build-solaris.rsync-into-vm additions-build-solaris.build-it
|
---|
779 |
|
---|
780 | additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
|
---|
781 | additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
|
---|
782 | endif
|
---|
783 |
|
---|
784 | additions-build-os2.x86:
|
---|
785 | #ifeq ($(KBUILD_TARGET),os2)
|
---|
786 | # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
787 | # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
|
---|
788 | #else
|
---|
789 | # $(VBOX_KMK_TIME) ssh vbox@192.168.27.3 " cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
|
---|
790 | #endif
|
---|
791 |
|
---|
792 | additions-build-linux.amd64: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
|
---|
793 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
|
---|
794 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
795 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
|
---|
796 | else
|
---|
797 | $(call MSG_L1,Building Linux/amd64 additions)
|
---|
798 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.12 " echo $@ && cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1"
|
---|
799 | endif
|
---|
800 |
|
---|
801 | additions-build-linux.x86: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
|
---|
802 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
|
---|
803 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
804 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
|
---|
805 | else
|
---|
806 | $(call MSG_L1,Building Linux/x86 additions)
|
---|
807 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.2 " echo $@ && cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1"
|
---|
808 | endif
|
---|
809 |
|
---|
810 | # Combined Linux Additions .run package. This depends on the archives
|
---|
811 | # created during packing by the archetecture-specific builds.
|
---|
812 | additions-build-linux.x86.combined: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST) additions-build-linux.x86 additions-build-linux.amd64
|
---|
813 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
|
---|
814 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
815 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
|
---|
816 | else
|
---|
817 | $(call MSG_L1,Building Linux/x86 additions)
|
---|
818 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.2 " echo $@ && cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1"
|
---|
819 | endif
|
---|
820 |
|
---|
821 |
|
---|
822 | additions-packing:
|
---|
823 | + $(KMK) VBOX_ONLY_ADDITIONS=1 \
|
---|
824 | VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
|
---|
825 | VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
|
---|
826 | VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
|
---|
827 | VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
|
---|
828 | VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
|
---|
829 | VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
|
---|
830 | VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
|
---|
831 | VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
|
---|
832 | VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
|
---|
833 | VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
|
---|
834 | -C src/VBox/Additions \
|
---|
835 | $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.iso
|
---|
836 |
|
---|
837 | .PHONY: \
|
---|
838 | additions-build-win.x86 \
|
---|
839 | additions-build-win.amd64 \
|
---|
840 | additions-build-solaris.amd64 \
|
---|
841 | additions-build-solaris.x86 \
|
---|
842 | additions-build-os2.x86 \
|
---|
843 | additions-build-linux.amd64 \
|
---|
844 | additions-build-linux.x86 \
|
---|
845 | additions-build-linux.x86.combined \
|
---|
846 | additions-packing
|
---|
847 |
|
---|
848 |
|
---|
849 | #
|
---|
850 | # Build the extension packs, all of them.
|
---|
851 | #
|
---|
852 | # This is tailored (hardcoded) for the extension pack build box.
|
---|
853 | #
|
---|
854 | # The fetching must be done in serial fashion, while the building should be
|
---|
855 | # more flexible wrt to -jN.
|
---|
856 | #
|
---|
857 | extpacks-fetch:
|
---|
858 | + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
|
---|
859 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
|
---|
860 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
|
---|
861 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
|
---|
862 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86 BUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
|
---|
863 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
|
---|
864 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
|
---|
865 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
|
---|
866 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
|
---|
867 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
|
---|
868 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
|
---|
869 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
|
---|
870 |
|
---|
871 |
|
---|
872 | extpacks-build: \
|
---|
873 | extpacks-build-solaris.amd64 \
|
---|
874 | extpacks-build-solaris.x86 \
|
---|
875 | extpacks-build-linux.x86 \
|
---|
876 | extpacks-build-linux.amd64 \
|
---|
877 | extpacks-build-win.x86 \
|
---|
878 | extpacks-build-win.amd64
|
---|
879 | # extpacks-build-darwin.x86
|
---|
880 | # extpacks-build-darwin.amd64
|
---|
881 | # extpacks-build-freebsd.x86
|
---|
882 | # extpacks-build-freebsd.amd64
|
---|
883 | # extpacks-build-os2.x86
|
---|
884 |
|
---|
885 | VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 \
|
---|
886 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
887 | KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
|
---|
888 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
889 |
|
---|
890 | VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 \
|
---|
891 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
892 | KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
|
---|
893 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
894 |
|
---|
895 | # Automatically determine the extpack build subdir name. Used for figuring out
|
---|
896 | # directory names inside the extension pack building VMs.
|
---|
897 | VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
|
---|
898 |
|
---|
899 | # When building in parallel on a Windows host, make sure we finish the host
|
---|
900 | # bit before kicking off any UNIX guest or we'll run into file sharing issues.
|
---|
901 | ifeq ($(KBUILD_TARGET),win)
|
---|
902 | VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
|
---|
903 | else
|
---|
904 | VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
|
---|
905 | endif
|
---|
906 |
|
---|
907 | extpacks-build-win.amd64:
|
---|
908 | ifeq ($(KBUILD_TARGET),win)
|
---|
909 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
910 | else
|
---|
911 | $(call MSG_L1,Building Windows/amd64 extension packs)
|
---|
912 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.5 " echo $@ && cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
|
---|
913 | endif
|
---|
914 |
|
---|
915 | extpacks-build-win.x86:
|
---|
916 | ifeq ($(KBUILD_TARGET),win)
|
---|
917 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
918 | else
|
---|
919 | $(call MSG_L1,Building Windows/x86 extension packs)
|
---|
920 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.5 " echo $@ && cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.x86) all"
|
---|
921 | endif
|
---|
922 |
|
---|
923 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
924 | extpacks-build-solaris.amd64:
|
---|
925 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
926 |
|
---|
927 | extpacks-build-solaris.x86: extpacks-build-solaris.amd64
|
---|
928 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
929 |
|
---|
930 | else
|
---|
931 | # Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
|
---|
932 | extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
933 | $(VBOX_KMK_TIME) rsync -a --delete --delete-excluded --exclude .svn --exclude FetchDir --exclude tinderclient.log --exclude win.amd64 --exclude win.x86 . 192.168.27.4:/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
|
---|
934 |
|
---|
935 | extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
|
---|
936 | $(call MSG_L1,Building Solaris/amd64 extension packs)
|
---|
937 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.4 " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
|
---|
938 | $(call MSG_L1,Building Solaris/x86 extension packs)
|
---|
939 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.4 " echo $@/x86 && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
|
---|
940 |
|
---|
941 | extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
|
---|
942 | $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
|
---|
943 | $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
|
---|
944 |
|
---|
945 | .NOTPARALLEL: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm
|
---|
946 | .PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
|
---|
947 |
|
---|
948 | extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
|
---|
949 | extpacks-build-solaris.x86: extpacks-build-solaris.rsync-out-of-vm
|
---|
950 | endif
|
---|
951 |
|
---|
952 | extpacks-build-os2.x86:
|
---|
953 | #ifeq ($(KBUILD_TARGET),os2)
|
---|
954 | # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
955 | #else
|
---|
956 | # $(VBOX_KMK_TIME) ssh vbox@192.168.27.3 " cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) "
|
---|
957 | #endif
|
---|
958 |
|
---|
959 | extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
960 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
|
---|
961 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
962 | else
|
---|
963 | $(call MSG_L1,Building Linux/amd64 extension packs)
|
---|
964 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.12 " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
|
---|
965 | endif
|
---|
966 |
|
---|
967 | extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
968 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
|
---|
969 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
970 | else
|
---|
971 | $(call MSG_L1,Building Linux/x86 extension packs)
|
---|
972 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.2 " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
|
---|
973 | endif
|
---|
974 |
|
---|
975 | extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
976 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
|
---|
977 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
978 | else
|
---|
979 | $(call MSG_L1,Building FreeBSD/amd64 extension packs)
|
---|
980 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.14 " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
|
---|
981 | endif
|
---|
982 |
|
---|
983 | extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
984 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
|
---|
985 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
986 | else
|
---|
987 | $(call MSG_L1,Building FreeBSD/x86 extension packs)
|
---|
988 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.4 " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
|
---|
989 | endif
|
---|
990 |
|
---|
991 | extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
992 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
|
---|
993 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
994 | else
|
---|
995 | $(call MSG_L1,Building Darwin/amd64 extension packs)
|
---|
996 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.15 " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
|
---|
997 | endif
|
---|
998 |
|
---|
999 | extpacks-build-darwin.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
|
---|
1000 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
|
---|
1001 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
|
---|
1002 | else
|
---|
1003 | $(call MSG_L1,Building Darwin/x86 extension packs)
|
---|
1004 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.5 " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
|
---|
1005 | endif
|
---|
1006 |
|
---|
1007 |
|
---|
1008 | extpacks-packing:
|
---|
1009 | + $(KMK) VBOX_ONLY_EXTPACKS=1 \
|
---|
1010 | VBOX_WITH_EXTPACK_OS_ARCHS="linux.amd64 linux.x86 solaris.amd64 solaris.x86 win.amd64 win.x86" \
|
---|
1011 | packing
|
---|
1012 | # +++ darwin.amd64 darwin.x86 freebsd.amd64 freebsd.x86 os2.x86 ^^^
|
---|
1013 |
|
---|
1014 | .PHONY: \
|
---|
1015 | extpacks-build-win.x86 \
|
---|
1016 | extpacks-build-win.amd64 \
|
---|
1017 | extpacks-build-solaris.amd64 \
|
---|
1018 | extpacks-build-solaris.x86 \
|
---|
1019 | extpacks-build-os2.x86 \
|
---|
1020 | extpacks-build-linux.amd64 \
|
---|
1021 | extpacks-build-linux.x86 \
|
---|
1022 | extpacks-build-freebsd.amd64 \
|
---|
1023 | extpacks-build-freebsd.x86 \
|
---|
1024 | extpacks-build-darwin.amd64 \
|
---|
1025 | extpacks-build-darwin.x86 \
|
---|
1026 | extpacks-packing
|
---|
1027 |
|
---|
1028 |
|
---|
1029 | #
|
---|
1030 | # Build the test suite, all of it.
|
---|
1031 | #
|
---|
1032 | # This is currently tailored (hardcoded) for the additions build box just like
|
---|
1033 | # the additions build above, which it in fact is a copy of.
|
---|
1034 | #
|
---|
1035 | testsuite-fetch:
|
---|
1036 | + $(KMK) -C tools fetch VBOX_ONLY_TESTSUITE=1
|
---|
1037 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin VBOX_ONLY_TESTSUITE=1
|
---|
1038 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin BUILD_TARGET_ARCH=x86 BUILD_TARGET=darwin VBOX_ONLY_TESTSUITE=1
|
---|
1039 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux VBOX_ONLY_TESTSUITE=1
|
---|
1040 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux VBOX_ONLY_TESTSUITE=1
|
---|
1041 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2 VBOX_ONLY_TESTSUITE=1
|
---|
1042 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris VBOX_ONLY_TESTSUITE=1
|
---|
1043 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris VBOX_ONLY_TESTSUITE=1
|
---|
1044 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win VBOX_ONLY_TESTSUITE=1
|
---|
1045 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win VBOX_ONLY_TESTSUITE=1
|
---|
1046 |
|
---|
1047 |
|
---|
1048 | testsuite-build: \
|
---|
1049 | testsuite-build-solaris.amd64 \
|
---|
1050 | testsuite-build-solaris.x86 \
|
---|
1051 | testsuite-build-win.x86 \
|
---|
1052 | testsuite-build-win.amd64 \
|
---|
1053 | testsuite-build-os2.x86 \
|
---|
1054 | testsuite-build-linux.amd64 \
|
---|
1055 | testsuite-build-linux.x86
|
---|
1056 |
|
---|
1057 | VBOX_TESTSUITE_BUILD.amd64 = VBOX_ONLY_TESTSUITE=1 \
|
---|
1058 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
1059 | KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
|
---|
1060 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1061 |
|
---|
1062 | VBOX_TESTSUITE_BUILD.x86 = VBOX_ONLY_TESTSUITE=1 \
|
---|
1063 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
1064 | KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
|
---|
1065 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
1066 |
|
---|
1067 | # Automatically determine the testsuite build subdir name. Used for figuring
|
---|
1068 | # out directory names inside the test suite building VMs.
|
---|
1069 | VBOX_TESTSUITE_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
|
---|
1070 |
|
---|
1071 | # When building in parallel on a Windows host, make sure we finish the host
|
---|
1072 | # bit before kicking off any UNIX guest or we'll run into file sharing issues.
|
---|
1073 | ifeq ($(KBUILD_TARGET),win)
|
---|
1074 | VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST = testsuite-build-win.x86 testsuite-build-win.amd64
|
---|
1075 | else
|
---|
1076 | VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST =
|
---|
1077 | endif
|
---|
1078 |
|
---|
1079 | # ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
|
---|
1080 | testsuite-build-win.amd64: testsuite-build-win.x86
|
---|
1081 | ifeq ($(KBUILD_TARGET),win)
|
---|
1082 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1083 | else
|
---|
1084 | $(call MSG_L1,Building Windows/amd64 testsuite)
|
---|
1085 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.5 " echo $@ && cd e:/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_TESTSUITE_BUILD.amd64) all "
|
---|
1086 | endif
|
---|
1087 |
|
---|
1088 | testsuite-build-win.x86:
|
---|
1089 | ifeq ($(KBUILD_TARGET),win)
|
---|
1090 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1091 | else
|
---|
1092 | $(call MSG_L1,Building Windows/x86 testsuite)
|
---|
1093 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.5 " echo $@ && cd e:/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_TESTSUITE_BUILD.x86) all"
|
---|
1094 | endif
|
---|
1095 |
|
---|
1096 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
1097 | testsuite-build-solaris.amd64:
|
---|
1098 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1099 |
|
---|
1100 | testsuite-build-solaris.x86:
|
---|
1101 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1102 |
|
---|
1103 | else
|
---|
1104 | testsuite-build-solaris.rsync-into-vm: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
|
---|
1105 | $(VBOX_KMK_TIME) rsync -a --delete --delete-excluded --exclude .svn --exclude FetchDir --exclude tinderclient.log --exclude win.amd64 --exclude win.x86 . 192.168.27.4:/mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)
|
---|
1106 |
|
---|
1107 | testsuite-build-solaris.build-it: testsuite-build-solaris.rsync-into-vm
|
---|
1108 | $(call MSG_L1,Building Solaris/amd64 testsuite)
|
---|
1109 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.4 " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
|
---|
1110 | $(call MSG_L1,Building Solaris/x86 testsuite)
|
---|
1111 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.4 " echo $@/x86 && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all "
|
---|
1112 |
|
---|
1113 | testsuite-build-solaris.rsync-out-of-vm: testsuite-build-solaris.build-it
|
---|
1114 | $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)/out/solaris.x86 out/
|
---|
1115 | $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
|
---|
1116 |
|
---|
1117 | .NOTPARALLEL: testsuite-build-solaris.rsync-out-of-vm testsuite-build-solaris.rsync-into-vm
|
---|
1118 | .PHONY: testsuite-build-solaris.rsync-out-of-vm testsuite-build-solaris.rsync-into-vm testsuite-build-solaris.build-it
|
---|
1119 |
|
---|
1120 | testsuite-build-solaris.amd64: testsuite-build-solaris.rsync-out-of-vm
|
---|
1121 | testsuite-build-solaris.x86: testsuite-build-solaris.rsync-out-of-vm
|
---|
1122 | endif
|
---|
1123 |
|
---|
1124 | testsuite-build-os2.x86:
|
---|
1125 | #ifeq ($(KBUILD_TARGET),os2)
|
---|
1126 | # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1127 | #else
|
---|
1128 | # $(VBOX_KMK_TIME) ssh vbox@192.168.27.3 " cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) "
|
---|
1129 | #endif
|
---|
1130 |
|
---|
1131 | testsuite-build-linux.amd64: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
|
---|
1132 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
|
---|
1133 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.amd64) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1134 | else
|
---|
1135 | $(call MSG_L1,Building Linux/amd64 testsuite)
|
---|
1136 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.12 " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.amd64) all"
|
---|
1137 | endif
|
---|
1138 |
|
---|
1139 | testsuite-build-linux.x86: $(VBOX_TESTSUITE_BUILD_WIN_HOST_FIRST)
|
---|
1140 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
|
---|
1141 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_TESTSUITE_BUILD.x86) all $(VBOX_TESTSUITE_HOST_BUILD_TWEAK)
|
---|
1142 | else
|
---|
1143 | $(call MSG_L1,Building Linux/x86 testsuite)
|
---|
1144 | $(VBOX_KMK_TIME) ssh vbox@192.168.27.2 " echo $@ && cd /mnt/tinderbox/$(VBOX_TESTSUITE_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_TESTSUITE_BUILD.x86) all"
|
---|
1145 | endif
|
---|
1146 |
|
---|
1147 |
|
---|
1148 | testsuite-packing:
|
---|
1149 | + $(KMK) VBOX_ONLY_TESTSUITE=1 \
|
---|
1150 | VBOX_WITH_TESTSUITE_PACKING.darwin.amd64= \
|
---|
1151 | VBOX_WITH_TESTSUITE_PACKING.darwin.x86= \
|
---|
1152 | VBOX_WITH_TESTSUITE_PACKING.freebsd.amd64= \
|
---|
1153 | VBOX_WITH_TESTSUITE_PACKING.freebsd.x86= \
|
---|
1154 | VBOX_WITH_TESTSUITE_PACKING.linux.amd64=1 \
|
---|
1155 | VBOX_WITH_TESTSUITE_PACKING.linux.x86=1 \
|
---|
1156 | VBOX_WITH_TESTSUITE_PACKING.os2.x86= \
|
---|
1157 | VBOX_WITH_TESTSUITE_PACKING.solaris.amd64=1 \
|
---|
1158 | VBOX_WITH_TESTSUITE_PACKING.solaris.x86=1 \
|
---|
1159 | VBOX_WITH_TESTSUITE_PACKING.win.amd64=1 \
|
---|
1160 | VBOX_WITH_TESTSUITE_PACKING.win.x86=1 \
|
---|
1161 | -C src/VBox/Testsuite \
|
---|
1162 | $(PATH_OUT)/VBoxTestSuite.zip
|
---|
1163 |
|
---|
1164 | .PHONY: \
|
---|
1165 | testsuite-build-win.x86 \
|
---|
1166 | testsuite-build-win.amd64 \
|
---|
1167 | testsuite-build-solaris.amd64 \
|
---|
1168 | testsuite-build-solaris.x86 \
|
---|
1169 | testsuite-build-os2.x86 \
|
---|
1170 | testsuite-build-linux.amd64 \
|
---|
1171 | testsuite-build-linux.x86 \
|
---|
1172 | testsuite-packing
|
---|
1173 |
|
---|
1174 |
|
---|
1175 | #
|
---|
1176 | # Build the EFI firmware, all of it.
|
---|
1177 | #
|
---|
1178 | # Mainly hooks right now, maybe we need them later.
|
---|
1179 | #
|
---|
1180 | efi-fetch:
|
---|
1181 |
|
---|
1182 | efi-build: $(VBOX_VERSION_HEADER)
|
---|
1183 | $(PATH_ROOT)/webtools/tinderbox/client/efi-build.sh
|
---|
1184 |
|
---|
1185 | efi-packing:
|
---|
1186 |
|
---|
1187 | #
|
---|
1188 | # Generate VirtualBox-OSE-x.x.x.tar.bz2 (OSE) tarballs for distribution
|
---|
1189 | # - includes kBuild
|
---|
1190 | # - must be executed on an OSE checkout
|
---|
1191 | #
|
---|
1192 |
|
---|
1193 | # the path where to store the tarball
|
---|
1194 | TARBALLPATH ?= $(abspath $(PATH_ROOT)/..)
|
---|
1195 | # the root directory inside the tarball
|
---|
1196 | TARBALLROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
|
---|
1197 | # the name of the tarball file
|
---|
1198 | TARBALLNAME ?= VirtualBox-$(VBOX_VERSION_STRING).tar.bz2
|
---|
1199 | snapshot-ose:
|
---|
1200 | @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
|
---|
1201 | @if [ -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
|
---|
1202 | echo; \
|
---|
1203 | echo "Found RDP stuff, refused to build OSE tarball!"; \
|
---|
1204 | echo; \
|
---|
1205 | exit 1; \
|
---|
1206 | fi; \
|
---|
1207 | if [ -z "$(VBOX_OSE)" ]; then \
|
---|
1208 | echo; \
|
---|
1209 | echo "Please do 'kmk snapshot-ose VBOX_OSE=1'"; \
|
---|
1210 | echo; \
|
---|
1211 | exit 1; \
|
---|
1212 | fi
|
---|
1213 | $(QUIET)$(MKDIR) -p $(TARBALLPATH)
|
---|
1214 | $(QUIET)$(RM) -f $(TARBALLPATH)/$(TARBALLROOT)
|
---|
1215 | $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
|
---|
1216 | $(QUIET)tar -cjh --owner 0 --group 0 --totals \
|
---|
1217 | --exclude=.svn \
|
---|
1218 | --exclude=$(TARBALLROOT)/out \
|
---|
1219 | --exclude=$(TARBALLROOT)/env.sh \
|
---|
1220 | --exclude=$(TARBALLROOT)/configure.log \
|
---|
1221 | --exclude=$(TARBALLROOT)/build.log \
|
---|
1222 | --exclude=$(TARBALLROOT)/AutoConfig.kmk \
|
---|
1223 | --exclude=$(TARBALLROOT)/LocalConfig.kmk \
|
---|
1224 | --exclude=$(TARBALLROOT)/prebuild \
|
---|
1225 | -C $(TARBALLPATH) \
|
---|
1226 | -f $(TARBALLPATH)/$(TARBALLNAME) \
|
---|
1227 | $(TARBALLROOT)
|
---|
1228 | $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
|
---|
1229 |
|
---|
1230 |
|
---|
1231 | #
|
---|
1232 | # Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
|
---|
1233 | # - includes kBuild
|
---|
1234 | # - must be executed on an PUEL checkout
|
---|
1235 | #
|
---|
1236 |
|
---|
1237 | # the path where to store the zip archive
|
---|
1238 | ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
|
---|
1239 | # the root directory inside the zip archive
|
---|
1240 | ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
|
---|
1241 | # the name of the zip archive
|
---|
1242 | ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
|
---|
1243 | snapshot-puel:
|
---|
1244 | @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
|
---|
1245 | @if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
|
---|
1246 | echo; \
|
---|
1247 | echo "Did not find RDP stuff, is this an OSE branch?"; \
|
---|
1248 | echo; \
|
---|
1249 | exit 1; \
|
---|
1250 | fi
|
---|
1251 | @if [ -z "$(PASSWORD)" ]; then \
|
---|
1252 | echo; \
|
---|
1253 | echo "Please specify a password with PASSWORD=..."; \
|
---|
1254 | echo; \
|
---|
1255 | exit 1; \
|
---|
1256 | fi
|
---|
1257 | $(QUIET)$(MKDIR) -p $(ZIPPATH)
|
---|
1258 | $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
|
---|
1259 | $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
|
---|
1260 | $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
|
---|
1261 | $(QUIET)(cd $(ZIPPATH); 7z a \
|
---|
1262 | -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
|
---|
1263 | -xr!.svn \
|
---|
1264 | -i!$(ZIPROOT)/Config.kmk \
|
---|
1265 | -i!$(ZIPROOT)/Doxyfile.Core \
|
---|
1266 | -i!$(ZIPROOT)/Makefile.kmk \
|
---|
1267 | -i!$(ZIPROOT)/configure \
|
---|
1268 | -i!$(ZIPROOT)/configure.vbs \
|
---|
1269 | -i!$(ZIPROOT)/doc \
|
---|
1270 | -i!$(ZIPROOT)/include \
|
---|
1271 | -i!$(ZIPROOT)/kBuild \
|
---|
1272 | -i!$(ZIPROOT)/src \
|
---|
1273 | -i!$(ZIPROOT)/tools/env.sh \
|
---|
1274 | -i!$(ZIPROOT)/tools/linux.x86/bin/* \
|
---|
1275 | -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
|
---|
1276 | -x!$(ZIPROOT)/doc/Devices \
|
---|
1277 | -x!$(ZIPROOT)/doc/\*pdf \
|
---|
1278 | -x!$(ZIPROOT)/doc/L4VM \
|
---|
1279 | -x!$(ZIPROOT)/doc/VMM \
|
---|
1280 | -x!$(ZIPROOT)/doc/licenses_old \
|
---|
1281 | -x!$(ZIPROOT)/doc/manual/de_DE \
|
---|
1282 | -x!$(ZIPROOT)/doc/manual/fr_FR \
|
---|
1283 | -x!$(ZIPROOT)/src/tests \
|
---|
1284 | -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
|
---|
1285 | -x!$(ZIPROOT)/src/VBox/Installer/AMI \
|
---|
1286 | -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
|
---|
1287 | -x!$(ZIPROOT)/src/VBox/Installer/Encore \
|
---|
1288 | -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
|
---|
1289 | -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
|
---|
1290 | $(ZIPPATH)/$(ZIPNAME))
|
---|
1291 | $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
|
---|
1292 |
|
---|
1293 |
|
---|
1294 | #
|
---|
1295 | # Generate ALL the rules.
|
---|
1296 | #
|
---|
1297 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
1298 |
|
---|
1299 |
|
---|
1300 | #
|
---|
1301 | # Generate x86.mac and err.mac.
|
---|
1302 | #
|
---|
1303 | incs:
|
---|
1304 | $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
|
---|
1305 | $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
|
---|
1306 | $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
|
---|
1307 | $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
|
---|
1308 | $(SED) -f include/VBox/various.sed --output include/VBox/x86.mac include/VBox/x86.h
|
---|
1309 | $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
|
---|
1310 | $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
|
---|
1311 |
|
---|
1312 |
|
---|
1313 | #
|
---|
1314 | # Generate Visual SlickEdit tagging #defines.
|
---|
1315 | #
|
---|
1316 | vslick.h: include/VBox/cdefs.h include/iprt/cdefs.h $(MAKEFILE)
|
---|
1317 | $(RM) -f -- $@ $@.tmp $@.tmp2 $@.tmp3
|
---|
1318 | $(APPEND) $@.tmp '// autogenerated'
|
---|
1319 | @$(APPEND) $@.tmp '#define IN_SLICKEDIT '
|
---|
1320 | @$(APPEND) $@.tmp '#define RT_C_DECLS_BEGIN '
|
---|
1321 | @$(APPEND) $@.tmp '#define RT_C_DECLS_END '
|
---|
1322 | @$(APPEND) $@.tmp '#define RT_NO_THROW '
|
---|
1323 | @$(APPEND) $@.tmp '#define RT_THROW(type) throw(type)'
|
---|
1324 |
|
---|
1325 | @$(APPEND) $@.tmp '#define ATL_NO_VTABLE '
|
---|
1326 | @$(APPEND) $@.tmp '#define BEGIN_COM_MAP(a) '
|
---|
1327 | @$(APPEND) $@.tmp '#define COM_INTERFACE_ENTRY(a) '
|
---|
1328 | @$(APPEND) $@.tmp '#define COM_INTERFACE_ENTRY2(a,b) '
|
---|
1329 | @$(APPEND) $@.tmp '#define COM_INTERFACE_ENTRY3(a,b,c) '
|
---|
1330 | @$(APPEND) $@.tmp '#define COM_INTERFACE_ENTRY4(a,b,c,d) '
|
---|
1331 | @$(APPEND) $@.tmp '#define END_COM_MAP(a) '
|
---|
1332 |
|
---|
1333 | @$(APPEND) $@.tmp '#define COM_DECL_READONLY_ENUM_AND_COLLECTION(a) '
|
---|
1334 | @$(APPEND) $@.tmp '#define COMGETTER(n) n '
|
---|
1335 | @$(APPEND) $@.tmp '#define COMSETTER(n) n '
|
---|
1336 | @$(APPEND) $@.tmp '#define ComSafeArrayIn(t,a) t a[] '
|
---|
1337 | @$(APPEND) $@.tmp '#define ComSafeArrayOut(t,a) t * a[] '
|
---|
1338 | @$(APPEND) $@.tmp '#define DECLARE_CLASSFACTORY(a) '
|
---|
1339 | @$(APPEND) $@.tmp '#define DECLARE_CLASSFACTORY_SINGLETON(a) '
|
---|
1340 | @$(APPEND) $@.tmp '#define DECLARE_REGISTRY_RESOURCEID(a) '
|
---|
1341 | @$(APPEND) $@.tmp '#define DECLARE_NOT_AGGREGATABLE(a) '
|
---|
1342 | @$(APPEND) $@.tmp '#define DECLARE_PROTECT_FINAL_CONSTRUCT(a) '
|
---|
1343 | @$(APPEND) $@.tmp '#define DECLARE_EMPTY_CTOR_DTOR(a) a(); ~a();'
|
---|
1344 | @$(APPEND) $@.tmp '#define DEFINE_EMPTY_CTOR_DTOR(a) a::a() {} a::~a() {}'
|
---|
1345 | @$(APPEND) $@.tmp '#define NS_DECL_ISUPPORTS '
|
---|
1346 | @$(APPEND) $@.tmp '#define NS_IMETHOD virtual nsresult '
|
---|
1347 | @$(APPEND) $@.tmp '#define NS_IMETHOD_(type) virtual type '
|
---|
1348 | @$(APPEND) $@.tmp '#define NS_IMETHODIMP nsresult '
|
---|
1349 | @$(APPEND) $@.tmp '#define NS_IMETHODIMP_(type) type '
|
---|
1350 | @$(APPEND) $@.tmp '#define PARSERS_EXPORT '
|
---|
1351 | if1of ($(KBUILD_HOST),win)
|
---|
1352 | @$(APPEND) $@.tmp '#define COM_STRUCT_OR_CLASS(I) struct I '
|
---|
1353 | @$(APPEND) $@.tmp '#define STDMETHOD(m) virtual HRESULT m '
|
---|
1354 | @$(APPEND) $@.tmp '#define STDMETHOD_(type,m) virtual type m '
|
---|
1355 | @$(APPEND) $@.tmp '#define STDMETHODIMP HRESULT '
|
---|
1356 | @$(APPEND) $@.tmp '#define STDMETHODIMP_(type) type '
|
---|
1357 | else
|
---|
1358 | @$(APPEND) $@.tmp '#define COM_STRUCT_OR_CLASS(I) class I '
|
---|
1359 | @$(APPEND) $@.tmp '#define STDMETHOD(m) virtual nsresult m '
|
---|
1360 | @$(APPEND) $@.tmp '#define STDMETHOD_(type,m) virtual type m '
|
---|
1361 | @$(APPEND) $@.tmp '#define STDMETHODIMP nsresult '
|
---|
1362 | @$(APPEND) $@.tmp '#define STDMETHODIMP_(type) type '
|
---|
1363 | endif
|
---|
1364 | @$(APPEND) $@.tmp '#define VBOX_SCRIPTABLE(a) public a '
|
---|
1365 | @$(APPEND) $@.tmp '#define VBOX_SCRIPTABLE_IMPL(a) '
|
---|
1366 | @$(APPEND) $@.tmp '#define VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(a) '
|
---|
1367 |
|
---|
1368 | @$(APPEND) $@.tmp '#define CTX_SUFF(var) var##R3 '
|
---|
1369 | @$(APPEND) $@.tmp '#define CTXAllSUFF(var) var##R3 '
|
---|
1370 | @$(APPEND) $@.tmp '#define CTXSUFF(var) var##HC '
|
---|
1371 | @$(APPEND) $@.tmp '#define OTHERCTXSUFF(var) var##GC '
|
---|
1372 | @$(APPEND) $@.tmp '#define CTXALLMID(first, last) first##R3##last '
|
---|
1373 | @$(APPEND) $@.tmp '#define CTXMID(first, last) first##HC##last '
|
---|
1374 | @$(APPEND) $@.tmp '#define OTHERCTXMID(first, last) first##GC##last '
|
---|
1375 | @$(APPEND) $@.tmp '#define CTXTYPE(GCType, R3Type, R0Type) R3Type '
|
---|
1376 | @$(APPEND) $@.tmp '#define RCTYPE(RCType, HCType) RCType '
|
---|
1377 | @$(APPEND) $@.tmp '#define GCTYPE(GCType, HCType) GCType '
|
---|
1378 | @$(APPEND) $@.tmp '#define RCPTRTYPE(RCType) RCType '
|
---|
1379 | @$(APPEND) $@.tmp '#define GCPTRTYPE(GCType) GCType '
|
---|
1380 | @$(APPEND) $@.tmp '#define HCPTRTYPE(HCType) HCType '
|
---|
1381 | @$(APPEND) $@.tmp '#define R3R0PTRTYPE(HCType) HCType '
|
---|
1382 | @$(APPEND) $@.tmp '#define R0PTRTYPE(R3Type) R3Type '
|
---|
1383 | @$(APPEND) $@.tmp '#define R3PTRTYPE(R0Type) R0Type '
|
---|
1384 | @$(APPEND) $@.tmp '#define RT_SRC_POS __FILE__, __LINE__, __PRETTY_FUNCTION__ '
|
---|
1385 | @$(APPEND) $@.tmp '#define RT_SRC_POS_DECL const char *pszFile, unsigned iLine, const char *pszFunction '
|
---|
1386 | @$(APPEND) $@.tmp '#define RT_SRC_POS_ARGS pszFile, iLine, pszFunction '
|
---|
1387 | @$(APPEND) $@.tmp '#define RTCALL'
|
---|
1388 | @$(APPEND) $@.tmp '#define DECLINLINE(type) inline type '
|
---|
1389 | @$(APPEND) $@.tmp '#define DECL_FORCE_INLINE(type) inline type '
|
---|
1390 | @$(APPEND) $@.tmp '#define DECL_INVALID(type) type '
|
---|
1391 |
|
---|
1392 | @$(APPEND) $@.tmp '#define PDMDEVINSINT_DECLARED 1'
|
---|
1393 | @$(APPEND) $@.tmp '#define VBOX_WITH_HGCM 1'
|
---|
1394 | @$(APPEND) $@.tmp '#define VBOXCALL'
|
---|
1395 |
|
---|
1396 | @$(APPEND) $@.tmp '#define PGM_CTX(a,b) b'
|
---|
1397 | @$(APPEND) $@.tmp '#define PGM_CTX3(a,b,c) c'
|
---|
1398 | @$(APPEND) $@.tmp '#define PGM_GST_NAME(name) PGM_GST_NAME_AMD64(name)'
|
---|
1399 | @$(APPEND) $@.tmp '#define PGM_GST_NAME_REAL(name) PGM_CTX3(name)'
|
---|
1400 | @$(APPEND) $@.tmp '#define PGM_GST_NAME_PROT(name) PGM_CTX3(pgm,GstProt,name)'
|
---|
1401 | @$(APPEND) $@.tmp '#define PGM_GST_NAME_32BIT(name) PGM_CTX3(pgm,Gst32Bit,name)'
|
---|
1402 | @$(APPEND) $@.tmp '#define PGM_GST_NAME_PAE(name) PGM_CTX3(pgm,GstPAE,name)'
|
---|
1403 | @$(APPEND) $@.tmp '#define PGM_GST_NAME_AMD64(name) PGM_CTX3(pgm,GstAMD64,name)'
|
---|
1404 | @$(APPEND) $@.tmp '#define PGM_GST_DECL(type, name) type PGM_GST_NAME(name)'
|
---|
1405 | @$(APPEND) $@.tmp '#define PGM_SHW_NAME(name) PGM_GST_NAME_AMD64(name)'
|
---|
1406 | @$(APPEND) $@.tmp '#define PGM_SHW_NAME_32BIT(name) PGM_CTX3(pgm,Shw32Bit,name)'
|
---|
1407 | @$(APPEND) $@.tmp '#define PGM_SHW_NAME_PAE(name) PGM_CTX3(pgm,ShwPAE,name)'
|
---|
1408 | @$(APPEND) $@.tmp '#define PGM_SHW_NAME_AMD64(name) PGM_CTX3(pgm,ShwAMD64,name)'
|
---|
1409 | @$(APPEND) $@.tmp '#define PGM_SHW_NAME_NESTED(name) PGM_CTX3(pgm,ShwNested,name)'
|
---|
1410 | @$(APPEND) $@.tmp '#define PGM_SHW_NAME_EPT(name) PGM_CTX3(pgm,ShwEPT,name)'
|
---|
1411 | @$(APPEND) $@.tmp '#define PGM_SHW_DECL(type, name) type PGM_SHW_NAME(name)'
|
---|
1412 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME(name) PGM_BTH_NAME_NESTED_AMD64(name)'
|
---|
1413 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_32BIT_REAL(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1414 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_32BIT_PROT(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1415 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_32BIT_32BIT(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1416 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_PAE_REAL(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1417 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_PAE_PROT(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1418 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_PAE_32BIT(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1419 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_PAE_PAE(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1420 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_AMD64_PROT(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1421 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_AMD64_AMD64(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1422 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_NESTED_REAL(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1423 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_NESTED_PROT(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1424 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_NESTED_32BIT(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1425 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_NESTED_PAE(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1426 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_NESTED_AMD64(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1427 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_EPT_REAL(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1428 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_EPT_PROT(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1429 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_EPT_32BIT(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1430 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_EPT_PAE(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1431 | @$(APPEND) $@.tmp '#define PGM_BTH_NAME_EPT_AMD64(name) PGM_CTX3(pgm,Bth,name)'
|
---|
1432 | @$(APPEND) $@.tmp '#define PGM_BTH_DECL(type, name) type PGM_BTH_NAME(name)'
|
---|
1433 |
|
---|
1434 | $(SED) -e '/__cdecl/d' \
|
---|
1435 | -e '/^ *# *define.*DECL/!d' \
|
---|
1436 | -e '/DECLS/d' \
|
---|
1437 | -e '/DECLARE_CLS_/d' \
|
---|
1438 | -e '/_SRC_POS_DECL/d' \
|
---|
1439 | -e '/declspec/d' \
|
---|
1440 | -e '/__attribute__/d' \
|
---|
1441 | -e 's/# */#/g' \
|
---|
1442 | -e 's/ */ /g' \
|
---|
1443 | -e '/(type) DECLEXPORT/d' \
|
---|
1444 | -e '/ DECLEXPORT_CLASS/d' \
|
---|
1445 | -e 's/ *VBOXCALL//' \
|
---|
1446 | -e 's/ *RTCALL//' \
|
---|
1447 | -e 's/(type) DECLIMPORT(type)/(type) type/' \
|
---|
1448 | -e '/ DECLASM(type) type/d' \
|
---|
1449 | -e '/define *DECL..CALLBACKMEMBER(type[^)]*) *RT/d' \
|
---|
1450 | -e '/define *DECLINLINE(type)/d' \
|
---|
1451 | -e '/define *DECL_FORCE_INLINE(type)/d' \
|
---|
1452 | -e '/ *DECL_INVALID(/d' \
|
---|
1453 | -e '/define RT[DATGRC03]*DECL(type) *DECLHIDDEN(type)/d' \
|
---|
1454 | \
|
---|
1455 | --append $@.tmp \
|
---|
1456 | $(filter-out include/VBox/err.h, $(wildcard include/VBox/*.h)) \
|
---|
1457 | include/iprt/cdefs.h
|
---|
1458 | $(CAT_EXT) $@.tmp \
|
---|
1459 | | $(SED_EXT) -e 's/_/\x1F/g' -e 's/(/\x1E/g' -e 's/[[:space:]][[:space:]]*/\x1C/g' \
|
---|
1460 | | sort $(if-expr "$(KBUILD_TARGET)" == "win",,-f) \
|
---|
1461 | | $(SED_EXT) -e 's/\x1F/_/g' -e 's/\x1E/(/g' -e 's/\x1C/ /g' \
|
---|
1462 | | $(SED_EXT) -e 's/$$/\n/' --output $@.tmp2
|
---|
1463 | $(MV) -f $@.tmp2 $@
|
---|
1464 | $(RM) -f $@.tmp $@.tmp2 $@.tmp3
|
---|
1465 | ifeq ($(KBUILD_HOST),win)
|
---|
1466 | @$(ECHO) 'TODO: Merge vslick.h with your "$(HOMEDRIVE)$(HOMEPATH)\Documents\My SlickEdit Config\x.y.z\usercpp.h" file.'
|
---|
1467 | else ifeq ($(KBUILD_HOST),darwin)
|
---|
1468 | @$(ECHO) "TODO: Merge ./vslick.h with your ~/Library/Application\ Support/SlickEdit/x.y.z/unxcpp.h file."
|
---|
1469 | else
|
---|
1470 | @$(ECHO) "TODO: Merge ./vslick.h with your ~/.slickedit/x.y.z/unxcpp.h file."
|
---|
1471 | endif
|
---|
1472 |
|
---|
1473 |
|
---|
1474 | #
|
---|
1475 | # Add fetching of the tools to the 'up[date][2]' targets.
|
---|
1476 | #
|
---|
1477 | up update up2 update2::
|
---|
1478 | ifndef VBOX_OSE
|
---|
1479 | +$(MAKE) -C tools fetch
|
---|
1480 | else
|
---|
1481 | $(MAKE) -C tools -f Makefile-ose.kmk fetch
|
---|
1482 | endif
|
---|
1483 |
|
---|
1484 |
|
---|
1485 |
|
---|
1486 | #
|
---|
1487 | # Aliases for building the SDK.
|
---|
1488 | #
|
---|
1489 | .NOTPARALLEL: sdk sdk-fetch
|
---|
1490 | sdk:
|
---|
1491 | + $(KMK) VBOX_ONLY_SDK=1 \
|
---|
1492 | pass_bldprogs pass_others pass_installs pass_packing
|
---|
1493 |
|
---|
1494 | sdk-fetch:
|
---|
1495 | + $(KMK) KBUILD_TARGET=win KBUILD_TARGET_ARCH=x86 -C tools fetch
|
---|
1496 |
|
---|