1 BIN_DIR = /usr/local/bin
2 REQUIRES = mysql http helm-registry
4 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -pp camlp4o
5 ifeq ($(origin OCAMLPATH), undefined)
6 OCAMLFIND = OCAMLPATH=../../components/METAS ocamlfind
10 OCAMLC = $(OCAMLFIND) ocamlc -thread $(OCAMLOPTIONS)
11 OCAMLOPT = $(OCAMLFIND) ocamlopt -thread $(OCAMLOPTIONS)
12 OCAMLDEP = ocamldep -pp camlp4o
14 LIBRARIES = $(shell $(OCAMLFIND) query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
15 LIBRARIES_OPT = $(shell $(OCAMLFIND) query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
22 rdfly: $(OBJS) $(LIBRARIES)
23 $(OCAMLC) -linkpkg -o $@ $(OBJS)
25 rdfly.opt: $(OBJS:.cmo=.cmx) $(LIBRARIES_OPT)
26 $(OCAMLOPT) -linkpkg -o rdfly.opt $(OBJS:.cmo=.cmx)
28 .SUFFIXES: .ml .mli .cmo .cmi .cmx
37 $(OBJS:.cmo=.cmx)): $(LIBRARIES_OPT)
40 rm -f *.cm[iox] *.o rdfly rdfly.opt
42 .PHONY: install uninstall clean