VirtualBox

source: vbox/trunk/Makefile.kmk@ 15815

Last change on this file since 15815 was 15802, checked in by vboxsync, 16 years ago

Makefile: one more clean fix.

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette