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`
7 ALL_LIBS=`pkg-config --libs gtk+-2.0 vte`
9 .PHONY: all memcheck-tt memcheck-tw memcheck clean
11 all: tilda-window tilda-terminal
13 tilda-window: tilda-window.o
14 $(GCC) $(CFLAGS) $^ -o $@ $(GOBJ_LIBS)
16 tilda-window.o: tilda-window.c tilda-window.h
17 $(GCC) $(CFLAGS) -c -o $@ $< $(GOBJ_CFLAGS)
19 tilda-terminal: tilda-terminal.o
20 $(GCC) $(CFLAGS) $^ -o $@ $(ALL_LIBS)
22 tilda-terminal.o: tilda-terminal.c tilda-terminal.h
23 $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
25 memcheck-tw: tilda-window
26 valgrind --tool=memcheck ./tilda-window
28 memcheck-tt: tilda-terminal
29 valgrind --tool=memcheck ./tilda-terminal
31 memcheck: memcheck-tt memcheck-tw