#
# Makes the hershey library.
# Makes the binary Hershey font file for VOGL
#

FONTLIB=sc:source/VOGL/Fonts

all:	//vogl.lib h2v hdisp fdisp fonts

pgms: h2v hdisp fdisp fonts

//vogl.lib : htext.o check.o halloc.o fhtext.o
	join //src/\#?.o //drivers/\#?.o htext.o check.o halloc.o fhtext.o to //vogl.lib

h2v:	h2v.o getchar.o //vogl.lib
	sc link to h2v h2v.o getchar.o lib //vogl.lib

hdisp:	hdisp.o getchar.o //vogl.lib
	sc link to hdisp hdisp.o getchar.o lib //vogl.lib

fdisp:	fdisp.o getchar.o //vogl.lib
	sc link to fdisp fdisp.o getchar.o lib //vogl.lib

FONTFILES = astrology cursive cyrillic futura.l futura.m gothic.eng \
	gothic.ger gothic.ita greek markers math.low \
	math.upp meteorology music script symbolic times.g \
	times.i times.ib times.r times.rb japanese

fonts:	h2v
	h2v /data/hersh.oc
	h2v /data/hersh.or /fonts/japan.hmp japanese
	touch $(FONTLIB)astrology
	delete $(FONTLIB)/\#?
	c:copy $(FONTFILES) $(FONTLIB)
	c:delete $(FONTFILES)
	touch fonts

h2v.o : h2v.c h2v.h

check.o : check.c

fdisp.o : fdisp.c

fhtext.o : fhtext.c

getchar.o : getchar.c

halloc.o : halloc.c

hdisp.o : hdisp.c

htext.o : htext.c

clean:
	delete astrology cursive cyrillic futura.l futura.m gothic.eng \
	gothic.ger gothic.ita greek japanese markers math.low \
	math.upp meteorology music script symbolic times.g \
	times.i times.ib times.r times.rb *.o fonts

clobber:
	delete astrology cursive cyrillic futura.l futura.m gothic.eng \
	gothic.ger gothic.ita greek japanese markers math.low \
	math.upp meteorology music script symbolic times.g \
	times.i times.ib times.r times.rb *.o h2v hdisp fdisp fonts

tags :
	hdrtag -gav h2v.h hershey.h
	flist -ma  check.c fdisp.c fhtext.c getchar.c h2v.c \
	       halloc.c hdisp.c htext.c
