-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (22 loc) · 1.17 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
all: wt
test: rank_support.cmx select_support.cmx wavelet_tree.cmx test.cmx
ocamlfind ocamlopt -g -linkpkg -package Bitv,OUnit2 $^ -o $@
test.cmx: test.ml rank_support.cmx select_support.cmx wavelet_tree.cmx
ocamlfind ocamlopt -g -c -linkpkg -package Bitv,OUnit2 $<
rank_support.cmi: rank/rank_support.mli
ocamlfind ocamlopt -g -c -linkpkg -package Bitv $< -o $@
rank_support.cmx: rank/rank_support.ml rank_support.cmi
ocamlfind ocamlopt -g -c -linkpkg -package Bitv $< -o $@
select_support.cmi: select/select_support.mli rank/rank_support.mli
ocamlfind ocamlopt -g -c -linkpkg -package Bitv $< -o $@
select_support.cmx: select/select_support.ml rank_support.cmx select_support.cmi
ocamlfind ocamlopt -g -c -linkpkg -package Bitv $< -o $@
wavelet_tree.cmi: wavelet_tree/wavelet_tree.mli
ocamlfind ocamlopt -g -c $< -o $@
wavelet_tree.cmx: wavelet_tree/wavelet_tree.ml rank_support.cmx select_support.cmx wavelet_tree.cmi
ocamlfind ocamlopt -g -c -linkpkg -package Bitv $< -o $@
wt: rank_support.cmx select_support.cmx wavelet_tree.cmx wt.ml
ocamlfind ocamlopt -g -linkpkg -package Bitv str.cmxa $^ -o $@
.PHONY: clean all
clean:
rm -rf *.cmo *.cmi *.cmx *.o test.exe wt.exe