25 lines
533 B
Makefile
25 lines
533 B
Makefile
include config.mk
|
|
|
|
CFLAGS += -DHAVE_CONFIG_H -g -Wall -Wno-unused
|
|
PLUGINDIR := `pkg-config --variable=plugindir wireshark`
|
|
SOURCES := $(wildcard src/*.c)
|
|
OBJECTS := $(patsubst %.c, %.o, $(SOURCES))
|
|
|
|
all: isi.so
|
|
|
|
%.o: %.c
|
|
@echo "[CC] $<"
|
|
@$(CC) -o $@ $(CFLAGS) `pkg-config --cflags glib-2.0 wireshark` -c -fPIC $<
|
|
|
|
isi.so: $(OBJECTS)
|
|
@echo "[LD] $@"
|
|
@$(CC) -o $@ -shared -Wl,-soname,$@ $^
|
|
|
|
clean:
|
|
@rm -f isi.so $(OBJECTS)
|
|
|
|
install: isi.so
|
|
install -m 644 isi.so $(DESTDIR)/${PLUGINDIR}
|
|
|
|
.PHONEY: all clean install
|