1# $FreeBSD$ 2 3SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail 4.PATH: ${SENDMAIL_DIR}/libmilter ${SENDMAIL_DIR}/libsm 5 6CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. 7CFLAGS+=-DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf 8CFLAGS+=-D_THREAD_SAFE 9 10# User customizations to the sendmail build environment 11CFLAGS+=${SENDMAIL_CFLAGS} 12 13INCSDIR=${INCLUDEDIR}/libmilter 14INCS= ${SENDMAIL_DIR}/include/libmilter/mfapi.h \ 15 ${SENDMAIL_DIR}/include/libmilter/mfdef.h 16LIB= milter 17 18SRCS+= sm_os.h 19SRCS+= main.c engine.c listener.c handler.c comm.c smfi.c \ 20 signal.c sm_gethost.c errstring.c strl.c 21CLEANFILES+=sm_os.h 22 23sm_os.h: 24 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 25 26.include <bsd.lib.mk> 27