-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
61 lines (43 loc) · 1.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.PHONY: all clean native byte profile debug various_tests doc_html doc_man doc_tex doc_texinfo doc_dot sanity
OCBFLAGS = -I src -I tests
OCB = ocamlbuild -use-ocamlfind $(OCBFLAGS)
all: native byte
clean:
$(OCB) -clean
# build executable
native: sanity
$(OCB) src/moloss.native
byte: sanity
$(OCB) src/moloss.byte
profile: sanity
$(OCB) -tag profile src/moloss.native
debug: sanity
$(OCB) -tag debug src/moloss.byte
static: sanity
STATIC=true $(OCB) -tag custom src/moloss.native
# tests
tests: native
bash test.sh
various_tests: native
$(OCB) tests/various_tests.native
# random formula printer
formula: native
$(OCB) tests/printformula.native
# documentation
doc_html: doc/moloss.odocl
$(OCB) doc/moloss.docdir/index.html
cp doc/style.css moloss.docdir/style.css
doc_man: doc/moloss.odocl
$(OCB) doc/moloss.docdir/man
doc_tex: doc/moloss.odocl
$(OCB) doc/moloss.docdir/moloss.tex
doc_texinfo: doc/moloss.odocl
$(OCB) doc/moloss.docdir/moloss.texi
doc_dot: doc/moloss.odocl
$(OCB) doc/moloss.docdir/moloss.dot
doc: doc_html doc_man doc_tex doc_texinfo doc_dot
# check if packages are available
sanity:
ocamlfind query unix
ocamlfind query minisat
ocamlfind query msat