[2478] | 1 | # $Id: Makefile.kmk 10874 2008-07-24 21:56:56Z 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 |
|
---|
| 25 | ifdef VBOX_WITH_DOCS
|
---|
[6006] | 26 | ifndef VBOX_ONLY_ADDITIONS
|
---|
[10195] | 27 | ifdef VBOX_SINGLE_MAKEFILE
|
---|
| 28 | include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk
|
---|
| 29 | else
|
---|
| 30 | SUBDIRS = doc/manual
|
---|
| 31 | endif
|
---|
[6006] | 32 | endif
|
---|
[1] | 33 | endif
|
---|
[10195] | 34 | ifdef VBOX_SINGLE_MAKEFILE
|
---|
| 35 | include $(PATH_SUB_CURRENT)/src/Makefile.kmk
|
---|
| 36 | else
|
---|
| 37 | SUBDIRS += src
|
---|
| 38 | endif
|
---|
[1] | 39 |
|
---|
[6004] | 40 | ifndef VBOX_ONLY_ADDITIONS
|
---|
[1] | 41 | #
|
---|
| 42 | # Install external binaries (mostly redistributable parts of tools we use).
|
---|
| 43 | # This must be done *before* we build the manual.
|
---|
| 44 | #
|
---|
| 45 | # To avoid dragging in unnecessary tools and sdks here, we don't use the .win
|
---|
| 46 | # and .linux property suffixes.
|
---|
| 47 | #
|
---|
[10195] | 48 | INSTALLS += bin
|
---|
[1] | 49 |
|
---|
[960] | 50 | bin_INST = $(INST_BIN)
|
---|
[1] | 51 |
|
---|
| 52 | # The SDL DLLs
|
---|
[8758] | 53 | if1of ($(KBUILD_TARGET), win os2)
|
---|
[1] | 54 | ifneq ($(VBOX_WITH_VBOXSDL)$(VBOX_WITH_VBOXBFE),)
|
---|
[8760] | 55 | include $(KBUILD_PATH)/sdks/LIBSDL.kmk
|
---|
[1] | 56 | bin_SOURCES += \
|
---|
| 57 | $(DLL_SDK_LIBSDL_SDL)
|
---|
| 58 | ifdef VBOX_WITH_SECURELABEL
|
---|
| 59 | bin_SOURCES += \
|
---|
| 60 | $(DLL_SDK_LIBSDL_SDLTTF)
|
---|
| 61 | endif
|
---|
[8758] | 62 | ifeq ($(KBUILD_TARGET),os2)
|
---|
[1] | 63 | bin_SOURCES += \
|
---|
| 64 | $(DLL_SDK_LIBSDL_FSLIB)
|
---|
| 65 | endif
|
---|
| 66 | endif
|
---|
| 67 | endif
|
---|
| 68 |
|
---|
[3405] | 69 |
|
---|
[1] | 70 | # The Qt DLLs.
|
---|
[3405] | 71 | ifneq ($(VBOX_WITH_QTGUI),)
|
---|
[8758] | 72 | if1of ($(KBUILD_TARGET), win os2)
|
---|
[8760] | 73 | #include $(KBUILD_PATH)/sdks/QT3.kmk
|
---|
[1] | 74 | #bin_SOURCES += \
|
---|
| 75 | # $(DLL_SDK_QT3_QT)
|
---|
[7009] | 76 | ifneq ($(strip $(VBOX_DLL_QT)),)
|
---|
[224] | 77 | bin_SOURCES += \
|
---|
| 78 | $(VBOX_DLL_QT)=>$(not-dir $(VBOX_DLL_QT))
|
---|
| 79 | endif
|
---|
[6348] | 80 | ifdef VBOX_QT_BINARIES
|
---|
| 81 | bin_SOURCES += $(VBOX_QT_BINARIES)
|
---|
[3405] | 82 | endif
|
---|
[5362] | 83 | else ifeq ($(VBOX_MUST_INSTALL_LIB_QT),1)
|
---|
[1046] | 84 | bin_SOURCES += \
|
---|
[957] | 85 | $(LIB_QT)
|
---|
| 86 | endif
|
---|
| 87 | endif
|
---|
| 88 |
|
---|
[3405] | 89 |
|
---|
[1] | 90 | # The compiler runtime DLLs.
|
---|
[8758] | 91 | ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
|
---|
[1] | 92 | ifdef VBOX_USE_VCC80
|
---|
[8760] | 93 | include $(KBUILD_PATH)/tools/VCC80X86.kmk
|
---|
| 94 | include $(KBUILD_PATH)/tools/VCC80AMD64.kmk
|
---|
[1] | 95 | bin_SOURCES.x86 += \
|
---|
[6348] | 96 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
[1] | 97 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
|
---|
| 98 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
|
---|
| 99 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
| 100 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
|
---|
| 101 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
|
---|
| 102 | bin_SOURCES.amd64 += \
|
---|
[693] | 103 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
| 104 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
|
---|
| 105 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
|
---|
| 106 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
| 107 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
|
---|
| 108 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
|
---|
[2692] | 109 | endif
|
---|
| 110 | ifndef VBOX_USE_VCC80
|
---|
| 111 | VBOX_INSTALL_VCC70_RT = 1
|
---|
| 112 | endif
|
---|
[8758] | 113 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
|
---|
[2692] | 114 | VBOX_INSTALL_VCC70_RT = 1
|
---|
| 115 | endif
|
---|
| 116 | ifdef VBOX_INSTALL_VCC70_RT
|
---|
[8760] | 117 | include $(KBUILD_PATH)/tools/VCC70.kmk
|
---|
[1] | 118 | ## @todo Move these defines to VCC70.
|
---|
| 119 | DLL_TOOL_VCC70_MSVCR71 ?= $(PATH_TOOL_VCC70)/bin/msvcr71.dll
|
---|
| 120 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCR71)),)
|
---|
| 121 | bin_SOURCES += \
|
---|
| 122 | $(DLL_TOOL_VCC70_MSVCR71)=>msvcr71.dll \
|
---|
| 123 | $(DLL_TOOL_VCC70_MSVCR71)=>testcase/msvcr71.dll
|
---|
| 124 | endif
|
---|
| 125 | DLL_TOOL_VCC70_MSVCP71 ?= $(PATH_TOOL_VCC70)/bin/msvcp71.dll
|
---|
| 126 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCP71)),)
|
---|
| 127 | bin_SOURCES += \
|
---|
| 128 | $(DLL_TOOL_VCC70_MSVCP71)=>msvcp71.dll \
|
---|
| 129 | $(DLL_TOOL_VCC70_MSVCP71)=>testcase/msvcp71.dll
|
---|
| 130 | endif
|
---|
| 131 | DLL_TOOL_VCC70_MSVCRT ?= $(PATH_TOOL_VCC70)/bin/msvcrt.dll
|
---|
| 132 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCRT)),)
|
---|
| 133 | bin_SOURCES += \
|
---|
| 134 | $(DLL_TOOL_VCC70_MSVCRT)=>msvcrt.dll \
|
---|
| 135 | $(DLL_TOOL_VCC70_MSVCRT)=>testcase/msvcrt.dll
|
---|
| 136 | endif
|
---|
| 137 | endif
|
---|
| 138 | endif
|
---|
| 139 |
|
---|
| 140 |
|
---|
[1648] | 141 | #
|
---|
[6129] | 142 | # Install additions iso from the build server.
|
---|
| 143 | # The $(CP)/$(RM) stuff can be replaced by a simple $(TOUCH) once that has
|
---|
| 144 | # been added to kBuild.
|
---|
| 145 | #
|
---|
| 146 | ## @todo need kmk_builtin_touch!
|
---|
| 147 | ifdef VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER
|
---|
| 148 | INSTALLS += buildserver-additions
|
---|
| 149 | buildserver-additions_INST = $(INST_ADDITIONS)
|
---|
| 150 | buildserver-additions_MODE = 0644
|
---|
| 151 | buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
|
---|
| 152 | buildserver-additions_CLEANS = $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
| 153 |
|
---|
| 154 | $(PATH_TARGET)/VBoxGuestAdditions.iso: $(VBOX_SVN_REV_KMK) $(PATH_DEVTOOLS)/bin/additions.sh | $(call DIRDEP, $(PATH_TARGET))
|
---|
| 155 | $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
| 156 | # $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
| 157 | $(KMK) --affinity 1 -f $(MAKEFILE) buildserver-additions-affinity-hack
|
---|
| 158 | $(CP) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp $(PATH_TARGET)/VBoxGuestAdditions.iso
|
---|
| 159 | $(RM) -f $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
| 160 |
|
---|
| 161 | buildserver-additions-affinity-hack:
|
---|
[6142] | 162 | $(SHELL) $(PATH_DEVTOOLS)/bin/additions.sh --cmd fetch --filename $(PATH_TARGET)/VBoxGuestAdditions.iso.tmp
|
---|
[6129] | 163 | endif
|
---|
| 164 |
|
---|
| 165 |
|
---|
| 166 | #
|
---|
[4398] | 167 | # Install staged binaries on platforms where we can't cross
|
---|
[1648] | 168 | # compile things.
|
---|
| 169 | #
|
---|
[8758] | 170 | ifn1of ($(KBUILD_TARGET), l4 linux win)
|
---|
[1648] | 171 | VBOX_PATH_STAGED ?= .
|
---|
| 172 |
|
---|
| 173 | # Additions.
|
---|
| 174 | ifndef VBOX_WITH_LINUX_ADDITIONS
|
---|
| 175 | ifndef VBOX_WITH_WIN32_ADDITIONS
|
---|
| 176 | ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
|
---|
| 177 | INSTALLS += staged-additions
|
---|
| 178 | staged-additions_INST = $(INST_ADDITIONS)
|
---|
| 179 | staged-additions_MODE = 0644
|
---|
| 180 | staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
|
---|
| 181 | endif
|
---|
| 182 | endif
|
---|
| 183 | endif
|
---|
| 184 |
|
---|
| 185 | # guesttool.exe
|
---|
| 186 | ifndef VBOX_WITH_WIN32_ADDITIONS
|
---|
| 187 | ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
|
---|
| 188 | INSTALLS += staged-guesttool
|
---|
| 189 | staged-guesttool_INST = $(INST_BIN)
|
---|
| 190 | staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
|
---|
| 191 | endif
|
---|
| 192 | endif
|
---|
| 193 |
|
---|
| 194 | endif
|
---|
| 195 |
|
---|
[6004] | 196 | endif # !VBOX_ONLY_ADDITIONS
|
---|
[1648] | 197 |
|
---|
| 198 |
|
---|
[10195] | 199 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
[1] | 200 |
|
---|
| 201 |
|
---|
| 202 | #
|
---|
| 203 | # Generate documentation.
|
---|
| 204 | # (This should be converted into a separate pass or merged with an existing one later.)
|
---|
| 205 | #
|
---|
[10874] | 206 | docs: $(if $(VBOX_WITH_ALL_DOXYGEN_TARGET),docs.Core)
|
---|
[6288] | 207 | $(KMK) -C src/VBox/Main docs
|
---|
[10874] | 208 | ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
|
---|
[6288] | 209 | $(KMK) -C src/VBox/Runtime docs
|
---|
[10874] | 210 | endif
|
---|
[1] | 211 |
|
---|
| 212 | docs.Core: $(PATH_TARGET)/docs.Core
|
---|
| 213 |
|
---|
| 214 |
|
---|
[6288] | 215 |
|
---|
[1] | 216 | #
|
---|
[6288] | 217 | # The core (VMM+REM+Devices+Main) documentation.
|
---|
[1] | 218 | #
|
---|
[6288] | 219 | # This includes so much because we wish to have the complete CFGM
|
---|
| 220 | # and GCFGM lists.
|
---|
| 221 | #
|
---|
| 222 | OTHER_CLEAN += \
|
---|
[10226] | 223 | $(PATH_TARGET)/Doxyfile.Core \
|
---|
| 224 | $(PATH_TARGET)/Doxyfile.Core.dep
|
---|
[1] | 225 |
|
---|
[10226] | 226 | VBOX_CORE_DOXYFILE_INPUT_DIRS = \
|
---|
[6288] | 227 | include/iprt \
|
---|
| 228 | include/VBox \
|
---|
| 229 | include/VBox/com \
|
---|
| 230 | include/VBox/HostServices \
|
---|
| 231 | src/VBox/VMM \
|
---|
| 232 | src/VBox/VMM/VMMR0 \
|
---|
| 233 | src/VBox/VMM/VMMGC \
|
---|
| 234 | src/VBox/VMM/VMMAll \
|
---|
| 235 | src/VBox/VMM/PATM \
|
---|
| 236 | src/VBox/VMM/PATM/VMMR0 \
|
---|
| 237 | src/VBox/VMM/PATM/VMMGC \
|
---|
| 238 | src/VBox/VMM/PATM/VMMAll \
|
---|
| 239 | src/VBox/VMM/VMMSwitcher \
|
---|
| 240 | src/VBox/Debugger \
|
---|
[10029] | 241 | src/VBox/Devices \
|
---|
[6288] | 242 | src/VBox/Devices/Audio \
|
---|
| 243 | src/VBox/Devices/Bus \
|
---|
| 244 | src/VBox/Devices/Graphics \
|
---|
| 245 | src/VBox/Devices/Graphics/BIOS \
|
---|
| 246 | src/VBox/Devices/Input \
|
---|
| 247 | src/VBox/Devices/Networking \
|
---|
| 248 | src/VBox/Devices/PC \
|
---|
| 249 | src/VBox/Devices/PC/BIOS \
|
---|
| 250 | src/VBox/Devices/Parallel \
|
---|
| 251 | src/VBox/Devices/Serial \
|
---|
| 252 | src/VBox/Devices/Storage \
|
---|
| 253 | src/VBox/Devices/VBoxHDDFormats \
|
---|
| 254 | src/VBox/Devices/VBoxHDDFormats/StorageCraft \
|
---|
| 255 | src/VBox/Devices/USB \
|
---|
| 256 | src/VBox/Devices/USB/darwin \
|
---|
| 257 | src/VBox/Devices/USB/linux \
|
---|
| 258 | src/VBox/Devices/USB/os2 \
|
---|
| 259 | src/VBox/Devices/USB/solaris \
|
---|
| 260 | src/VBox/Devices/USB/vrdp \
|
---|
| 261 | src/VBox/Devices/USB/win32 \
|
---|
| 262 | src/VBox/Devices/VMMDev \
|
---|
| 263 | src/VBox/Main/include \
|
---|
| 264 | src/VBox/Main/include/hgcm \
|
---|
[10029] | 265 | src/VBox/Main \
|
---|
[6288] | 266 | src/VBox/Main/glue \
|
---|
| 267 | src/VBox/Main/hgcm \
|
---|
| 268 | src/VBox/Main/webservice \
|
---|
| 269 | src/VBox/Main/xml \
|
---|
| 270 | src/VBox/Main/darwin \
|
---|
| 271 | src/VBox/Main/linux \
|
---|
| 272 | src/VBox/Main/os2 \
|
---|
| 273 | src/VBox/Main/solaris \
|
---|
[10020] | 274 | src/VBox/Main/win \
|
---|
| 275 | src/VBox/Main/xpcom \
|
---|
[10029] | 276 | src/VBox/HostServices \
|
---|
[6307] | 277 | src/VBox/HostServices/SharedClipboard \
|
---|
| 278 | src/VBox/HostServices/SharedFolders \
|
---|
[10020] | 279 | src/VBox/HostServices/SharedInfoServices \
|
---|
[6307] | 280 | src/VBox/HostServices/SharedOpenGL \
|
---|
| 281 | src/VBox/HostDrivers/Support \
|
---|
| 282 | src/VBox/HostDrivers/Support/darwin \
|
---|
| 283 | src/VBox/HostDrivers/Support/freebsd \
|
---|
| 284 | src/VBox/HostDrivers/Support/l4 \
|
---|
| 285 | src/VBox/HostDrivers/Support/linux \
|
---|
| 286 | src/VBox/HostDrivers/Support/os2 \
|
---|
| 287 | src/VBox/HostDrivers/Support/solaris \
|
---|
| 288 | src/VBox/HostDrivers/Support/win \
|
---|
[10029] | 289 | src/VBox/HostDrivers/VBoxNetFlt \
|
---|
[10020] | 290 | src/VBox/HostDrivers/VBoxNetFlt/darwin \
|
---|
| 291 | src/VBox/HostDrivers/VBoxNetFlt/linux \
|
---|
| 292 | src/VBox/HostDrivers/VBoxNetFlt/solaris \
|
---|
| 293 | src/VBox/HostDrivers/VBoxNetFlt/win \
|
---|
[10029] | 294 | src/VBox/HostDrivers/VBoxNetNat \
|
---|
[10020] | 295 | src/VBox/HostDrivers/VBoxNetNat/darwin \
|
---|
| 296 | src/VBox/HostDrivers/VBoxNetNat/linux \
|
---|
| 297 | src/VBox/HostDrivers/VBoxNetNat/solaris \
|
---|
| 298 | src/VBox/HostDrivers/VBoxNetNat/win \
|
---|
[10029] | 299 | src/VBox/HostDrivers/VBoxNetTap \
|
---|
[10020] | 300 | src/VBox/HostDrivers/VBoxNetTap/darwin \
|
---|
| 301 | src/VBox/HostDrivers/VBoxNetTap/linux \
|
---|
| 302 | src/VBox/HostDrivers/VBoxNetTap/solaris \
|
---|
| 303 | src/VBox/HostDrivers/VBoxNetTap/win \
|
---|
[10029] | 304 | src/VBox/HostDrivers/VBoxTAP \
|
---|
[6307] | 305 | src/VBox/HostDrivers/VBoxTAP/win \
|
---|
[10029] | 306 | src/VBox/HostDrivers/VBoxUSB \
|
---|
[6307] | 307 | src/VBox/HostDrivers/VBoxUSB/darwin \
|
---|
| 308 | src/VBox/HostDrivers/VBoxUSB/os2 \
|
---|
[10020] | 309 | src/VBox/HostDrivers/VBoxUSB/solaris \
|
---|
[6307] | 310 | src/VBox/HostDrivers/VBoxUSB/win \
|
---|
| 311 | src/VBox/HostDrivers/VBoxUSB/win/Device \
|
---|
| 312 | src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
|
---|
| 313 | src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
|
---|
| 314 | src/VBox/HostDrivers/VBoxUSB/win/Filter \
|
---|
| 315 | src/VBox/HostDrivers/VBoxUSB/win/Install \
|
---|
| 316 | src/VBox/HostDrivers/VBoxUSB/win/Monitor \
|
---|
| 317 | src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
|
---|
| 318 | src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
|
---|
| 319 | src/VBox/HostDrivers/VBoxUSB/win/usbd \
|
---|
[6288] | 320 |
|
---|
| 321 | # These must come first in order to make things look nice.
|
---|
[10226] | 322 | VBOX_CORE_DOXYFILE_INPUT_FIRST =\
|
---|
[6288] | 323 | $(PATH_ROOT)/doc/VBox-doc.c \
|
---|
| 324 | $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
|
---|
| 325 | $(PATH_ROOT)/src/VBox/VMM/VMMCodingGuidelines.cpp \
|
---|
| 326 | $(PATH_ROOT)/src/VBox/VMM/VMMDocsRawMode.cpp \
|
---|
| 327 | $(PATH_ROOT)/include/VBox/cdefs.h \
|
---|
| 328 | $(PATH_ROOT)/include/VBox/vmapi.h \
|
---|
| 329 | $(PATH_ROOT)/include/VBox/vmm.h \
|
---|
| 330 | $(PATH_ROOT)/include/VBox/cpum.h \
|
---|
| 331 | $(PATH_ROOT)/include/VBox/mm.h \
|
---|
| 332 | $(PATH_ROOT)/include/VBox/pgm.h \
|
---|
| 333 | $(PATH_ROOT)/include/VBox/selm.h \
|
---|
| 334 | $(PATH_ROOT)/include/VBox/trpm.h \
|
---|
| 335 | $(PATH_ROOT)/include/VBox/patm.h \
|
---|
| 336 | $(PATH_ROOT)/include/VBox/dbgf.h \
|
---|
| 337 | $(PATH_ROOT)/include/VBox/stam.h \
|
---|
| 338 | $(PATH_ROOT)/include/VBox/em.h \
|
---|
| 339 | $(PATH_ROOT)/include/VBox/pdm.h \
|
---|
| 340 | $(PATH_ROOT)/include/VBox/rem.h \
|
---|
| 341 | $(PATH_ROOT)/include/VBox/iom.h \
|
---|
| 342 | $(PATH_ROOT)/include/VBox/cfgm.h \
|
---|
| 343 | $(PATH_ROOT)/include/VBox/tm.h \
|
---|
| 344 | $(PATH_ROOT)/include/VBox/csam.h \
|
---|
| 345 | $(PATH_ROOT)/include/VBox/ssm.h \
|
---|
| 346 | $(PATH_ROOT)/include/VBox/hwaccm.h \
|
---|
| 347 | $(PATH_ROOT)/include/VBox/hwacc_svm.h \
|
---|
| 348 | $(PATH_ROOT)/include/VBox/hwacc_vmx.h \
|
---|
[10029] | 349 | \
|
---|
[6288] | 350 | $(PATH_ROOT)/src/VBox/VMM/CFGMInternal.h \
|
---|
| 351 | $(PATH_ROOT)/src/VBox/VMM/CPUMInternal.h \
|
---|
| 352 | $(PATH_ROOT)/src/VBox/VMM/DBGFInternal.h \
|
---|
| 353 | $(PATH_ROOT)/src/VBox/VMM/EMInternal.h \
|
---|
| 354 | $(PATH_ROOT)/src/VBox/VMM/HWACCMInternal.h \
|
---|
| 355 | $(PATH_ROOT)/src/VBox/VMM/IOMInternal.h \
|
---|
| 356 | $(PATH_ROOT)/src/VBox/VMM/MMInternal.h \
|
---|
| 357 | $(PATH_ROOT)/src/VBox/VMM/PDMInternal.h \
|
---|
| 358 | $(PATH_ROOT)/src/VBox/VMM/PGMInternal.h \
|
---|
| 359 | $(PATH_ROOT)/src/VBox/VMM/PATM/CSAMInternal.h \
|
---|
| 360 | $(PATH_ROOT)/src/VBox/VMM/PATM/PATMInternal.h \
|
---|
| 361 | $(PATH_ROOT)/src/VBox/VMM/REMInternal.h \
|
---|
| 362 | $(PATH_ROOT)/src/VBox/VMM/SELMInternal.h \
|
---|
| 363 | $(PATH_ROOT)/src/VBox/VMM/SSMInternal.h \
|
---|
| 364 | $(PATH_ROOT)/src/VBox/VMM/STAMInternal.h \
|
---|
| 365 | $(PATH_ROOT)/src/VBox/VMM/TMInternal.h \
|
---|
| 366 | $(PATH_ROOT)/src/VBox/VMM/TRPMInternal.h \
|
---|
| 367 | $(PATH_ROOT)/src/VBox/VMM/VMInternal.h \
|
---|
| 368 | $(PATH_ROOT)/src/VBox/VMM/VMMInternal.h \
|
---|
[10029] | 369 | \
|
---|
[6288] | 370 | $(PATH_ROOT)/include/VBox/vm.h \
|
---|
| 371 | \
|
---|
| 372 | $(PATH_ROOT)/include/VBox/sup.h \
|
---|
| 373 | $(PATH_ROOT)/include/VBox/VBoxHDD.h \
|
---|
| 374 | $(PATH_ROOT)/include/VBox/types.h \
|
---|
| 375 | $(PATH_ROOT)/include/VBox/err.h \
|
---|
| 376 | $(PATH_ROOT)/include/VBox/x86.h \
|
---|
| 377 | $(PATH_ROOT)/include/VBox/cpumdis.h \
|
---|
| 378 | $(PATH_ROOT)/include/VBox/dbggui.h \
|
---|
| 379 | $(PATH_ROOT)/include/VBox/dis.h \
|
---|
| 380 | $(PATH_ROOT)/include/VBox/disopcode.h \
|
---|
| 381 | $(PATH_ROOT)/include/VBox/intnet.h \
|
---|
| 382 | $(PATH_ROOT)/include/VBox/settings.h \
|
---|
| 383 | $(PATH_ROOT)/include/VBox/pci.h \
|
---|
| 384 | $(PATH_ROOT)/include/VBox/scsi.h \
|
---|
| 385 | $(PATH_ROOT)/include/VBox/shflsvc.h \
|
---|
| 386 | $(PATH_ROOT)/include/VBox/hgcmsvc.h \
|
---|
| 387 | $(PATH_ROOT)/include/VBox/usb.h \
|
---|
| 388 | $(PATH_ROOT)/include/VBox/vusb.h \
|
---|
[10029] | 389 | \
|
---|
[6288] | 390 | $(PATH_ROOT)/include/VBox/log.h \
|
---|
| 391 | $(PATH_ROOT)/include/VBox/param.h \
|
---|
| 392 | $(PATH_ROOT)/include/VBox/version.h
|
---|
| 393 |
|
---|
[10226] | 394 | VBOX_CORE_DOXYFILE_INPUT := \
|
---|
| 395 | $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
|
---|
| 396 | $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/.asm))
|
---|
| 397 | VBOX_CORE_DOXYFILE_INPUT := \
|
---|
| 398 | $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
|
---|
| 399 | $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT))
|
---|
[6288] | 400 |
|
---|
| 401 | # And some some additional stuff.
|
---|
[10226] | 402 | VBOX_CORE_DOXYFILE_INPUT += \
|
---|
[6288] | 403 | $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \
|
---|
| 404 | $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp
|
---|
| 405 |
|
---|
| 406 |
|
---|
[10226] | 407 | VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
|
---|
[6288] | 408 |
|
---|
[10226] | 409 | -include $(PATH_TARGET)/Doxyfile.Core.dep
|
---|
[6288] | 410 |
|
---|
| 411 | # Generate the Doxyfile
|
---|
[10226] | 412 | $(PATH_TARGET)/Doxyfile.Core: Doxyfile.Core \
|
---|
| 413 | $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
|
---|
| 414 | $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
|
---|
[6288] | 415 | | $(call DIRDEP, $(PATH_TARGET))
|
---|
[10226] | 416 | $(RM) -f $@ $@.tmp $(PATH_TARGET)/Doxyfile.Core.dep
|
---|
[6288] | 417 | $(CP) -f Doxyfile.Core $@.tmp
|
---|
| 418 | $(APPEND) $@.tmp
|
---|
[10226] | 419 | $(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
|
---|
| 420 | $(APPEND) $@.tmp "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
|
---|
[6288] | 421 | $(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
|
---|
| 422 | $(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
|
---|
| 423 | $(APPEND) $@.tmp
|
---|
[10226] | 424 | $(APPEND) $@.tmp "INPUT = $(VBOX_CORE_DOXYFILE_INPUT)"
|
---|
[6288] | 425 | $(APPEND) $@.tmp
|
---|
[8758] | 426 | $(APPEND) $@.tmp "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
|
---|
[6288] | 427 | $(APPEND) $@.tmp "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
|
---|
| 428 | $(APPEND) $@.tmp
|
---|
| 429 | $(MV) -f $@.tmp $@
|
---|
[10226] | 430 | @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
|
---|
| 431 | @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
|
---|
[6288] | 432 |
|
---|
| 433 | # Create the output directory.
|
---|
[10226] | 434 | $(call DIRDEP, $(VBOX_CORE_DOXYFILE_OUTPUT)):
|
---|
[1] | 435 | $(MKDIR) -p $@
|
---|
| 436 |
|
---|
[6288] | 437 | # Do the actual job.
|
---|
[10226] | 438 | $(PATH_TARGET)/docs.Core: $(PATH_TARGET)/Doxyfile.Core $(VBOX_CORE_DOXYFILE_INPUT) | $(call DIRDEP, $(VBOX_CORE_DOXYFILE_OUTPUT))
|
---|
[10029] | 439 | $(RM) -f $(PATH_TARGET)/docs.Core
|
---|
[10226] | 440 | $(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
|
---|
| 441 | doxygen $(PATH_TARGET)/Doxyfile.Core
|
---|
[6288] | 442 | $(APPEND) $(PATH_TARGET)/docs.Core
|
---|
[1] | 443 |
|
---|
[6288] | 444 |
|
---|
[1] | 445 | #
|
---|
| 446 | # Generate x86.mac and err.mac.
|
---|
| 447 | #
|
---|
| 448 | incs:
|
---|
[9768] | 449 | $(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
|
---|
| 450 | $(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
|
---|
| 451 | $(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
|
---|
| 452 | $(SED) \
|
---|
| 453 | -e '/__VBox_x86_h__/d' \
|
---|
| 454 | -e '/#define/!d' \
|
---|
| 455 | -e '/\\$$/d' \
|
---|
| 456 | -e 's/#define/%define/' \
|
---|
| 457 | --output include/VBox/x86.mac \
|
---|
| 458 | include/VBox/x86.h
|
---|
[1] | 459 |
|
---|
| 460 |
|
---|
| 461 | #
|
---|
| 462 | # Generate Visual SlickEdit tagging #defines.
|
---|
| 463 | #
|
---|
| 464 | vslick.h: include/VBox/cdefs.h Makefile
|
---|
| 465 | echo '// autogenerated' > $@.tmp
|
---|
| 466 | #echo '#define __BEGIN_DECLS ' >> $@.tmp
|
---|
| 467 | #echo '#define __END_DECLS ' >> $@.tmp
|
---|
| 468 |
|
---|
| 469 | echo '#define ATL_NO_VTABLE ' >> $@.tmp
|
---|
| 470 | echo '#define BEGIN_COM_MAP(a) ' >> $@.tmp
|
---|
| 471 | echo '#define END_COM_MAP(a) ' >> $@.tmp
|
---|
| 472 |
|
---|
| 473 | echo '#define CHECKREADY if(!isReady()) return E_UNEXPECTED; ' >> $@.tmp
|
---|
| 474 | echo '#define COM_DECL_READONLY_ENUM_AND_COLLECTION(a) ' >> $@.tmp
|
---|
| 475 | echo '#define COM_INTERFACE_ENTRY(a) ' >> $@.tmp
|
---|
| 476 | echo '#define COMGETTER(n) Get##n ' >> $@.tmp
|
---|
| 477 | echo '#define COMSETTER(n) Set##n ' >> $@.tmp
|
---|
[6926] | 478 | echo '#define ComSafeArrayIn(t,a) t a[] ' >> $@.tmp
|
---|
| 479 | echo '#define ComSafeArrayOut(t,a) t * a[] ' >> $@.tmp
|
---|
[1] | 480 | echo '#define DECLARE_NOT_AGGREGATABLE(a) ' >> $@.tmp
|
---|
| 481 | echo '#define DECLARE_PROTECT_FINAL_CONSTRUCT(a) ' >> $@.tmp
|
---|
| 482 | echo '#define NS_DECL_ISUPPORTS ' >> $@.tmp
|
---|
| 483 | echo '#define NS_IMETHOD NS_IMETHOD_(nsresult) ' >> $@.tmp
|
---|
| 484 | echo '#define NS_IMETHOD_(type) type ' >> $@.tmp
|
---|
| 485 | echo '#define PARSERS_EXPORT ' >> $@.tmp
|
---|
| 486 | echo '#define SAX_EXPORT ' >> $@.tmp
|
---|
| 487 | echo '#define STDMETHOD(a) NS_IMETHOD a ' >> $@.tmp
|
---|
| 488 | echo '#define XERCES_CPP_NAMESPACE_BEGIN ' >> $@.tmp
|
---|
| 489 | echo '#define XERCES_CPP_NAMESPACE_END ' >> $@.tmp
|
---|
| 490 |
|
---|
| 491 | echo '#define CTXAllSUFF(var) var##R3 ' >> $@.tmp
|
---|
| 492 | echo '#define CTXSUFF(var) var##HC ' >> $@.tmp
|
---|
| 493 | echo '#define OTHERCTXSUFF(var) var##GC ' >> $@.tmp
|
---|
| 494 | echo '#define CTXALLMID(first, last) first##R3##last ' >> $@.tmp
|
---|
| 495 | echo '#define CTXMID(first, last) first##HC##last ' >> $@.tmp
|
---|
| 496 | echo '#define OTHERCTXMID(first, last) first##GC##last ' >> $@.tmp
|
---|
| 497 | echo '#define CTXTYPE(GCType, R3Type, R0Type) R3Type ' >> $@.tmp
|
---|
| 498 | echo '#define GCPTRTYPE(GCType) GCType ' >> $@.tmp
|
---|
| 499 | echo '#define GCTYPE(GCType, HCType) GCType ' >> $@.tmp
|
---|
| 500 | echo '#define HCPTRTYPE(HCType) HCType ' >> $@.tmp
|
---|
[6810] | 501 | echo '#define R3R0PTRTYPE(HCType) HCType ' >> $@.tmp
|
---|
[1] | 502 | echo '#define R0PTRTYPE(R3Type) R3Type ' >> $@.tmp
|
---|
| 503 | echo '#define R3PTRTYPE(R0Type) R0Type ' >> $@.tmp
|
---|
| 504 | echo '#define RT_SRC_POS __FILE__, __LINE__, __PRETTY_FUNCTION__ ' >> $@.tmp
|
---|
| 505 | echo '#define RT_SRC_POS_DECL const char *pszFile, unsigned iLine, const char *pszFunction ' >> $@.tmp
|
---|
| 506 | echo '#define RT_SRC_POS_ARGS pszFile, iLine, pszFunction ' >> $@.tmp
|
---|
| 507 | echo '#define RTCALL' >> $@.tmp
|
---|
| 508 | echo '#define DECLINLINE(type) inline type ' >> $@.tmp
|
---|
| 509 |
|
---|
| 510 | echo '#define PDM_SRC_POS __FILE__, __LINE__, __PRETTY_FUNCTION__ ' >> $@.tmp
|
---|
| 511 | echo '#define PDM_SRC_POS_DECL const char *pszFile, unsigned iLine, const char *pszFunction ' >> $@.tmp
|
---|
| 512 | echo '#define PDM_SRC_POS_ARGS pszFile, iLine, pszFunction ' >> $@.tmp
|
---|
| 513 | echo '#define PDMDEVINSINT_DECLARED 1' >> $@.tmp
|
---|
| 514 | echo '#define VBOXCALL' >> $@.tmp
|
---|
| 515 |
|
---|
| 516 | $(SED) -e '/__cdecl/d' \
|
---|
| 517 | -e '/^ *# *define.*DECL/!d' \
|
---|
| 518 | -e '/DECLS/d' \
|
---|
[6466] | 519 | -e '/DECLARE_CLS_/d' \
|
---|
[1] | 520 | -e '/_SRC_POS_DECL/d' \
|
---|
| 521 | -e '/declspec/d' \
|
---|
[6466] | 522 | -e '/__attribute__/d' \
|
---|
[1] | 523 | -e 's/# */#/g' \
|
---|
| 524 | -e 's/ */ /g' \
|
---|
| 525 | -e '/(type) DECLEXPORT/d' \
|
---|
[6466] | 526 | -e '/ DECLEXPORT_CLASS/d' \
|
---|
[1] | 527 | -e 's/ *VBOXCALL//' \
|
---|
| 528 | -e 's/ *RTCALL//' \
|
---|
| 529 | -e 's/(type) DECLIMPORT(type)/(type) type/' \
|
---|
| 530 | -e '/ DECLASM(type) type/d' \
|
---|
| 531 | -e '/define *DECL..CALLBACKMEMBER(type[^)]*) *RT/d' \
|
---|
| 532 | -e '/define *DECLINLINE(type)/d' \
|
---|
| 533 | \
|
---|
[6466] | 534 | --append $@.tmp \
|
---|
| 535 | $(filter-out include/VBox/err.h, $(wildcard include/VBox/*.h)) \
|
---|
| 536 | include/iprt/cdefs.h
|
---|
| 537 | $(CAT_EXT) $@.tmp | sort | $(SED_EXT) -e 's/$$/\n/' --output $@.tmp2
|
---|
[1] | 538 | $(MV) -f $@.tmp2 $@
|
---|
| 539 | $(RM) -f $@.tmp $@.tmp2 $@.tmp3
|
---|
[6466] | 540 | $(ECHO) "TODO: Merge ./vslick.h with your ~/.slickedit/x.y.z/unxcpp.h file."
|
---|
[1] | 541 |
|
---|
| 542 |
|
---|
[6663] | 543 | #
|
---|
| 544 | # Add fetching of the tools to the 'up[date][2]' targets.
|
---|
| 545 | #
|
---|
| 546 | up update up2 update2::
|
---|
[4628] | 547 | ifndef VBOX_OSE
|
---|
[1] | 548 | $(MAKE) -C tools fetch
|
---|
[4628] | 549 | else
|
---|
| 550 | $(MAKE) -C tools -f Makefile-ose.kmk fetch
|
---|
[1] | 551 | endif
|
---|
| 552 |
|
---|
[5957] | 553 |
|
---|
[6052] | 554 | #
|
---|
| 555 | # Build the additions, all of them.
|
---|
| 556 | #
|
---|
[6129] | 557 | # This is currently tailored (hardcoded) for the additions
|
---|
[6052] | 558 | # build box. Can make it pretty and configurable later.
|
---|
| 559 | #
|
---|
| 560 | # The fetching must be done in serial fashion, while the building
|
---|
| 561 | # should be more flexible wrt to -jN.
|
---|
| 562 | #
|
---|
| 563 | additions-fetch:
|
---|
| 564 | + $(KMK) -C tools fetch
|
---|
[8762] | 565 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux BUILD_TARGET_ARCH=x86 BUILD_TARGET=linux
|
---|
| 566 | # + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 BUILD_TARGET_ARCH=x86 BUILD_TARGET=os2
|
---|
| 567 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86 BUILD_TARGET=solaris
|
---|
| 568 | + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win BUILD_TARGET_ARCH=x86 BUILD_TARGET=win
|
---|
[5957] | 569 |
|
---|
[6052] | 570 |
|
---|
| 571 | additions-build: \
|
---|
| 572 | additions-build-win.x86 \
|
---|
| 573 | additions-build-solaris.x86 \
|
---|
| 574 | additions-build-os2.x86 \
|
---|
| 575 | additions-build-linux.x86
|
---|
| 576 |
|
---|
[10161] | 577 | VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
|
---|
| 578 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
| 579 | KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
|
---|
| 580 | all packing
|
---|
| 581 |
|
---|
[8762] | 582 | VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
|
---|
| 583 | KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
|
---|
| 584 | KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
|
---|
| 585 | all packing
|
---|
[6052] | 586 |
|
---|
[10161] | 587 | additions-build-win.amd64:
|
---|
| 588 | ifeq ($(KBUILD_TARGET),win)
|
---|
| 589 | + $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
|
---|
| 590 | else
|
---|
| 591 | false
|
---|
| 592 | rsync -av --delete --delete-excluded --exclude .svn/ --exclude out/ --exclude tinderclient.log . 192.168.27.5:/cygdrive/c/vbox
|
---|
| 593 | ssh vbox@192.168.27.15 " cd /cygdrive/c/vbox && PATH_OUT_BASE=Z:/add/out tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64)"
|
---|
| 594 | # ssh vbox@192.168.27.15 "cmd.exe /c cd /d z:\\add && set PATH_DEVTOOLS=c:\\vbox\\tools && c:\\vbox\\tools\\env.cmd -KBUILD c:\\vbox\\kBuild && set KMK_DONT_USE_NT_QUERY_INFORMATION_FILE=1 && set USER=vbox && kmk $(VBOX_ADDITIONS_BUILD.amd64)"
|
---|
| 595 | endif
|
---|
| 596 |
|
---|
[6052] | 597 | additions-build-win.x86:
|
---|
[8758] | 598 | ifeq ($(KBUILD_TARGET),win)
|
---|
[9639] | 599 | + $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
|
---|
[6052] | 600 | else
|
---|
[9042] | 601 | rsync -av --delete --delete-excluded --exclude .svn/ --exclude out/ --exclude tinderclient.log . 192.168.27.5:/cygdrive/c/vbox
|
---|
[9639] | 602 | ssh vbox@192.168.27.5 " cd /cygdrive/c/vbox && PATH_OUT_BASE=Z:/add/out tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86)"
|
---|
| 603 | # ssh vbox@192.168.27.5 "cmd.exe /c cd /d z:\\add && set PATH_DEVTOOLS=c:\\vbox\\tools && c:\\vbox\\tools\\env.cmd -KBUILD c:\\vbox\\kBuild && set KMK_DONT_USE_NT_QUERY_INFORMATION_FILE=1 && set USER=vbox && kmk $(VBOX_ADDITIONS_BUILD.x86)"
|
---|
[6052] | 604 | endif
|
---|
[6129] | 605 |
|
---|
[10161] | 606 | additions-build-solaris.amd64:
|
---|
| 607 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
| 608 | + $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
|
---|
| 609 | else
|
---|
| 610 | ssh vbox@192.168.27.14 " cd /mnt/vbox/add && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) "
|
---|
| 611 | endif
|
---|
| 612 |
|
---|
[6052] | 613 | additions-build-solaris.x86:
|
---|
[8758] | 614 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
[8762] | 615 | + $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
|
---|
[8032] | 616 | else
|
---|
[8762] | 617 | ssh vbox@192.168.27.4 " cd /mnt/vbox/add && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
|
---|
[8032] | 618 | endif
|
---|
[6052] | 619 |
|
---|
| 620 | additions-build-os2.x86:
|
---|
[8758] | 621 | #ifeq ($(KBUILD_TARGET),os2)
|
---|
[8762] | 622 | # + $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
|
---|
[6052] | 623 | #else
|
---|
[8762] | 624 | # ssh vbox@192.168.27.3 " cd /mnt/vbox/add && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
|
---|
[6052] | 625 | #endif
|
---|
| 626 |
|
---|
[10161] | 627 | additions-build-linux.amd64:
|
---|
| 628 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
|
---|
| 629 | + $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
|
---|
| 630 | else
|
---|
| 631 | ssh vbox@192.168.27.12 " cd /mnt/vbox/add && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) "
|
---|
| 632 | endif
|
---|
| 633 |
|
---|
[6052] | 634 | additions-build-linux.x86:
|
---|
[8904] | 635 | ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
|
---|
[9639] | 636 | + $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
|
---|
[6052] | 637 | else
|
---|
[9639] | 638 | ssh vbox@192.168.27.2 " cd /mnt/vbox/add && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
|
---|
[6052] | 639 | endif
|
---|
| 640 |
|
---|
| 641 |
|
---|
| 642 | additions-packing:
|
---|
| 643 | + $(KMK) VBOX_ONLY_ADDITIONS=1 \
|
---|
[9641] | 644 | VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
|
---|
[9643] | 645 | VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
|
---|
[9641] | 646 | VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
|
---|
[6052] | 647 | VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
|
---|
[9641] | 648 | VBOX_WITH_ADDITIONS_ISO.solaris.amd64= \
|
---|
[8058] | 649 | VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
|
---|
[9641] | 650 | VBOX_WITH_ADDITIONS_ISO.win.amd64= \
|
---|
| 651 | VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
|
---|
[6052] | 652 | -C src/VBox/Additions \
|
---|
| 653 | $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.iso
|
---|
| 654 |
|
---|
| 655 |
|
---|
[293] | 656 | #
|
---|
| 657 | # Generate VirtualBox-OSE-x.x.x.tar.bz2 tarballs for distribution
|
---|
| 658 | #
|
---|
| 659 | # - includes kBuild
|
---|
| 660 | # - must be executed on an OSE checkout
|
---|
| 661 | #
|
---|
| 662 |
|
---|
| 663 | # the path where to store the tarball
|
---|
| 664 | TARBALLPATH ?= $(shell cd $(PATH_ROOT)/..; pwd)
|
---|
[305] | 665 | #TARBALLPATH ?= $(abspath $(PATH_ROOT)/..) - this should also do the trick without spawning a shell.
|
---|
[293] | 666 | # the root directory inside the tarball
|
---|
[4448] | 667 | TARBALLROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
|
---|
[293] | 668 | # the name of the tarball file
|
---|
[4448] | 669 | TARBALLNAME ?= VirtualBox-$(VBOX_VERSION_STRING).tar.bz2
|
---|
[293] | 670 | snapshot:
|
---|
| 671 | @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
|
---|
| 672 | @if [ -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then echo; echo "Found USB stuff, refused to build OSE tarball!"; echo; exit 1; fi
|
---|
| 673 | $(QUIET)$(MKDIR) -p $(TARBALLPATH)
|
---|
| 674 | $(QUIET)$(RM) -f $(wildcard $(TARBALLPATH)/VirtualBox*)
|
---|
| 675 | $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
|
---|
| 676 | $(QUIET)tar -cjh --owner 0 --group 0 --totals \
|
---|
| 677 | --exclude=.svn \
|
---|
| 678 | --exclude=$(TARBALLROOT)/out \
|
---|
| 679 | --exclude=$(TARBALLROOT)/env.sh \
|
---|
| 680 | --exclude=$(TARBALLROOT)/configure.log \
|
---|
| 681 | --exclude=$(TARBALLROOT)/AutoConfig.kmk \
|
---|
| 682 | --exclude=$(TARBALLROOT)/LocalConfig.kmk \
|
---|
| 683 | -C $(TARBALLPATH) \
|
---|
| 684 | -f $(TARBALLPATH)/$(TARBALLNAME) \
|
---|
| 685 | $(TARBALLROOT)
|
---|
| 686 | $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
|
---|
[10244] | 687 |
|
---|