4 REQUIRES = helm-getter helm-logger helm-registry netstring
5 COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o -thread
6 ifeq ($(origin OCAMLPATH), undefined)
7 OCAMLFIND = OCAMLPATH=../../components/METAS ocamlfind
11 OCAMLC = $(OCAMLFIND) ocamlc -g $(COMMONOPTS)
12 OCAMLOPT = $(OCAMLFIND) opt $(COMMONOPTS)
19 $(NAME): buildTimeOpts.cmo main.ml
20 $(OCAMLC) -linkpkg -o $@ $^
21 $(NAME).opt: buildTimeOpts.cmx main.ml
22 $(OCAMLOPT) -linkpkg -o $@ $^
30 rm -f buildTimeOpts.ml
32 rm -f *.cm[aiox] *.o $(NAME){,.opt} *.dot
34 .PHONY: all byte opt world clean distclean