REQUIRES = helm-getter helm-cic_cache helm-xml PREDICATES = OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -pp camlp4o OCAMLDEP = ocamldep OCAMLFIND = ocamlfind OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLOPTIONS) OCAMLOPT = $(OCAMLFIND) ocamlopt $(OCAMLOPTIONS) LIBRARIES = $(shell ocamlfind query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES)) LIBRARIES_OPT = $(shell ocamlfind query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES)) all: fix_params opt: fix_params.opt DEPOBJS = cic2Xml.ml cicFindParameters.ml fix_params.ml FIXPARAMSOBJS = cic2Xml.cmo cicFindParameters.cmo fix_params.cmo depend: $(OCAMLDEP) $(DEPOBJS) > .depend fix_params: $(FIXPARAMSOBJS) $(LIBRARIES) $(OCAMLC) -linkpkg -o fix_params $(FIXPARAMSOBJS) fix_params.opt: $(FIXPARAMSOBJS:.cmo=.cmx) $(LIBRARIES_OPT) $(OCAMLOPT) -linkpkg -o fix_params.opt $(FIXPARAMSOBJS:.cmo=.cmx) .SUFFIXES: .ml .mli .cmo .cmi .cmx .ml.cmo: $(LIBRARIES) $(OCAMLC) -c $< .mli.cmi: $(LIBRARIES) $(OCAMLC) -c $< .ml.cmx: $(LIBRARIES_OPT) $(OCAMLOPT) -c $< clean: rm -f *.cm[iox] *.o fix_params fix_params.opt .PHONY: clean include .depend