Makefile revision 87323
11556Srgrimes#	@(#)Makefile	8.1 (Berkeley) 5/31/93
250471Speter# $FreeBSD: head/bin/rmail/Makefile 87323 2001-12-04 01:57:47Z obrien $
31556Srgrimes
467660SgshapiroMAINTAINER=	gshapiro@FreeBSD.org
567660Sgshapiro
664567SgshapiroSENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
764567Sgshapiro.PATH:	${SENDMAIL_DIR}/rmail
838093Speter
91556SrgrimesPROG=	rmail
1064567SgshapiroSRCS=	rmail.c
1174845SruMAN=	rmail.8
1264567SgshapiroCFLAGS+=-I${SENDMAIL_DIR}/include
1387323SobrienWARNS=	0
141556Srgrimes
1564567Sgshapiro.if exists(${.OBJDIR}/../../lib/libsmutil)
1664567SgshapiroLIBSMUTILDIR:=	${.OBJDIR}/../../lib/libsmutil
1764567Sgshapiro.else
1864567SgshapiroLIBSMUTILDIR!=	cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
1964567Sgshapiro.endif
2064567SgshapiroLIBSMUTIL:=	${LIBSMUTILDIR}/libsmutil.a
2164567Sgshapiro
2266961SgshapiroDPADD=	${LIBSMUTIL}
2366961SgshapiroLDADD=	${LIBSMUTIL}
2464567Sgshapiro
2565970Sgshapiro# User customizations to the sendmail build environment
2665970SgshapiroCFLAGS+=${SENDMAIL_CFLAGS}
2766961SgshapiroDPADD+=${SENDMAIL_DPADD}
2866961SgshapiroLDADD+=${SENDMAIL_LDADD}
2965970SgshapiroLDFLAGS+=${SENDMAIL_LDFLAGS}
3065970Sgshapiro
316904Sjoerg# If you want to have your rmail queuing the mail only, uncomment the
326904Sjoerg# following:
336904Sjoerg# CFLAGS+= -DQUEUE_ONLY
346904Sjoerg
3538093Speter# Not much point this being static. It calls a shared sendmail...
3638093SpeterNOSHARED?= NO
3738093Speter
381556Srgrimes.include <bsd.prog.mk>
39