You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 14 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. ## Copyright (C) 2005-2016 Red Hat, Inc.
  2. ## Copyright (C) 2013 Yuto KAWAMURA(kawamuray) <kawamuray.dadada@gmail.com>
  3. ##
  4. ## This library is free software; you can redistribute it and/or
  5. ## modify it under the terms of the GNU Lesser General Public
  6. ## License as published by the Free Software Foundation; either
  7. ## version 2.1 of the License, or (at your option) any later version.
  8. ##
  9. ## This library is distributed in the hope that it will be useful,
  10. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. ## Lesser General Public License for more details.
  13. ##
  14. ## You should have received a copy of the GNU Lesser General Public
  15. ## License along with this library. If not, see
  16. ## <http://www.gnu.org/licenses/>.
  17. AM_CPPFLAGS = \
  18. -I$(top_builddir)/include -I$(top_srcdir)/include \
  19. -I$(top_builddir)/src -I$(top_srcdir)/src \
  20. -I$(top_srcdir)/src/util \
  21. -I$(top_srcdir) \
  22. $(NULL)
  23. # We do not want to accidentally include stuff from src/
  24. # dir or public API dir. Specific files can
  25. # still be included via their path relative to the root if
  26. # needed
  27. STANDALONE_CPPFLAGS = -I$(top_srcdir)
  28. AM_CFLAGS = \
  29. $(WARN_CFLAGS) \
  30. $(COVERAGE_CFLAGS) \
  31. $(PIE_CFLAGS) \
  32. $(LIBXML_CFLAGS) \
  33. $(GLIB_CFLAGS) \
  34. $(NULL)
  35. AM_LDFLAGS = \
  36. $(RELRO_LDFLAGS) \
  37. $(NO_INDIRECT_LDFLAGS) \
  38. $(NO_UNDEFINED_LDFLAGS) \
  39. $(NULL)
  40. ICON_FILES = \
  41. libvirt_win_icon_16x16.ico \
  42. libvirt_win_icon_32x32.ico \
  43. libvirt_win_icon_48x48.ico \
  44. libvirt_win_icon_64x64.ico \
  45. virsh_win_icon.rc
  46. EXTRA_DIST = \
  47. $(ICON_FILES) \
  48. $(conf_DATA) \
  49. virt-xml-validate.in \
  50. virt-pki-validate.in \
  51. virt-sanlock-cleanup.in \
  52. libvirt-guests.sysconf \
  53. virt-login-shell.conf \
  54. virsh-edit.c \
  55. bash-completion/vsh \
  56. libvirt_recover_xattrs.sh \
  57. $(NULL)
  58. CLEANFILES =
  59. DISTCLEANFILES =
  60. MAINTAINERCLEANFILES =
  61. confdir = $(sysconfdir)/libvirt
  62. conf_DATA =
  63. bin_SCRIPTS = virt-xml-validate virt-pki-validate
  64. bin_PROGRAMS = virsh virt-admin
  65. libexec_SCRIPTS = libvirt-guests.sh
  66. if WITH_SANLOCK
  67. sbin_SCRIPTS = virt-sanlock-cleanup
  68. DISTCLEANFILES += virt-sanlock-cleanup
  69. endif WITH_SANLOCK
  70. if WITH_LOGIN_SHELL
  71. conf_DATA += virt-login-shell.conf
  72. bin_PROGRAMS += virt-login-shell
  73. libexec_PROGRAMS = virt-login-shell-helper
  74. endif WITH_LOGIN_SHELL
  75. if WITH_HOST_VALIDATE
  76. bin_PROGRAMS += virt-host-validate
  77. endif WITH_HOST_VALIDATE
  78. virt-xml-validate: virt-xml-validate.in Makefile
  79. $(AM_V_GEN)sed -e 's|[@]schemadir@|$(pkgdatadir)/schemas|g' \
  80. -e 's|[@]VERSION@|$(VERSION)|g' \
  81. < $< > $@ || (rm $@ && exit 1) && chmod +x $@
  82. virt-pki-validate: virt-pki-validate.in Makefile
  83. $(AM_V_GEN)sed -e 's|[@]sysconfdir@|$(sysconfdir)|g' \
  84. -e 's|[@]VERSION@|$(VERSION)|g' \
  85. < $< > $@ || (rm $@ && exit 1) && chmod +x $@
  86. virt-sanlock-cleanup: virt-sanlock-cleanup.in Makefile
  87. $(AM_V_GEN)sed -e 's|[@]sysconfdir@|$(sysconfdir)|' \
  88. -e 's|[@]localstatedir@|$(localstatedir)|' < $< > $@ \
  89. || (rm $@ && exit 1) && chmod +x $@
  90. noinst_LTLIBRARIES = libvirt_shell.la
  91. libvirt_shell_la_CFLAGS = \
  92. $(AM_CFLAGS) \
  93. $(READLINE_CFLAGS) \
  94. $(NULL)
  95. libvirt_shell_la_LDFLAGS = \
  96. $(AM_LDFLAGS) \
  97. $(PIE_LDFLAGS) \
  98. $(COVERAGE_LDFLAGS) \
  99. $(NULL)
  100. libvirt_shell_la_LIBADD = \
  101. ../src/libvirt.la \
  102. $(LIBXML_LIBS) \
  103. $(READLINE_LIBS) \
  104. $(GLIB_LIBS) \
  105. $(NULL)
  106. libvirt_shell_la_SOURCES = \
  107. vsh.c vsh.h \
  108. vsh-table.c vsh-table.h
  109. virt_host_validate_SOURCES = \
  110. virt-host-validate.c \
  111. virt-host-validate-common.c virt-host-validate-common.h
  112. VIRT_HOST_VALIDATE_QEMU = \
  113. virt-host-validate-qemu.c \
  114. virt-host-validate-qemu.h
  115. VIRT_HOST_VALIDATE_LXC = \
  116. virt-host-validate-lxc.c \
  117. virt-host-validate-lxc.h
  118. VIRT_HOST_VALIDATE_BHYVE = \
  119. virt-host-validate-bhyve.c \
  120. virt-host-validate-bhyve.h
  121. if WITH_QEMU
  122. virt_host_validate_SOURCES += $(VIRT_HOST_VALIDATE_QEMU)
  123. else ! WITH_QEMU
  124. EXTRA_DIST += $(VIRT_HOST_VALIDATE_QEMU)
  125. endif ! WITH_QEMU
  126. if WITH_LXC
  127. virt_host_validate_SOURCES += $(VIRT_HOST_VALIDATE_LXC)
  128. else ! WITH_LXC
  129. EXTRA_DIST += $(VIRT_HOST_VALIDATE_LXC)
  130. endif ! WITH_LXC
  131. if WITH_BHYVE
  132. virt_host_validate_SOURCES += $(VIRT_HOST_VALIDATE_BHYVE)
  133. else ! WITH_BHYVE
  134. EXTRA_DIST += $(VIRT_HOST_VALIDATE_BHYVE)
  135. endif ! WITH_BHYVE
  136. virt_host_validate_LDFLAGS = \
  137. $(AM_LDFLAGS) \
  138. $(PIE_LDFLAGS) \
  139. $(COVERAGE_LDFLAGS) \
  140. $(NULL)
  141. virt_host_validate_LDADD = \
  142. ../src/libvirt.la \
  143. $(GLIB_LIBS) \
  144. $(NULL)
  145. virt_host_validate_CFLAGS = \
  146. $(AM_CFLAGS) \
  147. $(NULL)
  148. # virt-login-shell will be setuid, and must not link to anything
  149. # except glibc. It wil scrub the environment and then invoke the
  150. # real virt-login-shell-helper binary.
  151. virt_login_shell_SOURCES = \
  152. virt-login-shell.c
  153. virt_login_shell_CPPFLAGS = $(STANDALONE_CPPFLAGS)
  154. virt_login_shell_helper_SOURCES = \
  155. virt-login-shell-helper.c
  156. virt_login_shell_helper_LDFLAGS = \
  157. $(AM_LDFLAGS) \
  158. $(PIE_LDFLAGS) \
  159. $(COVERAGE_LDFLAGS) \
  160. $(NULL)
  161. virt_login_shell_helper_LDADD = \
  162. ../src/libvirt.la \
  163. ../src/libvirt-lxc.la \
  164. $(GLIB_LIBS) \
  165. $(NULL)
  166. virt_login_shell_helper_CFLAGS = \
  167. $(AM_CFLAGS) \
  168. $(NULL)
  169. virsh_SOURCES = \
  170. virsh.c virsh.h \
  171. virsh-backup.c virsh-backup.h \
  172. virsh-checkpoint.c virsh-checkpoint.h \
  173. virsh-completer.c virsh-completer.h \
  174. virsh-completer-domain.c virsh-completer-domain.h \
  175. virsh-completer-checkpoint.c virsh-completer-checkpoint.h \
  176. virsh-completer-host.c virsh-completer-host.h \
  177. virsh-completer-interface.c virsh-completer-interface.h \
  178. virsh-completer-network.c virsh-completer-network.h \
  179. virsh-completer-nodedev.c virsh-completer-nodedev.h \
  180. virsh-completer-nwfilter.c virsh-completer-nwfilter.h \
  181. virsh-completer-pool.c virsh-completer-pool.h \
  182. virsh-completer-secret.c virsh-completer-secret.h \
  183. virsh-completer-snapshot.c virsh-completer-snapshot.h \
  184. virsh-completer-volume.c virsh-completer-volume.h \
  185. virsh-console.c virsh-console.h \
  186. virsh-domain.c virsh-domain.h \
  187. virsh-domain-monitor.c virsh-domain-monitor.h \
  188. virsh-host.c virsh-host.h \
  189. virsh-interface.c virsh-interface.h \
  190. virsh-network.c virsh-network.h \
  191. virsh-nodedev.c virsh-nodedev.h \
  192. virsh-nwfilter.c virsh-nwfilter.h \
  193. virsh-pool.c virsh-pool.h \
  194. virsh-secret.c virsh-secret.h \
  195. virsh-snapshot.c virsh-snapshot.h \
  196. virsh-util.c virsh-util.h \
  197. virsh-volume.c virsh-volume.h \
  198. $(NULL)
  199. virsh_LDFLAGS = \
  200. $(AM_LDFLAGS) \
  201. $(PIE_LDFLAGS) \
  202. $(COVERAGE_LDFLAGS) \
  203. $(NULL)
  204. virsh_LDADD = \
  205. $(STATIC_BINARIES) \
  206. ../src/libvirt-lxc.la \
  207. ../src/libvirt-qemu.la \
  208. libvirt_shell.la
  209. virsh_CFLAGS = \
  210. $(AM_CFLAGS) \
  211. $(READLINE_CFLAGS)
  212. virt_admin_SOURCES = \
  213. virt-admin.c virt-admin.h \
  214. virt-admin-completer.c virt-admin-completer.h \
  215. $(NULL)
  216. virt_admin_LDFLAGS = \
  217. $(AM_LDFLAGS) \
  218. $(COVERAGE_LDFLAGS) \
  219. $(STATIC_BINARIES) \
  220. $(PIE_LDFLAGS) \
  221. $(NULL)
  222. virt_admin_LDADD = \
  223. ../src/libvirt-admin.la \
  224. libvirt_shell.la \
  225. $(LIBXML_LIBS) \
  226. $(NULL)
  227. virt_admin_CFLAGS = \
  228. $(AM_CFLAGS) \
  229. $(READLINE_CFLAGS)
  230. BUILT_SOURCES =
  231. if WITH_WIN_ICON
  232. virsh_LDADD += virsh_win_icon.$(OBJEXT)
  233. # Before you edit virsh_win_icon.rc, please note the following
  234. # limitations of the resource file format:
  235. #
  236. # (1) '..' is not permitted in the icon filename field.
  237. # (2) '-' is not permitted in the icon filename field.
  238. # (3) Comments are not permitted in the file.
  239. #
  240. # Windows appears to choose the first <= 32x32 icon it finds
  241. # in the resource file. Therefore you should list the available
  242. # icons from largest to smallest, and make sure that the 32x32
  243. # icon is the most legible.
  244. #
  245. # Windows .ICO is a special MS-only format. GIMP and other
  246. # tools can write it. However there are several variations,
  247. # and Windows seems to do its own colour quantization. More
  248. # information is needed in this area.
  249. virsh_win_icon.$(OBJEXT): virsh_win_icon.rc
  250. $(AM_V_GEN)$(WINDRES) \
  251. --input-format rc --input $< \
  252. --output-format coff --output $@
  253. endif WITH_WIN_ICON
  254. install-data-local: install-systemd install-nss \
  255. install-bash-completion
  256. uninstall-local: uninstall-systemd uninstall-nss \
  257. uninstall-bash-completion
  258. install-sysconfig:
  259. $(MKDIR_P) $(DESTDIR)$(sysconfdir)/sysconfig
  260. $(INSTALL_DATA) $(srcdir)/libvirt-guests.sysconf \
  261. $(DESTDIR)$(sysconfdir)/sysconfig/libvirt-guests
  262. uninstall-sysconfig:
  263. rm -f $(DESTDIR)$(sysconfdir)/sysconfig/libvirt-guests
  264. rmdir $(DESTDIR)$(sysconfdir)/sysconfig ||:
  265. EXTRA_DIST += libvirt-guests.sh.in
  266. libvirt-guests.sh: libvirt-guests.sh.in $(top_builddir)/config.status
  267. $(AM_V_GEN)sed \
  268. -e 's|[@]PACKAGE[@]|$(PACKAGE)|g' \
  269. -e 's|[@]bindir[@]|$(bindir)|g' \
  270. -e 's|[@]localedir[@]|$(localedir)|g' \
  271. -e 's|[@]localstatedir[@]|$(localstatedir)|g' \
  272. -e 's|[@]sbindir[@]|$(sbindir)|g' \
  273. -e 's|[@]sysconfdir[@]|$(sysconfdir)|g' \
  274. < $< > $@-t && \
  275. chmod a+x $@-t && \
  276. mv $@-t $@
  277. BUILT_SOURCES += libvirt-guests.sh
  278. EXTRA_DIST += libvirt-guests.service.in
  279. SYSTEMD_UNIT_DIR = $(prefix)/lib/systemd/system
  280. if LIBVIRT_INIT_SCRIPT_SYSTEMD
  281. install-systemd: libvirt-guests.service install-sysconfig libvirt-guests.sh
  282. $(MKDIR_P) $(DESTDIR)$(SYSTEMD_UNIT_DIR)
  283. $(INSTALL_DATA) libvirt-guests.service \
  284. $(DESTDIR)$(SYSTEMD_UNIT_DIR)/libvirt-guests.service
  285. uninstall-systemd: uninstall-sysconfig
  286. rm -f $(DESTDIR)$(SYSTEMD_UNIT_DIR)/libvirt-guests.service
  287. rmdir $(DESTDIR)$(SYSTEMD_UNIT_DIR) ||:
  288. BUILT_SOURCES += libvirt-guests.service
  289. else ! LIBVIRT_INIT_SCRIPT_SYSTEMD
  290. install-systemd:
  291. uninstall-systemd:
  292. endif ! LIBVIRT_INIT_SCRIPT_SYSTEMD
  293. libvirt-guests.service: libvirt-guests.service.in $(top_builddir)/config.status
  294. $(AM_V_GEN)sed \
  295. -e 's|[@]PACKAGE[@]|$(PACKAGE)|g' \
  296. -e 's|[@]bindir[@]|$(bindir)|g' \
  297. -e 's|[@]localedir[@]|$(localedir)|g' \
  298. -e 's|[@]localstatedir[@]|$(localstatedir)|g' \
  299. -e 's|[@]sbindir[@]|$(sbindir)|g' \
  300. -e 's|[@]sysconfdir[@]|$(sysconfdir)|g' \
  301. -e 's|[@]libexecdir[@]|$(libexecdir)|g' \
  302. < $< > $@-t && \
  303. mv $@-t $@
  304. if WITH_BASH_COMPLETION
  305. install-bash-completion:
  306. $(MKDIR_P) "$(DESTDIR)$(BASH_COMPLETIONS_DIR)"
  307. $(INSTALL_DATA) $(srcdir)/bash-completion/vsh \
  308. "$(DESTDIR)$(BASH_COMPLETIONS_DIR)/vsh"
  309. ( cd $(DESTDIR)$(BASH_COMPLETIONS_DIR) && \
  310. rm -f virsh virt-admin && \
  311. $(LN_S) vsh virsh && \
  312. $(LN_S) vsh virt-admin )
  313. uninstall-bash-completion:
  314. rm -f $(DESTDIR)$(BASH_COMPLETIONS_DIR)/vsh \
  315. $(DESTDIR)$(BASH_COMPLETIONS_DIR)/virsh \
  316. $(DESTDIR)$(BASH_COMPLETIONS_DIR)/virt-admin
  317. rmdir $(DESTDIR)$(BASH_COMPLETIONS_DIR) ||:
  318. else ! WITH_BASH_COMPLETION
  319. install-bash-completion:
  320. uninstall-bash-completion:
  321. endif ! WITH_BASH_COMPLETION
  322. EXTRA_DIST += wireshark/util/genxdrstub.pl
  323. if WITH_WIRESHARK_DISSECTOR
  324. ws_plugin_LTLIBRARIES = wireshark/src/libvirt.la
  325. wireshark_src_libvirt_la_CFLAGS = \
  326. -I wireshark/src $(WIRESHARK_DISSECTOR_CFLAGS) $(XDR_CFLAGS)
  327. wireshark_src_libvirt_la_LDFLAGS = -avoid-version -module
  328. wireshark_src_libvirt_la_SOURCES = \
  329. wireshark/src/packet-libvirt.h \
  330. wireshark/src/packet-libvirt.c \
  331. wireshark/src/plugin.c
  332. wireshark/src/packet-libvirt.c: wireshark/src/packet-libvirt.h \
  333. wireshark/src/libvirt/protocol.h
  334. WS_DISSECTOR_PROTO_FILES = \
  335. $(abs_top_srcdir)/src/remote/remote_protocol.x \
  336. $(abs_top_srcdir)/src/remote/qemu_protocol.x \
  337. $(abs_top_srcdir)/src/remote/lxc_protocol.x \
  338. $(abs_top_srcdir)/src/rpc/virkeepaliveprotocol.x
  339. wireshark/src/libvirt/protocol.h: wireshark/util/genxdrstub.pl \
  340. $(WS_DISSECTOR_PROTO_FILES)
  341. $(AM_V_GEN)$(MKDIR_P) wireshark/src/libvirt && \
  342. cd wireshark/src && \
  343. LIBVIRT_VERSION=$(LIBVIRT_VERSION) \
  344. $(PERL) $(abs_top_srcdir)/tools/wireshark/util/genxdrstub.pl \
  345. $(WS_DISSECTOR_PROTO_FILES)
  346. endif WITH_WIRESHARK_DISSECTOR
  347. if WITH_BSD_NSS
  348. LIBVIRT_NSS_SYMBOL_FILE = \
  349. $(srcdir)/nss/libvirt_nss_bsd.syms
  350. LIBVIRT_GUEST_NSS_SYMBOL_FILE = \
  351. $(LIBVIRT_NSS_SYMBOL_FILE)
  352. NSS_SO_VER = 1
  353. install-nss:
  354. ( cd $(DESTDIR)$(libdir) && \
  355. rm -f nss_libvirt.so.$(NSS_SO_VER) && \
  356. $(LN_S) libnss_libvirt.so.$(NSS_SO_VER) nss_libvirt.so.$(NSS_SO_VER) && \
  357. rm -f nss_libvirt_guest.so.$(NSS_SO_VER) && \
  358. $(LN_S) libnss_libvirt_guest.so.$(NSS_SO_VER) \
  359. nss_libvirt_guest.so.$(NSS_SO_VER))
  360. uninstall-nss:
  361. -rm -f $(DESTDIR)$(libdir)/nss_libvirt.so.$(NSS_SO_VER)
  362. -rm -f $(DESTDIR)$(libdir)/nss_libvirt_guest.so.$(NSS_SO_VER)
  363. else ! WITH_BSD_NSS
  364. LIBVIRT_NSS_SYMBOL_FILE = \
  365. $(srcdir)/nss/libvirt_nss.syms
  366. LIBVIRT_GUEST_NSS_SYMBOL_FILE = \
  367. $(srcdir)/nss/libvirt_guest_nss.syms
  368. NSS_SO_VER = 2
  369. install-nss:
  370. uninstall-nss:
  371. endif ! WITH_BSD_NSS
  372. LIBVIRT_NSS_SOURCES = \
  373. nss/libvirt_nss.c \
  374. nss/libvirt_nss.h \
  375. nss/libvirt_nss_leases.c \
  376. nss/libvirt_nss_leases.h \
  377. $(NULL)
  378. if WITH_NSS
  379. noinst_LTLIBRARIES += nss/libnss_libvirt_impl.la
  380. nss_libnss_libvirt_impl_la_SOURCES = \
  381. $(LIBVIRT_NSS_SOURCES)
  382. nss_libnss_libvirt_impl_la_CPPFLAGS = $(STANDALONE_CPPFLAGS)
  383. nss_libnss_libvirt_impl_la_CFLAGS = \
  384. -DLIBVIRT_NSS \
  385. $(YAJL_CFLAGS) \
  386. $(AM_CFLAGS) \
  387. $(NULL)
  388. nss_libnss_libvirt_impl_la_LIBADD = \
  389. $(YAJL_LIBS) \
  390. $(NULL)
  391. nss_libnss_libvirt_la_SOURCES =
  392. nss_libnss_libvirt_la_LDFLAGS = \
  393. $(VERSION_SCRIPT_FLAGS)$(LIBVIRT_NSS_SYMBOL_FILE) \
  394. $(AM_LDFLAGS) \
  395. -module \
  396. -export-dynamic \
  397. -avoid-version \
  398. -shared \
  399. -shrext .so.$(NSS_SO_VER)
  400. nss_libnss_libvirt_la_LIBADD = \
  401. nss/libnss_libvirt_impl.la
  402. nss_libnss_libvirt_la_DEPENDENCIES = \
  403. $(nss_libnss_libvirt_la_LIBADD) \
  404. $(LIBVIRT_NSS_SYMBOL_FILE)
  405. noinst_LTLIBRARIES += nss/libnss_libvirt_guest_impl.la
  406. nss_libnss_libvirt_guest_impl_la_SOURCES = \
  407. $(LIBVIRT_NSS_SOURCES) \
  408. nss/libvirt_nss_macs.h \
  409. nss/libvirt_nss_macs.c \
  410. $(NULL)
  411. nss_libnss_libvirt_guest_impl_la_CPPFLAGS = $(STANDALONE_CPPFLAGS)
  412. nss_libnss_libvirt_guest_impl_la_CFLAGS = \
  413. -DLIBVIRT_NSS \
  414. -DLIBVIRT_NSS_GUEST \
  415. $(YAJL_CFLAGS) \
  416. $(AM_CFLAGS) \
  417. $(NULL)
  418. nss_libnss_libvirt_guest_impl_la_LIBADD = \
  419. $(YAJL_LIBS) \
  420. $(NULL)
  421. nss_libnss_libvirt_guest_la_SOURCES =
  422. nss_libnss_libvirt_guest_la_LDFLAGS = \
  423. $(VERSION_SCRIPT_FLAGS)$(LIBVIRT_GUEST_NSS_SYMBOL_FILE) \
  424. $(AM_LDFLAGS) \
  425. -module \
  426. -export-dynamic \
  427. -avoid-version \
  428. -shared \
  429. -shrext .so.$(NSS_SO_VER)
  430. nss_libnss_libvirt_guest_la_LIBADD = \
  431. nss/libnss_libvirt_guest_impl.la
  432. nss_libnss_libvirt_guest_la_DEPENDENCIES = \
  433. $(nss_libnss_libvirt_guest_la_LIBADD) \
  434. $(LIBVIRT_GUEST_NSS_SYMBOL_FILE)
  435. lib_LTLIBRARIES = \
  436. nss/libnss_libvirt.la \
  437. nss/libnss_libvirt_guest.la
  438. endif WITH_NSS
  439. EXTRA_DIST += $(LIBVIRT_NSS_SOURCES) \
  440. $(srcdir)/nss/libvirt_nss.syms \
  441. $(srcdir)/nss/libvirt_nss_bsd.syms \
  442. $(srcdir)/nss/libvirt_guest_nss.syms
  443. clean-local:
  444. -rm -rf wireshark/src/libvirt
  445. CLEANFILES += $(bin_SCRIPTS)
  446. CLEANFILES += *.gcov .libs/*.gcda .libs/*.gcno *.gcno *.gcda *.i *.s
  447. DISTCLEANFILES += $(BUILT_SOURCES)