1 # ocaml-libvirt -*- Makefile -*-
2 # Copyright (C) 2007 Red Hat Inc., Richard W.M. Jones
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2 of the License, or (at your option) any later version.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 # This file is included by Makefiles in subdirectories.
22 OCAMLFIND = @OCAMLFIND@
27 # Common rules for building OCaml objects.
31 $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) $(OCAMLCPACKAGES) -c $<
33 $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) $(OCAMLCPACKAGES) -c $<
35 $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) $(OCAMLOPTPACKAGES) -c $<
38 $(OCAMLC) $(OCAMLCFLAGS) $(OCAMLCINCS) -c $<
40 $(OCAMLC) $(OCAMLCFLAGS) $(OCAMLCINCS) -c $<
42 $(OCAMLOPT) $(OCAMLOPTFLAGS) $(OCAMLOPTINCS) -c $<
55 .depend: $(wildcard *.mli) $(wildcard *.ml)
57 $(OCAMLFIND) ocamldep $(OCAMLCPACKAGES) $(OCAMLDEPFLAGS) $^ > $@
59 .depend: $(wildcard *.mli) $(wildcard *.ml)
61 $(OCAMLDEP) $(OCAMLCINCS) $(OCAMLDEPFLAGS) $^ > $@
64 ifeq ($(wildcard .depend),.depend)
68 .PHONY: depend dist check-manifest dpkg doc
70 .SUFFIXES: .cmo .cmi .cmx .ml .mli .mll .mly