# $Id: Makefile,v 1.2 2002/02/25 11:15:29 malekith Exp $

GONTC = ../gontc
GFLAGS = -g -save-temps

all: test

.SECONDARY: test.gio test.gio

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

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

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

clean:
	rm -f *.o *.go *.gio *.ksi test core
