modify build system

This commit is contained in:
Simon Cruanes 2014-10-29 14:18:00 +01:00
parent 061369b392
commit db71f48470
4 changed files with 17 additions and 4 deletions

1
META
View file

@ -4,5 +4,4 @@ description="MSAT is a modular SAT solver, plus extensions"
requires="num unix" requires="num unix"
archive(byte) = "msat.cma" archive(byte) = "msat.cma"
archive(native) = "msat.cmxa" archive(native) = "msat.cmxa"
archive(native) = "msat.cmxa"
archive(native, plugin) = "msat.cmxs" archive(native, plugin) = "msat.cmxs"

View file

@ -1,11 +1,14 @@
# copyright (c) 2014, guillaume bury # copyright (c) 2014, guillaume bury
LOG=build.log LOG=build.log
COMP=ocamlbuild -log $(LOG) -use-ocamlfind -package zarith,unix -classic-display COMP=ocamlbuild -log $(LOG) -use-ocamlfind -package num,zarith,unix -classic-display
FLAGS= FLAGS=
DIRS=-Is smt,common DIRS=-Is smt,common
DOC=lib.docdir/index.html DOC=lib.docdir/index.html
LIB=msat.cma msat.cmxa msat.cmxs
NAME=msat
LIB=$(addprefix $(NAME), .cma .cmxa .cmxs)
GENERATED=$(MAIN) $(BIN) gmon.out GENERATED=$(MAIN) $(BIN) gmon.out
all:$(LIB) all:$(LIB)
@ -19,3 +22,13 @@ doc:
clean: clean:
$(COMP) -clean $(COMP) -clean
rm -f $(GENERATED) rm -f $(GENERATED)
TO_INSTALL=META $(addprefix _build/,$(LIB))
install: all
ocamlfind install msat $(TO_INSTALL)
uninstall:
ocamlfind remove msat
.PHONY: clean doc all install uninstall

2
_tags Normal file
View file

@ -0,0 +1,2 @@
<smt/*.cmx>: for-pack(Msat)

View file

@ -1 +0,0 @@
<*.ml*>: for-pack(Msat)