2003-11-15 07:43:50 +00:00
|
|
|
#
|
2012-05-21 11:12:37 +00:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2003-11-15 07:43:50 +00:00
|
|
|
|
|
|
|
|
2012-08-04 18:26:44 +00:00
|
|
|
DEPTH = @DEPTH@
|
2003-11-15 07:43:50 +00:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2003-11-15 19:33:35 +00:00
|
|
|
CHROME_DEPS = buildconfig.html
|
|
|
|
|
2003-11-15 07:43:50 +00:00
|
|
|
include $(DEPTH)/config/autoconf.mk
|
2013-02-15 22:00:12 +00:00
|
|
|
USE_RCS_MK := 1
|
|
|
|
include $(topsrcdir)/config/makefiles/makeutils.mk
|
2003-11-15 07:43:50 +00:00
|
|
|
|
2008-09-22 18:00:38 +00:00
|
|
|
DEFINES += \
|
|
|
|
-Dtarget="$(target)" \
|
|
|
|
-Dac_configure_args="$(ac_configure_args)" \
|
|
|
|
-DCC="$(CC)" \
|
|
|
|
-DCC_VERSION="$(CC_VERSION)" \
|
|
|
|
-DCFLAGS="$(CFLAGS)" \
|
|
|
|
-DCXX="$(CXX)" \
|
|
|
|
-DCXX_VERSION="$(CXX_VERSION)" \
|
|
|
|
-DCXXFLAGS="$(CXXFLAGS)" \
|
|
|
|
-DCPPFLAGS="$(CPPFLAGS)" \
|
|
|
|
$(NULL)
|
|
|
|
|
2009-12-20 14:25:48 +00:00
|
|
|
MOZ_SOURCE_STAMP ?= $(shell hg -R $(topsrcdir) parent --template="{node|short}\n" 2>/dev/null)
|
|
|
|
ifdef MOZ_SOURCE_STAMP
|
|
|
|
DEFINES += -DSOURCE_CHANGESET="$(MOZ_SOURCE_STAMP)"
|
2008-09-22 18:00:38 +00:00
|
|
|
endif
|
|
|
|
|
2011-08-09 21:16:26 +00:00
|
|
|
ifeq (Android,$(OS_TARGET))
|
|
|
|
DEFINES += -DANDROID_PACKAGE_NAME=$(ANDROID_PACKAGE_NAME)
|
|
|
|
endif
|
|
|
|
|
2013-02-15 22:00:12 +00:00
|
|
|
source_repo ?= $(call getSourceRepo)
|
|
|
|
ifneq (,$(filter http%,$(source_repo)))
|
|
|
|
DEFINES += -DSOURCE_REPO="$(source_repo)"
|
2008-09-22 18:00:38 +00:00
|
|
|
endif
|
2004-12-01 00:21:43 +00:00
|
|
|
|
2012-02-09 05:16:47 +00:00
|
|
|
BUILD_HOSTNAME = $(shell hostname -s || hostname)
|
|
|
|
DEFINES += -DBUILD_HOSTNAME="$(BUILD_HOSTNAME)"
|
|
|
|
|
2003-11-15 07:43:50 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|