GCC=gcc
-CFLAGS=-ggdb -O1 -pipe
+CFLAGS=-ggdb -O1 -pipe -DDEBUG=1
GOBJ_CFLAGS=`pkg-config --cflags gobject-2.0`
GOBJ_LIBS=`pkg-config --libs gobject-2.0`
-ALL_CFLAGS=`pkg-config --cflags gtk+-2.0 vte`
-ALL_LIBS=`pkg-config --libs gtk+-2.0 vte`
+ALL_CFLAGS=`pkg-config --cflags gtk+-2.0 vte dbus-glib-1`
+ALL_LIBS=`pkg-config --libs gtk+-2.0 vte dbus-glib-1`
.PHONY: all memcheck clean
all: tilda
-tilda: tilda.o tilda-window.o tilda-terminal.o
+tilda: tilda.o tilda-window.o tilda-terminal.o tomboykeybinder.o tomboyutil.o eggaccelerators.o
$(GCC) $(CFLAGS) $^ -o $@ $(ALL_LIBS)
tilda.o: tilda.c
$(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
tilda-window.o: tilda-window.c tilda-window.h
+ dbus-binding-tool --mode=glib-server --prefix=tilda_window tilda-window.xml > tilda-window-dbus-glue.h
$(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
tilda-terminal.o: tilda-terminal.c tilda-terminal.h
+ dbus-binding-tool --mode=glib-server --prefix=tilda_terminal tilda-terminal.xml > tilda-terminal-dbus-glue.h
+ $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
+
+tomboykeybinder.o: tomboykeybinder.c tomboykeybinder.h
+ $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
+
+tomboyutil.o: tomboyutil.c tomboyutil.h
+ $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
+
+eggaccelerators.o: eggaccelerators.c eggaccelerators.h
$(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
memcheck: tilda
rm -f tilda-window
rm -f tilda-terminal
rm -f tilda
+ rm -f tilda-window-dbus-glue.h
+ rm -f tilda-terminal-dbus-glue.h
+
+boost-font:
+ @echo "Only run this when tilda is running, it attempts to send a message"
+ @echo "to the running tilda process to boost the font size"
+ dbus-send --print-reply \
+ --dest=net.sourceforge.Tilda /net/sourceforge/Tilda/Window0/Terminal0 \
+ org.freedesktop.DBus.Properties.Set \
+ string:'' \
+ string:font \
+ variant:string:'Bitstream Vera Sans Mono 14'
+shrink-font:
+ @echo "Only run this when tilda is running, it attempts to send a message"
+ @echo "to the running tilda process to shrink the font size"
+ dbus-send --print-reply \
+ --dest=net.sourceforge.Tilda /net/sourceforge/Tilda/Window0/Terminal0 \
+ org.freedesktop.DBus.Properties.Set \
+ string:'' \
+ string:font \
+ variant:string:'Bitstream Vera Sans Mono 10'