michael@0: # This file is normally included by autoconf.mk, but it is also used michael@0: # directly in python/mozbuild/mozbuild/base.py for gmake validation. michael@0: # We thus use INCLUDED_AUTOCONF_MK to enable/disable some parts depending michael@0: # whether a normal build is happening or whether the check is running. michael@0: includedir := $(includedir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION) michael@0: idldir = $(datadir)/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION) michael@0: installdir = $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION) michael@0: sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION) michael@0: ifndef TOP_DIST michael@0: TOP_DIST = dist michael@0: endif michael@0: ifneq (,$(filter /%,$(TOP_DIST))) michael@0: DIST = $(TOP_DIST) michael@0: else michael@0: ifeq (.,$(DEPTH)) michael@0: DIST = $(TOP_DIST) michael@0: else michael@0: DIST = $(DEPTH)/$(TOP_DIST) michael@0: endif michael@0: endif michael@0: michael@0: # We do magic with OBJ_SUFFIX in config.mk, the following ensures we don't michael@0: # manually use it before config.mk inclusion michael@0: _OBJ_SUFFIX := $(OBJ_SUFFIX) michael@0: OBJ_SUFFIX = $(error config/config.mk needs to be included before using OBJ_SUFFIX) michael@0: michael@0: ifeq ($(HOST_OS_ARCH),WINNT) michael@0: # We only support building with pymake or a non-msys gnu make version michael@0: # strictly above 4.0. michael@0: ifndef .PYMAKE michael@0: ifeq (a,$(firstword a$(subst /, ,$(abspath .)))) michael@0: $(error MSYS make is not supported) michael@0: endif michael@0: # 4.0- happens to be greater than 4.0, lower than the mozmake version, michael@0: # and lower than 4.0.1 or 4.1, whatever next version of gnu make will michael@0: # be released. michael@0: ifneq (4.0-,$(firstword $(sort 4.0- $(MAKE_VERSION)))) michael@0: $(error Make version too old. Only versions strictly greater than 4.0 are supported.) michael@0: endif michael@0: endif michael@0: ifdef INCLUDED_AUTOCONF_MK michael@0: ifeq (a,$(firstword a$(subst /, ,$(srcdir)))) michael@0: $(error MSYS-style srcdir are not supported for Windows builds.) michael@0: endif michael@0: endif michael@0: endif # WINNT michael@0: michael@0: ifdef .PYMAKE michael@0: include_deps = $(eval $(if $(2),,-)includedeps $(1)) michael@0: else michael@0: include_deps = $(eval $(if $(2),,-)include $(1)) michael@0: endif michael@0: michael@0: ifndef INCLUDED_AUTOCONF_MK michael@0: default:: michael@0: endif