mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-24 21:52:17 +00:00
2be58f7584
The wireshark dissector could only be build within wireshark, which means maintaining a wireshark binary just for this dissector. It was not really convenient to update wireshark because of this. This patch converts the dissector into a .so plugin which is built with the .h found in distributions instead of the whole wireshark sources.
18 lines
356 B
Makefile
18 lines
356 B
Makefile
CFLAGS = `pkg-config --cflags wireshark` -g -fPIC
|
|
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)
|