author Honza Bambas <>
Tue, 15 Oct 2013 20:08:26 +0200
changeset 150818 5f7e8f3ce619214655f9c0c1e04696d7e595a4dd
parent 150439 500765bd8dd9b772701c86c34e62948ec7f0eab5
child 150843 5f0bfb16fa4a5fd22e5828277e7e4ed0c9747f88
permissions -rw-r--r--
Bug 924938 - Correctly include CacheLog.h as the first file in a module to force logging in opt builds, r=michal

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)
DIST = $(DEPTH)/dist

# We do magic with OBJ_SUFFIX in, the following ensures we don't
# manually use it before inclusion
OBJ_SUFFIX = $(error config/ needs to be included before using OBJ_SUFFIX)

# We only want to do the pymake sanity on Windows, other os's can cope
# Ensure invariants between GNU Make and pymake
# Checked here since we want the sane error in a file that
# actually can be found regardless of path-style.
ifeq (_:,$(.PYMAKE)_$(findstring :,$(srcdir)))
$(error Windows-style srcdir being used with GNU make. Did you mean to run $(topsrcdir)/build/pymake/ instead? [see-also:])
ifeq (1_a,$(.PYMAKE)_$(firstword a$(subst /, ,$(srcdir))))
$(error MSYS-style srcdir being used with Pymake. Did you mean to run GNU Make instead? [see-also:    en/Gmake_vs._Pymake])
endif # WINNT

ifdef .PYMAKE
include_deps = $(eval -includedeps $(1))
include_deps = $(eval -include $(1))