You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
533 B

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