# Makefile for gtk tests

# Locate the gtk/gdk libraries
CFLAGS = -g -O -Wall -DVERSION='"$(VERSION)"'
G2FLAGS := $(shell pkg-config --cflags gtk+-2.0 gdk-2.0 2> /dev/null)
CFLAGS := $(CFLAGS) $(G2FLAGS)

GLIBS := $(shell if test "${G2FLAGS}"; then pkg-config --libs gdk-pixbuf-2.0 gtk+-2.0 gdk-2.0; else gdk-pixbuf-config --libs; fi)

gtktest: gtktest.o
	$(CC) -o $@ gtktest.o $(GLIBS) $(LDFLAGS)

