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