X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=ocaml%2Fexamples%2FMakefile.am;h=ab058b137942d17aa4098e3ca8e94c81950c20be;hp=b516647d668c4aad6fb608bf945f794c10bcfbdf;hb=de64183f3d0d04127c2e7690c87435e6649d30a6;hpb=d525103c8621f6ff0293311a8e8f9ac0c3580805 diff --git a/ocaml/examples/Makefile.am b/ocaml/examples/Makefile.am index b516647..ab058b1 100644 --- a/ocaml/examples/Makefile.am +++ b/ocaml/examples/Makefile.am @@ -1,4 +1,8 @@ -EXTRA_DIST = LICENSE README lvs.ml viewer.ml Throbber.png Throbber.gif +EXTRA_DIST = \ + LICENSE README \ + lvs.ml \ + viewer.ml xmllight_loader.ml xmllight_loader.mli \ + Throbber.png Throbber.gif CLEANFILES = throbber.ml *.cmi *.cmo *.cmx *.o lvs @@ -6,15 +10,18 @@ if HAVE_OCAML noinst_SCRIPTS = lvs +OCAMLFINDFLAGS = -ccopt '-L $(top_builddir)/src/.libs' + lvs: lvs.ml - $(OCAMLFIND) ocamlopt -warn-error A -I .. mlguestfs.cmxa $< -o $@ + $(OCAMLFIND) ocamlopt $(OCAMLFINDFLAGS) \ + -warn-error A -I .. mlguestfs.cmxa $< -o $@ if BUILD_OCAML_VIEWER noinst_SCRIPTS += viewer viewer: throbber.ml xmllight_loader.mli xmllight_loader.ml viewer.ml - ocamlducefind opt \ + ocamlducefind opt $(OCAMLFINDFLAGS) \ -warn-error A \ -thread \ -package libvirt,lablgtk2,extlib,xml-light,ocamlduce,threads -I .. \ @@ -30,4 +37,4 @@ throbber.ml: Throbber.png Throbber.gif endif -endif \ No newline at end of file +endif