#Makefile for the V (SUN) version of Knuth's GfToDvi program.
#This converts a gf font file (with optional annotations) into dvi file,
#suitable for proof-reading (Can print on Dover and Boise).
#Note that TFM_area_name is hardwired (in gftodvi.pc68)
#Prelimary version
.SUFFIXES: .b .c .p .s .u
#include ../../buildprefix
OBJS=gftodvi.b

gftodvi: $(OBJS)
	pc68 -r -v$(Xx)V -o gftodvi $(OBJS) -lVgraphics

gftodvi.p: gftodvi.web gftodvi.pc68
#This step also generates (an empty) gftodvi.pool
	tangle gftodvi.web gftodvi.pc68
gftodvi.b: gftodvi.p
	pc68 -c gftodvi.p
.c.b:
	cc68 -c -v$(Xx)V -vx $*.c

clean:
	rm -f *.BAK *.CKP gftodvi gftodvi.p .emacs* *.b

install: gftodvi
	$(NETINSTALL) -p "gftodvi" $(VSYS)/bin
