include ../../../Configfile

CFLAGS=		$(FLAGS) -DHFONTDIR=\"$(HFONTDIR)\" -DMGR
LDFLAGS=

all:		gropbm widths

install:	all
		install -c -s gropbm $(BINDIR)
		mkdevpbm $(HFONTDIR) $(GROFFFONTDIR)
		install -c -m 644 gropbm.1 $(MANDIR)/man1

depend:		special.c
		gcc -MM $(CFLAGS) *.c > dependencies

clean:
		rm -f core *.o special.c

clobber:	clean
		> dependencies
		rm -f gropbm widths fontview table

gropbm:		gropbm.o bit.o hfont.o
		gcc -o $@ $(LDFLAGS) gropbm.o bit.o hfont.o

gropbm.o:	special.c

special.c:	table
		table < $(HFONTDIR)/special.s > special.c

widths:		widths.c
		gcc -o $@ widths.c

fontview:	fontview.o
		gcc -o $@ $(LDFLAGS) fontview.o $(LIBDIR)/libmgr.a

include dependencies
