Browse Source

wireshark provides a pkg-config file now

master
Sebastian Reichel 7 years ago
parent
commit
0d0f1085dc
2 changed files with 4 additions and 6 deletions
  1. +4
    -3
      Makefile
  2. +0
    -3
      config.mk

+ 4
- 3
Makefile View File

@ -1,6 +1,7 @@
include config.mk
CFLAGS +=-I${WIRESHARKDIR} -DHAVE_STDARG_H -DHAVE_CONFIG_H -g -Wall -Wno-unused
CFLAGS += -DHAVE_CONFIG_H -g -Wall -Wno-unused
PLUGINDIR := `pkg-config --variable=plugindir wireshark`
SOURCES := $(wildcard src/*.c)
OBJECTS := $(patsubst %.c, %.o, $(SOURCES))
@ -8,7 +9,7 @@ all: isi.so
%.o: %.c
@echo "[CC] $<"
@$(CC) -o $@ $(CFLAGS) `pkg-config --cflags glib-2.0` -c -fPIC $<
@$(CC) -o $@ $(CFLAGS) `pkg-config --cflags glib-2.0 wireshark` -c -fPIC $<
isi.so: $(OBJECTS)
@echo "[LD] $@"
@ -18,6 +19,6 @@ clean:
@rm -f isi.so $(OBJECTS)
install: isi.so
install -m 644 isi.so $(DESTDIR)${PREFIX}/${PLUGINDIR}
install -m 644 isi.so $(DESTDIR)/${PLUGINDIR}
.PHONEY: all clean install

+ 0
- 3
config.mk View File

@ -1,5 +1,2 @@
#use this to compile with USB support
#CFLAGS?=-DISI_USB
PREFIX?=/usr
PLUGINDIR?=lib/x86_64-linux-gnu/wireshark/libwireshark3/plugins
WIRESHARKDIR?=/usr/include/wireshark

Loading…
Cancel
Save