4 REQUIRES = helm-getter helm-logger helm-registry netstring
5 COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o -thread
6 OCAMLFIND = OCAMLPATH=../ocaml/METAS ocamlfind
7 OCAMLC = $(OCAMLFIND) ocamlc -g $(COMMONOPTS)
8 OCAMLOPT = $(OCAMLFIND) opt $(COMMONOPTS)
15 $(NAME): buildTimeOpts.cmo main.ml
16 $(OCAMLC) -linkpkg -o $@ $^
17 $(NAME).opt: buildTimeOpts.cmx main.ml
18 $(OCAMLOPT) -linkpkg -o $@ $^
26 rm -f buildTimeOpts.ml
28 rm -f *.cm[aiox] *.o $(NAME){,.opt} *.dot
30 .PHONY: all byte opt world clean distclean