summaryrefslogtreecommitdiff
path: root/ecp/build.sh
blob: acb1a145e52696038d5284582f1bfd8d8403f07e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

if [ -z $1 ]; then
    ARG="all"
else
    ARG=$1
fi
PLATFORM=posix

cd src/ecp
if [ "$ARG" != "clean" ]; then
    make platform=$PLATFORM clean
fi
make platform=$PLATFORM $ARG || exit
if [ "$ARG" ==  "all" ]; then
    make platform=$PLATFORM install
fi

cd ../../util
if [ "$ARG" != "clean" ]; then
    make platform=$PLATFORM clean
fi
make platform=$PLATFORM $ARG || exit
cd ../test
if [ "$ARG" != "clean" ]; then
    make platform=$PLATFORM clean
fi
make platform=$PLATFORM $ARG || exit