diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2008-01-05 16:59:48 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2008-01-05 16:59:48 +0000 |
commit | 643aa9f6fea233073384cdb01e8b23c693bf50e6 (patch) | |
tree | 99f45556353d45beede1035986c45af37923db05 /mlvirtmanager | |
parent | 133d8b96cda0baff81042f120cbb15f955754063 (diff) | |
download | virt-top-643aa9f6fea233073384cdb01e8b23c693bf50e6.tar.gz virt-top-643aa9f6fea233073384cdb01e8b23c693bf50e6.tar.xz virt-top-643aa9f6fea233073384cdb01e8b23c693bf50e6.zip |
mlvirtmanager compiles and runs on Windows (MinGW).
* configure.ac: Directories to search for optional modules were
specified incorrectly - fixed.
* mlvirtmanager/Makefile.in: Changed so can build without
ocamlfind, and checked it can build on Windows.
Diffstat (limited to 'mlvirtmanager')
-rwxr-xr-x | mlvirtmanager/Makefile.in | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/mlvirtmanager/Makefile.in b/mlvirtmanager/Makefile.in index 5bcb84c..b09cc57 100755 --- a/mlvirtmanager/Makefile.in +++ b/mlvirtmanager/Makefile.in @@ -21,13 +21,23 @@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ +OCAMLFIND = @OCAMLFIND@ + +ifneq ($(OCAMLFIND),) OCAMLCPACKAGES := -package unix,lablgtk2 -I ../libvirt OCAMLCFLAGS := -g OCAMLCLIBS := -linkpkg - OCAMLOPTPACKAGES := $(OCAMLCPACKAGES) OCAMLOPTFLAGS := OCAMLOPTLIBS := $(OCAMLCLIBS) +else +OCAMLCINCS := -I @pkg_lablgtk2@ -I ../libvirt +OCAMLCFLAGS := -g +OCAMLCLIBS := unix.cma lablgtk.cma +OCAMLOPTINCS := $(OCAMLCINCS) +OCAMLOPTFLAGS := +OCAMLOPTLIBS := unix.cmxa lablgtk.cmxa +endif export LIBRARY_PATH=../libvirt export LD_LIBRARY_PATH=../libvirt @@ -48,14 +58,25 @@ all: $(BYTE_TARGETS) opt: $(OPT_TARGETS) +ifneq ($(OCAMLFIND),) mlvirtmanager: $(VIRTMANAGER_OBJS) - ocamlfind ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) \ - ../libvirt/mllibvirt.cma gtkInit.cmo -o $@ $< + $(OCAMLFIND) ocamlc $(OCAMLCPACKAGES) $(OCAMLCFLAGS) $(OCAMLCLIBS) \ + ../libvirt/mllibvirt.cma gtkInit.cmo -o $@ $^ mlvirtmanager.opt: $(VIRTMANAGER_XOBJS) - ocamlfind ocamlopt \ + $(OCAMLFIND) ocamlopt \ $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \ - ../libvirt/mllibvirt.cmxa gtkInit.cmx -o $@ $< + ../libvirt/mllibvirt.cmxa gtkInit.cmx -o $@ $^ +else +mlvirtmanager: $(VIRTMANAGER_OBJS) + $(OCAMLC) $(OCAMLCINCS) $(OCAMLCFLAGS) $(OCAMLCLIBS) \ + ../libvirt/mllibvirt.cma gtkInit.cmo -o $@ $^ + +mlvirtmanager.opt: $(VIRTMANAGER_XOBJS) + $(OCAMLOPT) \ + $(OCAMLOPTINCS) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \ + ../libvirt/mllibvirt.cmxa gtkInit.cmx -o $@ $^ +endif install: if [ -x mlvirtmanager.opt ]; then \ |