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