1 | # $Id: Makefile.kmk 12337 2008-09-10 09:20:22Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top level makefile.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
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 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | # additional information or have any questions.
|
---|
20 | #
|
---|
21 |
|
---|
22 | SUB_DEPTH = .
|
---|
23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
24 |
|
---|
25 | #
|
---|
26 | # Sub-makefiles / Sub-directories.
|
---|
27 | #
|
---|
28 | ifdef VBOX_SINGLE_MAKEFILE
|
---|
29 | if defined(VBOX_WITH_DOCS) && !defined(VBOX_ONLY_ADDITIONS)
|
---|
30 | include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk
|
---|
31 | endif
|
---|
32 | include $(PATH_SUB_CURRENT)/src/Makefile.kmk
|
---|
33 | else
|
---|
34 | if defined(VBOX_WITH_DOCS) && !defined(VBOX_ONLY_ADDITIONS)
|
---|
35 | SUBDIRS = doc/manual
|
---|
36 | endif
|
---|
37 | SUBDIRS += src
|
---|
38 | endif
|
---|
39 |
|
---|
40 |
|
---|
41 | ifndef VBOX_ONLY_DOCS
|
---|
42 | ifndef VBOX_ONLY_ADDITIONS
|
---|
43 | #
|
---|
44 | # Install external binaries (mostly redistributable parts of tools we use).
|
---|
45 | # This must be done *before* we build the manual.
|
---|
46 | #
|
---|
47 | # To avoid dragging in unnecessary tools and sdks here, we don't use the .win
|
---|
48 | # and .linux property suffixes.
|
---|
49 | #
|
---|
50 | INSTALLS += bin
|
---|
51 |
|
---|
52 | bin_INST = $(INST_BIN)
|
---|
53 |
|
---|
54 | # The SDL DLLs
|
---|
55 | if1of ($(KBUILD_TARGET), win os2)
|
---|
56 | ifneq ($(VBOX_WITH_VBOXSDL)$(VBOX_WITH_VBOXBFE),)
|
---|
57 | include $(KBUILD_PATH)/sdks/LIBSDL.kmk
|
---|
58 | bin_SOURCES += \
|
---|
59 | $(DLL_SDK_LIBSDL_SDL)
|
---|
60 | ifdef VBOX_WITH_SECURELABEL
|
---|
61 | bin_SOURCES += \
|
---|
62 | $(DLL_SDK_LIBSDL_SDLTTF)
|
---|
63 | endif
|
---|
64 | ifeq ($(KBUILD_TARGET),os2)
|
---|
65 | bin_SOURCES += \
|
---|
66 | $(DLL_SDK_LIBSDL_FSLIB)
|
---|
67 | endif
|
---|
68 | endif
|
---|
69 | endif
|
---|
70 |
|
---|
71 |
|
---|
72 | # The Qt DLLs.
|
---|
73 | ifneq ($(VBOX_WITH_QTGUI),)
|
---|
74 | if1of ($(KBUILD_TARGET), win os2)
|
---|
75 | #include $(KBUILD_PATH)/sdks/QT3.kmk
|
---|
76 | #bin_SOURCES += \
|
---|
77 | # $(DLL_SDK_QT3_QT)
|
---|
78 | ifneq ($(strip $(VBOX_DLL_QT)),)
|
---|
79 | bin_SOURCES += \
|
---|
80 | $(VBOX_DLL_QT)=>$(not-dir $(VBOX_DLL_QT))
|
---|
81 | endif
|
---|
82 | ifdef VBOX_QT_BINARIES
|
---|
83 | bin_SOURCES += $(VBOX_QT_BINARIES)
|
---|
84 | endif
|
---|
85 | else ifeq ($(VBOX_MUST_INSTALL_LIB_QT),1)
|
---|
86 | bin_SOURCES += \
|
---|
87 | $(LIB_QT)
|
---|
88 | endif
|
---|
89 | endif
|
---|
90 |
|
---|
91 |
|
---|
92 | # The compiler runtime DLLs.
|
---|
93 | ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
|
---|
94 | ifdef VBOX_USE_VCC80
|
---|
95 | include $(KBUILD_PATH)/tools/VCC80X86.kmk
|
---|
96 | include $(KBUILD_PATH)/tools/VCC80AMD64.kmk
|
---|
97 | bin_SOURCES.x86 += \
|
---|
98 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
99 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
|
---|
100 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
|
---|
101 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
102 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
|
---|
103 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
|
---|
104 | bin_SOURCES.amd64 += \
|
---|
105 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
106 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
|
---|
107 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
|
---|
108 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
109 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
|
---|
110 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
|
---|
111 | endif
|
---|
112 | ifndef VBOX_USE_VCC80
|
---|
113 | VBOX_INSTALL_VCC70_RT = 1
|
---|
114 | endif
|
---|
115 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
|
---|
116 | VBOX_INSTALL_VCC70_RT = 1
|
---|
117 | endif
|
---|
118 | ifdef VBOX_INSTALL_VCC70_RT
|
---|
119 | include $(KBUILD_PATH)/tools/VCC70.kmk
|
---|
120 | ## @todo Move these defines to VCC70.
|
---|
121 | DLL_TOOL_VCC70_MSVCR71 ?= $(PATH_TOOL_VCC70)/bin/msvcr71.dll
|
---|
122 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCR71)),)
|
---|
123 | bin_SOURCES += \
|
---|
124 | $(DLL_TOOL_VCC70_MSVCR71)=>msvcr71.dll \
|
---|
125 | $(DLL_TOOL_VCC70_MSVCR71)=>testcase/msvcr71.dll
|
---|
126 | endif
|
---|
127 | DLL_TOOL_VCC70_MSVCP71 ?= $(PATH_TOOL_VCC70)/bin/msvcp71.dll
|
---|
128 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCP71)),)
|
---|
129 | bin_SOURCES += \
|
---|
130 | $(DLL_TOOL_VCC70_MSVCP71)=>msvcp71.dll \
|
---|
131 | $(DLL_TOOL_VCC70_MSVCP71)=>testcase/msvcp71.dll
|
---|
132 | endif
|
---|
133 | DLL_TOOL_VCC70_MSVCRT ?= $(PATH_TOOL_VCC70)/bin/msvcrt.dll
|
---|
134 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCRT)),)
|
---|
135 | bin_SOURCES += \
|
---|
136 | $(DLL_TOOL_VCC70_MSVCRT)=>msvcrt.dll \
|
---|
137 | $(DLL_TOOL_VCC70_MSVCRT)=>testcase/msvcrt.dll
|
---|
138 | endif
|
---|
139 | endif
|
---|
140 | endif
|
---|
141 |
|
---|
142 |
|
---|
143 | ifdef VBOX_WITH_QT4_SUN
|
---|
144 | #
|
---|
145 | # Install our Qt DLLs / Shared Objects / Frameworks.
|
---|
146 | #
|
---|
147 | ## @todo move to the root Makefile.kmk, and remove qt4-bin from INSTALLS below.
|
---|
148 | INSTALLS += qt4-bin
|
---|
149 | qt4-bin_MODE = 644
|
---|
150 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
151 | qt4-bin_INST = $(INST_VIRTUALBOX)Contents/Frameworks/
|
---|
152 | qt4-bin_SOURCES = \
|
---|
153 | $(VBOX_PATH_QT4)/Frameworks/QtCore.framework/Versions/4/QtCore=>QtCore.framework/Versions/4/QtCore \
|
---|
154 | $(VBOX_PATH_QT4)/Frameworks/QtGui.framework/Versions/4/QtGui=>QtGui.framework/Versions/4/QtGui
|
---|
155 | else ifeq ($(KBUILD_TARGET),win)
|
---|
156 | qt4-bin_INST = $(INST_BIN)
|
---|
157 | qt4-bin_SOURCES = \
|
---|
158 | $(VBOX_PATH_QT4_LIB)/VBoxQtCore4.dll \
|
---|
159 | $(VBOX_PATH_QT4_LIB)/VBoxQtGui4.dll
|
---|
160 | else
|
---|
161 | qt4-bin_INST = $(INST_BIN)
|
---|
162 | qt4-bin_SOURCES = \
|
---|
163 | $(VBOX_PATH_QT4_LIB)/libVBoxQtCore.so.4 \
|
---|
164 | $(VBOX_PATH_QT4_LIB)/libVBoxQtGui.so.4
|
---|
165 | endif
|
---|
166 | endif # VBOX_WITH_QT4_SUN
|
---|
167 |
|
---|
168 |
|
---|
169 | #
|
---|
170 | # Install additions iso from the build server.
|
---|
171 | # The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
|
---|
172 | # been added to kBuild.
|
---|
173 | #
|
---|
174 | ## @todo need kmk_builtin_touch!
|
---|
175 | ifdef VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
|
---|
176 | INSTALLS += buildserver-additions
|
---|
177 | buildserver-additions_INST = $(INST_ADDITIONS)
|
---|
178 | buildserver-additions_MODE = 0644
|
---|
179 | buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
|
---|
180 | buildserver-additions_CLEANS = $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
181 |
|
---|
182 | $(PATH_TARGET)/VBoxGuestAdditions.iso: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $(call DIRDEP, $(PATH_TARGET))
|
---|
183 | $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
184 | # $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
185 | $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-additions-affinity-hack
|
---|
186 | $(CP) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp $(PATH_TARGET)/VBoxGuestAdditions.iso
|
---|
187 | $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
188 |
|
---|
189 | buildserver-additions-affinity-hack:
|
---|
190 | $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
191 | endif
|
---|
192 |
|
---|
193 |
|
---|
194 | #
|
---|
195 | #
|
---|
196 | # Install documentation files (at the moment the .chm) from the build server.
|
---|
197 | # The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
|
---|
198 | # been added to kBuild.
|
---|
199 | #
|
---|
200 | ## @todo need kmk_builtin_touch!
|
---|
201 | ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
|
---|
202 | INSTALLS += buildserver-docs
|
---|
203 | buildserver-docs_INST = $(INST_BIN)
|
---|
204 | buildserver-docs_MODE = 0644
|
---|
205 | buildserver-docs_SOURCES = $(PATH_TARGET)/VirtualBox.chm $(PATH_TARGET)/UserManual.pdf
|
---|
206 | buildserver-docs_CLEANS = $(PATH_TARGET)/VBoxDocumentation.zip $(PATH_TARGET)/VBoxDocumentation.zip.tmp $(PATH_TARGET)/VirtualBox.chm $(PATH_TARGET)/UserManual.pdf
|
---|
207 |
|
---|
208 | ## @todo including this directly is a hack, but using the tool variables
|
---|
209 | # is simply too tempting. Could all go away once we have plain unzip targets.
|
---|
210 | include $(KBUILD_PATH)/tools/ZIP.kmk
|
---|
211 |
|
---|
212 | # Make this a pattern rule to handle multiple targets correctly.
|
---|
213 | $(PATH_TARGET)/VirtualBox.chm $(PATH_TARGET)/UserManua%.pdf: $(PATH_TARGET)/VBoxDocumentation.zip
|
---|
214 | $(call MSG_L1,Unpacking documentation)
|
---|
215 | $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
|
---|
216 |
|
---|
217 | $(PATH_TARGET)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/documentation.sh | $(call DIRDEP, $(PATH_TARGET))
|
---|
218 | $(RM) -f $(PATH_TARGET)/VBoxDocumentation.zip $(PATH_TARGET)/VBoxDocumentation.zip.tmp
|
---|
219 | # $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $(PATH_TARGET)/VBoxDocumentation.zip.tmp
|
---|
220 | $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-documentation-affinity-hack
|
---|
221 | $(CP) -f $(PATH_TARGET)/VBoxDocumentation.zip.tmp $(PATH_TARGET)/VBoxDocumentation.zip
|
---|
222 | $(RM) -f $(PATH_TARGET)/VBoxDocumentation.zip.tmp
|
---|
223 |
|
---|
224 | buildserver-documentation-affinity-hack:
|
---|
225 | $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $(PATH_TARGET)/VBoxDocumentation.zip.tmp
|
---|
226 | endif
|
---|
227 |
|
---|
228 |
|
---|
229 | #
|
---|
230 | # Install staged binaries on platforms where we can't cross
|
---|
231 | # compile things.
|
---|
232 | #
|
---|
233 | ifn1of ($(KBUILD_TARGET), l4 linux win)
|
---|
234 | VBOX_PATH_STAGED ?= .
|
---|
235 |
|
---|
236 | # Additions.
|
---|
237 | ifndef VBOX_WITH_LINUX_ADDITIONS
|
---|
238 | ifndef VBOX_WITH_WIN32_ADDITIONS
|
---|
239 | ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
|
---|
240 | INSTALLS += staged-additions
|
---|
241 | staged-additions_INST = $(INST_ADDITIONS)
|
---|
242 | staged-additions_MODE = 0644
|
---|
243 | staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
|
---|
244 | endif
|
---|
245 | endif
|
---|
246 | endif
|
---|
247 |
|
---|
248 | # guesttool.exe
|
---|
249 | ifndef VBOX_WITH_WIN32_ADDITIONS
|
---|
250 | ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
|
---|
251 | INSTALLS += staged-guesttool
|
---|
252 | staged-guesttool_INST = $(INST_BIN)
|
---|
253 | staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
|
---|
254 | endif
|
---|
255 | endif
|
---|
256 |
|
---|
257 | endif
|
---|
258 |
|
---|
259 | endif # !VBOX_ONLY_ADDITIONS
|
---|
260 | endif # !VBOX_ONLY_DOCS
|
---|
261 |
|
---|
262 |
|
---|
263 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
264 |
|
---|
265 |
|
---|
266 | #
|
---|
267 | # Generate documentation.
|
---|
268 | # (This should be converted into a separate pass or merged with an existing one later.)
|
---|
269 | #
|
---|
270 | ifdef VBOX_ONLY_DOCS
|
---|
271 | # It may sound a bit odd, but for preparing the documentation package the
|
---|
272 | # doxygen documentation isn't needed and increases the build time a lot.
|
---|
273 | docs:
|
---|
274 | else # !VBOX_ONLY_DOCS
|
---|
275 | docs: $(if $(VBOX_WITH_ALL_DOXYGEN_TARGETS),docs.Core)
|
---|
276 | $(KMK) -C src/VBox/Main docs
|
---|
277 | ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
|
---|
278 | $(KMK) -C src/VBox/Runtime docs
|
---|
279 | endif
|
---|
280 | endif # !VBOX_ONLY_DOCS
|
---|
281 |
|
---|
282 | docs.Core: $(PATH_TARGET)/docs.Core
|
---|
283 |
|
---|
284 |
|
---|
285 |
|
---|
286 | #
|
---|
287 | # The core (VMM+REM+Devices+Main) documentation.
|
---|
288 | #
|
---|
289 | # This includes so much because we wish to have the complete CFGM
|
---|
290 | # and GCFGM lists.
|
---|
291 | #
|
---|
292 | OTHER_CLEAN += \
|
---|
293 | $(PATH_TARGET)/Doxyfile.Core \
|
---|
294 | $(PATH_TARGET)/Doxyfile.Core.dep
|
---|
295 |
|
---|
296 | VBOX_CORE_DOXYFILE_INPUT_DIRS = \
|
---|
297 | include/iprt \
|
---|
298 | include/VBox \
|
---|
299 | include/VBox/com \
|
---|
300 | include/VBox/HostServices \
|
---|
301 | src/VBox/VMM \
|
---|
302 | src/VBox/VMM/VMMR0 \
|
---|
303 | src/VBox/VMM/VMMGC \
|
---|
304 | src/VBox/VMM/VMMAll \
|
---|
305 | src/VBox/VMM/PATM \
|
---|
306 | src/VBox/VMM/PATM/VMMR0 \
|
---|
307 | src/VBox/VMM/PATM/VMMGC \
|
---|
308 | src/VBox/VMM/PATM/VMMAll \
|
---|
309 | src/VBox/VMM/VMMSwitcher \
|
---|
310 | src/VBox/Debugger \
|
---|
311 | src/VBox/Devices \
|
---|
312 | src/VBox/Devices/Audio \
|
---|
313 | src/VBox/Devices/Bus \
|
---|
314 | src/VBox/Devices/Graphics \
|
---|
315 | src/VBox/Devices/Graphics/BIOS \
|
---|
316 | src/VBox/Devices/Input \
|
---|
317 | src/VBox/Devices/Networking \
|
---|
318 | src/VBox/Devices/PC \
|
---|
319 | src/VBox/Devices/PC/BIOS \
|
---|
320 | src/VBox/Devices/Parallel \
|
---|
321 | src/VBox/Devices/Serial \
|
---|
322 | src/VBox/Devices/Storage \
|
---|
323 | src/VBox/Devices/VBoxHDDFormats \
|
---|
324 | src/VBox/Devices/VBoxHDDFormats/StorageCraft \
|
---|
325 | src/VBox/Devices/USB \
|
---|
326 | src/VBox/Devices/USB/darwin \
|
---|
327 | src/VBox/Devices/USB/linux \
|
---|
328 | src/VBox/Devices/USB/os2 \
|
---|
329 | src/VBox/Devices/USB/solaris \
|
---|
330 | src/VBox/Devices/USB/vrdp \
|
---|
331 | src/VBox/Devices/USB/win32 \
|
---|
332 | src/VBox/Devices/VMMDev \
|
---|
333 | src/VBox/Main/include \
|
---|
334 | src/VBox/Main/include/hgcm \
|
---|
335 | src/VBox/Main \
|
---|
336 | src/VBox/Main/glue \
|
---|
337 | src/VBox/Main/hgcm \
|
---|
338 | src/VBox/Main/webservice \
|
---|
339 | src/VBox/Main/xml \
|
---|
340 | src/VBox/Main/darwin \
|
---|
341 | src/VBox/Main/linux \
|
---|
342 | src/VBox/Main/os2 \
|
---|
343 | src/VBox/Main/solaris \
|
---|
344 | src/VBox/Main/win \
|
---|
345 | src/VBox/Main/xpcom \
|
---|
346 | src/VBox/HostServices \
|
---|
347 | src/VBox/HostServices/SharedClipboard \
|
---|
348 | src/VBox/HostServices/SharedFolders \
|
---|
349 | src/VBox/HostServices/SharedInfoServices \
|
---|
350 | src/VBox/HostServices/SharedOpenGL \
|
---|
351 | src/VBox/HostDrivers/Support \
|
---|
352 | src/VBox/HostDrivers/Support/darwin \
|
---|
353 | src/VBox/HostDrivers/Support/freebsd \
|
---|
354 | src/VBox/HostDrivers/Support/l4 \
|
---|
355 | src/VBox/HostDrivers/Support/linux \
|
---|
356 | src/VBox/HostDrivers/Support/os2 \
|
---|
357 | src/VBox/HostDrivers/Support/solaris \
|
---|
358 | src/VBox/HostDrivers/Support/win \
|
---|
359 | src/VBox/HostDrivers/VBoxNetFlt \
|
---|
360 | src/VBox/HostDrivers/VBoxNetFlt/darwin \
|
---|
361 | src/VBox/HostDrivers/VBoxNetFlt/linux \
|
---|
362 | src/VBox/HostDrivers/VBoxNetFlt/solaris \
|
---|
363 | src/VBox/HostDrivers/VBoxNetFlt/win \
|
---|
364 | src/VBox/HostDrivers/VBoxNetNat \
|
---|
365 | src/VBox/HostDrivers/VBoxNetNat/darwin \
|
---|
366 | src/VBox/HostDrivers/VBoxNetNat/linux \
|
---|
367 | src/VBox/HostDrivers/VBoxNetNat/solaris \
|
---|
368 | src/VBox/HostDrivers/VBoxNetNat/win \
|
---|
369 | src/VBox/HostDrivers/VBoxNetTap \
|
---|
370 | src/VBox/HostDrivers/VBoxNetTap/darwin \
|
---|
371 | src/VBox/HostDrivers/VBoxNetTap/linux \
|
---|
372 | src/VBox/HostDrivers/VBoxNetTap/solaris \
|
---|
373 | src/VBox/HostDrivers/VBoxNetTap/win \
|
---|
374 | src/VBox/HostDrivers/VBoxTAP \
|
---|
375 | src/VBox/HostDrivers/VBoxTAP/win \
|
---|
376 | src/VBox/HostDrivers/VBoxUSB \
|
---|
377 | src/VBox/HostDrivers/VBoxUSB/darwin \
|
---|
378 | src/VBox/HostDrivers/VBoxUSB/os2 \
|
---|
379 | src/VBox/HostDrivers/VBoxUSB/solaris \
|
---|
380 | src/VBox/HostDrivers/VBoxUSB/win \
|
---|
381 | src/VBox/HostDrivers/VBoxUSB/win/Device \
|
---|
382 | src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
|
---|
383 | src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
|
---|
384 | src/VBox/HostDrivers/VBoxUSB/win/Filter \
|
---|
385 | src/VBox/HostDrivers/VBoxUSB/win/Install \
|
---|
386 | src/VBox/HostDrivers/VBoxUSB/win/Monitor \
|
---|
387 | src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
|
---|
388 | src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
|
---|
389 | src/VBox/HostDrivers/VBoxUSB/win/usbd \
|
---|
390 |
|
---|
391 | # These must come first in order to make things look nice.
|
---|
392 | VBOX_CORE_DOXYFILE_INPUT_FIRST =\
|
---|
393 | $(PATH_ROOT)/doc/VBox-doc.c \
|
---|
394 | $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
|
---|
395 | $(PATH_ROOT)/src/VBox/VMM/VMMCodingGuidelines.cpp \
|
---|
396 | $(PATH_ROOT)/src/VBox/VMM/VMMDocsRawMode.cpp \
|
---|
397 | $(PATH_ROOT)/include/VBox/cdefs.h \
|
---|
398 | $(PATH_ROOT)/include/VBox/vmapi.h \
|
---|
399 | $(PATH_ROOT)/include/VBox/vmm.h \
|
---|
400 | $(PATH_ROOT)/include/VBox/cpum.h \
|
---|
401 | $(PATH_ROOT)/include/VBox/mm.h \
|
---|
402 | $(PATH_ROOT)/include/VBox/pgm.h \
|
---|
403 | $(PATH_ROOT)/include/VBox/selm.h \
|
---|
404 | $(PATH_ROOT)/include/VBox/trpm.h \
|
---|
405 | $(PATH_ROOT)/include/VBox/patm.h \
|
---|
406 | $(PATH_ROOT)/include/VBox/dbgf.h \
|
---|
407 | $(PATH_ROOT)/include/VBox/stam.h \
|
---|
408 | $(PATH_ROOT)/include/VBox/em.h \
|
---|
409 | $(PATH_ROOT)/include/VBox/pdm.h \
|
---|
410 | $(PATH_ROOT)/include/VBox/rem.h \
|
---|
411 | $(PATH_ROOT)/include/VBox/iom.h \
|
---|
412 | $(PATH_ROOT)/include/VBox/cfgm.h \
|
---|
413 | $(PATH_ROOT)/include/VBox/tm.h \
|
---|
414 | $(PATH_ROOT)/include/VBox/csam.h \
|
---|
415 | $(PATH_ROOT)/include/VBox/ssm.h \
|
---|
416 | $(PATH_ROOT)/include/VBox/hwaccm.h \
|
---|
417 | $(PATH_ROOT)/include/VBox/hwacc_svm.h \
|
---|
418 | $(PATH_ROOT)/include/VBox/hwacc_vmx.h \
|
---|
419 | \
|
---|
420 | $(PATH_ROOT)/src/VBox/VMM/CFGMInternal.h \
|
---|
421 | $(PATH_ROOT)/src/VBox/VMM/CPUMInternal.h \
|
---|
422 | $(PATH_ROOT)/src/VBox/VMM/DBGFInternal.h \
|
---|
423 | $(PATH_ROOT)/src/VBox/VMM/EMInternal.h \
|
---|
424 | $(PATH_ROOT)/src/VBox/VMM/HWACCMInternal.h \
|
---|
425 | $(PATH_ROOT)/src/VBox/VMM/IOMInternal.h \
|
---|
426 | $(PATH_ROOT)/src/VBox/VMM/MMInternal.h \
|
---|
427 | $(PATH_ROOT)/src/VBox/VMM/PDMInternal.h \
|
---|
428 | $(PATH_ROOT)/src/VBox/VMM/PGMInternal.h \
|
---|
429 | $(PATH_ROOT)/src/VBox/VMM/PATM/CSAMInternal.h \
|
---|
430 | $(PATH_ROOT)/src/VBox/VMM/PATM/PATMInternal.h \
|
---|
431 | $(PATH_ROOT)/src/VBox/VMM/REMInternal.h \
|
---|
432 | $(PATH_ROOT)/src/VBox/VMM/SELMInternal.h \
|
---|
433 | $(PATH_ROOT)/src/VBox/VMM/SSMInternal.h \
|
---|
434 | $(PATH_ROOT)/src/VBox/VMM/STAMInternal.h \
|
---|
435 | $(PATH_ROOT)/src/VBox/VMM/TMInternal.h \
|
---|
436 | $(PATH_ROOT)/src/VBox/VMM/TRPMInternal.h \
|
---|
437 | $(PATH_ROOT)/src/VBox/VMM/VMInternal.h \
|
---|
438 | $(PATH_ROOT)/src/VBox/VMM/VMMInternal.h \
|
---|
439 | \
|
---|
440 | $(PATH_ROOT)/include/VBox/vm.h \
|
---|
441 | \
|
---|
442 | $(PATH_ROOT)/include/VBox/sup.h \
|
---|
443 | $(PATH_ROOT)/include/VBox/VBoxHDD.h \
|
---|
444 | $(PATH_ROOT)/include/VBox/types.h \
|
---|
445 | $(PATH_ROOT)/include/VBox/err.h \
|
---|
446 | $(PATH_ROOT)/include/VBox/x86.h \
|
---|
447 | $(PATH_ROOT)/include/VBox/cpumdis.h \
|
---|
448 | $(PATH_ROOT)/include/VBox/dbggui.h \
|
---|
449 | $(PATH_ROOT)/include/VBox/dis.h \
|
---|
450 | $(PATH_ROOT)/include/VBox/disopcode.h \
|
---|
451 | $(PATH_ROOT)/include/VBox/intnet.h \
|
---|
452 | $(PATH_ROOT)/include/VBox/settings.h \
|
---|
453 | $(PATH_ROOT)/include/VBox/pci.h \
|
---|
454 | $(PATH_ROOT)/include/VBox/scsi.h \
|
---|
455 | $(PATH_ROOT)/include/VBox/shflsvc.h \
|
---|
456 | $(PATH_ROOT)/include/VBox/hgcmsvc.h \
|
---|
457 | $(PATH_ROOT)/include/VBox/usb.h \
|
---|
458 | $(PATH_ROOT)/include/VBox/vusb.h \
|
---|
459 | \
|
---|
460 | $(PATH_ROOT)/include/VBox/log.h \
|
---|
461 | $(PATH_ROOT)/include/VBox/param.h \
|
---|
462 | $(PATH_ROOT)/include/VBox/version.h
|
---|
463 |
|
---|
464 | VBOX_CORE_DOXYFILE_INPUT := \
|
---|
465 | $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
|
---|
466 | $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/.asm))
|
---|
467 | VBOX_CORE_DOXYFILE_INPUT := \
|
---|
468 | $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
|
---|
469 | $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT))
|
---|
470 |
|
---|
471 | # And some some additional stuff.
|
---|
472 | VBOX_CORE_DOXYFILE_INPUT += \
|
---|
473 | $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
|
---|
474 | $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
|
---|
475 |
|
---|
476 |
|
---|
477 | VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
|
---|
478 |
|
---|
479 | -include $(PATH_TARGET)/Doxyfile.Core.dep
|
---|
480 |
|
---|
481 | # Generate the Doxyfile
|
---|
482 | $(PATH_TARGET)/Doxyfile.Core: Doxyfile.Core \
|
---|
483 | $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
|
---|
484 | $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
|
---|
485 | | $(call DIRDEP, $(PATH_TARGET))
|
---|
486 | $(RM) -f $@ [email protected] $(PATH_TARGET)/Doxyfile.Core.dep
|
---|
487 | $(CP) -f Doxyfile.Core [email protected]
|
---|
488 | $(APPEND) [email protected]
|
---|
489 | $(APPEND) [email protected] "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
|
---|
490 | $(APPEND) [email protected] "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
|
---|
491 | $(APPEND) [email protected] "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
|
---|
492 | $(APPEND) [email protected] "INCLUDE_FILE_PATTERNS = *.cpp.h"
|
---|
493 | $(APPEND) [email protected]
|
---|
494 | $(APPEND) [email protected] "INPUT = $(VBOX_CORE_DOXYFILE_INPUT)"
|
---|
495 | $(APPEND) [email protected]
|
---|
496 | $(APPEND) [email protected] "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
|
---|
497 | $(APPEND) [email protected] "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
|
---|
498 | $(APPEND) [email protected]
|
---|
499 | $(MV) -f [email protected] $@
|
---|
500 | @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
|
---|
501 | @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
|
---|
502 |
|
---|
503 | # Create the output directory.
|
---|
504 | $(call DIRDEP, $(VBOX_CORE_DOXYFILE_OUTPUT)):
|
---|
505 | $(MKDIR) -p $@
|
---|
506 |
|
---|
507 | # Do the actual job.
|
---|
508 | $(PATH_TARGET)/docs.Core: $(PATH_TARGET)/Doxyfile.Core $(VBOX_CORE_DOXYFILE_INPUT) | $(call DIRDEP, $(VBOX_CORE_DOXYFILE_OUTPUT))
|
---|
509 | $(RM) -f $(PATH_TARGET)/docs.Core
|
---|
510 | $(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
|
---|
511 | doxygen $(PATH_TARGET)/Doxyfile.Core
|
---|
512 | $(APPEND) $(PATH_TARGET)/docs.Core
|
---|
513 |
|
---|
514 |
|
---|
515 | #
|
---|
516 | # Generate x86.mac and err.mac.
|
---|
517 | #
|
---|
518 | incs:
|
---|
519 | $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
|
---|
520 | $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
|
---|
521 | $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
|
---|
522 | $(SED) \
|
---|
523 | -e '/__VBox_x86_h__/d' \
|
---|
524 | -e '/#define/!d' \
|
---|
525 | -e '/\\$$/d' \
|
---|
526 | -e 's/#define/%define/' \
|
---|
527 | --output include/VBox/x86.mac \
|
---|
528 | include/VBox/x86.h
|
---|
529 |
|
---|
530 |
|
---|
531 | #
|
---|
532 | # Generate Visual SlickEdit tagging #defines.
|
---|
533 | #
|
---|
534 | vslick.h: include/VBox/cdefs.h include/iprt/cdefs.h $(MAKEFILE)
|
---|
535 | $(RM) -f -- $@ [email protected] [email protected] [email protected]
|
---|
536 | $(APPEND) [email protected] '// autogenerated'
|
---|
537 | #@$(APPEND) [email protected] '#define __BEGIN_DECLS '
|
---|
538 | #@$(APPEND) [email protected] '#define __END_DECLS '
|
---|
539 |
|
---|
540 | @$(APPEND) [email protected] '#define ATL_NO_VTABLE '
|
---|
541 | @$(APPEND) [email protected] '#define BEGIN_COM_MAP(a) '
|
---|
542 | @$(APPEND) [email protected] '#define END_COM_MAP(a) '
|
---|
543 |
|
---|
544 | @$(APPEND) [email protected] '#define CHECKREADY if(!isReady()) return E_UNEXPECTED; '
|
---|
545 | @$(APPEND) [email protected] '#define COM_DECL_READONLY_ENUM_AND_COLLECTION(a) '
|
---|
546 | @$(APPEND) [email protected] '#define COM_INTERFACE_ENTRY(a) '
|
---|
547 | @$(APPEND) [email protected] '#define COMGETTER(n) Get##n '
|
---|
548 | @$(APPEND) [email protected] '#define COMSETTER(n) Set##n '
|
---|
549 | @$(APPEND) [email protected] '#define ComSafeArrayIn(t,a) t a[] '
|
---|
550 | @$(APPEND) [email protected] '#define ComSafeArrayOut(t,a) t * a[] '
|
---|
551 | @$(APPEND) [email protected] '#define DECLARE_NOT_AGGREGATABLE(a) '
|
---|
552 | @$(APPEND) [email protected] '#define DECLARE_PROTECT_FINAL_CONSTRUCT(a) '
|
---|
553 | @$(APPEND) [email protected] '#define NS_DECL_ISUPPORTS '
|
---|
554 | @$(APPEND) [email protected] '#define NS_IMETHOD NS_IMETHOD_(nsresult) '
|
---|
555 | @$(APPEND) [email protected] '#define NS_IMETHOD_(type) type '
|
---|
556 | @$(APPEND) [email protected] '#define PARSERS_EXPORT '
|
---|
557 | @$(APPEND) [email protected] '#define STDMETHOD(a) NS_IMETHOD a '
|
---|
558 |
|
---|
559 | @$(APPEND) [email protected] '#define CTX_SUFF(var) var##R3 '
|
---|
560 | @$(APPEND) [email protected] '#define CTXAllSUFF(var) var##R3 '
|
---|
561 | @$(APPEND) [email protected] '#define CTXSUFF(var) var##HC '
|
---|
562 | @$(APPEND) [email protected] '#define OTHERCTXSUFF(var) var##GC '
|
---|
563 | @$(APPEND) [email protected] '#define CTXALLMID(first, last) first##R3##last '
|
---|
564 | @$(APPEND) [email protected] '#define CTXMID(first, last) first##HC##last '
|
---|
565 | @$(APPEND) [email protected] '#define OTHERCTXMID(first, last) first##GC##last '
|
---|
566 | @$(APPEND) [email protected] '#define CTXTYPE(GCType, R3Type, R0Type) R3Type '
|
---|
567 | @$(APPEND) [email protected] '#define RCTYPE(RCType, HCType) RCType '
|
---|
568 | @$(APPEND) [email protected] '#define GCTYPE(GCType, HCType) GCType '
|
---|
569 | @$(APPEND) [email protected] '#define RCPTRTYPE(RCType) RCType '
|
---|
570 | @$(APPEND) [email protected] '#define GCPTRTYPE(GCType) GCType '
|
---|
571 | @$(APPEND) [email protected] '#define HCPTRTYPE(HCType) HCType '
|
---|
572 | @$(APPEND) [email protected] '#define R3R0PTRTYPE(HCType) HCType '
|
---|
573 | @$(APPEND) [email protected] '#define R0PTRTYPE(R3Type) R3Type '
|
---|
574 | @$(APPEND) [email protected] '#define R3PTRTYPE(R0Type) R0Type '
|
---|
575 | @$(APPEND) [email protected] '#define RT_SRC_POS __FILE__, __LINE__, __PRETTY_FUNCTION__ '
|
---|
576 | @$(APPEND) [email protected] '#define RT_SRC_POS_DECL const char *pszFile, unsigned iLine, const char *pszFunction '
|
---|
577 | @$(APPEND) [email protected] '#define RT_SRC_POS_ARGS pszFile, iLine, pszFunction '
|
---|
578 | @$(APPEND) [email protected] '#define RTCALL'
|
---|
579 | @$(APPEND) [email protected] '#define DECLINLINE(type) inline type '
|
---|
580 |
|
---|
581 | @$(APPEND) [email protected] '#define PDMDEVINSINT_DECLARED 1'
|
---|
582 | @$(APPEND) [email protected] '#define VBOXCALL'
|
---|
583 |
|
---|
584 | $(SED) -e '/__cdecl/d' \
|
---|
585 | -e '/^ *# *define.*DECL/!d' \
|
---|
586 | -e '/DECLS/d' \
|
---|
587 | -e '/DECLARE_CLS_/d' \
|
---|
588 | -e '/_SRC_POS_DECL/d' \
|
---|
589 | -e '/declspec/d' \
|
---|
590 | -e '/__attribute__/d' \
|
---|
591 | -e 's/# */#/g' \
|
---|
592 | -e 's/ */ /g' \
|
---|
593 | -e '/(type) DECLEXPORT/d' \
|
---|
594 | -e '/ DECLEXPORT_CLASS/d' \
|
---|
595 | -e 's/ *VBOXCALL//' \
|
---|
596 | -e 's/ *RTCALL//' \
|
---|
597 | -e 's/(type) DECLIMPORT(type)/(type) type/' \
|
---|
598 | -e '/ DECLASM(type) type/d' \
|
---|
599 | -e '/define *DECL..CALLBACKMEMBER(type[^)]*) *RT/d' \
|
---|
600 | -e '/define *DECLINLINE(type)/d' \
|
---|
601 | -e '/define RT[DATGRC03]*DECL(type) *DECLHIDDEN(type)/d' \
|
---|
602 | \
|
---|
603 | --append [email protected] \
|
---|
604 | $(filter-out include/VBox/err.h, $(wildcard include/VBox/*.h)) \
|
---|
605 | include/iprt/cdefs.h
|
---|
606 | $(CAT_EXT) [email protected] | sort | $(SED_EXT) -e 's/$$/\n/' --output [email protected]
|
---|
607 | $(MV) -f [email protected] $@
|
---|
608 | $(RM) -f [email protected] [email protected] [email protected]
|
---|
609 | ifeq ($(KBUILD_HOST),win)
|
---|
610 | @$(ECHO) 'TODO: Merge vslick.h with your "$(HOMEDRIVE)$(HOMEPATH)\Documents\My SlickEdit Config\x.y.z\usercpp.h" file.'
|
---|
611 | else
|
---|
612 | @$(ECHO) "TODO: Merge ./vslick.h with your ~/.slickedit/x.y.z/unxcpp.h file."
|
---|
613 | endif
|
---|
614 |
|
---|
615 |
|
---|
616 | #
|
---|
617 | # Add fetching of the tools to the 'up[date][2]' targets.
|
---|
618 | #
|
---|
619 | up update up2 update2::
|
---|
620 | ifndef VBOX_OSE
|
---|
621 | $(MAKE) -C tools fetch
|
---|
622 | else
|
---|
623 | $(MAKE) -C tools -f Makefile-ose.kmk fetch
|
---|
624 | endif
|
---|
625 |
|
---|
626 |
|
---|
627 | #
|
---|
628 | # Build the additions, all of them.
|
---|
629 | #
|
---|
630 | # This is currently tailored (hardcoded) for the additions
|
---|
631 | # build box. Can make it pretty and configurable later.
|
---|
632 | #
|
---|
633 | # The fetching must be done in serial fashion, while the building
|
---|
634 | # should be more flexible wrt to -jN.
|
---|
635 | #
|
---|
636 | additions-fetch:
|
---|
637 | + $(KMK) -C tools fetch
|
---|
638 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux
|
---|
639 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux
|
---|
640 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2
|
---|
641 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris
|
---|
642 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris
|
---|
643 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win
|
---|
644 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win
|
---|
645 |
|
---|
646 |
|
---|
647 | ## @todo Currently combined solaris additions building assumes that amd64 is
|
---|
648 | # built first. Do not change the order of dependencies here without testing.
|
---|
649 | additions-build: \
|
---|
650 | additions-build-win.amd64 \
|
---|
651 | additions-build-win.x86 \
|
---|
652 | additions-build-solaris.amd64 \
|
---|
653 | additions-build-solaris.x86 \
|
---|
654 | additions-build-os2.x86 \
|
---|
655 | additions-build-linux.amd64 \
|
---|
656 | additions-build-linux.x86
|
---|
657 |
|
---|
658 | VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
|
---|
659 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
660 | KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
|
---|
661 | VBOX_SVN_REV=$(VBOX_SVN_REV) \
|
---|
662 | all packing
|
---|
663 |
|
---|
664 | VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
|
---|
665 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
666 | KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
|
---|
667 | VBOX_SVN_REV=$(VBOX_SVN_REV) \
|
---|
668 | all packing
|
---|
669 |
|
---|
670 | # Oh well, this gets really fancy - ms vc8 doesn't work inside ssh due to some
|
---|
671 | # session setup issue. So do this indirectly through psexec. The downside is
|
---|
672 | # that there is no direct build feedback. Also I couldn't get the share to
|
---|
673 | # work via psexec, so rsync over the result of the build.
|
---|
674 | additions-build-win.amd64:
|
---|
675 | ifeq ($(KBUILD_TARGET),win)
|
---|
676 | + $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
|
---|
677 | else
|
---|
678 | rsync -av --no-perms --no-owner --no-group --delete --delete-excluded --exclude .svn/ --exclude out/ --exclude tinderclient.log . 192.168.27.5:/cygdrive/c/vbox
|
---|
679 | ssh [email protected] c:/psexec/psexec.exe \\\\\\\\addvm -u vbox -p $(WIN64PASSWORD) c:\\\\cygwin\\\\bin\\\\bash.exe -c \''PATH=/usr/bin:/bin c:/vbox/tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64) > c:/build.log 2>&1'\'
|
---|
680 | rsync -av --delete 192.168.27.5:/cygdrive/c/vbox/out/win.amd64/ out/win.amd64
|
---|
681 | rsync -a --delete 192.168.27.5:/cygdrive/c/build.log out/win.amd64
|
---|
682 | cat out/win.amd64/build.log
|
---|
683 | endif
|
---|
684 |
|
---|
685 | additions-build-win.x86:
|
---|
686 | ifeq ($(KBUILD_TARGET),win)
|
---|
687 | + $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
|
---|
688 | else
|
---|
689 | rsync -av --no-perms --no-owner --no-group --delete --delete-excluded --exclude .svn/ --exclude out/ --exclude tinderclient.log . 192.168.27.5:/cygdrive/c/vbox
|
---|
690 | ssh [email protected] " cd /cygdrive/c/vbox && PATH_OUT_BASE=Z:/add/out tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86)"
|
---|
691 | endif
|
---|
692 |
|
---|
693 | additions-build-solaris.amd64:
|
---|
694 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
695 | + $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
|
---|
696 | else
|
---|
697 | ssh [email protected] " cd /mnt/vbox/add && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) "
|
---|
698 | endif
|
---|
699 |
|
---|
700 | # ASSUMES 64-bit is built already. See @todo above.
|
---|
701 | additions-build-solaris.x86:
|
---|
702 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
703 | + $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1
|
---|
704 | else
|
---|
705 | ssh [email protected] " cd /mnt/vbox/add && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1"
|
---|
706 | endif
|
---|
707 |
|
---|
708 | additions-build-os2.x86:
|
---|
709 | #ifeq ($(KBUILD_TARGET),os2)
|
---|
710 | # + $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
|
---|
711 | #else
|
---|
712 | # ssh [email protected] " cd /mnt/vbox/add && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
|
---|
713 | #endif
|
---|
714 |
|
---|
715 | additions-build-linux.amd64:
|
---|
716 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
|
---|
717 | + $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
|
---|
718 | else
|
---|
719 | ssh [email protected] " cd /mnt/vbox/add && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) "
|
---|
720 | endif
|
---|
721 |
|
---|
722 | additions-build-linux.x86:
|
---|
723 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
|
---|
724 | + $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
|
---|
725 | else
|
---|
726 | ssh [email protected] " cd /mnt/vbox/add && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
|
---|
727 | endif
|
---|
728 |
|
---|
729 |
|
---|
730 | additions-packing:
|
---|
731 | + $(KMK) VBOX_ONLY_ADDITIONS=1 \
|
---|
732 | VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
|
---|
733 | VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
|
---|
734 | VBOX_WITH_ADDITIONS_ISO.linux.amd64=1 \
|
---|
735 | VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
|
---|
736 | VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
|
---|
737 | VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
|
---|
738 | VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
|
---|
739 | VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
|
---|
740 | VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
|
---|
741 | -C src/VBox/Additions \
|
---|
742 | $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.iso
|
---|
743 |
|
---|
744 | sdk:
|
---|
745 | + $(KMK) VBOX_ONLY_SDK=1 \
|
---|
746 | pass_bldprogs pass_others pass_installs pass_packing
|
---|
747 |
|
---|
748 | fetch_sdk_reqs:
|
---|
749 | + $(KMK) KBUILD_TARGET=win KBUILD_TARGET_ARCH=x86 -C tools fetch
|
---|
750 |
|
---|
751 | #
|
---|
752 | # Generate VirtualBox-OSE-x.x.x.tar.bz2 tarballs for distribution
|
---|
753 | #
|
---|
754 | # - includes kBuild
|
---|
755 | # - must be executed on an OSE checkout
|
---|
756 | #
|
---|
757 |
|
---|
758 | # the path where to store the tarball
|
---|
759 | TARBALLPATH ?= $(shell cd $(PATH_ROOT)/..; pwd)
|
---|
760 | #TARBALLPATH ?= $(abspath $(PATH_ROOT)/..) - this should also do the trick without spawning a shell.
|
---|
761 | # the root directory inside the tarball
|
---|
762 | TARBALLROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
|
---|
763 | # the name of the tarball file
|
---|
764 | TARBALLNAME ?= VirtualBox-$(VBOX_VERSION_STRING).tar.bz2
|
---|
765 | snapshot:
|
---|
766 | @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
|
---|
767 | @if [ -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then echo; echo "Found USB stuff, refused to build OSE tarball!"; echo; exit 1; fi
|
---|
768 | $(QUIET)$(MKDIR) -p $(TARBALLPATH)
|
---|
769 | $(QUIET)$(RM) -f $(wildcard $(TARBALLPATH)/VirtualBox*)
|
---|
770 | $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
|
---|
771 | $(QUIET)tar -cjh --owner 0 --group 0 --totals \
|
---|
772 | --exclude=.svn \
|
---|
773 | --exclude=$(TARBALLROOT)/out \
|
---|
774 | --exclude=$(TARBALLROOT)/env.sh \
|
---|
775 | --exclude=$(TARBALLROOT)/configure.log \
|
---|
776 | --exclude=$(TARBALLROOT)/AutoConfig.kmk \
|
---|
777 | --exclude=$(TARBALLROOT)/LocalConfig.kmk \
|
---|
778 | -C $(TARBALLPATH) \
|
---|
779 | -f $(TARBALLPATH)/$(TARBALLNAME) \
|
---|
780 | $(TARBALLROOT)
|
---|
781 | $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
|
---|
782 |
|
---|