]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
make: split CPU build rules into cpu/Makefile.inc.am
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 21 Feb 2018 18:05:56 +0000 (18:05 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 5 Mar 2018 17:12:01 +0000 (17:12 +0000)
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/Makefile.am
src/cpu/Makefile.inc.am [new file with mode: 0644]

index 463fe51580a673b2904156c077fb258bd33a2b6e..aa775382ff0d5e53d916675fc691a24e8e05801f 100644 (file)
@@ -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 (file)
index 0000000..5020d40
--- /dev/null
@@ -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)