aboutsummaryrefslogtreecommitdiff
path: root/bin/rmail/Makefile
blob: 1d0b26eb66d43a45e3ac9af653879ee5c7b2d454 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

PACKAGE=sendmail
SENDMAIL_DIR=${SRCTOP}/contrib/sendmail
.PATH:	${SENDMAIL_DIR}/rmail

# Not much point this being static. It calls a shared sendmail...
NO_SHARED?= NO

PROG=	rmail
SRCS=	rmail.c
MAN=	rmail.8

WARNS?=	2
CFLAGS+=-I${SENDMAIL_DIR}/include -I.

LIBADD=	sm

SRCS+=	sm_os.h
CLEANFILES+=sm_os.h

# User customizations to the sendmail build environment
CFLAGS+=${SENDMAIL_CFLAGS}
DPADD+=${SENDMAIL_DPADD}
LDADD+=${SENDMAIL_LDADD}
LDFLAGS+=${SENDMAIL_LDFLAGS}

# If you want to have your rmail queuing the mail only, uncomment the
# following:
# CFLAGS+= -DQUEUE_ONLY

sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA
	ln -sf ${.ALLSRC} ${.TARGET}

.include <bsd.prog.mk>

CWARNFLAGS+= ${NO_WDEPRECATED_NON_PROTOTYPE}