1 OCAMLCPACKAGES := -package unix -I ../libvirt
5 OCAMLOPTPACKAGES := $(OCAMLCPACKAGES)
7 OCAMLOPTLIBS := $(OCAMLCLIBS)
9 export LIBRARY_PATH=../libvirt
10 export LD_LIBRARY_PATH=../libvirt
12 BYTE_TARGETS := list_domains
13 OPT_TARGETS := list_domains.opt
19 list_domains: list_domains.cmo
20 ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) \
21 ../libvirt/mllibvirt.cma -o $@ $<
23 list_domains.opt: list_domains.cmx
25 $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \
26 ../libvirt/mllibvirt.cmxa -o $@ $<