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