isi-wireshark-plugin/Makefile

25 lines
533 B
Makefile
Raw Normal View History

2011-01-05 00:29:56 +00:00
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}
2011-01-05 00:29:56 +00:00
.PHONEY: all clean install