# Diskimage library.
+# @configure_input@
# Copyright (C) 2008 Red Hat Inc., Richard W.M. Jones
#
# This program is free software; you can redistribute it and/or modify
SYNTAX := -pp "camlp4o -I`ocamlc -where`/bitmatch pa_bitmatch.cmo"
-OCAMLCFLAGS := -g -w s -dtypes $(SYNTAX)
+OCAMLCFLAGS := @OCAMLCFLAGS@ $(SYNTAX)
#OCAMLCLIBS := -linkpkg
OCAMLCLIBS := -linkpkg bitmatch.cma
OCAMLOPTPACKAGES := $(OCAMLCPACKAGES)
-OCAMLOPTFLAGS := -w s $(SYNTAX)
+OCAMLOPTFLAGS := @OCAMLOPTFLAGS@ $(SYNTAX)
#OCAMLOPTLIBS := $(OCAMLCLIBS)
OCAMLOPTLIBS := -linkpkg bitmatch.cmxa
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 module 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.mli: int63_on_$(OCAML_WORD_SIZE).mli Makefile
+ rm -f $@
+ echo "(* WARNING: THIS FILE IS GENERATED FROM $< *)" | \
+ cat - $< > $@
+
int63.cmo: int63.cmi
int63.cmx: int63.cmi
-int63.cmi: int63.ml
+int63.cmi: int63.ml int63.mli
#test_int63.opt: int63.cmx test_int63.cmx
# $(OCAMLFIND) ocamlopt $^ -o $@
install:
- ocamlfind install diskimage *.mli *.cma *.cmx *.cmxa *.a
+ ocamlfind install diskimage META *.mli *.cma *.cmx *.cmxa *.a
include ../Make.rules