mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 03:05:31 -05:00
49 lines
852 B
Makefile
49 lines
852 B
Makefile
# copyright (c) 2014, guillaume bury
|
|
|
|
LOG=build.log
|
|
COMP=ocamlbuild -log $(LOG) -use-ocamlfind -package num,zarith,unix,str -classic-display
|
|
FLAGS=
|
|
DIRS=-Is sat,smt,common,util
|
|
DOC=msat.docdir/index.html
|
|
TEST=test.native
|
|
|
|
NAME=msat
|
|
|
|
LIB=$(addprefix $(NAME), .cma .cmxa .cmxs)
|
|
|
|
all:$(LIB)
|
|
|
|
$(LIB):
|
|
$(COMP) $(FLAGS) $(DIRS) $(LIB)
|
|
|
|
doc:
|
|
$(COMP) $(FLAGS) $(DIRS) $(DOC)
|
|
|
|
test: $(TEST)
|
|
|
|
test-full: $(TEST)
|
|
./tests/run
|
|
|
|
$(TEST): $(LIB)
|
|
$(COMP) $(FLAGS) $(DIRS) $(TEST)
|
|
cp $(TEST) tests/main && rm $(TEST)
|
|
|
|
log:
|
|
cat _build/$(LOG) || true
|
|
|
|
clean:
|
|
$(COMP) -clean
|
|
|
|
TO_INSTALL=META $(addprefix _build/,$(LIB) $(NAME).a $(NAME).cmi)
|
|
|
|
install: all
|
|
ocamlfind install msat $(TO_INSTALL)
|
|
|
|
uninstall:
|
|
ocamlfind remove msat
|
|
|
|
reinstall: all
|
|
ocamlfind remove msat || true
|
|
ocamlfind install msat $(TO_INSTALL)
|
|
|
|
.PHONY: clean doc all install uninstall reinstall
|