GONTC = ../gontc
GFLAGS = -g

all: run-tests

.SECONDARY: hello.gio test.gio

%.gio: %.gi $(GONTC)
	$(GONTC) $(GFLAGS) -c $<

%.o: %.g %.gio $(GONTC)
	$(GONTC) -save-temps $(GFLAGS) -c $<

hello: hello.o
	$(GONTC) $^ -o $@

clean:
	rm -f *.o *.gio test.ksi hello.ksi hello

run-tests:
	sh tests GONTC="$(GONTC)"
