1# $FreeBSD$ 2 3.include <bsd.own.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 11 12.if ${MK_INET6_SUPPORT} != "no" 13CFLAGS+=-DNETINET6 14.endif 15 16# User customizations to the sendmail build environment 17CFLAGS+=${SENDMAIL_CFLAGS} 18 19INCSDIR=${INCLUDEDIR}/libmilter 20INCS= ${SENDMAIL_DIR}/include/libmilter/mfapi.h \ 21 ${SENDMAIL_DIR}/include/libmilter/mfdef.h 22LIB= milter 23 24SRCS+= sm_os.h 25SRCS+= main.c engine.c listener.c handler.c comm.c monitor.c smfi.c \ 26 signal.c sm_gethost.c errstring.c strl.c worker.c 27CLEANFILES+=sm_os.h 28 29sm_os.h: 30 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 31 32.include <bsd.lib.mk> 33