Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81319 / golang2html_code_fold / Makefile
diff options
context:
space:
mode:
1 files changed, 15 insertions, 0 deletions
-rw-r--r--homework/81319/golang2html_code_fold/Makefile15
diff --git a/homework/81319/golang2html_code_fold/Makefile b/homework/81319/golang2html_code_fold/Makefile
new file mode 100644
index 0000000..7367df5
--- /dev/null
+++ b/homework/81319/golang2html_code_fold/Makefile
@@ -0,0 +1,15 @@
+all: parser
+
+lexer_code.c: lexer.lex
+ flex -o lexer_code.c lexer.lex
+
+lexer: lexer_code.c
+ gcc lexer_code.c -o lexer
+
+parser.tab.c: parser.y
+ bison -d -v parser.y
+
+parser.tab.h: parser.tab.c
+
+parser: parser.tab.c parser.tab.h lexer_code.c
+ ${CC} ${CFLAGS} lexer_code.c parser.tab.c -o parser