michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: USE_RCS_MK := 1 michael@0: include $(topsrcdir)/config/makefiles/makeutils.mk michael@0: michael@0: DEFINES += \ michael@0: -DCXXFLAGS='$(CXXFLAGS)' \ michael@0: -DCPPFLAGS='$(CPPFLAGS)' \ michael@0: $(NULL) michael@0: michael@0: MOZ_SOURCE_STAMP ?= $(shell hg -R $(topsrcdir) parent --template='{node|short}\n' 2>/dev/null) michael@0: ifdef MOZ_SOURCE_STAMP michael@0: DEFINES += -DSOURCE_CHANGESET='$(MOZ_SOURCE_STAMP)' michael@0: endif michael@0: michael@0: source_repo ?= $(call getSourceRepo) michael@0: ifneq (,$(filter http%,$(source_repo))) michael@0: DEFINES += -DSOURCE_REPO='$(source_repo)' michael@0: else ifneq (,$(strip $(source_repo))) michael@0: DEFINES += -DSOURCE_GIT_COMMIT='$(source_repo)' michael@0: endif michael@0: michael@0: ifndef BUILD_HOSTNAME michael@0: BUILD_HOSTNAME = $(shell hostname -s || hostname) michael@0: endif michael@0: DEFINES += -DBUILD_HOSTNAME='$(BUILD_HOSTNAME)'