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+=-DNOT_SENDMAIL -Dsm_snprintf=snprintf 8CFLAGS+=-D_THREAD_SAFE 9 10.if !defined(NOINET6) 11CFLAGS+=-DNETINET6 12.endif 13 14# User customizations to the sendmail build environment 15CFLAGS+=${SENDMAIL_CFLAGS} 16 17INCSDIR=${INCLUDEDIR}/libmilter 18INCS= ${SENDMAIL_DIR}/include/libmilter/mfapi.h \ 19 ${SENDMAIL_DIR}/include/libmilter/mfdef.h 20LIB= milter 21 22SRCS+= sm_os.h 23SRCS+= main.c engine.c listener.c handler.c comm.c smfi.c \ 24 signal.c sm_gethost.c errstring.c strl.c 25CLEANFILES+=sm_os.h 26 27sm_os.h: 28 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 29 30.include <bsd.lib.mk> 31