2016-01-09 23:03:56 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
|
|
|
## Copyright (C) 2005-2016 Red Hat, Inc.
|
|
|
|
##
|
|
|
|
## This library is free software; you can redistribute it and/or
|
|
|
|
## modify it under the terms of the GNU Lesser General Public
|
|
|
|
## License as published by the Free Software Foundation; either
|
|
|
|
## version 2.1 of the License, or (at your option) any later version.
|
|
|
|
##
|
|
|
|
## This library is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
## Lesser General Public License for more details.
|
|
|
|
##
|
|
|
|
## You should have received a copy of the GNU Lesser General Public
|
|
|
|
## License along with this library. If not, see
|
|
|
|
## <http://www.gnu.org/licenses/>.
|
|
|
|
|
2016-01-12 15:22:24 +00:00
|
|
|
FILTERS = $(wildcard $(srcdir)/xml/nwfilter/*.xml)
|
2016-01-09 23:03:56 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
lxcconvert/virt-lxc-convert \
|
|
|
|
polkit/libvirt-acl.rules \
|
2016-10-10 03:42:46 +00:00
|
|
|
$(wildcard $(srcdir)/systemtap/*.stp) \
|
2016-01-09 23:03:56 +00:00
|
|
|
$(FILTERS) \
|
2016-01-12 15:22:24 +00:00
|
|
|
$(wildcard $(srcdir)/xml/storage/*.xml) \
|
|
|
|
$(wildcard $(srcdir)/xml/test/*.xml)
|
2016-01-09 23:03:56 +00:00
|
|
|
|
|
|
|
|
2019-01-04 19:47:44 +00:00
|
|
|
AM_CPPFLAGS = \
|
2019-04-02 10:00:13 +00:00
|
|
|
-I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir) \
|
|
|
|
$(WARN_CFLAGS)
|
2019-03-13 16:07:24 +00:00
|
|
|
LDADD = $(STATIC_BINARIES) $(WARN_CFLAGS) \
|
examples: Avoid gnulib, have standalone examples
Commit 0c6ad476 updated gnulib, which rearranged some of the
conditions in gnulib wrapper headers such that compilation
started failing on BSD systems when the normal system <unistd.h>
tried to include another system header but instead got a
gnulib wrapper header in an incomplete state; this is because
gnulib headers only work if <config.h> is included first.
Commit b6f78259 papered over the symptoms of that by including
<config.h> in all the examples. But this logic is backwards -
if our examples are truly meant to be stand-alone, they should
NOT depend on how libvirt was configured, and should NOT
depend on the gnulib fixes for system quirks. In particular,
if an example does not need to link against libgnulib.la,
then it also does not need to use -Ignulib in its compile
flags, and likewise does not need to include <config.h> since
none of the gnulib wrapper headers should be interfering.
So, revert (most of) b6f78259 (except for the bogus pre-patch
use of "config.h" in admin/logging.c: if config.h is included,
it should be via <> rather than "", and must be before any
system headers); then additionally nuke all mention of
<config.h>, -Ignulib, and -llibgnu.la, making all of the
examples truly standalone.
Signed-off-by: Eric Blake <eblake@redhat.com>
Acked-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2019-01-08 04:15:48 +00:00
|
|
|
$(top_builddir)/src/libvirt.la \
|
2016-05-15 14:04:51 +00:00
|
|
|
$(top_builddir)/src/libvirt-admin.la
|
2016-01-09 23:03:56 +00:00
|
|
|
|
|
|
|
noinst_PROGRAMS=dominfo/info1 dommigrate/dommigrate domsuspend/suspend \
|
|
|
|
domtop/domtop hellolibvirt/hellolibvirt object-events/event-test \
|
2016-05-15 14:04:51 +00:00
|
|
|
openauth/openauth rename/rename admin/list_servers admin/list_clients \
|
|
|
|
admin/threadpool_params admin/client_limits admin/client_info \
|
2016-11-24 13:04:11 +00:00
|
|
|
admin/client_close admin/logging
|
2016-01-09 23:03:56 +00:00
|
|
|
|
|
|
|
dominfo_info1_SOURCES = dominfo/info1.c
|
|
|
|
dommigrate_dommigrate_SOURCES = dommigrate/dommigrate.c
|
|
|
|
domsuspend_suspend_SOURCES = domsuspend/suspend.c
|
|
|
|
domtop_domtop_SOURCES = domtop/domtop.c
|
|
|
|
hellolibvirt_hellolibvirt_SOURCES = hellolibvirt/hellolibvirt.c
|
2016-04-14 13:11:49 +00:00
|
|
|
|
|
|
|
object_events_event_test_CFLAGS = \
|
2017-11-03 12:09:47 +00:00
|
|
|
$(WARN_CFLAGS) \
|
2016-04-14 13:11:49 +00:00
|
|
|
$(NULL)
|
2016-01-09 23:03:56 +00:00
|
|
|
object_events_event_test_SOURCES = object-events/event-test.c
|
2016-04-14 13:11:49 +00:00
|
|
|
|
2016-01-09 23:03:56 +00:00
|
|
|
openauth_openauth_SOURCES = openauth/openauth.c
|
|
|
|
rename_rename_SOURCES = rename/rename.c
|
|
|
|
|
2016-05-15 14:04:51 +00:00
|
|
|
admin_list_servers_SOURCES = admin/list_servers.c
|
|
|
|
admin_list_clients_SOURCES = admin/list_clients.c
|
|
|
|
admin_threadpool_params_SOURCES = admin/threadpool_params.c
|
|
|
|
admin_client_limits_SOURCES = admin/client_limits.c
|
|
|
|
admin_client_info_SOURCES = admin/client_info.c
|
|
|
|
admin_client_close_SOURCES = admin/client_close.c
|
2016-11-24 13:04:11 +00:00
|
|
|
admin_logging_SOURCES = admin/logging.c
|
2016-05-15 14:04:51 +00:00
|
|
|
|
2017-12-11 10:09:31 +00:00
|
|
|
INSTALL_DATA_LOCAL =
|
|
|
|
UNINSTALL_LOCAL =
|
|
|
|
|
2016-01-09 23:03:56 +00:00
|
|
|
if WITH_NWFILTER
|
|
|
|
NWFILTER_DIR = "$(DESTDIR)$(sysconfdir)/libvirt/nwfilter"
|
|
|
|
|
2017-12-11 10:09:31 +00:00
|
|
|
install-nwfilter-local:
|
2016-01-09 23:03:56 +00:00
|
|
|
$(MKDIR_P) "$(NWFILTER_DIR)"
|
|
|
|
for f in $(FILTERS); do \
|
|
|
|
$(INSTALL_DATA) $$f "$(NWFILTER_DIR)"; \
|
|
|
|
done
|
|
|
|
|
2017-12-11 10:09:31 +00:00
|
|
|
uninstall-nwfilter-local::
|
2016-01-09 23:03:56 +00:00
|
|
|
for f in $(FILTERS); do \
|
|
|
|
rm -f "$(NWFILTER_DIR)/`basename $$f`"; \
|
|
|
|
done
|
2016-04-19 09:13:00 +00:00
|
|
|
-test -z "$(shell ls $(NWFILTER_DIR))" || rmdir $(NWFILTER_DIR)
|
2017-12-11 10:09:31 +00:00
|
|
|
|
|
|
|
INSTALL_DATA_LOCAL += install-nwfilter-local
|
|
|
|
UNINSTALL_LOCAL += uninstall-nwfilter-local
|
2016-01-09 23:03:56 +00:00
|
|
|
endif WITH_NWFILTER
|
2017-12-11 10:09:31 +00:00
|
|
|
|
|
|
|
install-data-local: $(INSTALL_DATA_LOCAL)
|
|
|
|
|
|
|
|
uninstall-local: $(UNINSTALL_LOCAL)
|