aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"