1c6063d0dSWarner Losh.include <src.opts.mk> 2e1fe3dbaSRuslan Ermilov 39c4fa87cSGlen BarberPACKAGE=sendmail 4cb705333SEnji CooperSENDMAIL_DIR=${SRCTOP}/contrib/sendmail 5850dab17SGregory Neil Shapiro.PATH: ${SENDMAIL_DIR}/libmilter ${SENDMAIL_DIR}/libsm 6850dab17SGregory Neil Shapiro 7850dab17SGregory Neil ShapiroCFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. 80c56527fSGregory Neil ShapiroCFLAGS+=-DNOT_SENDMAIL -Dsm_snprintf=snprintf 9850dab17SGregory Neil ShapiroCFLAGS+=-D_THREAD_SAFE 10b3a50261SGregory Neil ShapiroCFLAGS+=-DSM_CONF_POLL 11850dab17SGregory Neil Shapiro 12e1fe3dbaSRuslan Ermilov.if ${MK_INET6_SUPPORT} != "no" 130c56527fSGregory Neil ShapiroCFLAGS+=-DNETINET6 140c56527fSGregory Neil Shapiro.endif 150c56527fSGregory Neil Shapiro 163413ee88SGregory Neil Shapiro.if ${MK_OPENSSL} != "no" 173413ee88SGregory Neil Shapiro# STARTTLS support 183413ee88SGregory Neil ShapiroCFLAGS+=-DSTARTTLS 193413ee88SGregory Neil Shapiro.endif 203413ee88SGregory Neil Shapiro 21850dab17SGregory Neil Shapiro# User customizations to the sendmail build environment 22850dab17SGregory Neil ShapiroCFLAGS+=${SENDMAIL_CFLAGS} 23850dab17SGregory Neil Shapiro 24c7b111cbSRuslan ErmilovINCSDIR=${INCLUDEDIR}/libmilter 25850dab17SGregory Neil ShapiroINCS= ${SENDMAIL_DIR}/include/libmilter/mfapi.h \ 26850dab17SGregory Neil Shapiro ${SENDMAIL_DIR}/include/libmilter/mfdef.h 27850dab17SGregory Neil ShapiroLIB= milter 28850dab17SGregory Neil Shapiro 29850dab17SGregory Neil ShapiroSRCS+= sm_os.h 304881b9c3SGregory Neil ShapiroSRCS+= main.c engine.c listener.c handler.c comm.c monitor.c smfi.c \ 314881b9c3SGregory Neil Shapiro signal.c sm_gethost.c errstring.c strl.c worker.c 32850dab17SGregory Neil ShapiroCLEANFILES+=sm_os.h 33850dab17SGregory Neil Shapiro 34daaf5759SEd SchoutenWARNS?= 0 3569921123SKonstantin BelousovSHLIB_MAJOR= 6 36daaf5759SEd Schouten 37b791fbe6SBryan Drewerysm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA 38b791fbe6SBryan Drewery ln -sf ${.ALLSRC} ${.TARGET} 39850dab17SGregory Neil Shapiro 40850dab17SGregory Neil Shapiro.include <bsd.lib.mk> 41*45f591e6SJohn Baldwin 42*45f591e6SJohn BaldwinCWARNFLAGS+= ${NO_WDEPRECATED_NON_PROTOTYPE} 43