2012-06-20 00:00:48 -07: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)
|
2013-10-11 09:47:55 -07:00
|
|
|
DIST = $(DEPTH)/dist
|
2012-06-20 00:00:48 -07: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)
|
2013-12-05 15:45:29 -08:00
|
|
|
# We only support building with pymake or a non-msys gnu make version
|
|
|
|
# strictly above 4.0.
|
2013-10-15 16:34:18 -07:00
|
|
|
ifndef .PYMAKE
|
2013-12-05 15:45:29 -08: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 00:00:48 -07:00
|
|
|
endif
|
2013-10-15 16:34:18 -07:00
|
|
|
endif
|
|
|
|
ifeq (a,$(firstword a$(subst /, ,$(srcdir))))
|
|
|
|
$(error MSYS-style srcdir are not supported for Windows builds.)
|
2012-06-20 00:00:48 -07:00
|
|
|
endif
|
|
|
|
endif # WINNT
|
2013-08-19 17:15:43 -07:00
|
|
|
|
|
|
|
ifdef .PYMAKE
|
2013-12-16 13:15:37 -08:00
|
|
|
include_deps = $(eval $(if $(2),,-)includedeps $(1))
|
2013-08-19 17:15:43 -07:00
|
|
|
else
|
2013-12-16 13:15:37 -08:00
|
|
|
include_deps = $(eval $(if $(2),,-)include $(1))
|
2013-08-19 17:15:43 -07:00
|
|
|
endif
|