CFLAGS=`gtk-config --cflags`

all: hello

hello: hello.o stubgtk.o
	gcc -ggdb -o $@ $+ `sh ../stubby-config --libs`

stubgtk.c: stubgtk.stub stubgtk.auto.stub
	../stubby -L ../lib -o $@ $<

stubgtk.auto.stub:
	../stubby-auto -Pstubgtk `gtk-config --libs gtk` > $@

clean:
	-rm stubgtk.c stubgtk.auto.stub *.o *~ hello