From e2e8223c6bd35483a17fd803fc1622a1f09ef80c Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Fri, 25 Dec 2020 15:45:54 +0100 Subject: Add day 19 --- 19/b/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 19/b/Makefile (limited to '19/b/Makefile') 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 -- cgit v1.2.3