Files
why3/bench/extraction/Makefile
Guillaume Melquiond 86beb0a677 Fix continuous integration (partly revert 333c915e).
Ocamlfind is not installed on the "system" setup, so we cannot use it to
locate Zarith. In fact, Zarith might not even be installed, which means
that Num should be used instead. So, we use the same mechanism as other
extraction tests.

This commit also restores proper error messages in case of failure.
2021-01-24 11:07:36 +01:00

23 lines
334 B
Makefile

include ../../share/Makefile.config
WHY3 = ../../bin/why3.$(OCAMLBEST)
INCLUDE += -I ../../lib/why3
%.ml: %.mlw
$(WHY3) extract -D ocaml64 $< > $@
%.cmo: %.ml
ocamlc $(INCLUDE) -c $<
%.cmx: %.ml
ocamlopt $(INCLUDE) -c $<
%.c: %.mlw
$(WHY3) extract -D c $< > $@
%.o: %.c
$(CC) -Wall -c $<
clean::
rm -f *.ml *.c *.o *.cm*