From e4450db8fa0bdf31f3bf50062295b801a6a803ab Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 1 Jan 1970 00:00:00 +0000
Subject: [PATCH] Allow extra OCAMLDEPFLAGS to be passed, eg to make syntax
 extensions possible.

---
 Make.rules.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Make.rules.in b/Make.rules.in
index 6a56728..b22fdf6 100644
--- a/Make.rules.in
+++ b/Make.rules.in
@@ -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)
-- 
1.8.3.1