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

test: bth
	./run_tests.sh

clean:
	rm bth

.PHONY: clean test