BINDIR?=	/usr/bin

PROG=	crontab
SRCS=	crontab.c 
CFLAGS+= -I${.CURDIR}/../cron
MAN1=	crontab.1
MAN5=	crontab.5

.if exists(${.CURDIR}/../lib/obj)
LDDESTDIR+=	-L${.CURDIR}/../lib/obj
DPADD+=	${.CURDIR}/../lib/obj/libcron.a
.else
LDDESTDIR+=	-L${.CURDIR}/../lib
DPADD+=	${.CURDIR}/../lib/libcron.a
.endif

LDADD+=	-lcron

.include <bsd.prog.mk>

BINDIR?=	/usr/bin

PROG=	crontab
SRCS=	crontab.c 
CFLAGS+= -I${.CURDIR}/../cron
MAN1=	crontab.1
MAN5=	crontab.5

.if exists(${.CURDIR}/../lib/obj)
LDDESTDIR+=	-L${.CURDIR}/../lib/obj
DPADD+=	${.CURDIR}/../lib/obj/libcron.a
.else
LDDESTDIR+=	-L${.CURDIR}/../lib
DPADD+=	${.CURDIR}/../lib/libcron.a
.endif

LDADD+=	-lcron

BINOWN= root
BINMODE=4555
INSTALLFLAGS=-fschg

.include <bsd.prog.mk>

Make /usr/bin/crontab install setuid root. (doesn't work otherwise) The distributed makefile in the package installs it setuid root.. Reviewed by: jkh
Make /usr/bin/crontab install setuid root. (doesn't work otherwise)
The distributed makefile in the package installs it setuid root..
Reviewed by:	jkh
