summaryrefslogtreecommitdiff
path: root/Makefile
blob: 53062a068734d44d39860dc1d29aa72aa8bd7137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CS=parser.c ast.c run.c read.c ht.c
HS=parser.h ast.h run.h read.h ht.h
CFLAGS=-O3 -Wall -Wpedantic -Werror=implicit-function-declaration

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

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

clean:
	rm badthing parser.c

.PHONY: clean