summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-07-10 21:34:00 +0100
committerubq323 <ubq323@ubq323.website>2023-07-10 21:34:03 +0100
commitd28f04f44efffd61564951456c061ba14e1921eb (patch)
treee7bb4a68430ea4293e767e3ceef0ca5b8f1f2342 /Makefile
parenteeea75fa7820f1a7ee4958b65667d0078e01f3bd (diff)
new grammar using packcc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 71bcbce..012f152 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
CS=parser.c ast.c
+HS=ast.h parser.h
CFLAGS=-Wall -Wpedantic -std=c99
-badthing: $(CS)
+badthing: $(CS) $(HS)
$(CC) $(CFLAGS) -o badthing $(CS)
parser.c: grammar.peg
- minipeg -o parser.c grammar.peg
+ packcc -o parser grammar.peg
clean:
rm badthing parser.c