deb repo renamed
[k8jam.git] / 0build.sh
blob956729cf40e63f13ce057bbe3ab5fbb3036feca5
1 #!/bin/sh
3 CC="gcc -pipe"
4 LINK="gcc -pipe"
5 LINKFLAGS="-s"
6 AR="ar ru"
7 RANLIB="ranlib"
8 CFLAGS="-O2 -Wall -DMKJAMBASE_COMPACT"
9 checkoldcompiler="ona"
10 if [ `uname -m` == "armv7l" ]; then
11 # n900 native
12 checkoldcompiler="tan"
13 elif [ `uname -m` == "arm" ]; then
14 # armel scratchbox
15 checkoldcompiler="tan"
17 # check for n900 and old compiler
18 if [ "$checkoldcompiler" == "tan" ]; then
19 ver=`gcc -v 2>&1 | grep version`
20 if [ "z$ver" == "zgcc version 4.2.1" ]; then
21 echo "MSG: using n900 configuration..."
22 CFLAGS="-O0 -Wall -DMKJAMBASE_COMPACT -fno-strict-aliasing"
23 force_no_yacc=tan
26 DESTPATH="bin.unix"
27 BUILDPATH="_build"
28 XOS="unix"
29 WINE=""
30 EXESFX=""
32 . ./0build_common.sh