summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2008-03-21 22:40:11 +0000
committerJohn Tytgat <joty@netsurf-browser.org>2008-03-21 22:40:11 +0000
commitb4d3bb9df7010bf8a93a702ea89b009dc132d198 (patch)
tree29f5e35b03d3c44807d91580d74e85c6e38ad7bf /Makefile
parente0ba58db236ab131d7ec6b8965c906a70fe1e19d (diff)
downloadnetsurf-b4d3bb9df7010bf8a93a702ea89b009dc132d198.tar.gz
netsurf-b4d3bb9df7010bf8a93a702ea89b009dc132d198.tar.bz2
- Add check TARGET is either "riscos" or "gtk" (or not specified but then
an appropriate default TARGET value is chosen based on build platform). - Support GCCSDK cross-compilers which are not installed at their default location by making use of GCCSDK_INSTALL_CROSSBIN/GCCSDK_INSTALL_ENV. svn path=/trunk/netsurf/; revision=4025
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3a1816130..49c541748 100644
--- a/Makefile
+++ b/Makefile
@@ -50,6 +50,12 @@ TARGET := gtk
endif
endif
+ifneq ($(TARGET),riscos)
+ifneq ($(TARGET),gtk)
+$(error Unknown TARGET "$(TARGET)", should either be "riscos" or "gtk")
+endif
+endif
+
Q=@
VQ=@
PERL=perl
@@ -83,8 +89,9 @@ EXEEXT :=
PKG_CONFIG :=
else
# Cross-build for RO
-GCCSDK_INSTALL_ENV := /home/riscos/env
-CC := /home/riscos/cross/bin/gcc
+GCCSDK_INSTALL_ENV ?= /home/riscos/env
+GCCSDK_INSTALL_CROSSBIN ?= /home/riscos/cross/bin
+CC := $(GCCSDK_INSTALL_CROSSBIN)/gcc
EXEEXT := ,ff8
PKG_CONFIG := $(GCCSDK_INSTALL_ENV)/ro-pkg-config
endif