mirror of
https://github.com/AdaCore/why3.git
synced 2026-02-12 12:34:55 -08:00
The stdlib is augmented with iterator mechanisms The OCaml extraction driver is augmented accordingly, using OCaml Seq
70 lines
1.2 KiB
Makefile
70 lines
1.2 KiB
Makefile
|
|
|
|
# test_set_iterators: set_iterators.ml test_set_iterators.ml
|
|
# ocamlopt -I `ocamlfind query zarith` -o $@ zarith.cmxa $^
|
|
|
|
# set_iterators.ml: ../set_iterators.mlw Makefile
|
|
# why3 extract -D ocaml64 -o $@ $<
|
|
|
|
|
|
|
|
BENCH ?= no
|
|
|
|
ifeq ($(BENCH),yes)
|
|
WHY3=../../bin/why3.opt
|
|
WHY3SHARE=../../share
|
|
else
|
|
ifeq ($(BINDIR),)
|
|
WHY3=why3
|
|
else
|
|
WHY3=$(BINDIR)/why3
|
|
endif
|
|
WHY3SHARE=$(shell $(WHY3) --print-datadir)
|
|
endif
|
|
|
|
include $(WHY3SHARE)/Makefile.config
|
|
|
|
ifeq ($(BENCH),yes)
|
|
INCLUDE += -I ../../lib/why3
|
|
endif
|
|
|
|
MAIN=main
|
|
OBJ=set_iterators
|
|
|
|
ML = $(addsuffix .ml, $(OBJ))
|
|
CMO = $(addsuffix .cmo, $(OBJ))
|
|
CMX = $(addsuffix .cmx, $(OBJ))
|
|
|
|
OCAMLOPT=ocamlopt -noassert -inline 1000
|
|
|
|
all: $(MAIN).$(OCAMLBEST)
|
|
|
|
extract: $(ML)
|
|
|
|
doc:
|
|
$(WHY3) doc ../set_iterators.mlw
|
|
$(WHY3) session html .
|
|
|
|
$(MAIN).byte: $(CMO) $(MAIN).cmo
|
|
ocamlc $(INCLUDE) zarith.cma -o $@ $^
|
|
|
|
$(MAIN).opt: $(CMX) $(MAIN).cmx
|
|
$(OCAMLOPT) $(INCLUDE) zarith.cmxa -o $@ $^
|
|
|
|
$(MAIN).cmx: $(CMX)
|
|
|
|
$(ML): ../set_iterators.mlw
|
|
$(WHY3) extract -D ocaml64 -o $@ $<
|
|
|
|
%.cmx: %.ml
|
|
$(OCAMLOPT) $(INCLUDE) -annot -c $<
|
|
|
|
%.cmo: %.ml
|
|
ocamlc $(INCLUDE) -annot -c $<
|
|
|
|
%.cmi: %.mli
|
|
ocamlc $(INCLUDE) -annot -c $<
|
|
|
|
clean::
|
|
rm -f $(ML) *.cm[xio] *.o *.annot $(MAIN).opt $(MAIN).byte
|