sidekick/Makefile
2015-07-09 16:29:57 +02:00

53 lines
936 B
Makefile

# copyright (c) 2014, guillaume bury
LOG=build.log
COMP=ocamlbuild -log $(LOG) -use-ocamlfind -classic-display
FLAGS=
DIRS=-Is solver,sat,smt,backend,util,util/smtlib
DOC=msat.docdir/index.html
TEST=sat_solve.native
NAME=msat
LIB=$(addprefix $(NAME), .cma .cmxa .cmxs)
all: lib test
lib:
$(COMP) $(FLAGS) $(DIRS) $(LIB)
doc:
$(COMP) $(FLAGS) $(DIRS) $(DOC)
build-test:
$(COMP) $(FLAGS) $(DIRS) $(TEST)
test: build-test
@/usr/bin/time -f "%e" ./tests/run smt
@/usr/bin/time -f "%e" ./tests/run mcsat
bench: build-test
cd bench && $(MAKE)
stats:
@./bench_stats.native
log:
cat _build/$(LOG) || true
clean:
$(COMP) -clean
TO_INSTALL=META $(addprefix _build/,$(LIB) $(NAME).a $(NAME).cmi)
install: lib
ocamlfind install msat $(TO_INSTALL)
uninstall:
ocamlfind remove msat
reinstall: all
ocamlfind remove msat || true
ocamlfind install msat $(TO_INSTALL)
.PHONY: clean doc all bench install uninstall reinstall