#	BSDI	Makefile,v 1.3 1994/12/17 06:25:50 polk Exp

PROG=	rtrn
MAN1=	trn.0
SRCS=	addng.c art.c artio.c artsrch.c autosub.c backpage.c bits.c cache.c \
	charsubst.c decode.c edit_dist.c final.c hash.c head.c help.c init.c \
	intrp.c kfile.c last.c ng.c ngdata.c nghash.c ngsrch.c ngstuff.c \
	only.c rcln.c rcstuff.c respond.c rthread.c rt-mt.c rt-ov.c \
	rt-process.c rt-page.c rt-select.c rt-util.c rt-wumpus.c search.c \
	sw.c term.c trn.c util.c util2.c unship.c uudecode.c \
	nntpinit.c nntpclient.c nntpauth.c nntp.c parsedate.y
CFLAGS+=-I. -I${.CURDIR}
LDADD+=	-ltermlib -lm
DPADD+=	${LIBTERMLIB} ${LIBM}
LINKS=	${BINDIR}/rtrn ${BINDIR}/rrn
MLINKS=	trn.1 rtrn.1 trn.1 rn.1 trn.1 rrn.1
CLEANFILES+=y.tab.h config.h

afterinstall:
	(cd ${.CURDIR}; install -c -o news -g news -m 0644 newsnews INIT \
		${DESTDIR}${TRNLIB})

config.h: config.h.nntp
	cp ${.CURDIR}/config.h.nntp config.h

.depend: config.h

.include <bsd.prog.mk>
