aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Heider2009-09-27 14:59:40 +0000
committerAndre Heider2009-09-27 14:59:40 +0000
commitac4c2701e9b59b551620dbea5f9bdc72fc46e2ab (patch)
tree1aa31bdb3e553b2629b58a7f6888fe0dc05dbfe8
parent33e9b0baf941d2541e616d2f46f98471e5e3b788 (diff)
downloadscummvm-rg350-ac4c2701e9b59b551620dbea5f9bdc72fc46e2ab.tar.gz
scummvm-rg350-ac4c2701e9b59b551620dbea5f9bdc72fc46e2ab.tar.bz2
scummvm-rg350-ac4c2701e9b59b551620dbea5f9bdc72fc46e2ab.zip
New configure var "_port_mk", set to "ports.mk" per default. Ports can overwrite this, and this change finally allows make targets in that file to access all the common mk variables (e.g. EXECUTABLE).
svn-id: r44401
-rw-r--r--Makefile5
-rwxr-xr-xconfigure3
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 59624891e6..7b974d08ba 100644
--- a/Makefile
+++ b/Makefile
@@ -78,4 +78,7 @@ else
$(error You need to run $(srcdir)/configure before you can run make. Check $(srcdir)/configure --help for a list of parameters)
endif
-include $(srcdir)/ports.mk
+ifneq ($(origin port_mk), undefined)
+include $(srcdir)/$(port_mk)
+endif
+
diff --git a/configure b/configure
index 56eaafe41f..f842b75f1e 100755
--- a/configure
+++ b/configure
@@ -165,6 +165,7 @@ _host_os=""
_host_alias=""
_srcdir=`dirname $0`
+_port_mk="ports.mk"
# Determine a tmp file name, using mktemp(1) when available.
if type mktemp > /dev/null 2>&1 ; then
@@ -2458,6 +2459,8 @@ LDFLAGS += $LDFLAGS
$_mak_plugins
+port_mk = $_port_mk
+
SAVED_CONFIGFLAGS := $SAVED_CONFIGFLAGS
SAVED_LDFLAGS := $SAVED_LDFLAGS
SAVED_CXX := $SAVED_CXX