This repository has been archived by the owner on May 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathMakefile.am
81 lines (65 loc) · 2.25 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Makefile.am
# Automake file for Pyreshark plugin (https://github.com/ashdnazg/pyreshark)
#
# Copyright (c) 2013 by Eshed Shaham
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
INCLUDES = -I$(top_srcdir) -I$(includedir)
VERSION_MAJOR = $(word 1, $(subst ., ,$(VERSION)))
VERSION_MINOR = $(word 2, $(subst ., ,$(VERSION)))
include Makefile.common
if HAVE_WARNINGS_AS_ERRORS
AM_CFLAGS = -Werror
endif
plugindir = @plugindir@
pythondir = $(datadir)/wireshark/python
pythonsubdirs = $(pythondir)/cal $(pythondir)/protocols
plugin_LTLIBRARIES = pyreshark.la
pyreshark_la_SOURCES = \
plugin.c \
moduleinfo.h \
$(DISSECTOR_SRC) \
$(DISSECTOR_SUPPORT_SRC) \
$(DISSECTOR_INCLUDES)
pyreshark_la_LDFLAGS = -module -avoid-version --export-symbols pyreshark.def
pyreshark_la_LIBADD = @PLUGIN_LIBS@
# Libs must be cleared, or else libtool won't create a shared module.
# If your module needs to be linked against any particular libraries,
# add them here.
LIBS =
CLEANFILES = \
pyreshark \
*~
MAINTAINERCLEANFILES = \
Makefile.in
EXTRA_DIST = \
Makefile.common \
Makefile.nmake \
moduleinfo.nmake \
plugin.rc.in \
CMakeLists.txt
all: all-am ws_consts ws_types
ws_consts:
$(PYTHON) generate_ws_consts.py python/cal/ws_consts.py
ws_types:
cp templates/ws_types.py.$(VERSION_MAJOR)_$(VERSION_MINOR) python/cal/ws_types.py
install-data-am: install-pluginLTLIBRARIES install-python
install-python:
$(MKDIR_P) $(datadir)/wireshark
cp -fR python $(datadir)/wireshark/
chmod -R a+r $(pythondir)
checkapi:
$(PERL) $(top_srcdir)/tools/checkAPIs.pl -g abort -g termoutput -build $(DISSECTOR_SRC) $(DISSECTOR_INCLUDES)