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