summaryrefslogtreecommitdiff
path: root/Makefile
blob: 917c481f217bcac3c1c0604c0b9f41cb790f9281 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CS=ast.c com.c dis.c ht.c mem.c prs.c read.c state.c val.c vm.c
HS=ast.h       dis.h ht.h mem.h prs.h read.h state.h val.h vm.h
CFLAGS=$(EXTRA_CFLAGS) -O3 -lm -Wall -Wpedantic -Werror=implicit-function-declaration

bþ: $(CS) $(HS) Makefile
	$(CC) $(CFLAGS) -o bþ $(CS)

prs.c: g.peg
	packcc -o prs g.peg

test: bþ
	./run_tests.sh

clean:
	rm bþ prs.c prs.h

.PHONY: clean test