summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile
index abf03c4f..a39067b6 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -57,14 +57,21 @@ all: sail lib doc
full: sail lib power doc test
-ast.ml: ../language/l2.ott
- ott -sort false -generate_aux_rules true -o ast.ml -picky_multiple_parses true ../language/l2.ott
+ast.lem: ../language/l2.ott
+ ott -sort false -generate_aux_rules true -o ast.lem -picky_multiple_parses true ../language/l2.ott
+
+ast.ml: ast.lem
+ lem -ocaml ast.lem
+ sed -i -f ast.sed ast.ml
lem_interp/interp_ast.lem: ../language/l2.ott
ott -sort false -generate_aux_rules true -o lem_interp/interp_ast.lem -picky_multiple_parses true ../language/l2.ott
sail: ast.ml
- ocamlbuild sail.native
+ ocamlbuild -use-ocamlfind sail.native
+
+isail: ast.ml
+ ocamlbuild -use-ocamlfind isail.native
sail.native: sail
@@ -84,7 +91,7 @@ SAIL_DIR:=$(realpath $(dir $(THIS_MAKEFILE))..)
BITBUCKET_ROOT=$(realpath $(dir $(THIS_MAKEFILE))../..)
LEM = $(BITBUCKET_ROOT)/lem/lem
-LEMLIBOCAML = $(BITBUCKET_ROOT)/lem/ocaml-lib
+LEMLIBOCAML = $(BITBUCKET_ROOT)/lem/ocaml-lib/_build_zarith
ELFDIR= $(BITBUCKET_ROOT)/linksem
ZARITH_DIR=$(LEMLIBOCAML)/dependencies/zarith
ZARITH_LIB=$(ZARITH_DIR)/zarith.cma
@@ -257,6 +264,7 @@ clean:
-rm -rf lem lib
-rm -rf sail.docdir
-rm -f ast.ml
+ -rm -f ast.lem
doc:
ocamlbuild sail.docdir/index.html