X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=lib%2FMakefile.in;h=185969ec1e37afc9773ea59f550cfd024ee4c04f;hb=70ecd5f92e887185fd3e09f603e4c5e1a06ef4f4;hp=ec2a62b2a9606a22631914cc7d49da0be8730837;hpb=9611aba66734efe3e2f1e0792a90003b657a89f5;p=virt-df.git diff --git a/lib/Makefile.in b/lib/Makefile.in index ec2a62b..185969e 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -1,5 +1,5 @@ -# virt-df -# Copyright (C) 2007 Red Hat Inc., Richard W.M. Jones +# Diskimage library. +# Copyright (C) 2008 Red Hat Inc., Richard W.M. Jones # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -21,6 +21,8 @@ VERSION := @PACKAGE_VERSION@ INSTALL := @INSTALL@ HAVE_PERLDOC := @HAVE_PERLDOC@ +OCAML_WORD_SIZE := @OCAML_WORD_SIZE@ + prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ @@ -31,7 +33,8 @@ OCAMLCPACKAGES := -package unix,extlib -I +bitmatch #---------------------------------------------------------------------- # Build up the list of object files. -OBJS := diskimage_utils.cmo +OBJS := int63.cmo \ + diskimage_utils.cmo # Plugin objects. OBJS += diskimage_ext2.cmo \ @@ -74,7 +77,7 @@ diskimage.cma: $(OBJS) diskimage.cmxa: $(XOBJS) ocamlfind ocamlopt \ - $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \ + $(OCAMLOPTPACKAGES) $(OCAMLOPTFLAGS) \ -a -o $@ $^ # 'make depend' doesn't catch these dependencies because the .mli file @@ -83,6 +86,20 @@ diskimage_lvm2_parser.cmo: diskimage_lvm2_parser.cmi diskimage_lvm2_parser.cmx: diskimage_lvm2_parser.cmi diskimage_lvm2_parser.cmi: diskimage_lvm2_parser.mli +# Int63 module implementation is defined differently on +# 32 and 64 bit platforms. +int63.ml: int63_on_$(OCAML_WORD_SIZE).ml Makefile + rm -f $@ + echo "(* WARNING: THIS FILE IS GENERATED FROM $< *)" | \ + cat - $< > $@ + +int63.cmo: int63.cmi +int63.cmx: int63.cmi +int63.cmi: int63.ml + +#test_int63.opt: int63.cmx test_int63.cmx +# $(OCAMLFIND) ocamlopt $^ -o $@ + install: ocamlfind install diskimage *.mli *.cma *.cmx *.cmxa *.a