Skip to content

Commit

Permalink
fix(examples): add missing Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
W95Psp committed Apr 18, 2024
1 parent b0edae4 commit 52074c1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 10 deletions.
7 changes: 7 additions & 0 deletions examples/barrett/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.PHONY: default clean
default:
make -C proofs/fstar/extraction

clean:
rm -f proofs/fstar/extraction/.depend
rm -f proofs/fstar/extraction/*.fst
10 changes: 5 additions & 5 deletions examples/barrett/proofs/fstar/extraction/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ HACL_HOME ?= $(HAX_HOME)/../../../hacl-star

FSTAR_BIN ?= $(shell command -v fstar.exe 1>&2 2> /dev/null && echo "fstar.exe" || echo "$(FSTAR_HOME)/bin/fstar.exe")

HAX_PROOF_LIBS ?= $(HAX_HOME)/proof-libs/fstar
HAX_LIB ?= $(HAX_HOME)/hax-lib
HAX_PROOF_LIBS_HOME ?= $(HAX_HOME)/proof-libs/fstar
HAX_LIBS_HOME ?= $(HAX_HOME)/hax-lib/proofs/fstar/extraction

CACHE_DIR ?= $(HAX_PROOF_LIBS)/.cache
HINT_DIR ?= $(HAX_PROOF_LIBS)/.hints
Expand All @@ -56,9 +56,9 @@ $(ROOTS): ../../../src/lib.rs
cargo hax into fstar --z3rlimit 500

FSTAR_INCLUDE_DIRS = $(HACL_HOME)/lib \
$(HAX_PROOF_LIBS)/rust_primitives $(HAX_PROOF_LIBS)/core \
$(HAX_PROOF_LIBS)/hax_lib \
$(HAX_LIB)/proofs/fstar/extraction
$(HAX_PROOF_LIBS_HOME)/rust_primitives $(HAX_PROOF_LIBS_HOME)/core \
$(HAX_PROOF_LIBS_HOME)/hax_lib \
$(HAX_LIBS_HOME)

FSTAR_FLAGS = --cmi \
--warn_error -331 \
Expand Down
7 changes: 7 additions & 0 deletions examples/kyber_compress/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.PHONY: default clean
default:
make -C proofs/fstar/extraction

clean:
rm -f proofs/fstar/extraction/.depend
rm -f proofs/fstar/extraction/*.fst
11 changes: 6 additions & 5 deletions examples/kyber_compress/proofs/fstar/extraction/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ HACL_HOME ?= $(HAX_HOME)/../../../hacl-star

FSTAR_BIN ?= $(shell command -v fstar.exe 1>&2 2> /dev/null && echo "fstar.exe" || echo "$(FSTAR_HOME)/bin/fstar.exe")

HAX_PROOF_LIBS ?= $(HAX_HOME)/proof-libs/fstar
HAX_LIB ?= $(HAX_HOME)/hax-lib

HAX_PROOF_LIBS_HOME ?= $(HAX_HOME)/proof-libs/fstar
HAX_LIBS_HOME ?= $(HAX_HOME)/hax-lib/proofs/fstar/extraction

CACHE_DIR ?= $(HAX_PROOF_LIBS)/.cache
HINT_DIR ?= $(HAX_PROOF_LIBS)/.hints
Expand All @@ -56,9 +57,9 @@ $(ROOTS): ../../../src/lib.rs
cargo hax into fstar --z3rlimit 150

FSTAR_INCLUDE_DIRS = $(HACL_HOME)/lib \
$(HAX_PROOF_LIBS)/rust_primitives $(HAX_PROOF_LIBS)/core \
$(HAX_PROOF_LIBS)/hax_lib \
$(HAX_LIB)/proofs/fstar/extraction
$(HAX_PROOF_LIBS_HOME)/rust_primitives $(HAX_PROOF_LIBS_HOME)/core \
$(HAX_PROOF_LIBS_HOME)/hax_lib \
$(HAX_LIBS_HOME)

FSTAR_FLAGS = --cmi \
--warn_error -331 \
Expand Down

0 comments on commit 52074c1

Please sign in to comment.