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.
42 # These must appear in dependency order.
59 OCAMLPACKAGES = -package unix,pcre,libvirt
60 OCAMLFLAGS = -g -warn-error CDEFLMPSUVYZX-3
62 BOBJECTS = $(SOURCES_ML:.ml=.cmo)
63 XOBJECTS = $(BOBJECTS:.cmo=.cmx)
73 # Since there are no real C sources (at least, not yet) we have a
74 # token C file that is empty, just to keep automake happy. The real
75 # sources are *.ml files.
76 mclu_SOURCES = empty.c
77 mclu_DEPENDENCIES = $(OBJECTS)
80 $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLPACKAGES) \
84 $(OCAMLFIND) ocamlc $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
86 $(OCAMLFIND) ocamlc $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
89 $(OCAMLFIND) ocamlopt $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
95 .depend: $(SOURCES_MLI) $(SOURCES_ML)
97 $(OCAMLFIND) ocamldep -I $(abs_srcdir) -I . $^ | \
99 $(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \
100 $(SED) -e 's,$(abs_srcdir)/,$(builddir)/,g' | \
106 DISTCLEANFILES = .depend
109 # Configuration file.
110 sysconf_DATA = mclu.conf
117 -c "Virtualization Support" \
118 --release "$(PACKAGE)-$(VERSION)" \