qemu: Add validation for SMMUv3 IOMMU
[libvirt/ericb.git] / Makefile.am
blobdedd8d2ff825b78a545d812afeac8ea8ae59ae41
1 ## Process this file with automake to produce Makefile.in
3 ## Copyright (C) 2005-2013 Red Hat, Inc.
4 ##
5 ## This library is free software; you can redistribute it and/or
6 ## modify it under the terms of the GNU Lesser General Public
7 ## License as published by the Free Software Foundation; either
8 ## version 2.1 of the License, or (at your option) any later version.
9 ##
10 ## This library is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 ## Lesser General Public License for more details.
15 ## You should have received a copy of the GNU Lesser General Public
16 ## License along with this library.  If not, see
17 ## <http://www.gnu.org/licenses/>.
19 SUBDIRS = . gnulib/lib include/libvirt src tools docs gnulib/tests \
20   tests po examples
22 XZ_OPT ?= -v -T0
23 export XZ_OPT
25 # have gnulib 'make coverage' output to 'cov' dir
26 COVERAGE_OUT = "cov"
28 ACLOCAL_AMFLAGS = -I m4
30 EXTRA_DIST = \
31   config-post.h \
32   libvirt.spec libvirt.spec.in \
33   mingw-libvirt.spec.in \
34   libvirt.pc.in \
35   libvirt-qemu.pc.in \
36   libvirt-lxc.pc.in \
37   libvirt-admin.pc.in \
38   Makefile.ci \
39   Makefile.nonreentrant \
40   autogen.sh \
41   cfg.mk \
42   run.in \
43   README.md \
44   AUTHORS.in \
45   build-aux/augeas-gentest.pl \
46   build-aux/check-spacing.pl \
47   build-aux/gitlog-to-changelog \
48   build-aux/header-ifdef.pl \
49   build-aux/minimize-po.pl \
50   build-aux/mock-noinline.pl \
51   build-aux/prohibit-duplicate-header.pl \
52   build-aux/useless-if-before-free \
53   build-aux/vc-list-files \
54   $(NULL)
56 pkgconfigdir = $(libdir)/pkgconfig
57 pkgconfig_DATA = libvirt.pc libvirt-qemu.pc libvirt-lxc.pc libvirt-admin.pc
59 NEWS: \
60           $(srcdir)/docs/news.xml \
61           $(srcdir)/docs/news-ascii.xsl \
62           $(srcdir)/docs/reformat-news.py
63         $(AM_V_GEN) \
64         if [ -x $(XSLTPROC) ]; then \
65           $(XSLTPROC) --nonet \
66             $(srcdir)/docs/news-ascii.xsl \
67             $(srcdir)/docs/news.xml \
68           >$@-tmp \
69             || { rm -f $@-tmp; exit 1; }; \
70           $(PYTHON) $(srcdir)/docs/reformat-news.py $@-tmp >$@ \
71             || { rm -f $@-tmp; exit 1; }; \
72           rm -f $@-tmp; \
73         fi
74 EXTRA_DIST += \
75         $(srcdir)/docs/news.xml \
76         $(srcdir)/docs/news-ascii.xsl \
77         $(srcdir)/docs/reformat-news.py
79 rpm: clean
80         @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.xz)
82 srpm: clean
83         @(unset CDPATH ; $(MAKE) dist && rpmbuild -ts $(distdir).tar.xz)
85 check-local: all tests
87 check-access: all
88         @($(MAKE) $(AM_MAKEFLAGS) -C tests check-access)
90 MAINTAINERCLEANFILES = .git-module-status
92 dist-hook: gen-AUTHORS
94 .PHONY: gen-AUTHORS
95 gen-AUTHORS:
96         $(AM_V_GEN)\
97         if test -d $(srcdir)/.git; then \
98           ( \
99             cd $(srcdir) && \
100             git log --pretty=format:'%aN <%aE>' | sort -u \
101           ) > all.list && \
102           sort -u $(srcdir)/AUTHORS.in > maint.list && \
103           comm -23 all.list maint.list > contrib.list && \
104           contrib="`cat contrib.list`" && \
105           perl -p -e "s/#contributorslist#// and print '$$contrib'" \
106             < $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp && \
107           mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS && \
108           rm -f all.list maint.list contrib.list; \
109         fi
111 ci-%:
112         $(MAKE) -f Makefile.ci $@