GM2 = gm2
FLAGS = -fiso -I.

all: demo

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

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

clean:
	rm -f *.o demo ttysize

.PHONY: all clean
