~inspirated/pidgin-countdown/krkhan

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CFLAGS=`pkg-config --cflags glib-2.0`
CFLAGS+=`pkg-config --cflags gtk+-2.0`
CFLAGS+=`pkg-config --cflags pidgin`
CFLAGS+= -fPIC
LDFLAGS=`pkg-config --libs glib-2.0`
LDFLAGS+=`pkg-config --libs pidgin`

countdown.so: countdown.o
	gcc $(LDFLAGS) -shared -g -o $@ $?

countdown.o: countdown.c
	gcc -c $(CFLAGS) -g -o $@ $?

clean:
	rm -f countdown.so
	rm -f countdown.o

install:
	cp countdown.so ~/.purple/plugins/