From 61efbbaf9425cbe2ff4dc40865ad71d829607139 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 vmx driver build rules into vmx/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 | 19 +------------------ src/vmx/Makefile.inc.am | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 18 deletions(-) create mode 100644 src/vmx/Makefile.inc.am diff --git a/src/Makefile.am b/src/Makefile.am index 814f3acb06..8b1e4c8a4e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -107,6 +107,7 @@ include phyp/Makefile.inc.am include test/Makefile.inc.am include esx/Makefile.inc.am include hyperv/Makefile.inc.am +include vmx/Makefile.inc.am include vmware/Makefile.inc.am include vbox/Makefile.inc.am include openvz/Makefile.inc.am @@ -361,9 +362,6 @@ check-local: check-protocol check-symfile check-symsorting \ -VMX_SOURCES = \ - vmx/vmx.c vmx/vmx.h - pkgdata_DATA = cpu/cpu_map.xml @@ -376,15 +374,6 @@ EXTRA_DIST += $(pkgdata_DATA) # First deal with sources usable in non-daemon context -if WITH_VMX -noinst_LTLIBRARIES += libvirt_vmx.la -libvirt_la_BUILT_LIBADD += libvirt_vmx.la -libvirt_vmx_la_CFLAGS = \ - -I$(srcdir)/conf $(AM_CFLAGS) -libvirt_vmx_la_SOURCES = $(VMX_SOURCES) -endif WITH_VMX - - noinst_LTLIBRARIES += libvirt_driver.la libvirt_la_BUILT_LIBADD += libvirt_driver.la libvirt_driver_la_SOURCES = $(DRIVER_SOURCES) @@ -455,12 +444,6 @@ else ! WITH_LINUX SYM_FILES += $(srcdir)/libvirt_linux.syms endif ! WITH_LINUX -if WITH_VMX -USED_SYM_FILES += $(srcdir)/libvirt_vmx.syms -else ! WITH_VMX -SYM_FILES += $(srcdir)/libvirt_vmx.syms -endif ! WITH_VMX - if WITH_SASL USED_SYM_FILES += $(srcdir)/libvirt_sasl.syms else ! WITH_SASL diff --git a/src/vmx/Makefile.inc.am b/src/vmx/Makefile.inc.am new file mode 100644 index 0000000000..b9bf6ef690 --- /dev/null +++ b/src/vmx/Makefile.inc.am @@ -0,0 +1,22 @@ +VMX_SOURCES = \ + vmx/vmx.c \ + vmx/vmx.h \ + $(NULL) + +EXTRA_DIST += $(VMX_SOURCES) + +if WITH_VMX +noinst_LTLIBRARIES += libvirt_vmx.la +libvirt_la_BUILT_LIBADD += libvirt_vmx.la +libvirt_vmx_la_CFLAGS = \ + -I$(srcdir)/conf \ + $(AM_CFLAGS) \ + $(NULL) +libvirt_vmx_la_SOURCES = $(VMX_SOURCES) +endif WITH_VMX + +if WITH_VMX +USED_SYM_FILES += $(srcdir)/libvirt_vmx.syms +else ! WITH_VMX +SYM_FILES += $(srcdir)/libvirt_vmx.syms +endif ! WITH_VMX -- GitLab