#	BSDI	Makefile,v 1.1 1994/12/20 21:28:49 polk Exp

PROG=	trn
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}/trn ${BINDIR}/rn
NOMAN=	noman
CLEANFILES+=y.tab.h config.h

.PATH:	${.CURDIR}/../trn

config.h: ${.CURDIR}/../trn/config.h.local
	cp ${.CURDIR}/../trn/config.h.local config.h

.depend: config.h

.include <bsd.prog.mk>
