aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglondu2008-11-19 14:43:13 +0000
committerglondu2008-11-19 14:43:13 +0000
commit59b4a434463f52c5355709f7dd86698e2b4b949d (patch)
treec5f444e43ae5fdb427b075ff0700ed684b5ed26a
parent25229d8d772576f867572d9c422b3a624b1636c7 (diff)
Add implicit rules for native plugins (.cmxs)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11607 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--Makefile.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.build b/Makefile.build
index 3d4c705a1b..41e91f0af5 100644
--- a/Makefile.build
+++ b/Makefile.build
@@ -878,6 +878,14 @@ endif
$(SHOW)'OCAMLOPT $<'
$(HIDE)$(OCAMLOPT) $(OPTFLAGS) -c $<
+%.cmxs: %.cmxa
+ $(SHOW)'OCAMLOPT $<'
+ $(HIDE)$(OCAMLOPT) -linkall -shared -o $@ $<
+
+%.cmxs: %.cmx
+ $(SHOW)'OCAMLOPT $<'
+ $(HIDE)$(OCAMLOPT) -shared -o $@ $<
+
%.ml: %.mll
$(SHOW)'OCAMLLEX $<'
$(HIDE)$(OCAMLLEX) -o $@ "$*.mll"