#	Not standalone - it gets a lot of variables from the invocation.
#	VFONTS, RSTFONTS, SUNTROFF_FONTS, PERCENT, PREVIEWER, FC

all: install

ch2vft:		ch2vft.c
		cc $(CFLAGS) ch2vft.c -o ch2vft

ch2rst:		ch2rst.c rst.h
		cc $(CFLAGS) ch2rst.c -o ch2rst

vft2ch:		vft2ch.c
		cc $(CFLAGS) -DBITDIR=\"$(VFONTS)\" vft2ch.c -o vft2ch

vf2bdf:		vf2bdf.c
		cc $(CFLAGS) vf2bdf.c -o vf2bdf

rst2ch:		rst2ch.c rst.h
		cc $(CFLAGS) -DBITDIR=\"$(RSTFONTS)\" rst2ch.c -o rst2ch

scalech:	scalech.c
		cc $(CFLAGS) scalech.c -o scalech


#		The two scripts check for suntroff or xtroff.
install:	ch2vft ch2rst vft2ch rst2ch scalech vf2bdf
		if test -d ${VFONTS}; then \
			./MakeSunFonts ${VFONTS} ${SUNTROFF_FONTS} \
			${PERCENT} ${PREVIEWER} ${FC} ${DEVICE}; fi
		if test -d ${RSTFONTS}; then \
			./MakeImFonts ${RSTFONTS} ${SUNTROFF_FONTS} \
			${PERCENT} ${PREVIEWER} ${FC} ${DEVICE}; fi

clean:
		rm -f *.o ch2vft ch2rst vft2ch rst2ch scalech vf2bdf \
			make.out core \#* *~ *.CKP

depend:

Makefile:
