summaryrefslogtreecommitdiff
path: root/makefiles/Makefile.tools
diff options
context:
space:
mode:
Diffstat (limited to 'makefiles/Makefile.tools')
-rw-r--r--makefiles/Makefile.tools17
1 files changed, 15 insertions, 2 deletions
diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools
index 7603ba5..ccdbb80 100644
--- a/makefiles/Makefile.tools
+++ b/makefiles/Makefile.tools
@@ -100,8 +100,21 @@ ifeq ($(TARGET),riscos)
CURDIR := <$(COMPONENT)$$Dir>
else
# Cross compiling for RISC OS
- GCCSDK_INSTALL_ENV ?= /home/riscos/env
- GCCSDK_INSTALL_CROSSBIN ?= /home/riscos/cross/bin
+ ifeq ($(origin GCCSDK_INSTALL_ENV),undefined)
+ ifneq ($(realpath /opt/netsurf/arm-unknown-riscos/env),)
+ GCCSDK_INSTALL_ENV := /opt/netsurf/arm-unknown-riscos/env
+ else
+ GCCSDK_INSTALL_ENV := /home/riscos/env
+ endif
+ endif
+
+ ifeq ($(origin GCCSDK_INSTALL_CROSSBIN),undefined)
+ ifneq ($(realpath /opt/netsurf/arm-unknown-riscos/cross/bin),)
+ GCCSDK_INSTALL_CROSSBIN := /opt/netsurf/arm-unknown-riscos/cross/bin
+ else
+ GCCSDK_INSTALL_CROSSBIN := /home/riscos/cross/bin
+ endif
+ endif
AR__ := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*ar)
CC__ := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*gcc)