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.
39 # These must appear in dependency order.
53 OCAMLPACKAGES = -package unix,pcre,libvirt
54 OCAMLFLAGS = -g -warn-error CDEFLMPSUVYZX-3
56 BOBJECTS = $(SOURCES_ML:.ml=.cmo)
57 XOBJECTS = $(BOBJECTS:.cmo=.cmx)
67 # Since there are no real C sources (at least, not yet) we have a
68 # token C file that is empty, just to keep automake happy. The real
69 # sources are *.ml files.
70 mclu_SOURCES = empty.c
71 mclu_DEPENDENCIES = $(OBJECTS)
74 $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLPACKAGES) \
78 $(OCAMLFIND) ocamlc $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
80 $(OCAMLFIND) ocamlc $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
83 $(OCAMLFIND) ocamlopt $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
89 .depend: $(SOURCES_MLI) $(SOURCES_ML)
91 $(OCAMLFIND) ocamldep -I $(abs_srcdir) -I . $^ | \
93 $(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \
94 $(SED) -e 's,$(abs_srcdir)/,$(builddir)/,g' | \
100 DISTCLEANFILES = .depend
103 # Configuration file.
104 sysconf_DATA = mclu.conf
111 -c "Virtualization Support" \
112 --release "$(PACKAGE)-$(VERSION)" \