summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2010-12-29 21:42:55 +0100
committerSebastian Reichel <sre@ring0.de>2010-12-29 21:42:55 +0100
commit8588f347d9f9e79ee7ee29529b5b8a000f14bdee (patch)
tree729008ab5d338bb20c6e42b0426d1107b20f2c39 /Makefile
downloadisi-wireshark-plugin-8588f347d9f9e79ee7ee29529b5b8a000f14bdee.tar.bz2
import the ISI wireshark plugin from libisi
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8c52e4e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+CFLAGS+=-I/usr/include/wireshark -DHAVE_STDARG_H -DHAVE_CONFIG_H -g
+OBJECTS:=src/packet-isi.o src/plugin.o src/isi-simauth.o src/isi-gps.o
+
+PREFIX?=/usr
+PLUGINDIR?=lib/wireshark/libwireshark0/plugins
+
+all: isi.so
+
+%.o: %.c
+ @echo "[CC] $<"
+ @$(CC) -o $@ $(CFLAGS) `pkg-config --cflags glib-2.0` -c -fPIC $<
+
+isi.so: $(OBJECTS)
+ @echo "[LD] $@"
+ @$(CC) -o $@ -shared -Wl,-soname,$@ $^
+
+clean:
+ @rm -f isi.so src/*.o
+
+install: isi.so
+ install isi.so $(DESTDIR)${PREFIX}/${PLUGINDIR}
+
+.PHONEY: clean install