https://github.com/EasyCrypt/easycrypt
Tip revision: 3e81941ce9bd25ff7ad27fbc1fc49c40a821385c authored by Pierre-Yves Strub on 05 April 2024, 11:57:25 UTC
Allow patterns in cut-rewrite.
Allow patterns in cut-rewrite.
Tip revision: 3e81941
Makefile
# -*- Makefile -*-
# --------------------------------------------------------------------
DUNE ?= dune
ECARGS ?=
ECTOUT ?= 10
ECJOBS ?= 0
ECEXTRA ?= --report=report.log
ECPROVERS ?= Alt-Ergo@2.4 Z3@4.12 CVC5@1.0
CHECKPY ?=
CHECK := $(CHECKPY) scripts/testing/runtest
CHECK += --bin=./ec.native --bin-args="$(ECARGS)"
CHECK += --bin-args="$(ECPROVERS:%=-p %)"
CHECK += --timeout="$(ECTOUT)" --jobs="$(ECJOBS)"
CHECK += $(ECEXTRA) config/tests.config
NIX ?= nix --extra-experimental-features "nix-command flakes"
# --------------------------------------------------------------------
UNAME_P = $(shell uname -p)
UNAME_S = $(shell uname -s)
# --------------------------------------------------------------------
.PHONY: default build byte native tests check examples
.PHONY: nix-build nix-build-with-provers nix-develop
.PHONY: clean install uninstall
default: build
@true
build:
rm -f src/ec.exe ec.native
dune build
ln -sf src/ec.exe ec.native
ifeq ($(UNAME_P)-$(UNAME_S),arm-Darwin)
-codesign -f -s - src/ec.exe
endif
install: build
$(DUNE) install
uninstall:
$(DUNE) uninstall
unit: build
$(CHECK) unit
stdlib: build
$(CHECK) prelude stdlib
examples: build
$(CHECK) examples mee-cbc
check: unit stdlib examples
@true
nix-build:
$(NIX) build
nix-build-with-provers:
$(NIX) build .#with_provers
nix-develop:
$(NIX) develop
clean:
rm -f ec.native && $(DUNE) clean
find theories examples -name '*.eco' -exec rm '{}' ';'
clean_eco:
find theories examples -name '*.eco' -exec rm '{}' ';'