all: leancop

leancop: *ml *mll *mly
	ocamlbuild -ocamlopt "ocamlopt -unsafe -inline 100" -lib str -lib unix leancop.native
	@mv leancop.native leancop

hasher: *ml *mll *mly
	ocamlbuild -ocamlopt "ocamlopt -unsafe -inline 100" -lib str -lib unix hasher.native
	@mv hasher.native hasher

top: *ml *mll *mly
	ocamlbuild -lib str -lib unix leancop.top
	@mv leancop.top top

clean:
	@ocamlbuild -clean
	@rm -f *~
