# $Rev: 539 $ $LastChangedDate: 2002-08-25 13:25:13 +0200 (Sun, 25 Aug 2002) $

GONTC = ../compiler/gontc 
GFLAGS = -prefix ../stage1/ -g $(OPT)

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 test.s

nuke: clean
	svn revert test.g test.gi
