1 BIN_DIR = /usr/local/bin
2 REQUIRES = mysql http helm-registry
4 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -pp camlp4o
6 OCAMLC = $(OCAMLFIND) ocamlc -thread $(OCAMLOPTIONS)
7 OCAMLOPT = $(OCAMLFIND) ocamlopt -thread $(OCAMLOPTIONS)
8 OCAMLDEP = ocamldep -pp camlp4o
10 LIBRARIES = $(shell $(OCAMLFIND) query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
11 LIBRARIES_OPT = $(shell $(OCAMLFIND) query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
18 rdfly: $(OBJS) $(LIBRARIES)
19 $(OCAMLC) -linkpkg -o $@ $(OBJS)
21 rdfly.opt: $(OBJS:.cmo=.cmx) $(LIBRARIES_OPT)
22 $(OCAMLOPT) -linkpkg -o rdfly.opt $(OBJS:.cmo=.cmx)
24 .SUFFIXES: .ml .mli .cmo .cmi .cmx
33 $(OBJS:.cmo=.cmx)): $(LIBRARIES_OPT)
36 rm -f *.cm[iox] *.o rdfly rdfly.opt
38 .PHONY: install uninstall clean