######################################################################
# Copyright 2018-2020 Alain Giorgetti and Rémi Lazarini              #
# FEMTO-ST institute                                                 #
######################################################################

######################################################################
#  This software is distributed under the terms of the GNU Lesser    #
#  General Public License version 2.1                                #
######################################################################

# why3/enum/generator/barray/Makefile

# File path list
DIRS?= -L . -L ../..

.PHONY: run ide prove replay extract clean

run:
	why3 execute $(DIRS) Barray.mlw Main.run

# Start Why3 IDE with Barray.mlw
ide:
	why3 ide $(DIRS) Barray.mlw

prove:
	# TODO: add split_vc for next
	why3 prove $(DIRS) -P alt-ergo Barray.mlw

replay:
	why3 replay $(DIRS) Barray

extract:
	# In CUT 2.2:
	# why3 extract $(DIRS) -D ocaml64 Barray.mlw -T Enum -o ../../../../OCaml/enum/generator/barray/
	# With Why3 1.3.3:
	why3 extract --modular --recursive -F whyml -D ocaml64 $(DIRS) Barray.Enum -o ../../../../OCaml/enum/generator/barray/

# Cleaning
clean:
	cd Barray; rm -f *.bak
