CS=ast.c com.c dis.c ht.c lib.c mem.c prs.c state.c val.c vm.c HS=ast.h chunk.h com.h dis.h ht.h lib.h mem.h prs.h state.h util.h val.h vm.h CFLAGS=$(EXTRA_CFLAGS) -g -O3 -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 test: bth ./run_tests.sh clean: rm bth prs.c prs.h .PHONY: clean test