X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=ocaml%2Fexamples%2FMakefile.am;h=e38a5c8d6a62e03f6c6306c3f5fc1555b716e3fc;hp=b516647d668c4aad6fb608bf945f794c10bcfbdf;hb=82bd4fac87dce677a69bc5297f11799baf3eb1f5;hpb=d525103c8621f6ff0293311a8e8f9ac0c3580805 diff --git a/ocaml/examples/Makefile.am b/ocaml/examples/Makefile.am index b516647..e38a5c8 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 = -cclib -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