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

bth: $(CS) $(HS) Makefile
	$(CC) $(CFLAGS) -o bth $(CS)

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


test: bth
	./run_tests.sh

clean:
	rm bth prs.c prs.h

.PHONY: clean test