GM2 = gm2
FLAGS = -fiso -I.

all: demo tvg.o tvfont.o

tv.o: tv.mod tv.def tvtty.def
	$(GM2) $(FLAGS) -c tv.mod

demo: tv.o demo.mod
	$(GM2) $(FLAGS) tv.o demo.mod -o demo

tvfont.o: tvfont.mod tvfont.def
	$(GM2) $(FLAGS) -c tvfont.mod

tvg.o: tvg.mod tvg.def tvfont.o tv.o
	$(GM2) -fiso -I. -I../modula2 -c tvg.mod

ttysize: ttysize.mod tvtty.def
	$(GM2) $(FLAGS) ttysize.mod -o ttysize

clean:
	rm -f *.o demo ttysize

.PHONY: all clean
