2 # Copyright (C) 2014-2015 Red Hat Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 CLEANFILES = *~ *.cmi *.cmo *.cmx
20 ACLOCAL_AMFLAGS = -I m4
27 # In alphabetical order.
41 # These must appear in dependency order.
57 OCAMLPACKAGES = -package unix,pcre,libvirt
58 OCAMLFLAGS = -g -warn-error CDEFLMPSUVYZX-3
60 BOBJECTS = $(SOURCES_ML:.ml=.cmo)
61 XOBJECTS = $(BOBJECTS:.cmo=.cmx)
71 # Since there are no real C sources (at least, not yet) we have a
72 # token C file that is empty, just to keep automake happy. The real
73 # sources are *.ml files.
74 mclu_SOURCES = empty.c
75 mclu_DEPENDENCIES = $(OBJECTS)
78 $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLPACKAGES) \
82 $(OCAMLFIND) ocamlc $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
84 $(OCAMLFIND) ocamlc $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
87 $(OCAMLFIND) ocamlopt $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
93 .depend: $(SOURCES_MLI) $(SOURCES_ML)
95 $(OCAMLFIND) ocamldep -I $(abs_srcdir) -I . $^ | \
97 $(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \
98 $(SED) -e 's,$(abs_srcdir)/,$(builddir)/,g' | \
104 DISTCLEANFILES = .depend
107 # Configuration file.
108 sysconf_DATA = mclu.conf
115 -c "Virtualization Support" \
116 --release "$(PACKAGE)-$(VERSION)" \