From 240c62ae50731913a8c8d475e4fb7b8b0668b1c2 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 CPU build rules into cpu/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 | 15 +-------------- src/cpu/Makefile.inc.am | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 14 deletions(-) create mode 100644 src/cpu/Makefile.inc.am diff --git a/src/Makefile.am b/src/Makefile.am index 463fe51580..aa775382ff 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -92,6 +92,7 @@ sbin_PROGRAMS = man8_MANS = include conf/Makefile.inc.am +include cpu/Makefile.inc.am include uml/Makefile.inc.am include phyp/Makefile.inc.am include test/Makefile.inc.am @@ -699,14 +700,6 @@ ACCESS_DRIVER_POLKIT_POLICY = \ $(srcdir)/access/org.libvirt.api.policy -CPU_SOURCES = \ - cpu/cpu.h cpu/cpu.c \ - cpu/cpu_x86.h cpu/cpu_x86.c cpu/cpu_x86_data.h \ - cpu/cpu_s390.h cpu/cpu_s390.c \ - cpu/cpu_arm.h cpu/cpu_arm.c \ - cpu/cpu_ppc64.h cpu/cpu_ppc64.c \ - cpu/cpu_ppc64_data.h \ - cpu/cpu_map.h cpu/cpu_map.c VMX_SOURCES = \ vmx/vmx.c vmx/vmx.h @@ -738,12 +731,6 @@ libvirt_util_la_LIBADD = $(CAPNG_LIBS) $(YAJL_LIBS) $(LIBNL_LIBS) \ $(POLKIT_LIBS) $(GNUTLS_LIBS) -noinst_LTLIBRARIES += libvirt_cpu.la -libvirt_la_BUILT_LIBADD += libvirt_cpu.la -libvirt_cpu_la_CFLAGS = \ - -I$(srcdir)/conf $(AM_CFLAGS) -libvirt_cpu_la_SOURCES = $(CPU_SOURCES) - if WITH_VMX noinst_LTLIBRARIES += libvirt_vmx.la libvirt_la_BUILT_LIBADD += libvirt_vmx.la diff --git a/src/cpu/Makefile.inc.am b/src/cpu/Makefile.inc.am new file mode 100644 index 0000000000..5020d40583 --- /dev/null +++ b/src/cpu/Makefile.inc.am @@ -0,0 +1,24 @@ +CPU_SOURCES = \ + cpu/cpu.h \ + cpu/cpu.c \ + cpu/cpu_x86.h \ + cpu/cpu_x86.c \ + cpu/cpu_x86_data.h \ + cpu/cpu_s390.h \ + cpu/cpu_s390.c \ + cpu/cpu_arm.h \ + cpu/cpu_arm.c \ + cpu/cpu_ppc64.h \ + cpu/cpu_ppc64.c \ + cpu/cpu_ppc64_data.h \ + cpu/cpu_map.h \ + cpu/cpu_map.c \ + $(NULL) + +noinst_LTLIBRARIES += libvirt_cpu.la +libvirt_la_BUILT_LIBADD += libvirt_cpu.la +libvirt_cpu_la_CFLAGS = \ + -I$(srcdir)/conf \ + $(AM_CFLAGS) \ + $(NULL) +libvirt_cpu_la_SOURCES = $(CPU_SOURCES)