2002-02-17 22:01:40 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2002-02-17 22:01:40 +00:00
|
|
|
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
|
|
|
.PATH: ${SENDMAIL_DIR}/libmilter ${SENDMAIL_DIR}/libsm
|
|
|
|
|
|
|
|
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
|
2004-06-01 01:29:42 +00:00
|
|
|
CFLAGS+=-DNOT_SENDMAIL -Dsm_snprintf=snprintf
|
2002-02-17 22:01:40 +00:00
|
|
|
CFLAGS+=-D_THREAD_SAFE
|
2008-02-17 05:14:47 +00:00
|
|
|
CFLAGS+=-DSM_CONF_POLL
|
2002-02-17 22:01:40 +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
|
|
|
|
|
2002-02-17 22:01:40 +00:00
|
|
|
# User customizations to the sendmail build environment
|
|
|
|
CFLAGS+=${SENDMAIL_CFLAGS}
|
|
|
|
|
2002-05-12 16:01:00 +00:00
|
|
|
INCSDIR=${INCLUDEDIR}/libmilter
|
2002-02-17 22:01:40 +00:00
|
|
|
INCS= ${SENDMAIL_DIR}/include/libmilter/mfapi.h \
|
|
|
|
${SENDMAIL_DIR}/include/libmilter/mfdef.h
|
|
|
|
LIB= milter
|
|
|
|
|
|
|
|
SRCS+= sm_os.h
|
2007-04-09 01:45:30 +00:00
|
|
|
SRCS+= main.c engine.c listener.c handler.c comm.c monitor.c smfi.c \
|
|
|
|
signal.c sm_gethost.c errstring.c strl.c worker.c
|
2002-02-17 22:01:40 +00:00
|
|
|
CLEANFILES+=sm_os.h
|
|
|
|
|
2010-01-02 09:58:07 +00:00
|
|
|
WARNS?= 0
|
|
|
|
|
2002-02-17 22:01:40 +00:00
|
|
|
sm_os.h:
|
|
|
|
ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|