LIBS = $(shell gtk-config --libs)
FLAGS = $(shell gtk-config --cflags)
BITPIX = gdk_bitmap_create_from_pixmap

sample: sample.c $(BITPIX).o $(BITPIX).h
	gcc -Wall -g $(LIBS) $(FLAGS) -o sample sample.c $(BITPIX).o

gdk_bitmap_create_from_pixmap.o: $(BITPIX).c $(BITPIX).h
	gcc -Wall -g $(FLAGS) -c $(BITPIX).c

clean:
	@ 2>&- rm sample $(BITPIX).o || true