-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·35 lines (28 loc) · 858 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·35 lines (28 loc) · 858 Bytes
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
29
30
31
32
33
34
#!/bin/bash
source bin/osx_gnu.sh
set -e
DIRS="-Is src/util,src/formulas,src/backends/smtlib,src/backends/c,src/programs,src/frontends/spl,src/prover,src/sl,src/verifier,src/main"
TARGET="src/main/grasshopper src/main/vizmodel "
FLAGS="-cflag -g -lflag -g -libs unix,str $DIRS"
OCAMLBUILD=ocamlbuild
ocb()
{
$OCAMLBUILD -use-ocamlfind $FLAGS $*
}
if [ $# -eq 0 ]; then
action=native
else
action=$1;
shift
fi
case $action in
clean) ocb -clean; echo "" ;;
native) ocb ${TARGET//" "/".native "} ;;
byte) ocb ${TARGET//" "/".byte "} ;;
all) ocb ${TARGET//" "/".native "} ${TARGET//" "/".byte "} ;;
prof) ocb ${TARGET//" "/".p.native "} ;;
tests) bin/regression-tests $@ ;;
depend) echo "Not needed.";;
smt-lib) bin/generate-smtlib-benchmarks $@ ;;
*) echo "Unknown action $action";;
esac;