summaryrefslogtreecommitdiffstats
path: root/build_all.sh
blob: a9d477733d739af7782719c4ce81943458d2414d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[ "$#" -gt "1" ] && echo "Too many args." && exit 1
[ "$#" -lt "1" ] && set -- "$@" "lite"

case "`echo $1 | tr A-Z a-z`" in
  lite|light)
    cp -p config.h.lite config.h
    cp -p Makefile.lite Makefile
    make
    ;;
  gnu)
    autoreconf -i -Wno-unsupported && \
    ./configure && \
    make
    ;;
  *)
    echo "Unknown build type: $1"
    exit 1
    ;;
esac
OpenPOWER on IntegriCloud