# $Rev: 861 $ $LastChangedDate: 2002-09-02 10:00:48 +0200 (Mon, 02 Sep 2002) $

GONTC = ../../compiler/gontc
GFLAGS = -e -C -B ../../stage0/ -g $(OPT)

srcs =  t00_hello.g t01_bolek.g t02_bolek_v2.g t03_bolek_v3.g t04_bolek64.g \
	t05_rpn.g t06_rpn_v.g t07_rpn_cb.g
progs = $(srcs:.g=)

all: $(progs)

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

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

%: %.g
	$(GONTC) $(GFLAGS) -o $@ $<

clean:
	rm -f *.o *.xgo *.xgi *.ksi $(progs) core
