1998-08-04 15:24:04 +00:00
|
|
|
# @(#)Makefile 8.8 (Berkeley) 3/28/97
|
1999-08-28 01:35:59 +00:00
|
|
|
# $FreeBSD$
|
1998-08-04 15:24:04 +00:00
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2016-02-08 18:41:46 +00:00
|
|
|
PACKAGE=sendmail
|
2017-03-04 11:38:03 +00:00
|
|
|
SENDMAIL_DIR=${SRCTOP}/contrib/sendmail
|
2000-08-12 22:39:25 +00:00
|
|
|
SMDIR= ${SENDMAIL_DIR}/src
|
2001-07-20 06:20:32 +00:00
|
|
|
.PATH: ${SMDIR}
|
1998-08-04 15:24:04 +00:00
|
|
|
|
2015-11-26 01:14:40 +00:00
|
|
|
BINDIR= ${LIBEXECDIR}/sendmail
|
1999-12-29 18:40:56 +00:00
|
|
|
|
1998-08-04 15:24:04 +00:00
|
|
|
PROG= sendmail
|
2017-03-04 11:38:03 +00:00
|
|
|
MAN= mailq.1 newaliases.1 aliases.5 sendmail.8
|
2005-08-17 02:36:31 +00:00
|
|
|
MLINKS+=sendmail.8 hoststat.8
|
|
|
|
MLINKS+=sendmail.8 purgestat.8
|
2002-02-17 22:06:20 +00:00
|
|
|
SRCS= alias.c arpadate.c bf.c collect.c conf.c control.c \
|
2001-07-20 06:20:32 +00:00
|
|
|
convtime.c daemon.c deliver.c domain.c envelope.c err.c headers.c \
|
|
|
|
macro.c main.c map.c mci.c milter.c mime.c parseaddr.c queue.c \
|
2004-08-01 01:16:59 +00:00
|
|
|
ratectrl.c readcf.c recipient.c savemail.c sasl.c sfsasl.c \
|
|
|
|
shmticklib.c sm_resolve.c srvrsmtp.c stab.c stats.c sysexits.c \
|
2020-07-15 18:28:54 +00:00
|
|
|
timers.c tlsh.c tls.c trace.c udb.c usersmtp.c util.c version.c
|
2001-09-14 11:03:34 +00:00
|
|
|
BINOWN= root
|
2002-02-17 22:06:20 +00:00
|
|
|
BINGRP= smmsp
|
|
|
|
.ifdef SENDMAIL_SET_USER_ID
|
2001-07-20 06:20:32 +00:00
|
|
|
BINMODE=4555
|
2002-02-17 22:06:20 +00:00
|
|
|
.else
|
|
|
|
BINMODE=2555
|
|
|
|
.endif
|
1998-08-04 15:24:04 +00:00
|
|
|
|
|
|
|
# Define the database format to use for aliases et al.
|
|
|
|
DBMDEF= -DNEWDB
|
|
|
|
# If you don't want NIS alias/map support, comment out this line
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_NIS} != "no"
|
1998-08-04 15:24:04 +00:00
|
|
|
NIS= -DNIS
|
2004-11-13 20:40:32 +00:00
|
|
|
.endif
|
1998-08-04 15:24:04 +00:00
|
|
|
# Map extensions
|
2002-02-17 22:06:20 +00:00
|
|
|
MAPS= -DMAP_REGEX -DDNSMAP
|
1998-08-04 15:24:04 +00:00
|
|
|
|
2002-02-17 22:06:20 +00:00
|
|
|
CFLAGS+= -I${SMDIR} -I${SENDMAIL_DIR}/include -I.
|
2017-01-06 04:16:03 +00:00
|
|
|
CFLAGS+= ${DBMDEF} ${NIS} ${MAPS}
|
2004-06-01 01:29:42 +00:00
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
2004-06-01 01:29:42 +00:00
|
|
|
CFLAGS+= -DNETINET6
|
|
|
|
.endif
|
1998-08-04 15:24:04 +00:00
|
|
|
|
2015-07-07 02:30:35 +00:00
|
|
|
WARNS?= 0
|
2010-01-02 11:07:44 +00:00
|
|
|
|
2017-01-06 04:16:03 +00:00
|
|
|
LIBADD= util sm smutil
|
2002-02-17 22:06:20 +00:00
|
|
|
|
|
|
|
SRCS+= sm_os.h
|
|
|
|
CLEANFILES+=sm_os.h
|
2000-08-12 22:39:25 +00:00
|
|
|
|
2014-06-06 04:09:07 +00:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
2000-10-24 16:04:56 +00:00
|
|
|
# STARTTLS support
|
2020-07-15 18:28:54 +00:00
|
|
|
CFLAGS+= -DSTARTTLS -DTLS_EC
|
2014-11-25 16:57:27 +00:00
|
|
|
LIBADD+= ssl crypto
|
2000-10-24 16:04:56 +00:00
|
|
|
.endif
|
|
|
|
|
2017-01-06 04:16:03 +00:00
|
|
|
.if ${MK_TCP_WRAPPERS} != "no"
|
|
|
|
CFLAGS+= -DTCPWRAPPERS
|
|
|
|
LIBADD+= wrap
|
|
|
|
.endif
|
|
|
|
|
2000-09-17 00:41:33 +00:00
|
|
|
# User customizations to the sendmail build environment
|
|
|
|
CFLAGS+=${SENDMAIL_CFLAGS}
|
|
|
|
DPADD+=${SENDMAIL_DPADD}
|
2000-10-11 05:04:21 +00:00
|
|
|
LDADD+=${SENDMAIL_LDADD}
|
|
|
|
LDFLAGS+=${SENDMAIL_LDFLAGS}
|
2000-09-17 00:41:33 +00:00
|
|
|
|
2015-11-25 19:44:43 +00:00
|
|
|
sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA
|
|
|
|
ln -sf ${.ALLSRC} ${.TARGET}
|
1999-12-29 18:56:55 +00:00
|
|
|
|
1998-08-04 15:24:04 +00:00
|
|
|
.include <bsd.prog.mk>
|