# Makefile

# was alles gemacht wird
all: turtle eins.ps

lex.yy.c: turtle.l
	flex turtle.l

turtle.tab.c turtle.tab.h: turtle.y
	bison -d -t -v turtle.y

turtle: lex.yy.c turtle.tab.c turtle.tab.h symtab.h symtab.c
	gcc lex.yy.c turtle.tab.c symtab.c -lfl -o turtle

eins.ps : eins.tlt turtle
	./turtle < eins.tlt > eins.ps
	@echo Done!

clean:
	rm -f turtle lex.yy.c turtle.tab.* *.output
	rm -f eins.ps
