[2478] | 1 | # $Id: Makefile.kmk 4628 2007-09-08 23:40:54Z vboxsync $
|
---|
| 2 | ## @file
|
---|
[1] | 3 | # Top level makefile.
|
---|
| 4 | #
|
---|
[2478] | 5 |
|
---|
[1] | 6 | #
|
---|
[4071] | 7 | # Copyright (C) 2006-2007 innotek GmbH
|
---|
[4398] | 8 | #
|
---|
[4071] | 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 as published by the Free Software Foundation,
|
---|
| 13 | # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
| 14 | # distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
| 15 | # be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
[1] | 16 |
|
---|
| 17 | DEPTH = .
|
---|
| 18 | include $(PATH_KBUILD)/header.kmk
|
---|
| 19 |
|
---|
| 20 | ifdef VBOX_WITH_DOCS
|
---|
| 21 | SUBDIRS = doc/manual
|
---|
| 22 | endif
|
---|
| 23 | SUBDIRS += src
|
---|
| 24 |
|
---|
| 25 | #
|
---|
| 26 | # Install external binaries (mostly redistributable parts of tools we use).
|
---|
| 27 | # This must be done *before* we build the manual.
|
---|
| 28 | #
|
---|
| 29 | # To avoid dragging in unnecessary tools and sdks here, we don't use the .win
|
---|
| 30 | # and .linux property suffixes.
|
---|
| 31 | #
|
---|
| 32 | INSTALLS = bin
|
---|
| 33 |
|
---|
[960] | 34 | bin_INST = $(INST_BIN)
|
---|
[1] | 35 |
|
---|
| 36 | # The SDL DLLs
|
---|
| 37 | ifeq ($(filter-out win os2,$(BUILD_TARGET)),)
|
---|
| 38 | ifneq ($(VBOX_WITH_VBOXSDL)$(VBOX_WITH_VBOXBFE),)
|
---|
| 39 | include $(PATH_KBUILD)/sdks/LIBSDL.kmk
|
---|
| 40 | bin_SOURCES += \
|
---|
| 41 | $(DLL_SDK_LIBSDL_SDL)
|
---|
| 42 | ifdef VBOX_WITH_SECURELABEL
|
---|
| 43 | bin_SOURCES += \
|
---|
| 44 | $(DLL_SDK_LIBSDL_SDLTTF)
|
---|
| 45 | endif
|
---|
| 46 | ifeq ($(BUILD_TARGET),os2)
|
---|
| 47 | bin_SOURCES += \
|
---|
| 48 | $(DLL_SDK_LIBSDL_FSLIB)
|
---|
| 49 | endif
|
---|
| 50 | endif
|
---|
| 51 | endif
|
---|
| 52 |
|
---|
[3405] | 53 |
|
---|
[1] | 54 | # The Qt DLLs.
|
---|
[3405] | 55 | ifneq ($(VBOX_WITH_QTGUI),)
|
---|
| 56 | ifeq ($(BUILD_TARGET),win)
|
---|
[1] | 57 | #include $(PATH_KBUILD)/sdks/QT3.kmk
|
---|
| 58 | #bin_SOURCES += \
|
---|
| 59 | # $(DLL_SDK_QT3_QT)
|
---|
[224] | 60 | ifeq ($(BUILD_TARGET).$(BUILD_TARGET_ARCH),win.x86)
|
---|
| 61 | VBOX_DLL_QT ?= $(VBOX_PATH_QT)/bin/qt-mt333.dll
|
---|
| 62 | else ifeq ($(BUILD_TARGET).$(BUILD_TARGET_ARCH),win.amd64)
|
---|
[4398] | 63 | VBOX_DLL_QT ?= $(PATH_DEVTOOLS)/win.amd64/Qt/v3.3.8/lib/qt-mt338.dll=>qt-mt338.dll
|
---|
[224] | 64 | #else ifeq ($(BUILD_TARGET).$(BUILD_TARGET_ARCH),os2.x86)
|
---|
| 65 | # VBOX_DLL_QT ?= $(PATH_DEVTOOLS)/os2.x86/Qt/v3.3.6/bin/qt-mt336.dll=>qt-mt336.dll
|
---|
[1] | 66 | endif
|
---|
[957] | 67 | ifdef VBOX_DLL_QT
|
---|
[224] | 68 | bin_SOURCES += \
|
---|
| 69 | $(VBOX_DLL_QT)=>$(not-dir $(VBOX_DLL_QT))
|
---|
| 70 | endif
|
---|
[3405] | 71 | else ifeq ($(BUILD_TARGET),os2)
|
---|
| 72 | VBOX_DLL_QT ?= $(lastword $(sort $(wildcard $(VBOX_PATH_QT)/bin/qt*.dll)))
|
---|
[4627] | 73 | ifneq ($(strip $(VBOX_DLL_QT)),)
|
---|
[3405] | 74 | bin_SOURCES += \
|
---|
| 75 | $(VBOX_DLL_QT)=>$(not-dir $(VBOX_DLL_QT))
|
---|
| 76 | endif
|
---|
| 77 | else ifeq ($(BUILD_TARGET),darwin)
|
---|
[1046] | 78 | ifdef LIB_QT
|
---|
| 79 | bin_SOURCES += \
|
---|
[957] | 80 | $(LIB_QT)
|
---|
[1046] | 81 | endif
|
---|
[957] | 82 | endif
|
---|
| 83 | endif
|
---|
| 84 |
|
---|
[3405] | 85 |
|
---|
[1] | 86 | # The compiler runtime DLLs.
|
---|
| 87 | ifeq ($(BUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
|
---|
| 88 | ifdef VBOX_USE_VCC80
|
---|
| 89 | include $(PATH_KBUILD)/tools/VCC80X86.kmk
|
---|
| 90 | include $(PATH_KBUILD)/tools/VCC80AMD64.kmk
|
---|
| 91 | bin_SOURCES.x86 += \
|
---|
| 92 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
| 93 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
|
---|
| 94 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
|
---|
| 95 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
| 96 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
|
---|
| 97 | $(PATH_TOOL_VCC80X86)/redist/x86/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
|
---|
| 98 | bin_SOURCES.amd64 += \
|
---|
[693] | 99 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
| 100 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>Microsoft.VC80.CRT/msvcr80.dll \
|
---|
| 101 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>Microsoft.VC80.CRT/msvcp80.dll \
|
---|
| 102 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest=>testcase/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
|
---|
| 103 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcr80.dll=>testcase/Microsoft.VC80.CRT/msvcr80.dll \
|
---|
| 104 | $(PATH_TOOL_VCC80AMD64)/redist/amd64/Microsoft.VC80.CRT/msvcp80.dll=>testcase/Microsoft.VC80.CRT/msvcp80.dll
|
---|
[2692] | 105 | endif
|
---|
| 106 | ifndef VBOX_USE_VCC80
|
---|
| 107 | VBOX_INSTALL_VCC70_RT = 1
|
---|
| 108 | endif
|
---|
| 109 | ifeq ($(BUILD_TARGET).$(BUILD_TARGET_ARCH),win.x86)
|
---|
| 110 | VBOX_INSTALL_VCC70_RT = 1
|
---|
| 111 | endif
|
---|
| 112 | ifdef VBOX_INSTALL_VCC70_RT
|
---|
[1] | 113 | include $(PATH_KBUILD)/tools/VCC70.kmk
|
---|
| 114 | ## @todo Move these defines to VCC70.
|
---|
| 115 | DLL_TOOL_VCC70_MSVCR71 ?= $(PATH_TOOL_VCC70)/bin/msvcr71.dll
|
---|
| 116 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCR71)),)
|
---|
| 117 | bin_SOURCES += \
|
---|
| 118 | $(DLL_TOOL_VCC70_MSVCR71)=>msvcr71.dll \
|
---|
| 119 | $(DLL_TOOL_VCC70_MSVCR71)=>testcase/msvcr71.dll
|
---|
| 120 | endif
|
---|
| 121 | DLL_TOOL_VCC70_MSVCP71 ?= $(PATH_TOOL_VCC70)/bin/msvcp71.dll
|
---|
| 122 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCP71)),)
|
---|
| 123 | bin_SOURCES += \
|
---|
| 124 | $(DLL_TOOL_VCC70_MSVCP71)=>msvcp71.dll \
|
---|
| 125 | $(DLL_TOOL_VCC70_MSVCP71)=>testcase/msvcp71.dll
|
---|
| 126 | endif
|
---|
| 127 | DLL_TOOL_VCC70_MSVCRT ?= $(PATH_TOOL_VCC70)/bin/msvcrt.dll
|
---|
| 128 | ifneq ($(wildcard $(DLL_TOOL_VCC70_MSVCRT)),)
|
---|
| 129 | bin_SOURCES += \
|
---|
| 130 | $(DLL_TOOL_VCC70_MSVCRT)=>msvcrt.dll \
|
---|
| 131 | $(DLL_TOOL_VCC70_MSVCRT)=>testcase/msvcrt.dll
|
---|
| 132 | endif
|
---|
| 133 | endif
|
---|
| 134 | endif
|
---|
| 135 |
|
---|
| 136 | # The Xerces DLL
|
---|
| 137 | ifneq ($(DLL_SDK_VBOX_XERCES_XERCES),)
|
---|
| 138 | bin_SOURCES += $(DLL_SDK_VBOX_XERCES_XERCES)
|
---|
| 139 | endif
|
---|
| 140 |
|
---|
| 141 | # The Xalan DLLs
|
---|
| 142 | ifneq ($(DLL_SDK_VBOX_XALAN_XALAN),)
|
---|
| 143 | bin_SOURCES += $(DLL_SDK_VBOX_XALAN_XALAN)
|
---|
| 144 | endif
|
---|
| 145 | ifneq ($(DLL_SDK_VBOX_XALAN_XALAN-MESSAGES),)
|
---|
| 146 | bin_SOURCES += $(DLL_SDK_VBOX_XALAN_XALAN-MESSAGES)
|
---|
| 147 | endif
|
---|
| 148 |
|
---|
| 149 |
|
---|
[1648] | 150 | #
|
---|
[4398] | 151 | # Install staged binaries on platforms where we can't cross
|
---|
[1648] | 152 | # compile things.
|
---|
| 153 | #
|
---|
| 154 | ifneq ($(filter-out linux win l4, $(BUILD_TARGET)),)
|
---|
| 155 | VBOX_PATH_STAGED ?= .
|
---|
| 156 |
|
---|
| 157 | # Additions.
|
---|
| 158 | ifndef VBOX_WITH_LINUX_ADDITIONS
|
---|
| 159 | ifndef VBOX_WITH_WIN32_ADDITIONS
|
---|
| 160 | ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
|
---|
| 161 | INSTALLS += staged-additions
|
---|
| 162 | staged-additions_INST = $(INST_ADDITIONS)
|
---|
| 163 | staged-additions_MODE = 0644
|
---|
| 164 | staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
|
---|
| 165 | endif
|
---|
| 166 | endif
|
---|
| 167 | endif
|
---|
| 168 |
|
---|
| 169 | # guesttool.exe
|
---|
| 170 | ifndef VBOX_WITH_WIN32_ADDITIONS
|
---|
| 171 | ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
|
---|
| 172 | INSTALLS += staged-guesttool
|
---|
| 173 | staged-guesttool_INST = $(INST_BIN)
|
---|
| 174 | staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
|
---|
| 175 | endif
|
---|
| 176 | endif
|
---|
| 177 |
|
---|
| 178 | endif
|
---|
| 179 |
|
---|
| 180 |
|
---|
| 181 |
|
---|
[1] | 182 | include $(PATH_KBUILD)/footer.kmk
|
---|
| 183 |
|
---|
| 184 |
|
---|
| 185 | #
|
---|
| 186 | # Generate documentation.
|
---|
| 187 | # (This should be converted into a separate pass or merged with an existing one later.)
|
---|
| 188 | #
|
---|
| 189 | docs: docs.Core
|
---|
| 190 | $(MAKE) -C src/VBox/Main docs
|
---|
| 191 | $(MAKE) -C src/VBox/Runtime docs
|
---|
| 192 |
|
---|
| 193 | docs.Core: $(PATH_TARGET)/docs.Core
|
---|
| 194 |
|
---|
| 195 |
|
---|
| 196 | #
|
---|
| 197 | # The core (VMM+Runtime+Devices) documentation.
|
---|
| 198 | #
|
---|
| 199 | $(PATH_TARGET)/docs.Core: \
|
---|
| 200 | Doxyfile.Core \
|
---|
| 201 | | $(call DIRDEP, $(PATH_TARGET)) \
|
---|
| 202 | $(call DIRDEP, $(PATH_OUT)/docs/Core)
|
---|
| 203 | $(RM) -f $(wildcard $(PATH_OUT)/docs/Core/html/*)
|
---|
| 204 | PATH_OUT="$(PATH_OUT)" PATH_TARGET="$(PATH_TARGET)" doxygen Doxyfile.Core
|
---|
| 205 |
|
---|
| 206 | $(call DIRDEP, $(PATH_OUT)/docs/Core):
|
---|
| 207 | $(MKDIR) -p $@
|
---|
| 208 |
|
---|
| 209 |
|
---|
| 210 | #
|
---|
| 211 | # Generate x86.mac and err.mac.
|
---|
| 212 | #
|
---|
| 213 | incs:
|
---|
| 214 | $(SED) -f include/VBox/err.sed include/VBox/err.h > include/VBox/err.mac
|
---|
| 215 | echo '%include "iprt/err.mac"' >> include/VBox/err.mac
|
---|
| 216 | $(SED) -f include/VBox/err.sed include/iprt/err.h > include/iprt/err.mac
|
---|
| 217 | $(SED) -e '/__VBox_x86_h__/d' -e '/#define/!d' -e 's/#define/%define/' include/VBox/x86.h > include/VBox/x86.mac
|
---|
| 218 |
|
---|
| 219 |
|
---|
| 220 | #
|
---|
| 221 | # Generate Visual SlickEdit tagging #defines.
|
---|
| 222 | #
|
---|
| 223 | vslick.h: include/VBox/cdefs.h Makefile
|
---|
| 224 | echo '// autogenerated' > $@.tmp
|
---|
| 225 | #echo '#define __BEGIN_DECLS ' >> $@.tmp
|
---|
| 226 | #echo '#define __END_DECLS ' >> $@.tmp
|
---|
| 227 |
|
---|
| 228 | echo '#define ATL_NO_VTABLE ' >> $@.tmp
|
---|
| 229 | echo '#define BEGIN_COM_MAP(a) ' >> $@.tmp
|
---|
| 230 | echo '#define END_COM_MAP(a) ' >> $@.tmp
|
---|
| 231 |
|
---|
| 232 | echo '#define CHECKREADY if(!isReady()) return E_UNEXPECTED; ' >> $@.tmp
|
---|
| 233 | echo '#define COM_DECL_READONLY_ENUM_AND_COLLECTION(a) ' >> $@.tmp
|
---|
| 234 | echo '#define COM_INTERFACE_ENTRY(a) ' >> $@.tmp
|
---|
| 235 | echo '#define COMGETTER(n) Get##n ' >> $@.tmp
|
---|
| 236 | echo '#define COMSETTER(n) Set##n ' >> $@.tmp
|
---|
| 237 | echo '#define DECLARE_NOT_AGGREGATABLE(a) ' >> $@.tmp
|
---|
| 238 | echo '#define DECLARE_PROTECT_FINAL_CONSTRUCT(a) ' >> $@.tmp
|
---|
| 239 | echo '#define NS_DECL_ISUPPORTS ' >> $@.tmp
|
---|
| 240 | echo '#define NS_IMETHOD NS_IMETHOD_(nsresult) ' >> $@.tmp
|
---|
| 241 | echo '#define NS_IMETHOD_(type) type ' >> $@.tmp
|
---|
| 242 | echo '#define PARSERS_EXPORT ' >> $@.tmp
|
---|
| 243 | echo '#define SAX_EXPORT ' >> $@.tmp
|
---|
| 244 | echo '#define STDMETHOD(a) NS_IMETHOD a ' >> $@.tmp
|
---|
| 245 | echo '#define XERCES_CPP_NAMESPACE_BEGIN ' >> $@.tmp
|
---|
| 246 | echo '#define XERCES_CPP_NAMESPACE_END ' >> $@.tmp
|
---|
| 247 |
|
---|
| 248 | echo '#define CTXAllSUFF(var) var##R3 ' >> $@.tmp
|
---|
| 249 | echo '#define CTXSUFF(var) var##HC ' >> $@.tmp
|
---|
| 250 | echo '#define OTHERCTXSUFF(var) var##GC ' >> $@.tmp
|
---|
| 251 | echo '#define CTXALLMID(first, last) first##R3##last ' >> $@.tmp
|
---|
| 252 | echo '#define CTXMID(first, last) first##HC##last ' >> $@.tmp
|
---|
| 253 | echo '#define OTHERCTXMID(first, last) first##GC##last ' >> $@.tmp
|
---|
| 254 | echo '#define CTXTYPE(GCType, R3Type, R0Type) R3Type ' >> $@.tmp
|
---|
| 255 | echo '#define GCPTRTYPE(GCType) GCType ' >> $@.tmp
|
---|
| 256 | echo '#define GCTYPE(GCType, HCType) GCType ' >> $@.tmp
|
---|
| 257 | echo '#define HCPTRTYPE(HCType) HCType ' >> $@.tmp
|
---|
| 258 | echo '#define R0PTRTYPE(R3Type) R3Type ' >> $@.tmp
|
---|
| 259 | echo '#define R3PTRTYPE(R0Type) R0Type ' >> $@.tmp
|
---|
| 260 | echo '#define RT_SRC_POS __FILE__, __LINE__, __PRETTY_FUNCTION__ ' >> $@.tmp
|
---|
| 261 | echo '#define RT_SRC_POS_DECL const char *pszFile, unsigned iLine, const char *pszFunction ' >> $@.tmp
|
---|
| 262 | echo '#define RT_SRC_POS_ARGS pszFile, iLine, pszFunction ' >> $@.tmp
|
---|
| 263 | echo '#define RTCALL' >> $@.tmp
|
---|
| 264 | echo '#define DECLINLINE(type) inline type ' >> $@.tmp
|
---|
| 265 |
|
---|
| 266 | echo '#define PDM_SRC_POS __FILE__, __LINE__, __PRETTY_FUNCTION__ ' >> $@.tmp
|
---|
| 267 | echo '#define PDM_SRC_POS_DECL const char *pszFile, unsigned iLine, const char *pszFunction ' >> $@.tmp
|
---|
| 268 | echo '#define PDM_SRC_POS_ARGS pszFile, iLine, pszFunction ' >> $@.tmp
|
---|
| 269 | echo '#define PDMDEVINSINT_DECLARED 1' >> $@.tmp
|
---|
| 270 | echo '#define VBOXCALL' >> $@.tmp
|
---|
| 271 |
|
---|
| 272 | $(SED) -e '/__cdecl/d' \
|
---|
| 273 | -e '/^ *# *define.*DECL/!d' \
|
---|
| 274 | -e '/DECLS/d' \
|
---|
| 275 | -e '/_SRC_POS_DECL/d' \
|
---|
| 276 | -e '/declspec/d' \
|
---|
| 277 | -e 's/# */#/g' \
|
---|
| 278 | -e 's/ */ /g' \
|
---|
| 279 | -e '/(type) DECLEXPORT/d' \
|
---|
| 280 | -e 's/ *VBOXCALL//' \
|
---|
| 281 | -e 's/ *RTCALL//' \
|
---|
| 282 | -e 's/(type) DECLIMPORT(type)/(type) type/' \
|
---|
| 283 | -e '/ DECLASM(type) type/d' \
|
---|
| 284 | -e '/define *DECL..CALLBACKMEMBER(type[^)]*) *RT/d' \
|
---|
| 285 | -e '/define *DECLINLINE(type)/d' \
|
---|
| 286 | \
|
---|
| 287 | include/iprt/cdefs.h \
|
---|
| 288 | include/VBox/cdefs.h \
|
---|
| 289 | >> $@.tmp
|
---|
| 290 | sort $@.tmp | sort | sed -e 's/$$/\n/' > $@.tmp2
|
---|
| 291 | $(MV) -f $@.tmp2 $@
|
---|
| 292 | $(RM) -f $@.tmp $@.tmp2 $@.tmp3
|
---|
| 293 |
|
---|
| 294 |
|
---|
| 295 | ## add tools fetching to the 'up' / 'update' target.
|
---|
| 296 | up update::
|
---|
| 297 | # this doesn't work of course if kmk is updated: svn$(HOSTSUFF_EXE) up $(PATH_KBUILD)
|
---|
[4628] | 298 | ifndef VBOX_OSE
|
---|
[1] | 299 | $(MAKE) -C tools fetch
|
---|
[4628] | 300 | else
|
---|
| 301 | $(MAKE) -C tools -f Makefile-ose.kmk fetch
|
---|
[1] | 302 | endif
|
---|
| 303 |
|
---|
[293] | 304 | #
|
---|
| 305 | # Generate VirtualBox-OSE-x.x.x.tar.bz2 tarballs for distribution
|
---|
| 306 | #
|
---|
| 307 | # - includes kBuild
|
---|
| 308 | # - must be executed on an OSE checkout
|
---|
| 309 | #
|
---|
| 310 |
|
---|
| 311 | # the path where to store the tarball
|
---|
| 312 | TARBALLPATH ?= $(shell cd $(PATH_ROOT)/..; pwd)
|
---|
[305] | 313 | #TARBALLPATH ?= $(abspath $(PATH_ROOT)/..) - this should also do the trick without spawning a shell.
|
---|
[293] | 314 | # the root directory inside the tarball
|
---|
[4448] | 315 | TARBALLROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
|
---|
[293] | 316 | # the name of the tarball file
|
---|
[4448] | 317 | TARBALLNAME ?= VirtualBox-$(VBOX_VERSION_STRING).tar.bz2
|
---|
[293] | 318 | snapshot:
|
---|
| 319 | @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
|
---|
| 320 | @if [ -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then echo; echo "Found USB stuff, refused to build OSE tarball!"; echo; exit 1; fi
|
---|
| 321 | $(QUIET)$(MKDIR) -p $(TARBALLPATH)
|
---|
| 322 | $(QUIET)$(RM) -f $(wildcard $(TARBALLPATH)/VirtualBox*)
|
---|
| 323 | $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
|
---|
| 324 | $(QUIET)tar -cjh --owner 0 --group 0 --totals \
|
---|
| 325 | --exclude=.svn \
|
---|
| 326 | --exclude=$(TARBALLROOT)/out \
|
---|
| 327 | --exclude=$(TARBALLROOT)/env.sh \
|
---|
| 328 | --exclude=$(TARBALLROOT)/configure.log \
|
---|
| 329 | --exclude=$(TARBALLROOT)/AutoConfig.kmk \
|
---|
| 330 | --exclude=$(TARBALLROOT)/LocalConfig.kmk \
|
---|
| 331 | -C $(TARBALLPATH) \
|
---|
| 332 | -f $(TARBALLPATH)/$(TARBALLNAME) \
|
---|
| 333 | $(TARBALLROOT)
|
---|
| 334 | $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
|
---|