Make extlib an optional dependency.
[virt-top.git] / examples / Makefile.in
1 OCAMLCPACKAGES  := -package unix -I ../libvirt
2 OCAMLCFLAGS     := -g
3 OCAMLCLIBS      := -linkpkg
4
5 OCAMLOPTPACKAGES := $(OCAMLCPACKAGES)
6 OCAMLOPTFLAGS   :=
7 OCAMLOPTLIBS    := $(OCAMLCLIBS)
8
9 export LIBRARY_PATH=../libvirt
10 export LD_LIBRARY_PATH=../libvirt
11
12 BYTE_TARGETS    := list_domains
13 OPT_TARGETS     := list_domains.opt
14
15 all: $(BYTE_TARGETS)
16
17 opt: $(OPT_TARGETS)
18
19 list_domains: list_domains.cmo
20         ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) \
21           ../libvirt/mllibvirt.cma -o $@ $<
22
23 list_domains.opt: list_domains.cmx
24         ocamlfind ocamlopt \
25           $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \
26           ../libvirt/mllibvirt.cmxa -o $@ $<
27
28 install:
29
30 include ../Make.rules