[Window] Bugfixes in pull() code
[tilda-gobject.git] / Makefile
1 GCC=gcc
2 CFLAGS=-ggdb -O1 -pipe -DDEBUG=1
3 GOBJ_CFLAGS=`pkg-config --cflags gobject-2.0`
4 GOBJ_LIBS=`pkg-config --libs gobject-2.0`
5
6 ALL_CFLAGS=`pkg-config --cflags gtk+-2.0 vte dbus-glib-1`
7 ALL_LIBS=`pkg-config --libs gtk+-2.0 vte dbus-glib-1`
8
9 .PHONY: all memcheck clean
10
11 all: tilda
12
13 tilda: tilda.o tilda-window.o tilda-terminal.o tomboykeybinder.o tomboyutil.o eggaccelerators.o
14         $(GCC) $(CFLAGS) $^ -o $@ $(ALL_LIBS)
15
16 tilda.o: tilda.c
17         $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
18
19 tilda-window.o: tilda-window.c tilda-window.h
20         dbus-binding-tool --mode=glib-server --prefix=tilda_window tilda-window.xml > tilda-window-dbus-glue.h
21         $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
22
23 tilda-terminal.o: tilda-terminal.c tilda-terminal.h
24         dbus-binding-tool --mode=glib-server --prefix=tilda_terminal tilda-terminal.xml > tilda-terminal-dbus-glue.h
25         $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
26
27 tomboykeybinder.o: tomboykeybinder.c tomboykeybinder.h
28         $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
29
30 tomboyutil.o: tomboyutil.c tomboyutil.h
31         $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
32
33 eggaccelerators.o: eggaccelerators.c eggaccelerators.h
34         $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
35
36 memcheck: tilda
37         valgrind --tool=memcheck ./tilda
38
39 clean:
40         rm -f *.o
41         rm -f tilda-window
42         rm -f tilda-terminal
43         rm -f tilda
44         rm -f tilda-window-dbus-glue.h
45         rm -f tilda-terminal-dbus-glue.h
46
47 boost-font:
48         @echo "Only run this when tilda is running, it attempts to send a message"
49         @echo "to the running tilda process to boost the font size"
50         dbus-send --print-reply \
51                   --dest=net.sourceforge.Tilda /net/sourceforge/Tilda/Window0/Terminal0 \
52                   org.freedesktop.DBus.Properties.Set \
53                   string:'' \
54                   string:font \
55                   variant:string:'Bitstream Vera Sans Mono 14'
56
57 shrink-font:
58         @echo "Only run this when tilda is running, it attempts to send a message"
59         @echo "to the running tilda process to shrink the font size"
60         dbus-send --print-reply \
61                   --dest=net.sourceforge.Tilda /net/sourceforge/Tilda/Window0/Terminal0 \
62                   org.freedesktop.DBus.Properties.Set \
63                   string:'' \
64                   string:font \
65                   variant:string:'Bitstream Vera Sans Mono 10'