height filtering
[csRadar.git] / build.sh
1 flags="-ggdb3 -Wall -fsanitize=address"
2
3 while (( "$#" )); do
4 case $1 in
5 -r|--release)
6 flags="-Wall -O3"
7 echo "Release mode"
8 ;;
9 *)
10 echo "Unkown param: $1"
11 exit 1
12 ;;
13 esac
14 shift
15 done
16
17 mkdir -p ext
18 echo build: csRadar
19 gcc $flags -rdynamic csRadar.c -o csRadar -lm -ldl
20
21 echo build: ext/csr_substance.so
22 gcc $flags -fpic -shared -o ext/csr_substance.so ext_csr_substance.c -lm