CC=gcc
CFLAGS=-Wall -lm

all: off spiro bitmap home flut string esketch star post spiral erase mouse \
     snoopy.flut self.flut alan.flut heart.flut circle hpgl draw
spiro: spiro.c libesketch.c
spiral: spiral.c libesketch.c
off: off.c libesketch.c
home: home.c libesketch.c
bitmap: bitmap.c
flut: flut.c libesketch.c
string: string.c libesketch.c
esketch: esketch.c
star: star.c libesketch.c
post: post.c libesketch.c
erase: erase.c libesketch.c
circle: circle.c libesketch.c
hpgl: hpgl.c libesketch.c
draw: draw.c libesketch.c
	gcc draw.c libesketch.c -o draw `pkg-config --cflags --libs gtk+-2.0`
mouse: mouse.c
	gcc mouse.c libesketch.c -o mouse `pkg-config --cflags --libs gtk+-2.0`
snoopy.flut: snoopy.ps
	gs < snoopy.ps
self.flut: self.ps
	gs < self.ps
alan.flut: alan.ps
	gs < alan.ps
heart.flut: heart.ps
	gs < heart.ps
