1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PACKAGE=sendmail 6SENDMAIL_DIR=${SRCTOP}/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.if ${MK_OPENSSL} != "no" 19# STARTTLS support 20CFLAGS+=-DSTARTTLS 21.endif 22 23# User customizations to the sendmail build environment 24CFLAGS+=${SENDMAIL_CFLAGS} 25 26INCSDIR=${INCLUDEDIR}/libmilter 27INCS= ${SENDMAIL_DIR}/include/libmilter/mfapi.h \ 28 ${SENDMAIL_DIR}/include/libmilter/mfdef.h 29LIB= milter 30 31SRCS+= sm_os.h 32SRCS+= main.c engine.c listener.c handler.c comm.c monitor.c smfi.c \ 33 signal.c sm_gethost.c errstring.c strl.c worker.c 34CLEANFILES+=sm_os.h 35 36WARNS?= 0 37SHLIB_MAJOR= 6 38 39sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA 40 ln -sf ${.ALLSRC} ${.TARGET} 41 42.include <bsd.lib.mk> 43