m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/19/b/Makefile
diff options
context:
space:
mode:
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