2014-01-20 04:09:56 +04:00
|
|
|
# This file is normally included by autoconf.mk, but it is also used
|
|
|
|
# directly in python/mozbuild/mozbuild/base.py for gmake validation.
|
|
|
|
# We thus use INCLUDED_AUTOCONF_MK to enable/disable some parts depending
|
|
|
|
# whether a normal build is happening or whether the check is running.
|
2012-06-20 11:00:48 +04:00
|
|
|
includedir := $(includedir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
|
|
|
|
idldir = $(datadir)/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
|
|
|
|
installdir = $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
|
|
|
|
sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION)
|
2014-01-14 02:38:40 +04:00
|
|
|
ifeq (.,$(DEPTH))
|
2015-11-25 08:09:41 +03:00
|
|
|
DIST = dist
|
2014-01-14 02:38:40 +04:00
|
|
|
else
|
2015-11-25 08:09:41 +03:00
|
|
|
DIST = $(DEPTH)/dist
|
2014-01-14 02:38:40 +04:00
|
|
|
endif
|
2012-06-20 11:00:48 +04:00
|
|
|
|
|
|
|
# We do magic with OBJ_SUFFIX in config.mk, the following ensures we don't
|
|
|
|
# manually use it before config.mk inclusion
|
|
|
|
_OBJ_SUFFIX := $(OBJ_SUFFIX)
|
|
|
|
OBJ_SUFFIX = $(error config/config.mk needs to be included before using OBJ_SUFFIX)
|
|
|
|
|
|
|
|
ifeq ($(HOST_OS_ARCH),WINNT)
|
2014-06-25 03:38:12 +04:00
|
|
|
# We only support building with a non-msys gnu make version
|
2013-12-06 03:45:29 +04:00
|
|
|
# strictly above 4.0.
|
2014-06-25 03:38:12 +04:00
|
|
|
ifdef .PYMAKE
|
|
|
|
$(error Pymake is no longer supported. Please upgrade to MozillaBuild 1.9 or newer and build with 'mach' or 'mozmake')
|
|
|
|
endif
|
|
|
|
|
2013-12-06 03:45:29 +04:00
|
|
|
ifeq (a,$(firstword a$(subst /, ,$(abspath .))))
|
|
|
|
$(error MSYS make is not supported)
|
|
|
|
endif
|
|
|
|
# 4.0- happens to be greater than 4.0, lower than the mozmake version,
|
|
|
|
# and lower than 4.0.1 or 4.1, whatever next version of gnu make will
|
|
|
|
# be released.
|
|
|
|
ifneq (4.0-,$(firstword $(sort 4.0- $(MAKE_VERSION))))
|
|
|
|
$(error Make version too old. Only versions strictly greater than 4.0 are supported.)
|
2012-06-20 11:00:48 +04:00
|
|
|
endif
|
2014-06-25 03:38:12 +04:00
|
|
|
|
2014-01-20 04:09:56 +04:00
|
|
|
ifdef INCLUDED_AUTOCONF_MK
|
2013-10-16 03:34:18 +04:00
|
|
|
ifeq (a,$(firstword a$(subst /, ,$(srcdir))))
|
|
|
|
$(error MSYS-style srcdir are not supported for Windows builds.)
|
2012-06-20 11:00:48 +04:00
|
|
|
endif
|
2014-01-20 04:09:56 +04:00
|
|
|
endif
|
2012-06-20 11:00:48 +04:00
|
|
|
endif # WINNT
|
2013-08-20 04:15:43 +04:00
|
|
|
|
2014-01-20 04:09:56 +04:00
|
|
|
ifndef INCLUDED_AUTOCONF_MK
|
|
|
|
default::
|
2014-08-07 08:48:08 +04:00
|
|
|
else
|
2014-11-06 03:29:11 +03:00
|
|
|
TIERS := export $(if $(COMPILE_ENVIRONMENT),compile )misc libs tools
|
2014-01-20 04:09:56 +04:00
|
|
|
endif
|
2014-11-30 04:45:31 +03:00
|
|
|
|
|
|
|
# These defines are used to support the twin-topsrcdir model for comm-central.
|
|
|
|
ifdef MOZILLA_SRCDIR
|
|
|
|
MOZILLA_DIR = $(MOZILLA_SRCDIR)
|
|
|
|
else
|
|
|
|
MOZILLA_DIR = $(topsrcdir)
|
|
|
|
endif
|