diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..88b67f8 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +CC=gcc +OUTPUT=interp + +all: y.tab.c lex.yy.c + $(CC) -o $(OUTPUT) y.tab.c lex.yy.c + +y.tab.c: interp.y + bison -vdty interp.y + +lex.yy.c: interp.l + flex interp.l