# makefile for karl's PD fortune cookie program
# edited and bugfixed for SAS/C [JöG]

all: cookie cookhash

onecookie:
	echo "Onecookie won't work with this \
			version of the cookie program. Sorry."

cookie: cookie.o
	$(CC) LINK cookie.o

cookie.o: cookie.c cookie.h

cookhash: cookhash.o
	$(CC) LINK cookhash.o

cookhash.o: cookhash.c

cookhash.c: cookhash.lex
	flex -t -v cookhash.lex >cookhash.c
