# This makefile makes all the packed format fonts used by gentext
# from the editable form produced by hertovplot.
#
# This makefile is NOT run by the makefile in .../vplot/filters.
# You'll need to run this one yourself first.
#
# Makefont won't compile on Suns using software floating point
# code.  CFLAGS must select the appropriate floating-point chip
# specification:

#CFLAGS = -O -f68881
CFLAGS = -O
ALL = pen.bin romanc.bin romans.bin cyrilc.bin gothgbt.bin gothgrt.bin gothitt.bin greekc.bin greeks.bin italicc.bin italict.bin math.bin misc.bin romand.bin romant.bin scriptc.bin scripts.bin

all: makefont $(ALL)

.SUFFIXES: .vplot_font .bin .include

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

clean:
	rm -f makefont *.o *_check *_dim *_addr *_widthl *_widthr *_symbol \
		*_svec *_lig *.bin *.include

.vplot_font.bin:	makefont
	makefont $* < $*.vplot_font > $*.include
	cat $*_check $*_header $*_dim $*_addr $*_widthl \
		$*_widthr $*_symbol $*_svec $*_lig > \
		$*.bin
	rm -f $*_check $*_header $*_dim $*_addr $*_widthl \
		$*_widthr $*_symbol $*_svec $*_lig
