Frédéric Lécaille | aab6f7c | 2021-01-19 14:33:24 +0100 | [diff] [blame^] | 1 | CFLAGS = `pkg-config --cflags wireshark` -g -fPIC $(OPTS) |
William Lallemand | 2be58f7 | 2020-04-25 22:03:29 +0200 | [diff] [blame] | 2 | LDFLAGS = `pkg-config --libs wireshark` |
3 | |||||
4 | NAME = packet-happp.so | ||||
5 | OBJS = packet-happp.o | ||||
6 | |||||
7 | plugins=$(HOME)/.wireshark/plugins/ | ||||
8 | |||||
9 | $(NAME): $(OBJS) | ||||
10 | $(CC) -shared $(LDFLAGS) $(OBJS) -o $@ | ||||
11 | |||||
12 | install: $(NAME) | ||||
13 | install -d $(DESTDIR)$(plugins) | ||||
14 | install -m 0755 $(NAME) $(DESTDIR)$(plugins) | ||||
15 | |||||
16 | clean: | ||||
17 | rm $(NAME) $(OBJS) |