2011-01-05 00:29:56 +00:00
|
|
|
include config.mk
|
2010-12-29 20:42:55 +00:00
|
|
|
|
2014-03-19 20:28:17 +00:00
|
|
|
CFLAGS += -DHAVE_CONFIG_H -g -Wall -Wno-unused
|
|
|
|
PLUGINDIR := `pkg-config --variable=plugindir wireshark`
|
2011-05-29 14:12:51 +00:00
|
|
|
SOURCES := $(wildcard src/*.c)
|
|
|
|
OBJECTS := $(patsubst %.c, %.o, $(SOURCES))
|
2010-12-29 20:42:55 +00:00
|
|
|
|
|
|
|
all: isi.so
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
@echo "[CC] $<"
|
2014-03-19 20:28:17 +00:00
|
|
|
@$(CC) -o $@ $(CFLAGS) `pkg-config --cflags glib-2.0 wireshark` -c -fPIC $<
|
2010-12-29 20:42:55 +00:00
|
|
|
|
|
|
|
isi.so: $(OBJECTS)
|
|
|
|
@echo "[LD] $@"
|
|
|
|
@$(CC) -o $@ -shared -Wl,-soname,$@ $^
|
|
|
|
|
|
|
|
clean:
|
2011-05-29 14:12:51 +00:00
|
|
|
@rm -f isi.so $(OBJECTS)
|
2010-12-29 20:42:55 +00:00
|
|
|
|
|
|
|
install: isi.so
|
2014-03-19 20:28:17 +00:00
|
|
|
install -m 644 isi.so $(DESTDIR)/${PLUGINDIR}
|
2010-12-29 20:42:55 +00:00
|
|
|
|
2011-01-05 00:29:56 +00:00
|
|
|
.PHONEY: all clean install
|