X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=Makefile;h=1a5179c1a8e350b294d481602fdcfd82ccf3fc00;hb=2b17e21d2ac627242479945521f7a8e65c51d5b5;hp=1396ced943e4d3afb62f2c2c1602817b8a7c54d8;hpb=4e526888171b87e4716b6b8b4c5dba39d42d8f79;p=tilda-gobject.git diff --git a/Makefile b/Makefile index 1396ced..1a5179c 100644 --- a/Makefile +++ b/Makefile @@ -1,37 +1,75 @@ GCC=gcc -CFLAGS=-ggdb -O1 -pipe + +# Normal CFLAGS +CFLAGS=-ggdb -O1 -pipe -Wall -DDEBUG=1 +LDFLAGS=-Wl,-O1 -Wl,--sort-common -Wl,--as-needed +#CFLAGS=-ggdb -O1 -pipe -DDEBUG=1 -ffunction-sections -fdata-sections +#LDFLAGS=-Wl,--gc-sections -Wl,--print-gc-sections 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-tt memcheck-tw memcheck clean +.PHONY: all memcheck clean -all: tilda-window +all: tilda -tilda-window: tilda-window.o tilda-terminal.o - $(GCC) $(CFLAGS) $^ -o $@ $(ALL_LIBS) +tilda: tilda.o tilda-controller.o tilda-window.o tilda-terminal.o tomboykeybinder.o tomboyutil.o eggaccelerators.o + $(GCC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(ALL_LIBS) -tilda-window.o: tilda-window.c tilda-window.h +tilda.o: tilda.c tilda.h $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS) -tilda-terminal: tilda-terminal.o - $(GCC) $(CFLAGS) $^ -o $@ $(ALL_LIBS) +tilda-controller.o: tilda-controller.c tilda-controller.h tilda-controller.xml + dbus-binding-tool --mode=glib-server --prefix=tilda_controller tilda-controller.xml > tilda-controller-dbus-glue.h + $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS) -tilda-terminal.o: tilda-terminal.c tilda-terminal.h +tilda-window.o: tilda-window.c tilda-window.h tilda-window.xml + dbus-binding-tool --mode=glib-server --prefix=tilda_window tilda-window.xml > tilda-window-dbus-glue.h $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS) -memcheck-tw: tilda-window - valgrind --tool=memcheck ./tilda-window +tilda-terminal.o: tilda-terminal.c tilda-terminal.h tilda-terminal.xml + dbus-binding-tool --mode=glib-server --prefix=tilda_terminal tilda-terminal.xml > tilda-terminal-dbus-glue.h + $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS) -memcheck-tt: tilda-terminal - valgrind --tool=memcheck ./tilda-terminal +tomboykeybinder.o: tomboykeybinder.c tomboykeybinder.h + $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS) -memcheck: memcheck-tt memcheck-tw +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 + valgrind --tool=memcheck ./tilda clean: rm -f *.o rm -f tilda-window rm -f tilda-terminal + rm -f tilda + rm -f tilda-controller-dbus-glue.h + 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'