#
# make file for lex, yacc, and c stuff to decode and format don's
# data file format for pie menu's experiment
#

all: cruncher.o y.tab.o
	cc -o cruncher cruncher.o y.tab.o -ll -ly

cruncher.o: cruncher.c
	cc -c cruncher.c

y.tab.o: y.tab.c lex.yy.c
	cc -c y.tab.c

y.tab.c: cruncher.y
	yacc -vd cruncher.y

lex.yy.c: cruncher.lex
	lex cruncher.lex

cleanup:
	rm -f *.CKP *.bak *.o .emacs*