PREFIX = ../stage0
GONTC = $(PREFIX)/gontc -prefix $(PREFIX)
GFLAGS = -g -O3
TESTS = $(wildcard *.g)

all: run-tests

clean:
	rm -f *.o *.xg* *.ksi hello test-result core

run-tests:
	GONTC="$(GONTC) $(GFLAGS)" perl tests $(TESTS)
	@echo
	@echo "OK!"
