X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fmetadata%2Fcreate2%2Ftouch%2FMakefile;fp=helm%2Fmetadata%2Fcreate2%2Ftouch%2FMakefile;h=636a804daba51c14f70aba9db3c6cd105ff927c7;hb=f9b4235fda2f3d390ef8fa5ddee2d4e2a0f377ae;hp=5296fa723a0643c9d313c35b3635bc2485920d5f;hpb=ae326f646ef4c01b43d6da04201b427d1e175400;p=helm.git diff --git a/helm/metadata/create2/touch/Makefile b/helm/metadata/create2/touch/Makefile index 5296fa723..636a804da 100644 --- a/helm/metadata/create2/touch/Makefile +++ b/helm/metadata/create2/touch/Makefile @@ -6,6 +6,9 @@ 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: touch opt: touch.opt @@ -16,18 +19,18 @@ TOUCHOBJS = touch.cmo depend: $(OCAMLDEP) $(DEPOBJS) > .depend -touch: $(TOUCHOBJS) +touch: $(TOUCHOBJS) $(LIBRARIES) $(OCAMLC) -linkpkg -o touch $(TOUCHOBJS) -touch.opt: $(TOUCHOBJS:.cmo=.cmx) +touch.opt: $(TOUCHOBJS:.cmo=.cmx) $(LIBRARIES_OPT) $(OCAMLOPT) -linkpkg -o touch.opt $(TOUCHOBJS:.cmo=.cmx) .SUFFIXES: .ml .mli .cmo .cmi .cmx -.ml.cmo: +.ml.cmo: $(LIBRARIES) $(OCAMLC) -c $< -.mli.cmi: +.mli.cmi: $(LIBRARIES) $(OCAMLC) -c $< -.ml.cmx: +.ml.cmx: $(LIBRARIES_OPT) $(OCAMLOPT) -c $< clean: