summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2011-01-05 01:29:56 +0100
committerSebastian Reichel <sre@ring0.de>2011-01-05 01:29:56 +0100
commit33854ae4493107fdeae8771e523d58191175ba43 (patch)
tree3cf48333138eaf81a87ad085cf91ec8585df5d2f
parent4ddb2e8a07614d56226930661a5c2344f2734f84 (diff)
downloadisi-wireshark-plugin-33854ae4493107fdeae8771e523d58191175ba43.tar.bz2
update the build system
-rw-r--r--Makefile9
-rw-r--r--config.mk5
2 files changed, 9 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1a97d02..1de2deb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,7 @@
-CFLAGS+=-I/usr/include/wireshark -DHAVE_STDARG_H -DHAVE_CONFIG_H -g
-OBJECTS:=src/packet-isi.o src/plugin.o src/isi-sim.o src/isi-simauth.o src/isi-network.o src/isi-gps.o
+include config.mk
-PREFIX?=/usr
-PLUGINDIR?=lib/wireshark/libwireshark0/plugins
+CFLAGS+=-I${WIRESHARKDIR} -DHAVE_STDARG_H -DHAVE_CONFIG_H -g
+OBJECTS:=src/packet-isi.o src/plugin.o src/isi-sim.o src/isi-simauth.o src/isi-network.o src/isi-gps.o src/isi-ss.o src/isi-gss.o
all: isi.so
@@ -20,4 +19,4 @@ clean:
install: isi.so
install isi.so $(DESTDIR)${PREFIX}/${PLUGINDIR}
-.PHONEY: clean install
+.PHONEY: all clean install
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..d945c47
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,5 @@
+#use this to compile with USB support
+#CFLAGS?=-DISI_USB
+PREFIX?=/usr
+PLUGINDIR?=lib/wireshark/libwireshark0/plugins
+WIRESHARKDIR?=/usr/include/wireshark