X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fhbugs%2Fbroker%2FMakefile;h=fe1bf71e95ca0c8db7612101d1f11a81f562061d;hb=3c7ca719c304eb7de7d8d4e9a90ebe0db8d8ecab;hp=a5b1e9af5d3fd1beb6844fcc6d2dcd9c19f62c8e;hpb=908519e733293ea817c1cf5bb9b61770e594d463;p=helm.git diff --git a/helm/hbugs/broker/Makefile b/helm/hbugs/broker/Makefile index a5b1e9af5..fe1bf71e9 100644 --- a/helm/hbugs/broker/Makefile +++ b/helm/hbugs/broker/Makefile @@ -20,6 +20,8 @@ CTL = ./hbugs_broker_ctl.sh OBJS = $(patsubst %,%.cmo,$(MODULES)) OBJSOPT = $(patsubst %,%.cmx,$(MODULES)) +DEPS = $(shell $(OCAMLFIND) query -recursive -predicates byte -format "%d/%a" $(REQUIRES)) +DEPSOPT = $(shell $(OCAMLFIND) query -recursive -predicates native -format "%d/%a" $(REQUIRES)) all: byte byte: $(NAME) @@ -41,6 +43,8 @@ depend: %.cmx: %.ml %.cmi $(OCAMLOPT) -c $< include Makefile.overrides +$(OBJS): $(DEPS) +$(OBJSOPT): $(DEPSOPT) $(NAME): $(OBJS) $(NAME).ml $(OCAMLC) -linkpkg -thread -o $@ $^ $(NAME).opt: $(OBJSOPT) $(NAME).ml