summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 369980876edb132e90af58df2d59d8c4ae1dbfd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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

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: all clean install