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