PKGNAME = gdome2-xslt ARCHIVE = mlgdome2-xslt REQUIRES = gdome2 OCAMLFIND = @OCAMLFIND@ OCAMLC = $(OCAMLFIND) @OCAMLC@ -package "$(REQUIRES)" OCAMLOPT = $(OCAMLFIND) @OCAMLOPT@ -package "$(REQUIRES)" OCAMLDEP = $(OCAMLFIND) @OCAMLDEP@ -package "$(REQUIRES)" OCAMLMKLIB = @OCAMLMKLIB@ DLL = dll$(ARCHIVE).so OCAMLSTDLIBDIR = $(DESTDIR)/@OCAMLSTDLIBDIR@ OCAMLSTUBDIR = $(DESTDIR)/@OCAMLSTUBDIR@ OCAMLINSTALLDIR = $(OCAMLSTDLIBDIR)/$(PKGNAME) MODULES = i_gdome_xslt gdome_xslt INIT = gdome_xslt_init CMI_S = $(MODULES:%=%.cmi) CMO_S = $(MODULES:%=%.cmo) CMX_S = $(MODULES:%=%.cmx) O_S = ml_gdome_xslt.o $(top_builddir)/C/gdome_xslt/gdome_xslt.o SHARED_LIBS = -lxslt -lgdome -lglib -lxml2 -lmlgdome BYTE_STUFF = $(ARCHIVE).cma $(INIT).cmo NATIVE_STUFF = $(ARCHIVE).cmxa $(ARCHIVE).a $(INIT).cmx BYTE_INSTALL_STUFF = \ i_gdome_xslt.cmi gdome_xslt.cmi gdome_xslt.mli $(ARCHIVE).cma \ $(INIT).cmi $(INIT).cmo $(INIT).mli $(DLL) META NATIVE_INSTALL_STUFF = $(ARCHIVE).a $(ARCHIVE).cmxa $(INIT).cmx $(INIT).o EXTRA_DIST = \ META.in gdome_xslt.ml gdome_xslt.mli \ gdome_xslt_init.ml gdome_xslt_init.mli i_gdome_xslt.ml \ ml_gdome_xslt.c ml_gdome_xslt.h ocaml-io.h .depend if HAVE_OCAMLOPT_COND noinst_DATA = $(BYTE_STUFF) $(NATIVE_STUFF) else noinst_DATA = $(BYTE_STUFF) endif noinst_LTLIBRARIES = libmlgdome2_xslt.la libmlgdome2_xslt_la_SOURCES = ml_gdome_xslt.c if HAVE_OCAMLOPT_COND install-data-local: $(BYTE_INSTALL_STUFF) $(NATIVE_INSTALL_STUFF) else install-data-local: $(BYTE_INSTALL_STUFF) endif $(mkinstalldirs) $(OCAMLSTDLIBDIR) $(OCAMLSTUBDIR) chmod -x $(DLL) $(OCAMLFIND) install -destdir $(OCAMLSTDLIBDIR) $(PKGNAME) $^ ln -fs $(DLL) $(OCAMLSTUBDIR)/lib$(ARCHIVE).so CLEANFILES = \ $(ARCHIVE).{cma,cmxa,a} $(CMI_S) $(CMO_S) $(CMX_S) ml_gdome_xslt.o \ $(DLL) $(INIT).cm[iox] libmlgdome2-xslt.a INCLUDES = \ $(GDOME_CFLAGS) $(MLGDOME_CFLAGS) \ -I/usr/include/caml -I$(top_srcdir)/C/gdome_xslt $(ARCHIVE).cma $(DLL): $(CMO_S) $(OCAMLMKLIB) -o $(ARCHIVE) -L@OCAMLSTUBDIR@ $(CMO_S) $(O_S) $(SHARED_LIBS) $(ARCHIVE).cmxa $(ARCHIVE).a: $(CMX_S) $(OCAMLMKLIB) -o $(ARCHIVE) -L@OCAMLSTUBDIR@ $(CMX_S) $(O_S) $(SHARED_LIBS) %.cmi: %.mli $(OCAMLC) -c $< %.cmo: %.ml %.cmi $(OCAMLC) -c $< %.cmx: %.ml %.cmi $(OCAMLOPT) -c $< i_gdome_xslt.cmo: i_gdome_xslt.ml $(OCAMLC) -c $< i_gdome_xslt.cmx: i_gdome_xslt.ml $(OCAMLOPT) -c $< depend: *.ml *.mli $(OCAMLDEP) *.ml *.mli >.depend include .depend