Source

mutated_ocaml / ocamldoc / Makefile

Diff from to

File ocamldoc/Makefile

 OCAMLDOC_LIBCMA=odoc_info.cma
 OCAMLDOC_LIBCMI=odoc_info.cmi
 OCAMLDOC_LIBCMXA=odoc_info.cmxa
+OCAMLDOC_LIBCMXS=odoc_info.cmxs
 OCAMLDOC_LIBA=odoc_info.a
 INSTALL_LIBDIR=$(OCAMLLIB)/ocamldoc
 INSTALL_CUSTOMDIR=$(INSTALL_LIBDIR)/custom
 
 opt.opt: exeopt libopt generatorsopt
 exeopt: $(OCAMLDOC_OPT)
-libopt: $(OCAMLDOC_LIBCMXA) $(OCAMLDOC_LIBCMI)
+libopt: $(OCAMLDOC_LIBCMXA) $(OCAMLDOC_LIBCMI) $(OCAMLDOC_LIBCMXS)
 generatorsopt: $(GENERATORS_CMXS)
 
 debug:
 	$(OCAMLC) -a -o $@ $(LINKFLAGS) $(OCAMLSRCDIR)/tools/depend.cmo $(LIBCMOFILES)
 $(OCAMLDOC_LIBCMXA): $(LIBCMXFILES)
 	$(OCAMLOPT) -a -o $@ $(LINKFLAGS)	$(OCAMLSRCDIR)/tools/depend.cmx $(LIBCMXFILES)
+$(OCAMLDOC_LIBCMXS): $(LIBCMXFILES)
+	$(OCAMLOPT) -shared -o $@ $(LINKFLAGS)	$(OCAMLSRCDIR)/tools/depend.cmx $(LIBCMXFILES)
 
 manpages: stdlib_man/Pervasives.3o