aboutsummaryrefslogtreecommitdiffstats
path: root/doc/plugins.example/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'doc/plugins.example/Makefile.am')
-rw-r--r--doc/plugins.example/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/plugins.example/Makefile.am b/doc/plugins.example/Makefile.am
index 1b9b5b0d27..b477e13933 100644
--- a/doc/plugins.example/Makefile.am
+++ b/doc/plugins.example/Makefile.am
@@ -23,17 +23,21 @@ WARNFLAGS = -Wall -Wextra
plugindir := $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --define-variable=libdir=$(libdir) --variable plugindir wireshark)
+release_version := $(notdir $(plugindir))
+
plugin_LTLIBRARIES = hello.la
hello_la_SOURCES = hello.c
+hello_la_CPPFLAGS = -DVERSION_RELEASE=\"$(release_version)\"
+
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/$(notdir $(plugindir))
+homedir = $${HOME}/.local/lib/wireshark/plugins/$(release_version)
install-home:
$(MKDIR_P) $(homedir) || exit 1; \