C_SRC = ml_gdome_xslt.c
libmlgdome2_xslt_la_SOURCES = $(C_SRC)
-O_S = $(C_SRC:%.c=%.o)
-LO_S = $(O_S:%.o=%.lo) $(top_builddir)/C/gdome_xslt/gdome_xslt.lo
+O_S = $(C_SRC:%.c=%.o) $(top_builddir)/C/gdome_xslt/gdome_xslt.o
+LO_S = $(O_S:%.o=%.lo)
CMA_DEPS = i_gdome_xslt.cmo gdome_xslt.cmo
CMXA_DEPS = $(CMA_DEPS:%.cmo=%.cmx)
-SHARED_LIBS = -lxslt -lgdome -lglib -lxml2 -lmlgdome
+SHARED_LIBS = $(LIBXSLT_LIBS) $(GDOME_LIBS) -lmlgdome
$(ARCHIVE).cma: $(CMA_DEPS)
$(OCAMLMKLIB) -o $(ARCHIVE) -L@OCAMLSTUBDIR@ $(CMA_DEPS) $(SHARED_LIBS)
$(ARCHIVE).cmxa: $(CMXA_DEPS)
$(OCAMLMKLIB) -o $(ARCHIVE) -L@OCAMLSTUBDIR@ $(CMXA_DEPS) $(SHARED_LIBS)
-$(DLL) lib$(ARCHIVE).a: $(LO_S)
- # use .lo for ocamlmklib
- for f in $(LO_S); do \
- cp $$f $$f.o; \
- done
- $(OCAMLMKLIB) -o $(ARCHIVE) -L@OCAMLSTUBDIR@ $(LO_S:%=%.o) $(SHARED_LIBS)
- for f in $(LO_S:%=%.o); do \
+# $(DLL) lib$(ARCHIVE).a: $(LO_S)
+# # use .lo for ocamlmklib
+# for f in $(LO_S); do \
+# cp $$f $$f.o; \
+# done
+# $(OCAMLMKLIB) -o $(ARCHIVE) -L@OCAMLSTUBDIR@ $(LO_S:%=%.o) $(SHARED_LIBS)
+# for f in $(LO_S:%=%.o); do \
+# rm $$f; \
+# done
+#
+$(DLL) lib$(ARCHIVE).a: $(O_S)
+ $(OCAMLMKLIB) -o $(ARCHIVE) -L@OCAMLSTUBDIR@ $(O_S) $(SHARED_LIBS)
+ for f in $(O_S); do \
rm $$f; \
done