# Makefile for dterm: @(#)Makefile	1.4 (UKC) 16/10/88

CFLAGS = -O

SRCS = dterm.c draw.c term.c term_font.c
OBJS = dterm.o draw.o term.o term_font.o

dterm: $(OBJS)
	cc $(CFLAGS) -o dterm $(OBJS) -lm

checkfont: checkfont.o term_font.o
	cc $(CFLAGS) -o checkfont checkfont.o term_font.o

term_font.o: term_font.h
dterm.o: term_font.h

install: dterm dterm.1 dterm.1,h
	install -c -s -m 751 dterm /usr/lib/ditroff/dterm
	install -c -m 644 dterm.1 /usr/man/man1/dterm.1
	install -c -m 644 dterm.1,h /usr/how/how1/dterm.1

tags:
	ctags $(SRCS)

clean:
	rm -f *.o dterm checkfont
