# OK, OK. This Makefile includes some ugly hard-coded paths.  Yes, I
# am planning on using some real build environment such as autoconf
# eventually. For now, change whatever you need to here:

LDFLAGS = -L/usr/X11R6/lib -lX11 -lXtst
CFLAGS  = -g -Wall

.PHONY: all clean

all: xstroke

xstroke: xstroke.o stroke_rec.o rec_file.o rec_node.o xmalloc.o stroke.o
	${CC} -o $@ $^ ${LDFLAGS}

stroke.o: stroke.h

xstroke.o: xmalloc.h rec_node.h rec_file.h stroke_rec.h

rec_node.o: rec_node.h xmalloc.h

rec_file.o: rec_node.h rec_file.h xmalloc.h

xmalloc.o: xmalloc.h

clean:
	rm -f fstroke xstroke *.o
