[2478] | 1 | # $Id: Makefile.kmk 25225 2009-12-07 20:41:19Z vboxsync $
|
---|
| 2 | ## @file
|
---|
[1] | 3 | # Top level makefile.
|
---|
| 4 | #
|
---|
[2478] | 5 |
|
---|
[1] | 6 | #
|
---|
[8155] | 7 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
[4398] | 8 | #
|
---|
[5999] | 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 | #
|
---|
[8155] | 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 | #
|
---|
[1] | 21 |
|
---|
[10195] | 22 | SUB_DEPTH = .
|
---|
| 23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
[1] | 24 |
|
---|
[12243] | 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
|
---|
[6006] | 31 | endif
|
---|
[10195] | 32 | include $(PATH_SUB_CURRENT)/src/Makefile.kmk
|
---|
| 33 | else
|
---|
[12243] | 34 | if defined(VBOX_WITH_DOCS) && !defined(VBOX_ONLY_ADDITIONS)
|
---|
| 35 | SUBDIRS = doc/manual
|
---|
| 36 | endif
|
---|
[10195] | 37 | SUBDIRS += src
|
---|
| 38 | endif
|
---|
[1] | 39 |
|
---|
[12243] | 40 |
|
---|
[15800] | 41 | #
|
---|
| 42 | # Clean up global stuff that Config.kmk generates.
|
---|
| 43 | #
|
---|
| 44 | OTHER_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 \
|
---|
[15802] | 52 | $(VBOX_SVN_REV_KMK) \
|
---|
| 53 | $(PATH_OUT)/GCCConfig.kmk
|
---|
[15800] | 54 |
|
---|
| 55 |
|
---|
[11703] | 56 | ifndef VBOX_ONLY_DOCS
|
---|
[6004] | 57 | ifndef VBOX_ONLY_ADDITIONS
|
---|
[12576] | 58 |
|
---|
| 59 | ifndef 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
|
---|
[12647] | 66 | nobin_SOURCES =
|
---|
[13256] | 67 | ifdef VBOX_LICENSE_FILES
|
---|
[12576] | 68 | nobin_SOURCES += \
|
---|
[13264] | 69 | $(VBOX_BRAND_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER).html \
|
---|
[13244] | 70 | $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES),$(VBOX_BRAND_$(f)_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER)-$(f).html)
|
---|
[12576] | 71 | endif
|
---|
[12647] | 72 | endif # !OSE
|
---|
[12576] | 73 |
|
---|
| 74 |
|
---|
[1] | 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 | #
|
---|
[10195] | 82 | INSTALLS += bin
|
---|
[1] | 83 |
|
---|
[960] | 84 | bin_INST = $(INST_BIN)
|
---|
[1] | 85 |
|
---|
| 86 | # The SDL DLLs
|
---|
[8758] | 87 | if1of ($(KBUILD_TARGET), win os2)
|
---|
[1] | 88 | ifneq ($(VBOX_WITH_VBOXSDL)$(VBOX_WITH_VBOXBFE),)
|
---|
[8760] | 89 | include $(KBUILD_PATH)/sdks/LIBSDL.kmk
|
---|
[1] | 90 | bin_SOURCES += \
|
---|
| 91 | $(DLL_SDK_LIBSDL_SDL)
|
---|
| 92 | ifdef VBOX_WITH_SECURELABEL
|
---|
| 93 | bin_SOURCES += \
|
---|
| 94 | $(DLL_SDK_LIBSDL_SDLTTF)
|
---|
| 95 | endif
|
---|
[8758] | 96 | ifeq ($(KBUILD_TARGET),os2)
|
---|
[1] | 97 | bin_SOURCES += \
|
---|
| 98 | $(DLL_SDK_LIBSDL_FSLIB)
|
---|
| 99 | endif
|
---|
| 100 | endif
|
---|
| 101 | endif
|
---|
| 102 |
|
---|
[3405] | 103 |
|
---|
[1] | 104 | # The compiler runtime DLLs.
|
---|
[8758] | 105 | ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
|
---|
[1] | 106 | ifdef VBOX_USE_VCC80
|
---|
[8760] | 107 | include $(KBUILD_PATH)/tools/VCC80X86.kmk
|
---|
| 108 | include $(KBUILD_PATH)/tools/VCC80AMD64.kmk
|
---|
[25074] | 109 | bin_SOURCES.x86 += \
|
---|
| 110 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
| 111 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
|
---|
| 112 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
|
---|
| 113 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
| 114 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
|
---|
| 115 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
|
---|
| 116 | bin_SOURCES.amd64 += \
|
---|
| 117 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
| 118 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
|
---|
| 119 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
|
---|
| 120 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
| 121 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
|
---|
| 122 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
|
---|
[25034] | 123 | ifeq ($(VBOX_VCC_CRT_TYPE),d)
|
---|
| 124 | bin_SOURCES.x86 += \
|
---|
[25074] | 125 | $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest=>Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest \
|
---|
| 126 | $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/msvcr80d.dll=>Microsoft.VC80.DebugCRT/msvcr80d.dll \
|
---|
| 127 | $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/msvcp80d.dll=>Microsoft.VC80.DebugCRT/msvcp80d.dll \
|
---|
| 128 | $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest=>testcase/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest \
|
---|
| 129 | $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/msvcr80d.dll=>testcase/Microsoft.VC80.DebugCRT/msvcr80d.dll \
|
---|
| 130 | $(PATH_TOOL_VCC80X86)/redist/Debug_NonRedist/x86/Microsoft.VC80.DebugCRT/msvcp80d.dll=>testcase/Microsoft.VC80.DebugCRT/msvcp80d.dll
|
---|
[25034] | 131 | bin_SOURCES.amd64 += \
|
---|
[25074] | 132 | $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest=>Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest \
|
---|
| 133 | $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/msvcr80d.dll=>Microsoft.VC80.DebugCRT/msvcr80d.dll \
|
---|
| 134 | $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/msvcp80d.dll=>Microsoft.VC80.DebugCRT/msvcp80d.dll \
|
---|
| 135 | $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest=>testcase/Microsoft.VC80.DebugCRT/Microsoft.VC80.DebugCRT.manifest \
|
---|
| 136 | $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/msvcr80d.dll=>testcase/Microsoft.VC80.DebugCRT/msvcr80d.dll \
|
---|
| 137 | $(PATH_TOOL_VCC80AMD64)/redist/Debug_NonRedist/amd64/Microsoft.VC80.DebugCRT/msvcp80d.dll=>testcase/Microsoft.VC80.DebugCRT/msvcp80d.dll
|
---|
[25034] | 138 | endif
|
---|
[2692] | 139 | endif
|
---|
| 140 | ifndef VBOX_USE_VCC80
|
---|
| 141 | VBOX_INSTALL_VCC70_RT = 1
|
---|
| 142 | endif
|
---|
[8758] | 143 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
|
---|
[2692] | 144 | VBOX_INSTALL_VCC70_RT = 1
|
---|
| 145 | endif
|
---|
| 146 | ifdef VBOX_INSTALL_VCC70_RT
|
---|
[8760] | 147 | include $(KBUILD_PATH)/tools/VCC70.kmk
|
---|
[25074] | 148 |
|
---|
[1] | 149 | ## @todo Move these defines to VCC70.
|
---|
[25074] | 150 | DLL_TOOL_VCC70_MSVCR71 ?= $(PATH_TOOL_VCC70)/bin/msvcr71.dll
|
---|
[1] | 151 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCR71)),)
|
---|
| 152 | bin_SOURCES += \
|
---|
[25074] | 153 | $(DLL_TOOL_VCC70_MSVCR71)=>msvcr71.dll \
|
---|
| 154 | $(DLL_TOOL_VCC70_MSVCR71)=>testcase/msvcr71.dll
|
---|
[1] | 155 | endif
|
---|
[25074] | 156 | ifeq ($(VBOX_VCC_CRT_TYPE),d)
|
---|
| 157 | DLL_TOOL_VCC70_MSVCR71D ?= $(PATH_TOOL_VCC70)/bin/msvcr71d.dll
|
---|
| 158 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCR71D)),)
|
---|
| 159 | bin_SOURCES += \
|
---|
| 160 | $(DLL_TOOL_VCC70_MSVCR71D)=>msvcr71d.dll \
|
---|
| 161 | $(DLL_TOOL_VCC70_MSVCR71D)=>testcase/msvcr71d.dll
|
---|
| 162 | endif
|
---|
| 163 | endif
|
---|
| 164 |
|
---|
| 165 | DLL_TOOL_VCC70_MSVCP71 ?= $(PATH_TOOL_VCC70)/bin/msvcp71.dll
|
---|
[1] | 166 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCP71)),)
|
---|
| 167 | bin_SOURCES += \
|
---|
[25074] | 168 | $(DLL_TOOL_VCC70_MSVCP71)=>msvcp71.dll \
|
---|
| 169 | $(DLL_TOOL_VCC70_MSVCP71)=>testcase/msvcp71.dll
|
---|
| 170 | endif
|
---|
| 171 | ifeq ($(VBOX_VCC_CRT_TYPE),d)
|
---|
| 172 | DLL_TOOL_VCC70_MSVCP71D ?= $(PATH_TOOL_VCC70)/bin/msvcp71d.dll
|
---|
| 173 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCP71D)),)
|
---|
| 174 | bin_SOURCES += \
|
---|
| 175 | $(DLL_TOOL_VCC70_MSVCP71D)=>msvcp71d.dll \
|
---|
| 176 | $(DLL_TOOL_VCC70_MSVCP71D)=>testcase/msvcp71d.dll
|
---|
[1] | 177 | endif
|
---|
[25074] | 178 | endif
|
---|
| 179 |
|
---|
| 180 | DLL_TOOL_VCC70_MSVCRT ?= $(PATH_TOOL_VCC70)/bin/msvcrt.dll
|
---|
[1] | 181 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCRT)),)
|
---|
| 182 | bin_SOURCES += \
|
---|
[25074] | 183 | $(DLL_TOOL_VCC70_MSVCRT)=>msvcrt.dll \
|
---|
| 184 | $(DLL_TOOL_VCC70_MSVCRT)=>testcase/msvcrt.dll
|
---|
[1] | 185 | endif
|
---|
| 186 | endif
|
---|
| 187 | endif
|
---|
| 188 |
|
---|
[22453] | 189 |
|
---|
[12173] | 190 | ifdef VBOX_WITH_QT4_SUN
|
---|
[1648] | 191 | #
|
---|
[12173] | 192 | # Install our Qt DLLs / Shared Objects / Frameworks.
|
---|
[12952] | 193 | # Note: The installer fixes the darwin .dylibs when hardening is enabled.
|
---|
[12173] | 194 | #
|
---|
| 195 | INSTALLS += qt4-bin
|
---|
[12948] | 196 | qt4-bin_MODE = 755
|
---|
[12173] | 197 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
[12948] | 198 | qt4-bin_INST = $(INST_VIRTUALBOX)Contents/
|
---|
[22383] | 199 | qt4-bin_SOURCES = $(foreach qtmod, QtCore QtGui QtNetwork $(if $(VBOX_GUI_USE_QGL), QtOpenGL,) \
|
---|
[16986] | 200 | ,$(VBOX_PATH_QT4)/Frameworks/$(qtmod)VBox.framework/Versions/4/$(qtmod)VBox=>Frameworks/$(qtmod)VBox.framework/Versions/4/$(qtmod)VBox)
|
---|
[17849] | 201 | ifdef VBOX_WITH_COCOA_QT
|
---|
| 202 | qt4-bin_SOURCES += \
|
---|
| 203 | $(VBOX_PATH_QT4)/Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/classes.nib=>Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/classes.nib \
|
---|
| 204 | $(VBOX_PATH_QT4)/Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/info.nib=>Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/info.nib \
|
---|
| 205 | $(VBOX_PATH_QT4)/Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib=>Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib
|
---|
[16925] | 206 | endif
|
---|
| 207 | qt4-bin_SOURCES += \
|
---|
[17849] | 208 | $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib=>MacOS/accessible/libqtaccessiblewidgets.dylib
|
---|
[22383] | 209 | qt4-bin_SYMLINKS = $(foreach qtmod, QtCore QtGui QtNetwork $(if $(VBOX_GUI_USE_QGL), QtOpenGL,) \
|
---|
[16985] | 210 | ,Frameworks/$(qtmod)VBox.framework/$(qtmod)VBox=>Versions/4/$(qtmod)VBox)
|
---|
| 211 | ifdef VBOX_WITH_COCOA_QT
|
---|
| 212 | qt4-bin_SYMLINKS += \
|
---|
| 213 | Frameworks/QtGuiVBox.framework/Resources=>Versions/4/Resources/
|
---|
| 214 | endif
|
---|
[12173] | 215 | else ifeq ($(KBUILD_TARGET),win)
|
---|
| 216 | qt4-bin_INST = $(INST_BIN)
|
---|
| 217 | qt4-bin_SOURCES = \
|
---|
[18717] | 218 | $(VBOX_PATH_QT4_LIB)/QtCoreVBox4.dll \
|
---|
| 219 | $(VBOX_PATH_QT4_LIB)/QtGuiVBox4.dll \
|
---|
| 220 | $(VBOX_PATH_QT4_LIB)/QtNetworkVBox4.dll \
|
---|
[22383] | 221 | $(if $(VBOX_GUI_USE_QGL), $(VBOX_PATH_QT4_LIB)/QtOpenGLVBox4.dll,) \
|
---|
[12948] | 222 | $(VBOX_PATH_QT4)/plugins/accessible/qtaccessiblewidgets4.dll=>accessible/qtaccessiblewidgets4.dll
|
---|
[18717] | 223 | else
|
---|
[12173] | 224 | qt4-bin_INST = $(INST_BIN)
|
---|
| 225 | qt4-bin_SOURCES = \
|
---|
[17267] | 226 | $(VBOX_PATH_QT4_LIB)/libQtCoreVBox.so.4 \
|
---|
| 227 | $(VBOX_PATH_QT4_LIB)/libQtGuiVBox.so.4 \
|
---|
| 228 | $(VBOX_PATH_QT4_LIB)/libQtNetworkVBox.so.4 \
|
---|
[22383] | 229 | $(if $(VBOX_GUI_USE_QGL), $(VBOX_PATH_QT4_LIB)/libQtOpenGLVBox.so.4,) \
|
---|
[12950] | 230 | $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets$(SUFF_DLL)=>accessible/libqtaccessiblewidgets$(SUFF_DLL)
|
---|
[12173] | 231 | endif
|
---|
| 232 | endif # VBOX_WITH_QT4_SUN
|
---|
| 233 |
|
---|
| 234 |
|
---|
| 235 | #
|
---|
[17250] | 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
|
---|
[17849] | 242 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
[17250] | 243 | INSTALLS += buildserver-additions
|
---|
| 244 | endif
|
---|
| 245 | else
|
---|
| 246 | INSTALLS += buildserver-additions
|
---|
| 247 | endif
|
---|
| 248 |
|
---|
| 249 | #
|
---|
[6129] | 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 | #
|
---|
[16957] | 254 | buildserver-additions_INST = $(INST_ADDITIONS_ISO)
|
---|
[6129] | 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 |
|
---|
[13348] | 259 | $(PATH_TARGET)/VBoxGuestAdditions.iso: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
|
---|
[6129] | 260 | $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
[13893] | 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
|
---|
[6129] | 266 | $(CP) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp $(PATH_TARGET)/VBoxGuestAdditions.iso
|
---|
| 267 | $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
| 268 |
|
---|
[13893] | 269 | ifeq ($(KBUILD_HOST),win)
|
---|
[6129] | 270 | buildserver-additions-affinity-hack:
|
---|
[6142] | 271 | $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
[13893] | 272 | endif
|
---|
[6129] | 273 | endif
|
---|
| 274 |
|
---|
| 275 |
|
---|
| 276 | #
|
---|
[11686] | 277 | #
|
---|
| 278 | # Install documentation files (at the moment the .chm) from the build server.
|
---|
| 279 | #
|
---|
| 280 | ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
|
---|
[13348] | 281 | ## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
|
---|
[11686] | 282 | INSTALLS += buildserver-docs
|
---|
| 283 | buildserver-docs_INST = $(INST_BIN)
|
---|
| 284 | buildserver-docs_MODE = 0644
|
---|
[13228] | 285 | buildserver-docs_SOURCES = \
|
---|
[13246] | 286 | $(addprefix $(PATH_TARGET)/, \
|
---|
[13244] | 287 | VirtualBox.chm UserManual.pdf \
|
---|
| 288 | $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
|
---|
[13228] | 289 | buildserver-docs_CLEANS = \
|
---|
[21925] | 290 | $(buildserver-docs_0_OUTDIR)/unpacked.ts \
|
---|
| 291 | $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip \
|
---|
| 292 | $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp \
|
---|
[13246] | 293 | $(addprefix $(PATH_TARGET)/, \
|
---|
[13244] | 294 | VirtualBox.chm UserManual.pdf \
|
---|
| 295 | $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf))
|
---|
[11686] | 296 |
|
---|
[13348] | 297 | ## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
|
---|
[11686] | 298 | include $(KBUILD_PATH)/tools/ZIP.kmk
|
---|
| 299 |
|
---|
[21925] | 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
|
---|
[11686] | 303 | $(call MSG_L1,Unpacking documentation)
|
---|
| 304 | $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
|
---|
[21925] | 305 | $(APPEND) -t $@ "done"
|
---|
[11686] | 306 |
|
---|
[21925] | 307 | $$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
|
---|
| 308 | $(RM) -f $@ $@.tmp
|
---|
[13893] | 309 | ifneq ($(KBUILD_HOST),win)
|
---|
[21925] | 310 | $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $@.tmp
|
---|
[13893] | 311 | else
|
---|
| 312 | $(KMK) --affinity 1 -f $(MAKEFILE) VBOX_SINGLE_MAKEFILE= buildserver-documentation-affinity-hack
|
---|
| 313 | endif
|
---|
[21925] | 314 | $(CP) -f $@.tmp $@
|
---|
| 315 | $(RM) -f $@.tmp
|
---|
[23658] | 316 | ## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
|
---|
[11686] | 317 |
|
---|
[13893] | 318 | ifeq ($(KBUILD_HOST),win)
|
---|
[11686] | 319 | buildserver-documentation-affinity-hack:
|
---|
[21925] | 320 | $(SHELL) $(PATH_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename $(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp
|
---|
[13893] | 321 | endif
|
---|
[13348] | 322 | endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
|
---|
[11686] | 323 |
|
---|
| 324 |
|
---|
[23658] | 325 | #
|
---|
[24831] | 326 | # Install EFI firmware image
|
---|
[23658] | 327 | #
|
---|
[23650] | 328 | ifdef VBOX_WITH_EFIFW_FROM_BUILD_SERVER
|
---|
[24576] | 329 | #
|
---|
| 330 | # Either from the build server.
|
---|
| 331 | #
|
---|
[23658] | 332 | INSTALLS += buildserver-efifw
|
---|
[23650] | 333 | buildserver-efifw_INST = $(INST_BIN)
|
---|
| 334 | buildserver-efifw_MODE = 0644
|
---|
| 335 | buildserver-efifw_SOURCES = \
|
---|
[24858] | 336 | $(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd=>VBoxEFI32.fd \
|
---|
| 337 | $(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd=>VBoxEFI64.fd
|
---|
[23658] | 338 | buildserver-efifw_CLEANS = \
|
---|
| 339 | $(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd \
|
---|
[24818] | 340 | $(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd \
|
---|
[23658] | 341 | $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip \
|
---|
| 342 | $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp
|
---|
| 343 | ## @todo rainy day: cleanup the output directory (zip contains lots more)
|
---|
[23650] | 344 |
|
---|
[23658] | 345 | ## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
|
---|
| 346 | include $(KBUILD_PATH)/tools/ZIP.kmk
|
---|
[23650] | 347 |
|
---|
[24831] | 348 | $$(buildserver-efifw_0_OUTDIR)/FV/VBOX.fd \
|
---|
| 349 | + $$(buildserver-efifw_0_OUTDIR)/FV/VBOX64.fd: $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip
|
---|
[23658] | 350 | $(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(buildserver-efifw_0_OUTDIR)
|
---|
[23656] | 351 |
|
---|
[23658] | 352 | $$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/efi_firmware.sh | $$(dir $$@)
|
---|
[23660] | 353 | $(RM) -f $@ $@.tmp
|
---|
[23658] | 354 | ifneq ($(KBUILD_HOST),win)
|
---|
| 355 | $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename $@.tmp
|
---|
| 356 | else
|
---|
| 357 | $(KMK) --affinity 1 -f $(MAKEFILE) VBOX_SINGLE_MAKEFILE= buildserver-efifw-affinity-hack
|
---|
| 358 | endif
|
---|
| 359 | $(CP) -f $@.tmp $@
|
---|
| 360 | $(RM) -f $@.tmp
|
---|
| 361 | ## @todo kBuild: The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has been added to kBuild.
|
---|
[23650] | 362 |
|
---|
[23658] | 363 | ifeq ($(KBUILD_HOST),win)
|
---|
| 364 | buildserver-efifw-affinity-hack:
|
---|
[23661] | 365 | $(SHELL) $(PATH_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename $(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp
|
---|
[23658] | 366 | endif
|
---|
[24576] | 367 | else
|
---|
| 368 | #
|
---|
| 369 | # Or from the local copy
|
---|
| 370 | #
|
---|
| 371 | INSTALLS += local-efifw
|
---|
| 372 | local-efifw_INST = $(INST_BIN)
|
---|
| 373 | local-efifw_MODE = 0644
|
---|
| 374 | local-efifw_SOURCES = \
|
---|
[24858] | 375 | $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI32.fd=>VBoxEFI32.fd \
|
---|
| 376 | $(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI64.fd=>VBoxEFI64.fd
|
---|
[23658] | 377 | endif # VBOX_WITH_EFIFW_FROM_BUILD_SERVER
|
---|
| 378 |
|
---|
| 379 |
|
---|
[11686] | 380 | #
|
---|
[4398] | 381 | # Install staged binaries on platforms where we can't cross
|
---|
[1648] | 382 | # compile things.
|
---|
| 383 | #
|
---|
[8758] | 384 | ifn1of ($(KBUILD_TARGET), l4 linux win)
|
---|
[1648] | 385 | VBOX_PATH_STAGED ?= .
|
---|
| 386 |
|
---|
| 387 | # Additions.
|
---|
| 388 | ifndef VBOX_WITH_LINUX_ADDITIONS
|
---|
| 389 | ifndef VBOX_WITH_WIN32_ADDITIONS
|
---|
| 390 | ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
|
---|
| 391 | INSTALLS += staged-additions
|
---|
[16957] | 392 | staged-additions_INST = $(INST_ADDITIONS_ISO)
|
---|
[1648] | 393 | staged-additions_MODE = 0644
|
---|
| 394 | staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
|
---|
| 395 | endif
|
---|
| 396 | endif
|
---|
| 397 | endif
|
---|
| 398 |
|
---|
| 399 | # guesttool.exe
|
---|
| 400 | ifndef VBOX_WITH_WIN32_ADDITIONS
|
---|
| 401 | ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
|
---|
| 402 | INSTALLS += staged-guesttool
|
---|
| 403 | staged-guesttool_INST = $(INST_BIN)
|
---|
| 404 | staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
|
---|
| 405 | endif
|
---|
| 406 | endif
|
---|
| 407 |
|
---|
| 408 | endif
|
---|
| 409 |
|
---|
[6004] | 410 | endif # !VBOX_ONLY_ADDITIONS
|
---|
[11703] | 411 | endif # !VBOX_ONLY_DOCS
|
---|
[1648] | 412 |
|
---|
| 413 |
|
---|
[12780] | 414 | ifdef VBOX_ONLY_DOCS
|
---|
| 415 | # It may sound a bit odd, but for preparing the documentation package the
|
---|
| 416 | # doxygen documentation isn't needed and increases the build time a lot.
|
---|
[12781] | 417 | docs:
|
---|
[12780] | 418 | else # !VBOX_ONLY_DOCS
|
---|
[1] | 419 | #
|
---|
| 420 | # Generate documentation.
|
---|
| 421 | # (This should be converted into a separate pass or merged with an existing one later.)
|
---|
| 422 | #
|
---|
[12780] | 423 | ifdef VBOX_SINGLE_MAKEFILE
|
---|
| 424 | ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
|
---|
| 425 | docs: docs.Core
|
---|
| 426 | endif
|
---|
| 427 | else # !VBOX_SINGLE_MAKEFILE
|
---|
[11439] | 428 | docs: $(if $(VBOX_WITH_ALL_DOXYGEN_TARGETS),docs.Core)
|
---|
[12780] | 429 | $(KMK) -C src/VBox/Main docs.Main
|
---|
| 430 | ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
|
---|
| 431 | $(KMK) -C src/VBox/Runtime docs.iprt
|
---|
| 432 | endif
|
---|
| 433 | endif # !VBOX_SINGLE_MAKEFILE
|
---|
[11703] | 434 | endif # !VBOX_ONLY_DOCS
|
---|
[1] | 435 |
|
---|
[12647] | 436 | docs.Core docs.core: $(PATH_TARGET)/docs.Core
|
---|
[1] | 437 |
|
---|
| 438 |
|
---|
[6288] | 439 |
|
---|
[1] | 440 | #
|
---|
[6288] | 441 | # The core (VMM+REM+Devices+Main) documentation.
|
---|
[1] | 442 | #
|
---|
[6288] | 443 | # This includes so much because we wish to have the complete CFGM
|
---|
| 444 | # and GCFGM lists.
|
---|
| 445 | #
|
---|
| 446 | OTHER_CLEAN += \
|
---|
[10226] | 447 | $(PATH_TARGET)/Doxyfile.Core \
|
---|
| 448 | $(PATH_TARGET)/Doxyfile.Core.dep
|
---|
[1] | 449 |
|
---|
[10226] | 450 | VBOX_CORE_DOXYFILE_INPUT_DIRS = \
|
---|
[6288] | 451 | include/iprt \
|
---|
| 452 | include/VBox \
|
---|
| 453 | include/VBox/com \
|
---|
| 454 | include/VBox/HostServices \
|
---|
| 455 | src/VBox/VMM \
|
---|
| 456 | src/VBox/VMM/VMMR0 \
|
---|
| 457 | src/VBox/VMM/VMMGC \
|
---|
| 458 | src/VBox/VMM/VMMAll \
|
---|
| 459 | src/VBox/VMM/PATM \
|
---|
| 460 | src/VBox/VMM/PATM/VMMR0 \
|
---|
| 461 | src/VBox/VMM/PATM/VMMGC \
|
---|
| 462 | src/VBox/VMM/PATM/VMMAll \
|
---|
| 463 | src/VBox/VMM/VMMSwitcher \
|
---|
| 464 | src/VBox/Debugger \
|
---|
[10029] | 465 | src/VBox/Devices \
|
---|
[6288] | 466 | src/VBox/Devices/Audio \
|
---|
| 467 | src/VBox/Devices/Bus \
|
---|
| 468 | src/VBox/Devices/Graphics \
|
---|
| 469 | src/VBox/Devices/Graphics/BIOS \
|
---|
| 470 | src/VBox/Devices/Input \
|
---|
| 471 | src/VBox/Devices/Networking \
|
---|
| 472 | src/VBox/Devices/PC \
|
---|
| 473 | src/VBox/Devices/PC/BIOS \
|
---|
| 474 | src/VBox/Devices/Parallel \
|
---|
| 475 | src/VBox/Devices/Serial \
|
---|
| 476 | src/VBox/Devices/Storage \
|
---|
| 477 | src/VBox/Devices/VBoxHDDFormats \
|
---|
| 478 | src/VBox/Devices/VBoxHDDFormats/StorageCraft \
|
---|
| 479 | src/VBox/Devices/USB \
|
---|
| 480 | src/VBox/Devices/USB/darwin \
|
---|
| 481 | src/VBox/Devices/USB/linux \
|
---|
| 482 | src/VBox/Devices/USB/os2 \
|
---|
| 483 | src/VBox/Devices/USB/solaris \
|
---|
| 484 | src/VBox/Devices/USB/vrdp \
|
---|
| 485 | src/VBox/Devices/USB/win32 \
|
---|
| 486 | src/VBox/Devices/VMMDev \
|
---|
| 487 | src/VBox/Main/include \
|
---|
| 488 | src/VBox/Main/include/hgcm \
|
---|
[10029] | 489 | src/VBox/Main \
|
---|
[6288] | 490 | src/VBox/Main/glue \
|
---|
| 491 | src/VBox/Main/hgcm \
|
---|
| 492 | src/VBox/Main/webservice \
|
---|
| 493 | src/VBox/Main/xml \
|
---|
| 494 | src/VBox/Main/darwin \
|
---|
| 495 | src/VBox/Main/linux \
|
---|
| 496 | src/VBox/Main/os2 \
|
---|
| 497 | src/VBox/Main/solaris \
|
---|
[10020] | 498 | src/VBox/Main/win \
|
---|
| 499 | src/VBox/Main/xpcom \
|
---|
[10029] | 500 | src/VBox/HostServices \
|
---|
[6307] | 501 | src/VBox/HostServices/SharedClipboard \
|
---|
| 502 | src/VBox/HostServices/SharedFolders \
|
---|
[10020] | 503 | src/VBox/HostServices/SharedInfoServices \
|
---|
[6307] | 504 | src/VBox/HostServices/SharedOpenGL \
|
---|
| 505 | src/VBox/HostDrivers/Support \
|
---|
| 506 | src/VBox/HostDrivers/Support/darwin \
|
---|
| 507 | src/VBox/HostDrivers/Support/freebsd \
|
---|
| 508 | src/VBox/HostDrivers/Support/l4 \
|
---|
| 509 | src/VBox/HostDrivers/Support/linux \
|
---|
| 510 | src/VBox/HostDrivers/Support/os2 \
|
---|
| 511 | src/VBox/HostDrivers/Support/solaris \
|
---|
| 512 | src/VBox/HostDrivers/Support/win \
|
---|
[10029] | 513 | src/VBox/HostDrivers/VBoxNetFlt \
|
---|
[10020] | 514 | src/VBox/HostDrivers/VBoxNetFlt/darwin \
|
---|
| 515 | src/VBox/HostDrivers/VBoxNetFlt/linux \
|
---|
| 516 | src/VBox/HostDrivers/VBoxNetFlt/solaris \
|
---|
| 517 | src/VBox/HostDrivers/VBoxNetFlt/win \
|
---|
[10029] | 518 | src/VBox/HostDrivers/VBoxNetNat \
|
---|
[10020] | 519 | src/VBox/HostDrivers/VBoxNetNat/darwin \
|
---|
| 520 | src/VBox/HostDrivers/VBoxNetNat/linux \
|
---|
| 521 | src/VBox/HostDrivers/VBoxNetNat/solaris \
|
---|
| 522 | src/VBox/HostDrivers/VBoxNetNat/win \
|
---|
[17850] | 523 | src/VBox/HostDrivers/VBoxNetAdp \
|
---|
| 524 | src/VBox/HostDrivers/VBoxNetAdp/darwin \
|
---|
| 525 | src/VBox/HostDrivers/VBoxNetAdp/linux \
|
---|
| 526 | src/VBox/HostDrivers/VBoxNetAdp/solaris \
|
---|
| 527 | src/VBox/HostDrivers/VBoxNetAdp/win \
|
---|
[10029] | 528 | src/VBox/HostDrivers/VBoxUSB \
|
---|
[6307] | 529 | src/VBox/HostDrivers/VBoxUSB/darwin \
|
---|
| 530 | src/VBox/HostDrivers/VBoxUSB/os2 \
|
---|
[10020] | 531 | src/VBox/HostDrivers/VBoxUSB/solaris \
|
---|
[6307] | 532 | src/VBox/HostDrivers/VBoxUSB/win \
|
---|
| 533 | src/VBox/HostDrivers/VBoxUSB/win/Device \
|
---|
| 534 | src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
|
---|
| 535 | src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
|
---|
| 536 | src/VBox/HostDrivers/VBoxUSB/win/Filter \
|
---|
| 537 | src/VBox/HostDrivers/VBoxUSB/win/Install \
|
---|
| 538 | src/VBox/HostDrivers/VBoxUSB/win/Monitor \
|
---|
| 539 | src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
|
---|
| 540 | src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
|
---|
| 541 | src/VBox/HostDrivers/VBoxUSB/win/usbd \
|
---|
[6288] | 542 |
|
---|
| 543 | # These must come first in order to make things look nice.
|
---|
[10226] | 544 | VBOX_CORE_DOXYFILE_INPUT_FIRST =\
|
---|
[6288] | 545 | $(PATH_ROOT)/doc/VBox-doc.c \
|
---|
| 546 | $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
|
---|
[19010] | 547 | $(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
|
---|
[6288] | 548 | $(PATH_ROOT)/src/VBox/VMM/VMMCodingGuidelines.cpp \
|
---|
| 549 | $(PATH_ROOT)/src/VBox/VMM/VMMDocsRawMode.cpp \
|
---|
| 550 | $(PATH_ROOT)/include/VBox/cdefs.h \
|
---|
| 551 | $(PATH_ROOT)/include/VBox/vmapi.h \
|
---|
| 552 | $(PATH_ROOT)/include/VBox/vmm.h \
|
---|
| 553 | $(PATH_ROOT)/include/VBox/cpum.h \
|
---|
| 554 | $(PATH_ROOT)/include/VBox/mm.h \
|
---|
| 555 | $(PATH_ROOT)/include/VBox/pgm.h \
|
---|
| 556 | $(PATH_ROOT)/include/VBox/selm.h \
|
---|
| 557 | $(PATH_ROOT)/include/VBox/trpm.h \
|
---|
| 558 | $(PATH_ROOT)/include/VBox/patm.h \
|
---|
| 559 | $(PATH_ROOT)/include/VBox/dbgf.h \
|
---|
| 560 | $(PATH_ROOT)/include/VBox/stam.h \
|
---|
| 561 | $(PATH_ROOT)/include/VBox/em.h \
|
---|
| 562 | $(PATH_ROOT)/include/VBox/pdm.h \
|
---|
| 563 | $(PATH_ROOT)/include/VBox/rem.h \
|
---|
| 564 | $(PATH_ROOT)/include/VBox/iom.h \
|
---|
| 565 | $(PATH_ROOT)/include/VBox/cfgm.h \
|
---|
| 566 | $(PATH_ROOT)/include/VBox/tm.h \
|
---|
| 567 | $(PATH_ROOT)/include/VBox/csam.h \
|
---|
| 568 | $(PATH_ROOT)/include/VBox/ssm.h \
|
---|
| 569 | $(PATH_ROOT)/include/VBox/hwaccm.h \
|
---|
| 570 | $(PATH_ROOT)/include/VBox/hwacc_svm.h \
|
---|
| 571 | $(PATH_ROOT)/include/VBox/hwacc_vmx.h \
|
---|
[10029] | 572 | \
|
---|
[6288] | 573 | $(PATH_ROOT)/src/VBox/VMM/CFGMInternal.h \
|
---|
| 574 | $(PATH_ROOT)/src/VBox/VMM/CPUMInternal.h \
|
---|
| 575 | $(PATH_ROOT)/src/VBox/VMM/DBGFInternal.h \
|
---|
| 576 | $(PATH_ROOT)/src/VBox/VMM/EMInternal.h \
|
---|
| 577 | $(PATH_ROOT)/src/VBox/VMM/HWACCMInternal.h \
|
---|
| 578 | $(PATH_ROOT)/src/VBox/VMM/IOMInternal.h \
|
---|
| 579 | $(PATH_ROOT)/src/VBox/VMM/MMInternal.h \
|
---|
| 580 | $(PATH_ROOT)/src/VBox/VMM/PDMInternal.h \
|
---|
| 581 | $(PATH_ROOT)/src/VBox/VMM/PGMInternal.h \
|
---|
| 582 | $(PATH_ROOT)/src/VBox/VMM/PATM/CSAMInternal.h \
|
---|
| 583 | $(PATH_ROOT)/src/VBox/VMM/PATM/PATMInternal.h \
|
---|
| 584 | $(PATH_ROOT)/src/VBox/VMM/REMInternal.h \
|
---|
| 585 | $(PATH_ROOT)/src/VBox/VMM/SELMInternal.h \
|
---|
| 586 | $(PATH_ROOT)/src/VBox/VMM/SSMInternal.h \
|
---|
| 587 | $(PATH_ROOT)/src/VBox/VMM/STAMInternal.h \
|
---|
| 588 | $(PATH_ROOT)/src/VBox/VMM/TMInternal.h \
|
---|
| 589 | $(PATH_ROOT)/src/VBox/VMM/TRPMInternal.h \
|
---|
| 590 | $(PATH_ROOT)/src/VBox/VMM/VMInternal.h \
|
---|
| 591 | $(PATH_ROOT)/src/VBox/VMM/VMMInternal.h \
|
---|
[10029] | 592 | \
|
---|
[6288] | 593 | $(PATH_ROOT)/include/VBox/vm.h \
|
---|
| 594 | \
|
---|
| 595 | $(PATH_ROOT)/include/VBox/sup.h \
|
---|
[16874] | 596 | $(PATH_ROOT)/include/VBox/VBoxHDD.h \
|
---|
[6288] | 597 | $(PATH_ROOT)/include/VBox/types.h \
|
---|
| 598 | $(PATH_ROOT)/include/VBox/err.h \
|
---|
| 599 | $(PATH_ROOT)/include/VBox/x86.h \
|
---|
| 600 | $(PATH_ROOT)/include/VBox/cpumdis.h \
|
---|
| 601 | $(PATH_ROOT)/include/VBox/dbggui.h \
|
---|
| 602 | $(PATH_ROOT)/include/VBox/dis.h \
|
---|
| 603 | $(PATH_ROOT)/include/VBox/disopcode.h \
|
---|
| 604 | $(PATH_ROOT)/include/VBox/intnet.h \
|
---|
| 605 | $(PATH_ROOT)/include/VBox/settings.h \
|
---|
| 606 | $(PATH_ROOT)/include/VBox/pci.h \
|
---|
| 607 | $(PATH_ROOT)/include/VBox/scsi.h \
|
---|
| 608 | $(PATH_ROOT)/include/VBox/shflsvc.h \
|
---|
| 609 | $(PATH_ROOT)/include/VBox/hgcmsvc.h \
|
---|
| 610 | $(PATH_ROOT)/include/VBox/usb.h \
|
---|
| 611 | $(PATH_ROOT)/include/VBox/vusb.h \
|
---|
[10029] | 612 | \
|
---|
[6288] | 613 | $(PATH_ROOT)/include/VBox/log.h \
|
---|
| 614 | $(PATH_ROOT)/include/VBox/param.h \
|
---|
| 615 | $(PATH_ROOT)/include/VBox/version.h
|
---|
| 616 |
|
---|
[10226] | 617 | VBOX_CORE_DOXYFILE_INPUT := \
|
---|
| 618 | $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
|
---|
| 619 | $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/.asm))
|
---|
| 620 | VBOX_CORE_DOXYFILE_INPUT := \
|
---|
| 621 | $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
|
---|
| 622 | $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT))
|
---|
[6288] | 623 |
|
---|
| 624 | # And some some additional stuff.
|
---|
[10226] | 625 | VBOX_CORE_DOXYFILE_INPUT += \
|
---|
[6288] | 626 | $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
|
---|
| 627 | $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
|
---|
| 628 |
|
---|
| 629 |
|
---|
[10226] | 630 | VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
|
---|
[13547] | 631 | BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
|
---|
[6288] | 632 |
|
---|
[10226] | 633 | -include $(PATH_TARGET)/Doxyfile.Core.dep
|
---|
[6288] | 634 |
|
---|
| 635 | # Generate the Doxyfile
|
---|
[10226] | 636 | $(PATH_TARGET)/Doxyfile.Core: Doxyfile.Core \
|
---|
| 637 | $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
|
---|
| 638 | $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
|
---|
[16532] | 639 | | $$(dir $$@)
|
---|
[10226] | 640 | $(RM) -f $@ $@.tmp $(PATH_TARGET)/Doxyfile.Core.dep
|
---|
[6288] | 641 | $(CP) -f Doxyfile.Core $@.tmp
|
---|
| 642 | $(APPEND) $@.tmp
|
---|
[10226] | 643 | $(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
|
---|
| 644 | $(APPEND) $@.tmp "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
|
---|
[6288] | 645 | $(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
|
---|
| 646 | $(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
|
---|
| 647 | $(APPEND) $@.tmp
|
---|
[10226] | 648 | $(APPEND) $@.tmp "INPUT = $(VBOX_CORE_DOXYFILE_INPUT)"
|
---|
[6288] | 649 | $(APPEND) $@.tmp
|
---|
[8758] | 650 | $(APPEND) $@.tmp "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
|
---|
[6288] | 651 | $(APPEND) $@.tmp "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
|
---|
| 652 | $(APPEND) $@.tmp
|
---|
| 653 | $(MV) -f $@.tmp $@
|
---|
[10226] | 654 | @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
|
---|
| 655 | @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
|
---|
[6288] | 656 |
|
---|
| 657 | # Do the actual job.
|
---|
[13547] | 658 | $(PATH_TARGET)/docs.Core: $(PATH_TARGET)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) | $(VBOX_CORE_DOXYFILE_OUTPUT)/
|
---|
[10029] | 659 | $(RM) -f $(PATH_TARGET)/docs.Core
|
---|
[10226] | 660 | $(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
|
---|
| 661 | doxygen $(PATH_TARGET)/Doxyfile.Core
|
---|
[6288] | 662 | $(APPEND) $(PATH_TARGET)/docs.Core
|
---|
[1] | 663 |
|
---|
[6288] | 664 |
|
---|
[1] | 665 |
|
---|
| 666 | #
|
---|
[6052] | 667 | # Build the additions, all of them.
|
---|
| 668 | #
|
---|
[6129] | 669 | # This is currently tailored (hardcoded) for the additions
|
---|
[6052] | 670 | # build box. Can make it pretty and configurable later.
|
---|
| 671 | #
|
---|
| 672 | # The fetching must be done in serial fashion, while the building
|
---|
| 673 | # should be more flexible wrt to -jN.
|
---|
| 674 | #
|
---|
| 675 | additions-fetch:
|
---|
| 676 | + $(KMK) -C tools fetch
|
---|
[11898] | 677 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux
|
---|
| 678 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux
|
---|
| 679 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2
|
---|
| 680 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris
|
---|
| 681 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris
|
---|
| 682 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win
|
---|
| 683 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win
|
---|
[5957] | 684 |
|
---|
[6052] | 685 |
|
---|
[12337] | 686 | ## @todo Currently combined solaris additions building assumes that amd64 is
|
---|
[16043] | 687 | # built first. The windows amd64 additions need some x86 files, so don't change
|
---|
[25220] | 688 | # the order of the windows builds. TODO: Split building and packing for these two VMs.
|
---|
[6052] | 689 | additions-build: \
|
---|
[25222] | 690 | additions-build-solaris.amd64 \
|
---|
| 691 | additions-build-solaris.x86 \
|
---|
[16043] | 692 | additions-build-win.x86 \
|
---|
[11898] | 693 | additions-build-win.amd64 \
|
---|
[6052] | 694 | additions-build-os2.x86 \
|
---|
[11898] | 695 | additions-build-linux.amd64 \
|
---|
[6052] | 696 | additions-build-linux.x86
|
---|
| 697 |
|
---|
[10161] | 698 | VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
|
---|
| 699 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
| 700 | KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
|
---|
[25209] | 701 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
[10161] | 702 |
|
---|
[8762] | 703 | VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
|
---|
| 704 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
| 705 | KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
|
---|
[25209] | 706 | VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
[6052] | 707 |
|
---|
[12833] | 708 | # Automatically determine the additions build subdir name. Used for figuring
|
---|
| 709 | # out directory names inside the additions building VMs.
|
---|
| 710 | VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
|
---|
| 711 |
|
---|
[14428] | 712 | VBOX_KMK_TIME = $(KBUILD_BIN_PATH)/kmk_time
|
---|
| 713 |
|
---|
[25225] | 714 | # When building in parallel on a Windows host, make sure we finish the host
|
---|
| 715 | # bit before kicking off any UNIX guest or we'll run into file sharing issues.
|
---|
| 716 | ifeq ($(KBUILD_TARGET),win)
|
---|
| 717 | VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST = additions-build-win.x86 additions-build-win.amd64
|
---|
| 718 | else
|
---|
| 719 | VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST =
|
---|
| 720 | endif
|
---|
| 721 |
|
---|
[25220] | 722 | # ASSUMES the 32-bit edition has been built already. Also for serializing VM access.
|
---|
[25221] | 723 | additions-build-win.amd64: additions-build-win.x86
|
---|
[10161] | 724 | ifeq ($(KBUILD_TARGET),win)
|
---|
[25209] | 725 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
| 726 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
|
---|
[10161] | 727 | else
|
---|
[13525] | 728 | $(call MSG_L1,Building Windows/amd64 additions)
|
---|
[25223] | 729 | $(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 "
|
---|
[10161] | 730 | endif
|
---|
| 731 |
|
---|
[6052] | 732 | additions-build-win.x86:
|
---|
[8758] | 733 | ifeq ($(KBUILD_TARGET),win)
|
---|
[25209] | 734 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
| 735 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
|
---|
[6052] | 736 | else
|
---|
[13525] | 737 | $(call MSG_L1,Building Windows/x86 additions)
|
---|
[25223] | 738 | $(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"
|
---|
[6052] | 739 | endif
|
---|
[6129] | 740 |
|
---|
[25221] | 741 | # ASSUMES the 64-bit edition are built first. This also serializes VM access.
|
---|
| 742 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
[10161] | 743 | additions-build-solaris.amd64:
|
---|
[25209] | 744 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
| 745 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
|
---|
[25221] | 746 |
|
---|
| 747 | additions-build-solaris.x86: additions-build-solaris.amd64
|
---|
| 748 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
| 749 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
|
---|
| 750 |
|
---|
[10161] | 751 | else
|
---|
[25221] | 752 | additions-build-solaris.rsync-into-vm:
|
---|
[25222] | 753 | $(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)
|
---|
[25221] | 754 |
|
---|
[25225] | 755 | additions-build-solaris.build-it: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
|
---|
[25221] | 756 | $(call MSG_L1,Building Solaris/amd64 additions)
|
---|
[25223] | 757 | $(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"
|
---|
[13525] | 758 | $(call MSG_L1,Building Solaris/x86 additions)
|
---|
[25223] | 759 | $(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"
|
---|
[25221] | 760 |
|
---|
[25222] | 761 | additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
|
---|
| 762 | $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
|
---|
| 763 | $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
|
---|
| 764 |
|
---|
| 765 | .NOTPARALLEL: additions-build-solaris.rsync-out-of-vm additions-build-solaris.rsync-into-vm
|
---|
| 766 | .PHONY: additions-build-solaris.rsync-out-of-vm additions-build-solaris.rsync-into-vm additions-build-solaris.build-it
|
---|
| 767 |
|
---|
| 768 | additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
|
---|
| 769 | additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
|
---|
[8032] | 770 | endif
|
---|
[6052] | 771 |
|
---|
| 772 | additions-build-os2.x86:
|
---|
[8758] | 773 | #ifeq ($(KBUILD_TARGET),os2)
|
---|
[25209] | 774 | # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
| 775 | # + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
|
---|
[6052] | 776 | #else
|
---|
[18908] | 777 | # $(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) "
|
---|
[6052] | 778 | #endif
|
---|
| 779 |
|
---|
[25225] | 780 | additions-build-linux.amd64: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
|
---|
[10161] | 781 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
|
---|
[25209] | 782 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
| 783 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
|
---|
[10161] | 784 | else
|
---|
[13525] | 785 | $(call MSG_L1,Building Linux/amd64 additions)
|
---|
[25223] | 786 | $(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"
|
---|
[10161] | 787 | endif
|
---|
| 788 |
|
---|
[25225] | 789 | additions-build-linux.x86: $(VBOX_ADDITIONS_BUILD_WIN_HOST_FIRST)
|
---|
[8904] | 790 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
|
---|
[25209] | 791 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
|
---|
| 792 | + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
|
---|
[6052] | 793 | else
|
---|
[13525] | 794 | $(call MSG_L1,Building Linux/x86 additions)
|
---|
[25223] | 795 | $(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"
|
---|
[6052] | 796 | endif
|
---|
| 797 |
|
---|
| 798 |
|
---|
| 799 | additions-packing:
|
---|
| 800 | + $(KMK) VBOX_ONLY_ADDITIONS=1 \
|
---|
[9641] | 801 | VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
|
---|
[9643] | 802 | VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
|
---|
[11898] | 803 | VBOX_WITH_ADDITIONS_ISO.linux.amd64=1 \
|
---|
[6052] | 804 | VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
|
---|
[12337] | 805 | VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
|
---|
[8058] | 806 | VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
|
---|
[12337] | 807 | VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
|
---|
[11898] | 808 | VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
|
---|
[9641] | 809 | VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
|
---|
[6052] | 810 | -C src/VBox/Additions \
|
---|
| 811 | $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.iso
|
---|
| 812 |
|
---|
[25221] | 813 | .PHONY: \
|
---|
| 814 | additions-build-win.x86 \
|
---|
| 815 | additions-build-win.amd64 \
|
---|
| 816 | additions-build-solaris.amd64 \
|
---|
| 817 | additions-build-solaris.x86 \
|
---|
| 818 | additions-build-os2.x86 \
|
---|
| 819 | additions-build-linux.amd64 \
|
---|
| 820 | additions-build-linux.x86 \
|
---|
| 821 | additions-packing
|
---|
[12804] | 822 |
|
---|
| 823 |
|
---|
| 824 | #
|
---|
[23618] | 825 | # Build the EFI firmware, all of it.
|
---|
| 826 | #
|
---|
| 827 | # Mainly hooks right now, maybe we need them later.
|
---|
| 828 | #
|
---|
| 829 | efi-fetch:
|
---|
| 830 |
|
---|
| 831 | efi-build: $(VBOX_VERSION_HEADER)
|
---|
| 832 | $(PATH_ROOT)/webtools/tinderbox/client/efi-build.sh
|
---|
| 833 |
|
---|
| 834 | efi-packing:
|
---|
| 835 |
|
---|
| 836 | #
|
---|
[19153] | 837 | # Generate VirtualBox-OSE-x.x.x.tar.bz2 (OSE) tarballs for distribution
|
---|
[293] | 838 | # - includes kBuild
|
---|
| 839 | # - must be executed on an OSE checkout
|
---|
| 840 | #
|
---|
| 841 |
|
---|
| 842 | # the path where to store the tarball
|
---|
[19153] | 843 | TARBALLPATH ?= $(abspath $(PATH_ROOT)/..)
|
---|
[293] | 844 | # the root directory inside the tarball
|
---|
[4448] | 845 | TARBALLROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
|
---|
[293] | 846 | # the name of the tarball file
|
---|
[4448] | 847 | TARBALLNAME ?= VirtualBox-$(VBOX_VERSION_STRING).tar.bz2
|
---|
[19162] | 848 | snapshot-ose:
|
---|
[293] | 849 | @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
|
---|
[19162] | 850 | @if [ -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then \
|
---|
| 851 | echo; \
|
---|
| 852 | echo "Found USB stuff, refused to build OSE tarball!"; \
|
---|
| 853 | echo; \
|
---|
| 854 | exit 1; \
|
---|
| 855 | fi; \
|
---|
| 856 | if [ -z "$(VBOX_OSE)" ]; then \
|
---|
| 857 | echo; \
|
---|
| 858 | echo "Please do 'kmk snapshot-ose VBOX_OSE=1'"; \
|
---|
| 859 | echo; \
|
---|
| 860 | exit 1; \
|
---|
[20645] | 861 | fi
|
---|
[293] | 862 | $(QUIET)$(MKDIR) -p $(TARBALLPATH)
|
---|
[19153] | 863 | $(QUIET)$(RM) -f $(TARBALLPATH)/$(TARBALLROOT)
|
---|
[293] | 864 | $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
|
---|
| 865 | $(QUIET)tar -cjh --owner 0 --group 0 --totals \
|
---|
| 866 | --exclude=.svn \
|
---|
| 867 | --exclude=$(TARBALLROOT)/out \
|
---|
| 868 | --exclude=$(TARBALLROOT)/env.sh \
|
---|
| 869 | --exclude=$(TARBALLROOT)/configure.log \
|
---|
[19158] | 870 | --exclude=$(TARBALLROOT)/build.log \
|
---|
[293] | 871 | --exclude=$(TARBALLROOT)/AutoConfig.kmk \
|
---|
| 872 | --exclude=$(TARBALLROOT)/LocalConfig.kmk \
|
---|
[19158] | 873 | --exclude=$(TARBALLROOT)/prebuild \
|
---|
[293] | 874 | -C $(TARBALLPATH) \
|
---|
| 875 | -f $(TARBALLPATH)/$(TARBALLNAME) \
|
---|
| 876 | $(TARBALLROOT)
|
---|
| 877 | $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
|
---|
[16532] | 878 |
|
---|
| 879 |
|
---|
| 880 | #
|
---|
[19162] | 881 | # Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
|
---|
| 882 | # - includes kBuild
|
---|
[19594] | 883 | # - must be executed on an PUEL checkout
|
---|
[19162] | 884 | #
|
---|
| 885 |
|
---|
| 886 | # the path where to store the zip archive
|
---|
| 887 | ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
|
---|
| 888 | # the root directory inside the zip archive
|
---|
| 889 | ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
|
---|
| 890 | # the name of the zip archive
|
---|
| 891 | ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
|
---|
| 892 | snapshot-puel:
|
---|
| 893 | @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
|
---|
| 894 | @if [ ! -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then \
|
---|
| 895 | echo; \
|
---|
| 896 | echo "Did not find USB stuff, is this an OSE branch?"; \
|
---|
| 897 | echo; \
|
---|
| 898 | exit 1; \
|
---|
| 899 | fi
|
---|
[19163] | 900 | @if [ -z "$(PASSWORD)" ]; then \
|
---|
[19162] | 901 | echo; \
|
---|
| 902 | echo "Please specify a password with PASSWORD=..."; \
|
---|
| 903 | echo; \
|
---|
| 904 | exit 1; \
|
---|
| 905 | fi
|
---|
| 906 | $(QUIET)$(MKDIR) -p $(ZIPPATH)
|
---|
| 907 | $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
|
---|
[19683] | 908 | $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
|
---|
[19162] | 909 | $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
|
---|
| 910 | $(QUIET)(cd $(ZIPPATH); 7z a \
|
---|
| 911 | -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
|
---|
| 912 | -xr!.svn \
|
---|
[19683] | 913 | -i!$(ZIPROOT)/Config.kmk \
|
---|
| 914 | -i!$(ZIPROOT)/Doxyfile.Core \
|
---|
| 915 | -i!$(ZIPROOT)/Makefile.kmk \
|
---|
| 916 | -i!$(ZIPROOT)/configure \
|
---|
| 917 | -i!$(ZIPROOT)/configure.vbs \
|
---|
| 918 | -i!$(ZIPROOT)/doc \
|
---|
| 919 | -i!$(ZIPROOT)/include \
|
---|
| 920 | -i!$(ZIPROOT)/kBuild \
|
---|
| 921 | -i!$(ZIPROOT)/src \
|
---|
| 922 | -i!$(ZIPROOT)/tools/env.sh \
|
---|
| 923 | -i!$(ZIPROOT)/tools/linux.x86/bin/* \
|
---|
| 924 | -i!$(ZIPROOT)/tools/linux.amd64/bin/* \
|
---|
[19162] | 925 | -x!$(ZIPROOT)/doc/Devices \
|
---|
| 926 | -x!$(ZIPROOT)/doc/\*pdf \
|
---|
| 927 | -x!$(ZIPROOT)/doc/L4VM \
|
---|
| 928 | -x!$(ZIPROOT)/doc/VMM \
|
---|
| 929 | -x!$(ZIPROOT)/doc/licenses_old \
|
---|
| 930 | -x!$(ZIPROOT)/doc/manual/de_DE \
|
---|
| 931 | -x!$(ZIPROOT)/doc/manual/fr_FR \
|
---|
| 932 | -x!$(ZIPROOT)/src/tests \
|
---|
[23030] | 933 | -x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
|
---|
[19162] | 934 | -x!$(ZIPROOT)/src/VBox/Installer/AMI \
|
---|
| 935 | -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
|
---|
| 936 | -x!$(ZIPROOT)/src/VBox/Installer/Encore \
|
---|
| 937 | -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
|
---|
| 938 | -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
|
---|
[19683] | 939 | $(ZIPPATH)/$(ZIPNAME))
|
---|
[19162] | 940 | $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
|
---|
| 941 |
|
---|
| 942 |
|
---|
| 943 | #
|
---|
[16532] | 944 | # Generate ALL the rules.
|
---|
| 945 | #
|
---|
| 946 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
| 947 |
|
---|
| 948 |
|
---|
| 949 | #
|
---|
| 950 | # Generate x86.mac and err.mac.
|
---|
| 951 | #
|
---|
| 952 | incs:
|
---|
[20542] | 953 | $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
|
---|
[16532] | 954 | $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
|
---|
[20542] | 955 | $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
|
---|
| 956 | $(SED) -f include/VBox/various.sed --output include/VBox/x86.mac include/VBox/x86.h
|
---|
| 957 | $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
|
---|
[16532] | 958 |
|
---|
| 959 |
|
---|
| 960 | #
|
---|
| 961 | # Generate Visual SlickEdit tagging #defines.
|
---|
| 962 | #
|
---|
| 963 | vslick.h: include/VBox/cdefs.h include/iprt/cdefs.h $(MAKEFILE)
|
---|
| 964 | $(RM) -f -- $@ $@.tmp $@.tmp2 $@.tmp3
|
---|
| 965 | $(APPEND) $@.tmp '// autogenerated'
|
---|
[20374] | 966 | @$(APPEND) $@.tmp '#define RT_C_DECLS_BEGIN '
|
---|
| 967 | @$(APPEND) $@.tmp '#define RT_C_DECLS_END '
|
---|
[16532] | 968 |
|
---|
| 969 | @$(APPEND) $@.tmp '#define ATL_NO_VTABLE '
|
---|
| 970 | @$(APPEND) $@.tmp '#define BEGIN_COM_MAP(a) '
|
---|
[22522] | 971 | @$(APPEND) $@.tmp '#define COM_INTERFACE_ENTRY(a) '
|
---|
| 972 | @$(APPEND) $@.tmp '#define COM_INTERFACE_ENTRY2(a,b) '
|
---|
| 973 | @$(APPEND) $@.tmp '#define COM_INTERFACE_ENTRY3(a,b,c) '
|
---|
| 974 | @$(APPEND) $@.tmp '#define COM_INTERFACE_ENTRY4(a,b,c,d) '
|
---|
[16532] | 975 | @$(APPEND) $@.tmp '#define END_COM_MAP(a) '
|
---|
| 976 |
|
---|
| 977 | @$(APPEND) $@.tmp '#define COM_DECL_READONLY_ENUM_AND_COLLECTION(a) '
|
---|
| 978 | @$(APPEND) $@.tmp '#define COMGETTER(n) Get##n '
|
---|
| 979 | @$(APPEND) $@.tmp '#define COMSETTER(n) Set##n '
|
---|
| 980 | @$(APPEND) $@.tmp '#define ComSafeArrayIn(t,a) t a[] '
|
---|
| 981 | @$(APPEND) $@.tmp '#define ComSafeArrayOut(t,a) t * a[] '
|
---|
[22522] | 982 | @$(APPEND) $@.tmp '#define DECLARE_CLASSFACTORY(a) '
|
---|
| 983 | @$(APPEND) $@.tmp '#define DECLARE_CLASSFACTORY_SINGLETON(a) '
|
---|
| 984 | @$(APPEND) $@.tmp '#define DECLARE_REGISTRY_RESOURCEID(a) '
|
---|
[16532] | 985 | @$(APPEND) $@.tmp '#define DECLARE_NOT_AGGREGATABLE(a) '
|
---|
| 986 | @$(APPEND) $@.tmp '#define DECLARE_PROTECT_FINAL_CONSTRUCT(a) '
|
---|
[22522] | 987 | @$(APPEND) $@.tmp '#define DECLARE_EMPTY_CTOR_DTOR(a) a(); ~a();'
|
---|
| 988 | @$(APPEND) $@.tmp '#define DEFINE_EMPTY_CTOR_DTOR(a) a::a() {} a::~a() {}'
|
---|
[16532] | 989 | @$(APPEND) $@.tmp '#define NS_DECL_ISUPPORTS '
|
---|
[24300] | 990 | @$(APPEND) $@.tmp '#define NS_IMETHOD virtual nsresult '
|
---|
| 991 | @$(APPEND) $@.tmp '#define NS_IMETHOD_(type) virtual type '
|
---|
| 992 | @$(APPEND) $@.tmp '#define NS_IMETHODIMP nsresult '
|
---|
| 993 | @$(APPEND) $@.tmp '#define NS_IMETHODIMP_(type) type '
|
---|
[16532] | 994 | @$(APPEND) $@.tmp '#define PARSERS_EXPORT '
|
---|
[24300] | 995 | if1of ($(KBUILD_HOST),win)
|
---|
| 996 | @$(APPEND) $@.tmp '#define STDMETHOD(m) virtual HRESULT m '
|
---|
| 997 | @$(APPEND) $@.tmp '#define STDMETHOD_(type,m) virtual type m '
|
---|
| 998 | @$(APPEND) $@.tmp '#define STDMETHODIMP HRESULT '
|
---|
| 999 | @$(APPEND) $@.tmp '#define STDMETHODIMP_(type) type '
|
---|
| 1000 | else
|
---|
| 1001 | @$(APPEND) $@.tmp '#define STDMETHOD(m) virtual nsresult m '
|
---|
| 1002 | @$(APPEND) $@.tmp '#define STDMETHOD_(type,m) virtual type m '
|
---|
| 1003 | @$(APPEND) $@.tmp '#define STDMETHODIMP nsresult '
|
---|
| 1004 | @$(APPEND) $@.tmp '#define STDMETHODIMP_(type) type '
|
---|
| 1005 | endif
|
---|
[22522] | 1006 | @$(APPEND) $@.tmp '#define VBOX_SCRIPTABLE(a) public a '
|
---|
| 1007 | @$(APPEND) $@.tmp '#define VBOX_SCRIPTABLE_IMPL(a) '
|
---|
| 1008 | @$(APPEND) $@.tmp '#define VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(a) '
|
---|
[16532] | 1009 |
|
---|
| 1010 | @$(APPEND) $@.tmp '#define CTX_SUFF(var) var##R3 '
|
---|
| 1011 | @$(APPEND) $@.tmp '#define CTXAllSUFF(var) var##R3 '
|
---|
| 1012 | @$(APPEND) $@.tmp '#define CTXSUFF(var) var##HC '
|
---|
[22522] | 1013 | @$(APPEND) $@.tmp '#define OTHERCTXSUFF(var) var##GC '
|
---|
[16532] | 1014 | @$(APPEND) $@.tmp '#define CTXALLMID(first, last) first##R3##last '
|
---|
| 1015 | @$(APPEND) $@.tmp '#define CTXMID(first, last) first##HC##last '
|
---|
| 1016 | @$(APPEND) $@.tmp '#define OTHERCTXMID(first, last) first##GC##last '
|
---|
| 1017 | @$(APPEND) $@.tmp '#define CTXTYPE(GCType, R3Type, R0Type) R3Type '
|
---|
| 1018 | @$(APPEND) $@.tmp '#define RCTYPE(RCType, HCType) RCType '
|
---|
| 1019 | @$(APPEND) $@.tmp '#define GCTYPE(GCType, HCType) GCType '
|
---|
| 1020 | @$(APPEND) $@.tmp '#define RCPTRTYPE(RCType) RCType '
|
---|
| 1021 | @$(APPEND) $@.tmp '#define GCPTRTYPE(GCType) GCType '
|
---|
| 1022 | @$(APPEND) $@.tmp '#define HCPTRTYPE(HCType) HCType '
|
---|
| 1023 | @$(APPEND) $@.tmp '#define R3R0PTRTYPE(HCType) HCType '
|
---|
| 1024 | @$(APPEND) $@.tmp '#define R0PTRTYPE(R3Type) R3Type '
|
---|
| 1025 | @$(APPEND) $@.tmp '#define R3PTRTYPE(R0Type) R0Type '
|
---|
| 1026 | @$(APPEND) $@.tmp '#define RT_SRC_POS __FILE__, __LINE__, __PRETTY_FUNCTION__ '
|
---|
| 1027 | @$(APPEND) $@.tmp '#define RT_SRC_POS_DECL const char *pszFile, unsigned iLine, const char *pszFunction '
|
---|
| 1028 | @$(APPEND) $@.tmp '#define RT_SRC_POS_ARGS pszFile, iLine, pszFunction '
|
---|
| 1029 | @$(APPEND) $@.tmp '#define RTCALL'
|
---|
| 1030 | @$(APPEND) $@.tmp '#define DECLINLINE(type) inline type '
|
---|
[22522] | 1031 | @$(APPEND) $@.tmp '#define DECL_FORCED_INLINE(type) inline type '
|
---|
[22804] | 1032 | @$(APPEND) $@.tmp '#define DECL_INVALID(type) type '
|
---|
[16532] | 1033 |
|
---|
| 1034 | @$(APPEND) $@.tmp '#define PDMDEVINSINT_DECLARED 1'
|
---|
[22522] | 1035 | @$(APPEND) $@.tmp '#define VBOX_WITH_HGCM 1'
|
---|
[16532] | 1036 | @$(APPEND) $@.tmp '#define VBOXCALL'
|
---|
| 1037 |
|
---|
| 1038 | $(SED) -e '/__cdecl/d' \
|
---|
| 1039 | -e '/^ *# *define.*DECL/!d' \
|
---|
| 1040 | -e '/DECLS/d' \
|
---|
| 1041 | -e '/DECLARE_CLS_/d' \
|
---|
| 1042 | -e '/_SRC_POS_DECL/d' \
|
---|
| 1043 | -e '/declspec/d' \
|
---|
| 1044 | -e '/__attribute__/d' \
|
---|
| 1045 | -e 's/# */#/g' \
|
---|
| 1046 | -e 's/ */ /g' \
|
---|
| 1047 | -e '/(type) DECLEXPORT/d' \
|
---|
| 1048 | -e '/ DECLEXPORT_CLASS/d' \
|
---|
| 1049 | -e 's/ *VBOXCALL//' \
|
---|
| 1050 | -e 's/ *RTCALL//' \
|
---|
| 1051 | -e 's/(type) DECLIMPORT(type)/(type) type/' \
|
---|
| 1052 | -e '/ DECLASM(type) type/d' \
|
---|
| 1053 | -e '/define *DECL..CALLBACKMEMBER(type[^)]*) *RT/d' \
|
---|
| 1054 | -e '/define *DECLINLINE(type)/d' \
|
---|
[22804] | 1055 | -e '/ *DECL_INVALID(/d' \
|
---|
[16532] | 1056 | -e '/define RT[DATGRC03]*DECL(type) *DECLHIDDEN(type)/d' \
|
---|
| 1057 | \
|
---|
| 1058 | --append $@.tmp \
|
---|
| 1059 | $(filter-out include/VBox/err.h, $(wildcard include/VBox/*.h)) \
|
---|
| 1060 | include/iprt/cdefs.h
|
---|
| 1061 | $(CAT_EXT) $@.tmp | sort | $(SED_EXT) -e 's/$$/\n/' --output $@.tmp2
|
---|
| 1062 | $(MV) -f $@.tmp2 $@
|
---|
| 1063 | $(RM) -f $@.tmp $@.tmp2 $@.tmp3
|
---|
| 1064 | ifeq ($(KBUILD_HOST),win)
|
---|
| 1065 | @$(ECHO) 'TODO: Merge vslick.h with your "$(HOMEDRIVE)$(HOMEPATH)\Documents\My SlickEdit Config\x.y.z\usercpp.h" file.'
|
---|
| 1066 | else
|
---|
| 1067 | @$(ECHO) "TODO: Merge ./vslick.h with your ~/.slickedit/x.y.z/unxcpp.h file."
|
---|
| 1068 | endif
|
---|
| 1069 |
|
---|
| 1070 |
|
---|
| 1071 | #
|
---|
| 1072 | # Add fetching of the tools to the 'up[date][2]' targets.
|
---|
| 1073 | #
|
---|
| 1074 | up update up2 update2::
|
---|
| 1075 | ifndef VBOX_OSE
|
---|
| 1076 | +$(MAKE) -C tools fetch
|
---|
| 1077 | else
|
---|
| 1078 | $(MAKE) -C tools -f Makefile-ose.kmk fetch
|
---|
| 1079 | endif
|
---|
| 1080 |
|
---|
| 1081 |
|
---|
| 1082 |
|
---|
| 1083 | #
|
---|
| 1084 | # Aliases for building the SDK.
|
---|
| 1085 | #
|
---|
| 1086 | .NOTPARALLEL: sdk sdk-fetch
|
---|
| 1087 | sdk:
|
---|
| 1088 | + $(KMK) VBOX_ONLY_SDK=1 \
|
---|
| 1089 | pass_bldprogs pass_others pass_installs pass_packing
|
---|
| 1090 |
|
---|
| 1091 | sdk-fetch:
|
---|
| 1092 | + $(KMK) KBUILD_TARGET=win KBUILD_TARGET_ARCH=x86 -C tools fetch
|
---|
| 1093 |
|
---|