Allow extra OCAMLDEPFLAGS to be passed, eg to make syntax extensions possible.
[virt-top.git] / Make.rules.in
index 6a56728..b22fdf6 100644 (file)
@@ -47,11 +47,11 @@ depend: .depend
 ifneq ($(OCAMLFIND),)
 .depend: $(wildcard *.mli) $(wildcard *.ml)
        rm -f .depend
-       $(OCAMLFIND) ocamldep $(OCAMLCPACKAGES) $^ > $@
+       $(OCAMLFIND) ocamldep $(OCAMLCPACKAGES) $(OCAMLDEPFLAGS) $^ > $@
 else
 .depend: $(wildcard *.mli) $(wildcard *.ml)
        rm -f .depend
-       $(OCAMLDEP) $(OCAMLCINCS) $^ > $@
+       $(OCAMLDEP) $(OCAMLCINCS) $(OCAMLDEPFLAGS) $^ > $@
 endif
 
 ifeq ($(wildcard .depend),.depend)