summaryrefslogtreecommitdiff
path: root/Docs/env.sh
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2014-11-16 10:35:28 +0000
committerJohn-Mark Bell <jmb@netsurf-browser.org>2014-11-16 12:06:36 +0000
commit15f88ea1c33a045a9ee0a39b28c7abd255bf4ee0 (patch)
tree2c6c837071f66db2902d4c0672d1751167bd702f /Docs/env.sh
parent71d016aba5214e6a8291215cc4574d761696f622 (diff)
downloadnetsurf-15f88ea1c33a045a9ee0a39b28c7abd255bf4ee0.tar.gz
netsurf-15f88ea1c33a045a9ee0a39b28c7abd255bf4ee0.tar.bz2
Fix up for new buildsystem
Diffstat (limited to 'Docs/env.sh')
-rw-r--r--Docs/env.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/Docs/env.sh b/Docs/env.sh
index 2042910a7..01c9b6911 100644
--- a/Docs/env.sh
+++ b/Docs/env.sh
@@ -14,7 +14,7 @@
# parameters
if [ "x${TARGET_ABI}" = "x" ]; then
- TARGET_ABI=$(uname -s)
+ TARGET_ABI=$(cc -dumpmachine)
fi
if [ "x${TARGET_WORKSPACE}" = "x" ]; then
@@ -34,7 +34,7 @@ if [ "x${NETSURF_GTK_MAJOR}" = "x" ]; then
fi
# The host system doing the building
-HOST_ABI=$(uname -s)
+HOST_ABI=$(cc -dumpmachine)
# setup environment
echo "HOST_ABI=${HOST_ABI}"
@@ -58,16 +58,16 @@ NS_INTERNAL_LIBS="buildsystem libwapcaplet libparserutils libhubbub libdom libcs
NS_BROWSER="netsurf"
# add target specific libraries
-if [ "x${TARGET_ABI}" = "xHaiku" ]; then
+if [ "x${TARGET_ABI}" = "xi586-pc-haiku" ]; then
# tools required to build the browser
NS_TOOLS=""
NS_FRONTEND_LIBS=""
-elif [ "x${TARGET_ABI}" = "xDarwin" ]; then
+elif [ "x${TARGET_ABI}" = "xi686-apple-darwin11" ]; then
# tools required to build the browser
NS_TOOLS=""
# libraries required for the Darwin target abi
NS_FRONTEND_LIBS="libsvgtiny libnsfb"
-elif [ "x${TARGET_ABI}" = "xriscos" ]; then
+elif [ "x${TARGET_ABI}" = "xarm-unknown-riscos" ]; then
# tools required to build the browser
NS_TOOLS="nsgenbind"
# libraries required for the risc os target abi
@@ -198,7 +198,7 @@ ns-make-libs()
{
for REPO in $(echo ${NS_INTERNAL_LIBS} ${NS_FRONTEND_LIBS} ${NS_TOOLS}); do
echo " MAKE: make -C ${REPO} $USE_CPUS $*"
- make -C ${TARGET_WORKSPACE}/${REPO} TARGET=${TARGET_ABI} $USE_CPUS $*
+ make -C ${TARGET_WORKSPACE}/${REPO} BUILD=${TARGET_ABI} $USE_CPUS $*
done
}
@@ -206,7 +206,7 @@ ns-make-libs()
ns-make-libnsfb()
{
echo " MAKE: make -C libnsfb $USE_CPUS $*"
- make -C ${TARGET_WORKSPACE}/libnsfb TARGET=${TARGET_ABI} $USE_CPUS $*
+ make -C ${TARGET_WORKSPACE}/libnsfb BUILD=${TARGET_ABI} $USE_CPUS $*
}
# pulls all repos and makes and installs the libraries and tools