From 2637899ed71db1c49386c991736d3615a4bd5b0c Mon Sep 17 00:00:00 2001 From: "Chen, Chien-ting" Date: Mon, 21 May 2018 00:13:18 +0800 Subject: [PATCH] Create Makefile --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Makefile 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