#
#
# Some Examples in ATS involving GTK+ programming
#
#

######

ATSCC=$(or $(ATSHOME), "/usr")/bin/atscc
ATSOPT=$(or $(ATSHOME), "/usr")/bin/atsopt
XRFLAGS=`pkg-config cairo --cflags --libs`
GTKFLAGS=`pkg-config gtk+-2.0 --cflags --libs`

######

.PHONY: all
all: checkall

######

checkall:: compall cleanall

compall:: \
  stroke-image.dats \
  testcairo \

######

stroke-image: stroke-image.dats
	$(ATSCC) -o $@ stroke-image.dats $(GTKFLAGS)

######

testcairo: testcairo.dats
	$(ATSCC) -o $@ testcairo.dats $(GTKFLAGS)

######

clean::
	rm -f *_dats.c *_sats.c *~

cleanall:: clean
	rm -f stroke-image
	rm -f testcairo

###### end of [Makefile] ######
