mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-22 22:13:18 +00:00
f1cc0164ba
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Neal Gompa <ngompa13@gmail.com>
51 lines
2.0 KiB
Makefile
51 lines
2.0 KiB
Makefile
## Copyright (C) 2005-2016 Red Hat, Inc.
|
|
## Copyright (C) 2013 Yuto KAWAMURA(kawamuray) <kawamuray.dadada@gmail.com>
|
|
##
|
|
## This library is free software; you can redistribute it and/or
|
|
## modify it under the terms of the GNU Lesser General Public
|
|
## License as published by the Free Software Foundation; either
|
|
## version 2.1 of the License, or (at your option) any later version.
|
|
##
|
|
## This library is distributed in the hope that it will be useful,
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
## Lesser General Public License for more details.
|
|
##
|
|
## You should have received a copy of the GNU Lesser General Public
|
|
## License along with this library. If not, see
|
|
## <http://www.gnu.org/licenses/>.
|
|
|
|
# We do not want to accidentally include stuff from src/
|
|
# dir or public API dir. Specific files can
|
|
# still be included via their path relative to the root if
|
|
# needed
|
|
if WITH_WIRESHARK_DISSECTOR
|
|
|
|
ws_plugin_LTLIBRARIES = wireshark/src/libvirt.la
|
|
wireshark_src_libvirt_la_CFLAGS = \
|
|
-I wireshark/src $(WIRESHARK_DISSECTOR_CFLAGS) $(XDR_CFLAGS) $(AM_CFLAGS)
|
|
wireshark_src_libvirt_la_LDFLAGS = -avoid-version -module
|
|
wireshark_src_libvirt_la_SOURCES = \
|
|
wireshark/src/packet-libvirt.h \
|
|
wireshark/src/packet-libvirt.c \
|
|
wireshark/src/plugin.c
|
|
|
|
wireshark/src/packet-libvirt.c: wireshark/src/packet-libvirt.h \
|
|
wireshark/src/libvirt/protocol.h
|
|
|
|
WS_DISSECTOR_PROTO_FILES = \
|
|
$(abs_top_srcdir)/src/remote/remote_protocol.x \
|
|
$(abs_top_srcdir)/src/remote/qemu_protocol.x \
|
|
$(abs_top_srcdir)/src/remote/lxc_protocol.x \
|
|
$(abs_top_srcdir)/src/rpc/virkeepaliveprotocol.x
|
|
|
|
wireshark/src/libvirt/protocol.h: wireshark/util/genxdrstub.pl \
|
|
$(WS_DISSECTOR_PROTO_FILES)
|
|
$(AM_V_GEN)$(MKDIR_P) wireshark/src/libvirt && \
|
|
cd wireshark/src && \
|
|
LIBVIRT_VERSION=$(LIBVIRT_VERSION) \
|
|
$(PERL) $(abs_top_srcdir)/tools/wireshark/util/genxdrstub.pl \
|
|
$(WS_DISSECTOR_PROTO_FILES)
|
|
|
|
endif WITH_WIRESHARK_DISSECTOR
|