summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2011-05-29 16:12:51 +0200
committerSebastian Reichel <sre@ring0.de>2011-05-29 16:12:51 +0200
commit7abe742e442f6a90be72c98c5b7b55d426e0fe7b (patch)
tree307e7e30b8fe404f47bf40c70ef9f01dccb77f66
parent96055cbffb48d73f9bcea4159ce77ecf455d84cb (diff)
downloadisi-wireshark-plugin-7abe742e442f6a90be72c98c5b7b55d426e0fe7b.tar.bz2
update Makefile
* build all c files from src/ into the shared object * add -Wall -Wno-unused to the cflags before building
-rw-r--r--Makefile25
1 files changed, 4 insertions, 21 deletions
diff --git a/Makefile b/Makefile
index 8e83fca..e454469 100644
--- a/Makefile
+++ b/Makefile
@@ -1,25 +1,8 @@
include config.mk
-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 \
- src/isi-sms.o \
- src/isi-mtc.o \
- src/isi-nameservice.o \
- src/isi-radiosettings.o \
- src/isi-phoneinfo.o \
- src/isi-call.o \
- src/isi-light.o \
- src/isi-commgr.o \
- src/isi-gpds.o \
- src/isi-pipe.o \
- src/isi-selftest.o
+CFLAGS +=-I${WIRESHARKDIR} -DHAVE_STDARG_H -DHAVE_CONFIG_H -g -Wall -Wno-unused
+SOURCES := $(wildcard src/*.c)
+OBJECTS := $(patsubst %.c, %.o, $(SOURCES))
all: isi.so
@@ -32,7 +15,7 @@ isi.so: $(OBJECTS)
@$(CC) -o $@ -shared -Wl,-soname,$@ $^
clean:
- @rm -f isi.so src/*.o
+ @rm -f isi.so $(OBJECTS)
install: isi.so
install isi.so $(DESTDIR)${PREFIX}/${PLUGINDIR}