1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PACKAGE=sendmail 6SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail 7.PATH: ${SENDMAIL_DIR}/libmilter ${SENDMAIL_DIR}/libsm 8 9CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. 10CFLAGS+=-DNOT_SENDMAIL -Dsm_snprintf=snprintf 11CFLAGS+=-D_THREAD_SAFE 12CFLAGS+=-DSM_CONF_POLL 13 14.if ${MK_INET6_SUPPORT} != "no" 15CFLAGS+=-DNETINET6 16.endif 17 18# User customizations to the sendmail build environment 19CFLAGS+=${SENDMAIL_CFLAGS} 20 21INCSDIR=${INCLUDEDIR}/libmilter 22INCS= ${SENDMAIL_DIR}/include/libmilter/mfapi.h \ 23 ${SENDMAIL_DIR}/include/libmilter/mfdef.h 24LIB= milter 25 26SRCS+= sm_os.h 27SRCS+= main.c engine.c listener.c handler.c comm.c monitor.c smfi.c \ 28 signal.c sm_gethost.c errstring.c strl.c worker.c 29CLEANFILES+=sm_os.h 30 31WARNS?= 0 32 33sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA 34 ln -sf ${.ALLSRC} ${.TARGET} 35 36.include <bsd.lib.mk> 37