# Makefile for refer

PROG=		refer
SRCS=		command.cc ref.cc refer.cc token.cc
OBJS=		label.o
CFLAGS+=	-I. -I${.CURDIR}/../include
LDADD+=		${LIBBIB} ${LIBGROFF} -lm
DPADD+=		${LIBBIB} ${LIBGROFF} ${LIBM}

MANDEPEND=	refer.1
CLEANFILES+=	label.cc label.tab.h ${MANDEPEND}

.include "../Makefile.cfg"
.include <bsd.prog.mk>

#	$Id$

PROG=		refer
SRCS=		command.cc label.cc ref.cc refer.cc token.cc
CFLAGS+=	-I${.CURDIR}/../include
DPADD=		${LIBBIB} ${LIBGROFF} ${LIBM}
LDADD=		${LIBBIB} ${LIBGROFF} -lm
CLEANFILES=	label.cc label.tab.h ${MAN1} y.tab.c y.tab.h

.include "../Makefile.cfg"
.include <bsd.prog.mk>

Put generated source files in SRCS. This fixes races generating the source files. E.g., the stale version of locate.cc in the source directory was sometimes used. We didn't even use beforedepend.
Put generated source files in SRCS.  This fixes races generating
the source files.  E.g., the stale version of locate.cc in the
source directory was sometimes used.  We didn't even use beforedepend.

Added temporary files to CLEANFILES.

Fixed some style bugs.
