summaryrefslogtreecommitdiff
path: root/Makefile
blob: 012f152466fbf04ae0788b034928d2a7e30d8478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CS=parser.c ast.c
HS=ast.h parser.h
CFLAGS=-Wall -Wpedantic -std=c99

badthing: $(CS) $(HS)
	$(CC) $(CFLAGS) -o badthing $(CS)

parser.c: grammar.peg
	packcc -o parser grammar.peg

clean:
	rm badthing parser.c

.PHONY: clean