Makefile revision 74845
1#	@(#)Makefile	8.1 (Berkeley) 5/31/93
2# $FreeBSD: head/bin/rmail/Makefile 74845 2001-03-27 10:03:10Z ru $
3
4MAINTAINER=	gshapiro@FreeBSD.org
5
6SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
7.PATH:	${SENDMAIL_DIR}/rmail
8
9PROG=	rmail
10SRCS=	rmail.c
11MAN=	rmail.8
12CFLAGS+=-I${SENDMAIL_DIR}/include
13
14.if exists(${.OBJDIR}/../../lib/libsmutil)
15LIBSMUTILDIR:=	${.OBJDIR}/../../lib/libsmutil
16.else
17LIBSMUTILDIR!=	cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
18.endif
19LIBSMUTIL:=	${LIBSMUTILDIR}/libsmutil.a
20
21DPADD=	${LIBSMUTIL}
22LDADD=	${LIBSMUTIL}
23
24# User customizations to the sendmail build environment
25CFLAGS+=${SENDMAIL_CFLAGS}
26DPADD+=${SENDMAIL_DPADD}
27LDADD+=${SENDMAIL_LDADD}
28LDFLAGS+=${SENDMAIL_LDFLAGS}
29
30# If you want to have your rmail queuing the mail only, uncomment the
31# following:
32# CFLAGS+= -DQUEUE_ONLY
33
34# Not much point this being static. It calls a shared sendmail...
35NOSHARED?= NO
36
37.include <bsd.prog.mk>
38