]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/mathml_editor/ocaml/Makefile.am
* added depndencies to stdc++ library
[helm.git] / helm / DEVEL / mathml_editor / ocaml / Makefile.am
index a85b99978ee2ec6c0bf92316bb2bddeda7de3222..4dda15c24ce7b724049c90e400c269cb2c05c8c3 100644 (file)
@@ -23,8 +23,8 @@ CMO_S = $(MODULES:%=%.cmo)
 CMX_S = $(MODULES:%=%.cmx)
 O_S = ml_mathml_editor.o c_mathml_editor.o
 LO_S = $(O_S:%.o=%.lo)
-SHARED_LIBS = $(GMETADOM_LIBS) $(GDOMEXSLT_LIBS) -lmlgdome2-xslt -lmlgdome
-BYTE_STUFF = i_mathml_editor.cmi mathml_editor.cmi $(ARCHIVE).cma $(DLL)
+SHARED_LIBS = $(GMETADOM_LIBS) $(GDOMEXSLT_LIBS) -lmlgdome2-xslt -lmlgdome -lstdc++
+BYTE_STUFF = i_mathml_editor.cmi mathml_editor.cmi $(ARCHIVE).cma $(DLL) lib$(ARCHIVE).a
 NATIVE_STUFF = $(ARCHIVE).cmxa $(ARCHIVE).a
 BYTE_INSTALL_STUFF = $(BYTE_STUFF) META
 NATIVE_INSTALL_STUFF = $(NATIVE_STUFF)
@@ -74,7 +74,7 @@ $(DLL) $(ARCHIVE).a: $(LO_S)
        for f in $(LO_S); do    \
                cp $$f $$f.o;   \
        done
-       $(OCAMLMKLIB) -o $(ARCHIVE) $(GDOME_LIBS) $(LO_S:%=%.o)
+       $(OCAMLMKLIB) -o $(ARCHIVE) -L@OCAMLSTUBDIR@ $(SHARED_LIBS) $(LO_S:%=%.o)
        for f in $(LO_S:%=%.o); do      \
                rm $$f; \
        done
@@ -91,7 +91,7 @@ i_mathml_editor.cmo: i_mathml_editor.ml
 i_mathml_editor.cmx: i_mathml_editor.ml
        $(OCAMLOPT) -c $<
 
-depend: *.ml *.mli
-       $(OCAMLDEP) *.ml *.mli >.depend
+depend: *.ml
+       $(OCAMLDEP) *.ml >.depend
 include .depend