diff options
author | Sebastian Reichel <sre@ring0.de> | 2011-05-29 16:12:51 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2011-05-29 16:12:51 +0200 |
commit | 7abe742e442f6a90be72c98c5b7b55d426e0fe7b (patch) | |
tree | 307e7e30b8fe404f47bf40c70ef9f01dccb77f66 | |
parent | 96055cbffb48d73f9bcea4159ce77ecf455d84cb (diff) | |
download | isi-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-- | Makefile | 25 |
1 files changed, 4 insertions, 21 deletions
@@ -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} |