haproxy/contrib/wireshark-dissectors/peers/Makefile
Frédéric Lécaille aab6f7c3e6 MINOR: contrib: Make the wireshark peers dissector compile for more distribs.
With a 2.6.8 wireshark, this module could not compile because of ws_version.h
missing header. This patch offers the possibility to compile this plugin without
having to include this header. Furthermore with my wireshark version a
"plugin_release" object is required to make it be loaded by wireshark. This is
a string which seems to have to match a dotted string made of you wireshark
major and minor versions.
2021-01-19 15:22:35 +01:00

18 lines
365 B
Makefile

CFLAGS = `pkg-config --cflags wireshark` -g -fPIC $(OPTS)
LDFLAGS = `pkg-config --libs wireshark`
NAME = packet-happp.so
OBJS = packet-happp.o
plugins=$(HOME)/.wireshark/plugins/
$(NAME): $(OBJS)
$(CC) -shared $(LDFLAGS) $(OBJS) -o $@
install: $(NAME)
install -d $(DESTDIR)$(plugins)
install -m 0755 $(NAME) $(DESTDIR)$(plugins)
clean:
rm $(NAME) $(OBJS)