Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81350 / parser / Makefile
diff options
context:
space:
mode:
1 files changed, 13 insertions, 0 deletions
-rw-r--r--homework/81350/parser/Makefile13
diff --git a/homework/81350/parser/Makefile b/homework/81350/parser/Makefile
new file mode 100644
index 0000000..ceb9963
--- /dev/null
+++ b/homework/81350/parser/Makefile
@@ -0,0 +1,13 @@
+all: parser
+
+parser: parser.tab.c parser.tab.h stack.c stack.h lex.yy.c
+ gcc lex.yy.c parser.tab.c stack.c -lfl -o parser
+
+parser.tab.c parser.tab.h: parser.y
+ bison -v -d parser.y
+
+lex.yy.c: lexer.lex parser.tab.h stack.h
+ flex lexer.lex
+
+clean:
+ rm -f lex.yy.c parser.tab.h parser.tab.c parser