2021-01-19 13:33:24 +00:00
|
|
|
CFLAGS = `pkg-config --cflags wireshark` -g -fPIC $(OPTS)
|
2020-04-25 20:03:29 +00:00
|
|
|
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)
|