1 ## Process this file with automake to produce Makefile.in
3 ## Copyright (C) 2005-2016 Red Hat, Inc.
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.
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 FILTERS = $(wildcard $(srcdir)/xml/nwfilter/*.xml)
22 $(wildcard $(srcdir)/polkit/*.rules) \
26 $(wildcard $(srcdir)/sh/*) \
29 STORAGE_XML_EXAMPLES = \
30 $(wildcard $(srcdir)/xml/storage/*.xml) \
33 SYSTEMTAP_EXAMPLES = \
34 $(wildcard $(srcdir)/systemtap/*.stp) \
38 $(wildcard $(srcdir)/xml/test/*.xml) \
44 $(STORAGE_XML_EXAMPLES) \
45 $(SYSTEMTAP_EXAMPLES) \
46 $(TEST_XML_EXAMPLES) \
51 -I$(top_builddir)/include \
52 -I$(top_srcdir)/include \
64 $(top_builddir)/src/libvirt.la \
65 $(top_builddir)/src/libvirt-admin.la \
68 # List of example programs. We need to list them here instead of using
69 # $(noinst_PROGRAMS) directly because we want to have access to the
70 # unmodified list during (un)installation, but at the same time automake
71 # might tweak $(noinst_PROGRAMS) to eg. automatically add the .exe file
72 # extension when targeting Windows.
80 admin/threadpool_params \
95 admin_client_close_SOURCES = admin/client_close.c
96 admin_client_info_SOURCES = admin/client_info.c
97 admin_client_limits_SOURCES = admin/client_limits.c
98 admin_list_clients_SOURCES = admin/list_clients.c
99 admin_list_servers_SOURCES = admin/list_servers.c
100 admin_logging_SOURCES = admin/logging.c
101 admin_threadpool_params_SOURCES = admin/threadpool_params.c
102 domain_dommigrate_SOURCES = domain/dommigrate.c
103 domain_domtop_SOURCES = domain/domtop.c
104 domain_info1_SOURCES = domain/info1.c
105 domain_rename_SOURCES = domain/rename.c
106 domain_suspend_SOURCES = domain/suspend.c
107 misc_event_test_SOURCES = misc/event-test.c
108 misc_hellolibvirt_SOURCES = misc/hellolibvirt.c
109 misc_openauth_SOURCES = misc/openauth.c
113 nwfilterdir = $(sysconfdir)/libvirt/nwfilter
114 nwfilter_DATA = $(FILTERS)
118 examplesdir = $(docdir)/examples
120 polkitexamplesdir = $(examplesdir)/polkit
121 polkitexamples_DATA = $(POLKIT_EXAMPLES)
123 shexamplesdir = $(examplesdir)/sh
124 shexamples_DATA = $(SH_EXAMPLES)
126 storagexmlexamplesdir = $(examplesdir)/xml/storage
127 storagexmlexamples_DATA = $(STORAGE_XML_EXAMPLES)
129 systemtapexamplesdir = $(examplesdir)/systemtap
130 systemtapexamples_DATA = $(SYSTEMTAP_EXAMPLES)
132 testxmlexamplesdir = $(examplesdir)/xml/test
133 testxmlexamples_DATA = $(TEST_XML_EXAMPLES)
136 for p in $(EXAMPLES); do \
138 $(mkinstalldirs) $(DESTDIR)$(examplesdir)/$$d; \
139 $(INSTALL_DATA) $(srcdir)/$${p}.c $(DESTDIR)$(examplesdir)/$$d/; \
143 for p in $(EXAMPLES); do \
144 rm -f $(DESTDIR)$(examplesdir)/$${p}.c; \