# 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 -lXt -lXpm
CFLAGS  = -g -Wall

.PHONY: all clean

all: fstroke

fstroke: fscrib.o stroke_rec.o rec_file.o rec_node.o xmalloc.o stroke.o MinScr.o
	${CC} -o fstroke $^ ${LDFLAGS}

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

fscrib.o: stroke_rec.h rec-interface.h MinScr.h

MinScr.o: MinScr.h MinScrP.h

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
