Expose Secret API
[ocaml-libvirt.git] / examples / Makefile.in
index 8530edc..1071bbb 100644 (file)
@@ -27,7 +27,7 @@ OCAMLOPTLIBS  := $(OCAMLCLIBS)
 export LIBRARY_PATH=../libvirt
 export LD_LIBRARY_PATH=../libvirt
 
-BYTE_TARGETS   := list_domains node_info get_cpu_stats \
+BYTE_TARGETS   := list_domains list_secrets node_info get_cpu_stats \
                   get_all_domain_stats domain_events
 OPT_TARGETS    := $(BYTE_TARGETS:%=%.opt)
 
@@ -45,6 +45,16 @@ list_domains.opt: list_domains.cmx
          $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \
          ../libvirt/mllibvirt.cmxa -o $@ $<
 
+list_secrets: list_secrets
+       $(OCAMLFIND) ocamlc \
+         $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) \
+         ../libvirt/mllibvirt.cma -o $@ $<
+
+list_secrets.opt: list_secrets.cmx
+       $(OCAMLFIND) ocamlopt \
+         $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \
+         ../libvirt/mllibvirt.cmxa -o $@ $<
+
 node_info: node_info.cmo
        $(OCAMLFIND) ocamlc \
          $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) \