config/baseconfig.mk

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # This file is normally included by autoconf.mk, but it is also used
michael@0 2 # directly in python/mozbuild/mozbuild/base.py for gmake validation.
michael@0 3 # We thus use INCLUDED_AUTOCONF_MK to enable/disable some parts depending
michael@0 4 # whether a normal build is happening or whether the check is running.
michael@0 5 includedir := $(includedir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
michael@0 6 idldir = $(datadir)/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
michael@0 7 installdir = $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
michael@0 8 sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION)
michael@0 9 ifndef TOP_DIST
michael@0 10 TOP_DIST = dist
michael@0 11 endif
michael@0 12 ifneq (,$(filter /%,$(TOP_DIST)))
michael@0 13 DIST = $(TOP_DIST)
michael@0 14 else
michael@0 15 ifeq (.,$(DEPTH))
michael@0 16 DIST = $(TOP_DIST)
michael@0 17 else
michael@0 18 DIST = $(DEPTH)/$(TOP_DIST)
michael@0 19 endif
michael@0 20 endif
michael@0 21
michael@0 22 # We do magic with OBJ_SUFFIX in config.mk, the following ensures we don't
michael@0 23 # manually use it before config.mk inclusion
michael@0 24 _OBJ_SUFFIX := $(OBJ_SUFFIX)
michael@0 25 OBJ_SUFFIX = $(error config/config.mk needs to be included before using OBJ_SUFFIX)
michael@0 26
michael@0 27 ifeq ($(HOST_OS_ARCH),WINNT)
michael@0 28 # We only support building with pymake or a non-msys gnu make version
michael@0 29 # strictly above 4.0.
michael@0 30 ifndef .PYMAKE
michael@0 31 ifeq (a,$(firstword a$(subst /, ,$(abspath .))))
michael@0 32 $(error MSYS make is not supported)
michael@0 33 endif
michael@0 34 # 4.0- happens to be greater than 4.0, lower than the mozmake version,
michael@0 35 # and lower than 4.0.1 or 4.1, whatever next version of gnu make will
michael@0 36 # be released.
michael@0 37 ifneq (4.0-,$(firstword $(sort 4.0- $(MAKE_VERSION))))
michael@0 38 $(error Make version too old. Only versions strictly greater than 4.0 are supported.)
michael@0 39 endif
michael@0 40 endif
michael@0 41 ifdef INCLUDED_AUTOCONF_MK
michael@0 42 ifeq (a,$(firstword a$(subst /, ,$(srcdir))))
michael@0 43 $(error MSYS-style srcdir are not supported for Windows builds.)
michael@0 44 endif
michael@0 45 endif
michael@0 46 endif # WINNT
michael@0 47
michael@0 48 ifdef .PYMAKE
michael@0 49 include_deps = $(eval $(if $(2),,-)includedeps $(1))
michael@0 50 else
michael@0 51 include_deps = $(eval $(if $(2),,-)include $(1))
michael@0 52 endif
michael@0 53
michael@0 54 ifndef INCLUDED_AUTOCONF_MK
michael@0 55 default::
michael@0 56 endif

mercurial