summaryrefslogtreecommitdiff
path: root/makefiles/gmake/platform.mk
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-02 10:59:16 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-03-02 10:59:16 +0100
commitc2805aa3ff0ca390553ce8a103d0926a37d960c2 (patch)
treef98833dc4933c20ac5cd615fad5545de796b7ab1 /makefiles/gmake/platform.mk
parent1d99bd87f762f8a2daad14afda88748c9e3815d6 (diff)
downloadwolfbones-c2805aa3ff0ca390553ce8a103d0926a37d960c2.tar.gz
wolfbones-c2805aa3ff0ca390553ce8a103d0926a37d960c2.tar.bz2
first version of a platform.mk.vars cache to speed up the build
Diffstat (limited to 'makefiles/gmake/platform.mk')
-rw-r--r--makefiles/gmake/platform.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/makefiles/gmake/platform.mk b/makefiles/gmake/platform.mk
index 95843fb..8fc3905 100644
--- a/makefiles/gmake/platform.mk
+++ b/makefiles/gmake/platform.mk
@@ -16,10 +16,12 @@
#
# author: Andreas Baumann, abaumann at yahoo dot com
-PLATFORM = $(shell $(TOPDIR)/makefiles/gmake/guess_env --platform $(CC))
-OS_MAJOR_VERSION = $(shell $(TOPDIR)/makefiles/gmake/guess_env --os-major-version $(CC))
-OS_MINOR_VERSION = $(shell $(TOPDIR)/makefiles/gmake/guess_env --os-minor-version $(CC))
-COMPILER = $(shell $(TOPDIR)/makefiles/gmake/guess_env --compiler $(CC))
+-include $(TOPDIR)/makefiles/gmake/platform.mk.vars
+
+PLATFORM ?= $(shell $(TOPDIR)/makefiles/gmake/guess_env --platform $(CC))
+OS_MAJOR_VERSION ?= $(shell $(TOPDIR)/makefiles/gmake/guess_env --os-major-version $(CC))
+OS_MINOR_VERSION ?= $(shell $(TOPDIR)/makefiles/gmake/guess_env --os-minor-version $(CC))
+COMPILER ?= $(shell $(TOPDIR)/makefiles/gmake/guess_env --compiler $(CC))
PLATFORM_COMPILE_FLAGS = \
-D$(PLATFORM) \