bump up version number
[mancala] / src / plugin / Makefile
1 # GNU Makefile -- Makefile
2 # 2009 Reto Zingg
3
4 CC = gcc
5 DBG = gdb
6 STD = _GNU_SOURCE
7 CFLAGS = `pkg-config hildon-1 --cflags` -I/usr/include/dbus-1.0/ -I/usr/lib/dbus-1.0/include/
8 LFLAGS =  -shared `pkg-config hildon-1 --libs`
9
10 MAIN_OBJ = mancala-ui-plugin.o
11
12
13
14 #'$<' is filename of input, '$@' is filename of output
15 .c.o:
16         $(CC) -c -g$(DBG) -Wall $(CFLAGS) -D$(STD) $<
17 .h.o:
18         $(CC) -c -g$(DBG) -Wall $(CFLAGS) -D$(STD) $<
19
20 all:    $(MAIN_OBJ)
21         $(CC) $(LFLAGS) $(MAIN_OBJ) -o mancala-ui-plugin.so
22
23 install:        all
24         mkdir -p $(DESTDIR)/home/opt/mancala/plugin/
25         cp mancala-ui-plugin.so $(DESTDIR)/home/opt/mancala/plugin/
26
27 clean:
28         rm -f *.o *.core *.swp *~ *.log
29
30 clobber:        clean
31         rm -f mancala-ui-plugin.so
32
33
34