summaryrefslogtreecommitdiff
path: root/makefiles/Makefile.tools
diff options
context:
space:
mode:
Diffstat (limited to 'makefiles/Makefile.tools')
-rw-r--r--makefiles/Makefile.tools18
1 files changed, 13 insertions, 5 deletions
diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools
index ebe25e7..af70003 100644
--- a/makefiles/Makefile.tools
+++ b/makefiles/Makefile.tools
@@ -98,10 +98,18 @@ ifeq ($(TARGET),riscos)
PKGCONFIG ?= $(GCCSDK_INSTALL_ENV)/ro-pkg-config
ifneq ($(COMPONENT_TYPE),riscos-module)
- ifneq ($(findstring arm-unknown-riscos-gcc,$(CC)),)
- EXEEXT := ,e1f
+ ifeq ($(origin CC),default)
+ ifneq ($(findstring arm-unknown-riscos-gcc,$(CC__)),)
+ EXEEXT := ,e1f
+ else
+ EXEEXT := ,ff8
+ endif
else
- EXEEXT := ,ff8
+ ifneq ($(findstring arm-unknown-riscos-gcc,$(CC)),)
+ EXEEXT := ,e1f
+ else
+ EXEEXT := ,ff8
+ endif
endif
else
EXEEXT := ,ffa
@@ -176,9 +184,9 @@ ECHO ?= echo
GENHTML ?= genhtml
-HOST_CC ?= $(CC)
+HOST_CC ?= cc
-HOST_CXX ?= $(CXX)
+HOST_CXX ?= c++
INSTALL ?= install