#	From: @(#)Makefile	8.1 (Berkeley) 6/6/93
# $FreeBSD: src/usr.bin/more/Makefile,v 1.6.2.1 1999/08/29 15:31:12 peter Exp $

PROG=	more
CFLAGS+=-I${.CURDIR} -DTERMIOS
SRCS=	ch.c command.c decode.c help.c input.c line.c linenum.c main.c \
	option.c os.c output.c position.c prim.c screen.c signal.c tags.c \
	ttyin.c
DPADD=	${LIBTERMCAP}
LDADD=	-ltermcap

.if ${MACHINE} == "pc98"
CFLAGS+= -DKANJI
.endif

beforeinstall:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/more.help \
	    ${DESTDIR}/usr/share/misc

.include <bsd.prog.mk>
