aboutsummaryrefslogtreecommitdiffstats
path: root/doc/plugins.example
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2018-05-21 16:50:41 +0100
committerJoão Valverde <j@v6e.pt>2018-05-21 15:55:56 +0000
commitec421a07b5dc7ae7490755b037417530b7db0a66 (patch)
tree8a4076060572ad71d85ab18f55681d674b2bab9e /doc/plugins.example
parentdbd99f8998798a031eec97878c8e931ad617be38 (diff)
Restore doc/plugins.example Makefile.am
This file was erroneously removed in 4a156da068269aae75d79cd08e579754c52a0c43. This file is not part of Wireshark's (the application) build system. We may want to convert the example to use CMake instead (purely for consistency) but until then configure.ac and Makefile.am are required files. Change-Id: I7902ff71a44bba798e8dc7083103d4785095b374 Reviewed-on: https://code.wireshark.org/review/27684 Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'doc/plugins.example')
-rw-r--r--doc/plugins.example/Makefile.am34
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/plugins.example/Makefile.am b/doc/plugins.example/Makefile.am
new file mode 100644
index 0000000000..10abf565e8
--- /dev/null
+++ b/doc/plugins.example/Makefile.am
@@ -0,0 +1,34 @@
+# Makefile.am
+#
+# Wireshark - Network traffic analyzer
+# By Gerald Combs <gerald@wireshark.org>
+# Copyright 1998 Gerald Combs
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+
+WARNFLAGS = -Wall -Wextra
+
+plugindir := $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --define-variable=libdir=$(libdir) --variable plugindir wireshark)
+
+epan_plugindir = $(plugindir)/epan
+
+VERSION_RELEASE := $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --variable VERSION_RELEASE wireshark)
+
+epan_plugin_LTLIBRARIES = hello.la
+
+hello_la_SOURCES = hello.c
+
+hello_la_CPPFLAGS = -DVERSION_RELEASE=\"$(VERSION_RELEASE)\"
+
+hello_la_CFLAGS = $(WIRESHARK_CFLAGS) -fvisibility=hidden $(WARNFLAGS)
+
+hello_la_LDFLAGS = -module -avoid-version -shared
+
+hello_la_LIBADD = $(WIRESHARK_LIBS)
+
+homedir = $${HOME}/.local/lib/wireshark/plugins/$(VERSION_RELEASE)/epan
+
+install-home:
+ $(MKDIR_P) $(homedir) || exit 1; \
+ $(INSTALL) $(builddir)/.libs/hello.so $(homedir)