qemu: Fix leak in qemuProcessInitCpuAffinity()
[libvirt/ericb.git] / src / qemu / Makefile.inc.am
blobfd32a90d567714a6edec35dcd1c336822aab2e8f
1 # vim: filetype=automake
3 QEMU_DRIVER_SOURCES = \
4         qemu/qemu_agent.c \
5         qemu/qemu_agent.h \
6         qemu/qemu_alias.c \
7         qemu/qemu_alias.h \
8         qemu/qemu_block.c \
9         qemu/qemu_block.h \
10         qemu/qemu_blockjob.c \
11         qemu/qemu_blockjob.h \
12         qemu/qemu_capabilities.c \
13         qemu/qemu_capabilities.h \
14         qemu/qemu_command.c \
15         qemu/qemu_command.h \
16         qemu/qemu_parse_command.c \
17         qemu/qemu_parse_command.h \
18         qemu/qemu_domain.c \
19         qemu/qemu_domain.h \
20         qemu/qemu_domain_address.c \
21         qemu/qemu_domain_address.h \
22         qemu/qemu_cgroup.c \
23         qemu/qemu_cgroup.h \
24         qemu/qemu_extdevice.c \
25         qemu/qemu_extdevice.h \
26         qemu/qemu_firmware.c \
27         qemu/qemu_firmware.h \
28         qemu/qemu_hostdev.c \
29         qemu/qemu_hostdev.h \
30         qemu/qemu_hotplug.c \
31         qemu/qemu_hotplug.h \
32         qemu/qemu_hotplugpriv.h \
33         qemu/qemu_conf.c \
34         qemu/qemu_conf.h \
35         qemu/qemu_process.c \
36         qemu/qemu_process.h \
37         qemu/qemu_processpriv.h \
38         qemu/qemu_migration.c \
39         qemu/qemu_migration.h \
40         qemu/qemu_migration_cookie.c \
41         qemu/qemu_migration_cookie.h \
42         qemu/qemu_migration_params.c \
43         qemu/qemu_migration_params.h \
44         qemu/qemu_migration_paramspriv.h \
45         qemu/qemu_monitor.c \
46         qemu/qemu_monitor.h \
47         qemu/qemu_monitor_priv.h \
48         qemu/qemu_monitor_text.c \
49         qemu/qemu_monitor_text.h \
50         qemu/qemu_monitor_json.c \
51         qemu/qemu_monitor_json.h \
52         qemu/qemu_driver.c \
53         qemu/qemu_driver.h \
54         qemu/qemu_interface.c \
55         qemu/qemu_interface.h \
56         qemu/qemu_capspriv.h \
57         qemu/qemu_security.c \
58         qemu/qemu_security.h \
59         qemu/qemu_qapi.c \
60         qemu/qemu_qapi.h \
61         qemu/qemu_tpm.c \
62         qemu/qemu_tpm.h \
63         $(NULL)
66 DRIVER_SOURCE_FILES += $(QEMU_DRIVER_SOURCES)
67 STATEFUL_DRIVER_SOURCE_FILES += $(QEMU_DRIVER_SOURCES)
68 EXTRA_DIST += $(QEMU_DRIVER_SOURCES)
70 if WITH_QEMU
71 noinst_LTLIBRARIES += libvirt_driver_qemu_impl.la
72 libvirt_driver_qemu_la_SOURCES =
73 libvirt_driver_qemu_la_LIBADD = \
74         libvirt_driver_qemu_impl.la \
75         libvirt.la \
76         ../gnulib/lib/libgnu.la \
77         $(NULL)
78 mod_LTLIBRARIES += libvirt_driver_qemu.la
79 libvirt_driver_qemu_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
81 libvirt_driver_qemu_impl_la_CFLAGS = \
82         $(GNUTLS_CFLAGS) \
83         $(LIBNL_CFLAGS) \
84         $(SELINUX_CFLAGS) \
85         $(XDR_CFLAGS) \
86         -I$(srcdir)/access \
87         -I$(srcdir)/conf \
88         -I$(srcdir)/secret \
89         $(AM_CFLAGS) \
90         $(NULL)
91 libvirt_driver_qemu_impl_la_LDFLAGS = $(AM_LDFLAGS)
92 libvirt_driver_qemu_impl_la_LIBADD = \
93         $(CAPNG_LIBS) \
94         $(GNUTLS_LIBS) \
95         $(LIBNL_LIBS) \
96         $(SELINUX_LIBS) \
97         $(LIBXML_LIBS) \
98         $(NULL)
99 libvirt_driver_qemu_impl_la_SOURCES = $(QEMU_DRIVER_SOURCES)
101 if WITH_DTRACE_PROBES
102 libvirt_driver_qemu_la_LIBADD += libvirt_qemu_probes.lo
103 nodist_libvirt_driver_qemu_la_SOURCES = libvirt_qemu_probes.h
104 BUILT_SOURCES += libvirt_qemu_probes.h
106 tapset_DATA += libvirt_qemu_probes.stp
108 CLEANFILES += \
109         libvirt_qemu_probes.h \
110         libvirt_qemu_probes.o \
111         libvirt_qemu_probes.lo \
112         libvirt_qemu_probes.stp \
113         $(NULL)
115 endif WITH_DTRACE_PROBES
117 conf_DATA += qemu/qemu.conf
119 augeas_DATA += qemu/libvirtd_qemu.aug
120 augeastest_DATA += test_libvirtd_qemu.aug
121 CLEANFILES += test_libvirtd_qemu.aug
123 AUGEAS_DIRS += qemu
125 test_libvirtd_qemu.aug: qemu/test_libvirtd_qemu.aug.in \
126                 $(srcdir)/qemu/qemu.conf $(AUG_GENTEST)
127         $(AM_V_GEN)$(AUG_GENTEST) $(srcdir)/qemu/qemu.conf $< $@
129 check-augeas-qemu: test_libvirtd_qemu.aug
130         $(AM_V_GEN)if test -x '$(AUGPARSE)'; then \
131             '$(AUGPARSE)' -I $(srcdir)/qemu test_libvirtd_qemu.aug; \
132         fi
134 INSTALL_DATA_DIRS += qemu
136 install-data-qemu:
137         $(MKDIR_P) -m 0751 "$(DESTDIR)$(localstatedir)/lib/libvirt/qemu"
138         $(MKDIR_P) "$(DESTDIR)$(localstatedir)/run/libvirt/qemu"
139         $(MKDIR_P) "$(DESTDIR)$(localstatedir)/cache/libvirt/qemu"
140         $(MKDIR_P) "$(DESTDIR)$(localstatedir)/log/libvirt/qemu"
141         $(MKDIR_P) "$(DESTDIR)$(localstatedir)/lib/libvirt/swtpm"
142         $(MKDIR_P) "$(DESTDIR)$(localstatedir)/run/libvirt/qemu/swtpm"
143         $(MKDIR_P) "$(DESTDIR)$(localstatedir)/log/swtpm/libvirt/qemu"
145 uninstall-data-qemu:
146         rmdir "$(DESTDIR)$(localstatedir)/lib/libvirt/qemu" ||:
147         rmdir "$(DESTDIR)$(localstatedir)/run/libvirt/qemu" ||:
148         rmdir "$(DESTDIR)$(localstatedir)/cache/libvirt/qemu" ||:
149         rmdir "$(DESTDIR)$(localstatedir)/log/libvirt/qemu" ||:
150         rmdir "$(DESTDIR)$(localstatedir)/lib/libvirt/swtpm"
151         rmdir "$(DESTDIR)$(localstatedir)/run/libvirt/qemu/swtpm" ||:
152         rmdir "$(DESTDIR)$(localstatedir)/log/swtpm/libvirt/qemu" ||:
154 endif WITH_QEMU
156 .PHONY: \
157         check-augeas-qemu \
158         install-data-qemu \
159         uninstall-data-qemu \
160         $(NULL)
162 EXTRA_DIST += \
163         qemu/qemu.conf \
164         qemu/libvirtd_qemu.aug \
165         qemu/test_libvirtd_qemu.aug.in \
166         qemu/THREADS.txt \
167         libvirt_qemu_probes.d \
168         $(NULL)