From 7abe742e442f6a90be72c98c5b7b55d426e0fe7b Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Sun, 29 May 2011 16:12:51 +0200 Subject: update Makefile * build all c files from src/ into the shared object * add -Wall -Wno-unused to the cflags before building --- Makefile | 25 ++++--------------------- 1 file 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} -- cgit v1.2.3