config/baseconfig.mk

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/config/baseconfig.mk	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,56 @@
     1.4 +# This file is normally included by autoconf.mk, but it is also used
     1.5 +# directly in python/mozbuild/mozbuild/base.py for gmake validation.
     1.6 +# We thus use INCLUDED_AUTOCONF_MK to enable/disable some parts depending
     1.7 +# whether a normal build is happening or whether the check is running.
     1.8 +includedir := $(includedir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
     1.9 +idldir = $(datadir)/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
    1.10 +installdir = $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
    1.11 +sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION)
    1.12 +ifndef TOP_DIST
    1.13 +TOP_DIST = dist
    1.14 +endif
    1.15 +ifneq (,$(filter /%,$(TOP_DIST)))
    1.16 +DIST = $(TOP_DIST)
    1.17 +else
    1.18 +ifeq (.,$(DEPTH))
    1.19 +DIST = $(TOP_DIST)
    1.20 +else
    1.21 +DIST = $(DEPTH)/$(TOP_DIST)
    1.22 +endif
    1.23 +endif
    1.24 +
    1.25 +# We do magic with OBJ_SUFFIX in config.mk, the following ensures we don't
    1.26 +# manually use it before config.mk inclusion
    1.27 +_OBJ_SUFFIX := $(OBJ_SUFFIX)
    1.28 +OBJ_SUFFIX = $(error config/config.mk needs to be included before using OBJ_SUFFIX)
    1.29 +
    1.30 +ifeq ($(HOST_OS_ARCH),WINNT)
    1.31 +# We only support building with pymake or a non-msys gnu make version
    1.32 +# strictly above 4.0.
    1.33 +ifndef .PYMAKE
    1.34 +ifeq (a,$(firstword a$(subst /, ,$(abspath .))))
    1.35 +$(error MSYS make is not supported)
    1.36 +endif
    1.37 +# 4.0- happens to be greater than 4.0, lower than the mozmake version,
    1.38 +# and lower than 4.0.1 or 4.1, whatever next version of gnu make will
    1.39 +# be released.
    1.40 +ifneq (4.0-,$(firstword $(sort 4.0- $(MAKE_VERSION))))
    1.41 +$(error Make version too old. Only versions strictly greater than 4.0 are supported.)
    1.42 +endif
    1.43 +endif
    1.44 +ifdef INCLUDED_AUTOCONF_MK
    1.45 +ifeq (a,$(firstword a$(subst /, ,$(srcdir))))
    1.46 +$(error MSYS-style srcdir are not supported for Windows builds.)
    1.47 +endif
    1.48 +endif
    1.49 +endif # WINNT
    1.50 +
    1.51 +ifdef .PYMAKE
    1.52 +include_deps = $(eval $(if $(2),,-)includedeps $(1))
    1.53 +else
    1.54 +include_deps = $(eval $(if $(2),,-)include $(1))
    1.55 +endif
    1.56 +
    1.57 +ifndef INCLUDED_AUTOCONF_MK
    1.58 +default::
    1.59 +endif

mercurial