summaryrefslogtreecommitdiff
path: root/Makefile
blob: 01608979ae53fc27532c62cf24aa6c034e622251 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CS=ast.c com.c dis.c parser.c read.c val.c vm.c
HS=ast.h       dis.h parser.h read.h val.h vm.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