VERSION = 0.3.0 NAME = http_getter REQUIRES = helm-getter helm-logger helm-registry COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o -thread OCAMLFIND = ocamlfind OCAMLC = $(OCAMLFIND) ocamlc -g $(COMMONOPTS) OCAMLOPT = $(OCAMLFIND) opt $(COMMONOPTS) all: byte byte: $(NAME) opt: $(NAME).opt world: byte opt $(NAME): buildTimeOpts.cmo main.ml $(OCAMLC) -linkpkg -o $@ $^ $(NAME).opt: buildTimeOpts.cmx main.ml $(OCAMLOPT) -linkpkg -o $@ $^ %.cmo: %.ml $(OCAMLC) -c $< %.cmx: %.ml $(OCAMLOPT) -c $< distclean: clean rm -f buildTimeOpts.ml clean: rm -f *.cm[aiox] *.o $(NAME){,.opt} *.dot .PHONY: all byte opt world clean distclean