New APIs: vfs-label and vfs-uuid return label and uuid for many fs types.
[libguestfs.git] / ocaml / examples / Makefile.am
1 EXTRA_DIST = \
2         LICENSE README \
3         lvs.ml \
4         viewer.ml xmllight_loader.ml xmllight_loader.mli \
5         Throbber.png Throbber.gif
6
7 CLEANFILES = throbber.ml *.cmi *.cmo *.cmx *.o lvs
8
9 if HAVE_OCAML
10
11 noinst_SCRIPTS = lvs
12
13 OCAMLFINDFLAGS = -cclib -L$(top_builddir)/src/.libs
14
15 lvs:    lvs.ml
16         $(OCAMLFIND) ocamlopt $(OCAMLFINDFLAGS) \
17           -warn-error A -I .. mlguestfs.cmxa $< -o $@
18
19 if BUILD_OCAML_VIEWER
20
21 noinst_SCRIPTS += viewer
22
23 viewer: throbber.ml xmllight_loader.mli xmllight_loader.ml viewer.ml
24         ocamlducefind opt $(OCAMLFINDFLAGS) \
25           -warn-error A \
26           -thread \
27           -package libvirt,lablgtk2,extlib,xml-light,ocamlduce,threads -I .. \
28           -predicates init,threads \
29           -linkpkg mlguestfs.cmxa gtkThread.cmx \
30           $^ -o $@
31
32 throbber.ml: Throbber.png Throbber.gif
33         gdk_pixbuf_mlsource --build-list \
34           static Throbber.png \
35           animation Throbber.gif \
36           > $@-t && mv $@-t $@
37
38 endif
39
40 endif