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`
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`
9 .PHONY: all memcheck clean
13 tilda: tilda.o tilda-window.o tilda-terminal.o tomboykeybinder.o tomboyutil.o eggaccelerators.o
14 $(GCC) $(CFLAGS) $^ -o $@ $(ALL_LIBS)
17 $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
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)
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)
27 tomboykeybinder.o: tomboykeybinder.c tomboykeybinder.h
28 $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
30 tomboyutil.o: tomboyutil.c tomboyutil.h
31 $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
33 eggaccelerators.o: eggaccelerators.c eggaccelerators.h
34 $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
37 valgrind --tool=memcheck ./tilda
44 rm -f tilda-window-dbus-glue.h
45 rm -f tilda-terminal-dbus-glue.h
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 \
55 variant:string:'Bitstream Vera Sans Mono 14'
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 \
65 variant:string:'Bitstream Vera Sans Mono 10'