m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/19/b/Makefile
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-12-25 15:45:54 +0100
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-12-25 15:45:54 +0100
commite2e8223c6bd35483a17fd803fc1622a1f09ef80c (patch)
tree38817e96f05cdf7b8aa3a06e364b41936716ec15 /19/b/Makefile
parentcdb9021fa920744577f65679ef31e81d839b9f2a (diff)
Add day 19
Diffstat (limited to '19/b/Makefile')
-rw-r--r--19/b/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/19/b/Makefile b/19/b/Makefile
new file mode 100644
index 0000000..9d6a59c
--- /dev/null
+++ b/19/b/Makefile
@@ -0,0 +1,23 @@
+main: main.o mixins.o lex.yy.o grammar.tab.o
+ gcc -o main main.o mixins.o lex.yy.o grammar.tab.o
+
+grammar.tab.h grammar.tab.c: grammar.y
+ bison -d grammar.y
+
+lex.yy.c: grammar.tab.h
+ flex grammar.l
+
+grammar.tab.o: grammar.tab.c
+ gcc -c -o grammar.tab.o grammar.tab.c
+
+lex.yy.o: lex.yy.c
+ gcc -c -o lex.yy.o lex.yy.c
+
+main.o: grammar.tab.h main.c
+ gcc -c -o main.o main.c
+
+mixins.o: mixins.c
+ gcc -c -o mixins.o mixins.c
+
+clean:
+ rm -rf *.o lex.yy.c grammar.tab.h grammar.tab.c main