1# $FreeBSD$ 2 3MAINTAINER= gshapiro@FreeBSD.org 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+=-DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf 10CFLAGS+=-D_THREAD_SAFE 11 12# User customizations to the sendmail build environment 13CFLAGS+=${SENDMAIL_CFLAGS} 14 15INCDIR= /usr/include/libmilter 16INCS= ${SENDMAIL_DIR}/include/libmilter/mfapi.h \ 17 ${SENDMAIL_DIR}/include/libmilter/mfdef.h 18LIB= milter 19 20SRCS+= sm_os.h 21SRCS+= main.c engine.c listener.c handler.c comm.c smfi.c \ 22 signal.c sm_gethost.c errstring.c strl.c 23CLEANFILES+=sm_os.h 24 25sm_os.h: 26 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 27 28.include <bsd.lib.mk> 29