mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 03:05:31 -05:00
modify build system
This commit is contained in:
parent
061369b392
commit
db71f48470
4 changed files with 17 additions and 4 deletions
1
META
1
META
|
|
@ -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"
|
||||||
|
|
|
||||||
17
Makefile
17
Makefile
|
|
@ -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
2
_tags
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
<smt/*.cmx>: for-pack(Msat)
|
||||||
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<*.ml*>: for-pack(Msat)
|
|
||||||
Loading…
Add table
Reference in a new issue