1 BIN_DIR = /usr/local/bin
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))
13 OBJS = response.cmo profile.cmo profile_manager_env.cmo profile_manager.cmo
15 profile-manager: $(OBJS) $(LIBRARIES)
16 $(OCAMLC) -linkpkg -o $@ $(OBJS)
18 profile-manager.opt: $(OBJS:.cmo=.cmx) $(LIBRARIES_OPT)
19 $(OCAMLOPT) -linkpkg -o $@ $(OBJS:.cmo=.cmx)
21 .SUFFIXES: .ml .mli .cmo .cmi .cmx
30 $(OBJS:.cmo=.cmx)): $(LIBRARIES_OPT)
33 rm -f *.cm[iox] *.o rdfly rdfly.opt
35 .PHONY: install uninstall clean