summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-07-10 12:25:53 +0100
committerubq323 <ubq323@ubq323.website>2023-07-10 12:25:53 +0100
commiteeea75fa7820f1a7ee4958b65667d0078e01f3bd (patch)
tree75850c0a3c1cbfb8b74740b208bfdaf9e8297009 /Makefile
initial
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..71bcbce
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+CS=parser.c ast.c
+CFLAGS=-Wall -Wpedantic -std=c99
+
+badthing: $(CS)
+ $(CC) $(CFLAGS) -o badthing $(CS)
+
+parser.c: grammar.peg
+ minipeg -o parser.c grammar.peg
+
+clean:
+ rm badthing parser.c
+
+.PHONY: clean