# $Id: $

GONTC = ../compiler/gontc 
GFLAGS = -prefix ../stage0/ -g

all: test

.SECONDARY: test.xgi

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

%.xgo %.o: %.g %.xgi $(GONTC)
	$(GONTC) $(GFLAGS) -c $<

test: test.xgo
	$(GONTC) $(GFLAGS) -o $@ $^

clean:
	rm -f *.o *.xgo *.xgi *.ksi test core
