1 REQUIRES = helm-getter helm-cic str
3 OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)"
6 OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLOPTIONS)
7 OCAMLOPT = $(OCAMLFIND) ocamlopt $(OCAMLOPTIONS)
9 LIBRARIES = $(shell ocamlfind query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
10 LIBRARIES_OPT = $(shell ocamlfind query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
20 $(OCAMLDEP) $(DEPOBJS) > .depend
22 touch: $(TOUCHOBJS) $(LIBRARIES)
23 $(OCAMLC) -linkpkg -o touch $(TOUCHOBJS)
25 touch.opt: $(TOUCHOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
26 $(OCAMLOPT) -linkpkg -o touch.opt $(TOUCHOBJS:.cmo=.cmx)
28 .SUFFIXES: .ml .mli .cmo .cmi .cmx
31 .mli.cmi: $(LIBRARIES)
33 .ml.cmx: $(LIBRARIES_OPT)
37 rm -f *.cm[iox] *.o touch touch.opt