summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSon Ho2022-02-18 12:29:44 +0100
committerSon Ho2022-02-18 12:29:44 +0100
commit68a91446114372478ad74a1e6113b842162e56c5 (patch)
tree39705f02ddee33b3eb0229747e9fe2420303e489 /Makefile
parent66a33c79cbb422377e706fedb7e62678498270bb (diff)
Update the Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 070aba6c..c485ef48 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
all: build-test
-CHARON_HOME=../charon/charon
-CHARON_TESTS_DIR=$(CHARON_HOME)/tests/src
+CHARON_HOME=../charon
+CHARON_EXEC=$(CHARON_HOME)/charon
+CHARON_TESTS_DIR=$(CHARON_HOME)/tests/cfim
DEST_DIR=tests
# Default translation options:
@@ -32,7 +33,7 @@ translate-hashmap: SUBDIR:=hashmap
# Generic rule to extract the CFIM from a rust file
.PHONY: gen-cfim-%
gen-cfim-%: build
- cd ../charon/charon && cargo run tests/src/$*.rs
+ cd $(CHARON_HOME)/charon && cargo run ../tests/src/$*.rs --dest ../tests/cfim
# Generic rule to test the translation on a CFIM file
.PHONY: translate-%