1 # This file is normally included by autoconf.mk, but it is also used
2 # directly in python/mozbuild/mozbuild/base.py for gmake validation.
3 # We thus use INCLUDED_AUTOCONF_MK to enable/disable some parts depending
4 # whether a normal build is happening or whether the check is running.
5 installdir
= $(libdir)/$(MOZ_APP_NAME
)
11 ABS_DIST
= $(topobjdir
)/dist
13 # We do magic with OBJ_SUFFIX in config.mk, the following ensures we don't
14 # manually use it before config.mk inclusion
15 _OBJ_SUFFIX
:= $(OBJ_SUFFIX
)
16 OBJ_SUFFIX
= $(error config
/config.mk needs to be included before using OBJ_SUFFIX
)
18 ifeq ($(HOST_OS_ARCH
),WINNT
)
19 # We only support building with a non-msys gnu make version
22 $(error Pymake is no longer supported. Please upgrade to MozillaBuild
1.9 or newer and build with
'mach' or
'mozmake')
25 ifeq (a
,$(firstword a
$(subst /, ,$(abspath .
))))
26 $(error MSYS make is not supported
)
28 # 4.0- happens to be greater than 4.0, lower than the mozmake version,
29 # and lower than 4.0.1 or 4.1, whatever next version of gnu make will
31 ifneq (4.0-,$(firstword $(sort 4.0- $(MAKE_VERSION
))))
32 $(error Make version too old. Only versions strictly greater than
4.0 are supported.
)
35 ifdef INCLUDED_AUTOCONF_MK
36 ifeq (a
,$(firstword a
$(subst /, ,$(srcdir))))
37 $(error MSYS-style
srcdir are not supported for Windows builds.
)
42 ifndef INCLUDED_AUTOCONF_MK
45 TIERS
:= $(if
$(MOZ_ARTIFACT_BUILDS
),artifact
)pre-export
export $(if
$(COMPILE_ENVIRONMENT
),compile
)misc libs tools
$(if
$(filter check recurse_check
,$(MAKECMDGOALS
)), check)
48 # These defines are used to support the twin-topsrcdir model for comm-central.
50 MOZILLA_DIR
= $(MOZILLA_SRCDIR
)
52 MOZILLA_DIR
= $(topsrcdir
)