From cdfbb0666f7aebdff4b113b8a9c3f44ad467cd9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Wed, 21 Feb 2018 18:05:56 +0000 Subject: [PATCH] make: split xenconfig driver build rules into xenconfig/Makefile.inc.am MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel P. Berrangé --- src/Makefile.am | 21 +-------------------- src/xenconfig/Makefile.inc.am | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 20 deletions(-) create mode 100644 src/xenconfig/Makefile.inc.am diff --git a/src/Makefile.am b/src/Makefile.am index 58bd7104c3..e0916394ef 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -90,6 +90,7 @@ include vbox/Makefile.inc.am include openvz/Makefile.inc.am include qemu/Makefile.inc.am include bhyve/Makefile.inc.am +include xenconfig/Makefile.inc.am install-data-extra: $(INSTALL_DATA_DIRS:%=install-data-%) uninstall-data-extra: $(INSTALL_DATA_DIRS:%=install-data-%) @@ -1102,11 +1103,6 @@ CPU_SOURCES = \ VMX_SOURCES = \ vmx/vmx.c vmx/vmx.h -XENCONFIG_SOURCES = \ - xenconfig/xenxs_private.h \ - xenconfig/xen_common.c xenconfig/xen_common.h \ - xenconfig/xen_sxpr.c xenconfig/xen_sxpr.h \ - xenconfig/xen_xm.c xenconfig/xen_xm.h if WITH_LIBXL XENCONFIG_LIBXL_SOURCES = \ $(XENCONFIG_SOURCES) \ @@ -1167,13 +1163,6 @@ libvirt_vmx_la_CFLAGS = \ libvirt_vmx_la_SOURCES = $(VMX_SOURCES) endif WITH_VMX -if WITH_XENCONFIG -noinst_LTLIBRARIES += libvirt_xenconfig.la -libvirt_la_BUILT_LIBADD += libvirt_xenconfig.la -libvirt_xenconfig_la_CFLAGS = \ - -I$(srcdir)/conf $(AM_CFLAGS) -libvirt_xenconfig_la_SOURCES = $(XENCONFIG_SOURCES) - if WITH_LIBXL noinst_LTLIBRARIES += libvirt_xenconfig_libxl.la libvirt_xenconfig_libxl_la_LIBADD = $(LIBXL_LIBS) @@ -1181,7 +1170,6 @@ libvirt_xenconfig_libxl_la_CFLAGS = \ -I$(srcdir)/conf -I$(srcdir)/libxl $(AM_CFLAGS) libvirt_xenconfig_libxl_la_SOURCES = $(XENCONFIG_LIBXL_SOURCES) endif WITH_LIBXL -endif WITH_XENCONFIG noinst_LTLIBRARIES += libvirt_driver.la @@ -1843,7 +1831,6 @@ EXTRA_DIST += \ $(SECURITY_DRIVER_APPARMOR_SOURCES) \ $(SECRET_DRIVER_SOURCES) \ $(SECRET_UTIL_SOURCES) \ - $(XENCONFIG_SOURCES) \ $(XENCONFIG_LIBXL_SOURCES) \ $(ACCESS_DRIVER_POLKIT_POLICY) @@ -1991,12 +1978,6 @@ else ! WITH_VMX SYM_FILES += $(srcdir)/libvirt_vmx.syms endif ! WITH_VMX -if WITH_XENCONFIG -USED_SYM_FILES += $(srcdir)/libvirt_xenconfig.syms -else ! WITH_XENCONFIG -SYM_FILES += $(srcdir)/libvirt_xenconfig.syms -endif ! WITH_XENCONFIG - if WITH_SASL USED_SYM_FILES += $(srcdir)/libvirt_sasl.syms else ! WITH_SASL diff --git a/src/xenconfig/Makefile.inc.am b/src/xenconfig/Makefile.inc.am new file mode 100644 index 0000000000..a87d69990f --- /dev/null +++ b/src/xenconfig/Makefile.inc.am @@ -0,0 +1,28 @@ +XENCONFIG_SOURCES = \ + xenconfig/xenxs_private.h \ + xenconfig/xen_common.c \ + xenconfig/xen_common.h \ + xenconfig/xen_sxpr.c \ + xenconfig/xen_sxpr.h \ + xenconfig/xen_xm.c \ + xenconfig/xen_xm.h \ + $(NULL) + +EXTRA_DIST += $(XENCONFIG_SOURCES) + +if WITH_XENCONFIG +noinst_LTLIBRARIES += libvirt_xenconfig.la +libvirt_la_BUILT_LIBADD += libvirt_xenconfig.la +libvirt_xenconfig_la_CFLAGS = \ + -I$(srcdir)/conf \ + $(AM_CFLAGS) \ + $(NULL) +libvirt_xenconfig_la_SOURCES = $(XENCONFIG_SOURCES) + +endif WITH_XENCONFIG + +if WITH_XENCONFIG +USED_SYM_FILES += $(srcdir)/libvirt_xenconfig.syms +else ! WITH_XENCONFIG +SYM_FILES += $(srcdir)/libvirt_xenconfig.syms +endif ! WITH_XENCONFIG -- GitLab