xref: /freebsd/bin/rmail/Makefile (revision 7937bfbc0ca53fe7cdd0d54414f9296e273a518e)
1PACKAGE=sendmail
2SENDMAIL_DIR=${SRCTOP}/contrib/sendmail
3.PATH:	${SENDMAIL_DIR}/rmail
4
5# Not much point this being static. It calls a shared sendmail...
6NO_SHARED?= NO
7
8PROG=	rmail
9SRCS=	rmail.c
10MAN=	rmail.8
11
12WARNS?=	2
13CFLAGS+=-I${SENDMAIL_DIR}/include -I.
14
15LIBADD=	sm
16
17SRCS+=	sm_os.h
18CLEANFILES+=sm_os.h
19
20# User customizations to the sendmail build environment
21CFLAGS+=${SENDMAIL_CFLAGS}
22DPADD+=${SENDMAIL_DPADD}
23LDADD+=${SENDMAIL_LDADD}
24LDFLAGS+=${SENDMAIL_LDFLAGS}
25
26# If you want to have your rmail queuing the mail only, uncomment the
27# following:
28# CFLAGS+= -DQUEUE_ONLY
29
30sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA
31	ln -sf ${.ALLSRC} ${.TARGET}
32
33.include <bsd.prog.mk>
34
35CWARNFLAGS+= ${NO_WDEPRECATED_NON_PROTOTYPE}
36