diff options
Diffstat (limited to 'lib/libmilter/Makefile')
-rw-r--r-- | lib/libmilter/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/libmilter/Makefile b/lib/libmilter/Makefile new file mode 100644 index 0000000..b3444e5 --- /dev/null +++ b/lib/libmilter/Makefile @@ -0,0 +1,28 @@ +# $FreeBSD$ + +MAINTAINER= gshapiro@FreeBSD.org + +SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail +.PATH: ${SENDMAIL_DIR}/libmilter ${SENDMAIL_DIR}/libsm + +CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. +CFLAGS+=-DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf +CFLAGS+=-D_THREAD_SAFE + +# User customizations to the sendmail build environment +CFLAGS+=${SENDMAIL_CFLAGS} + +INCDIR= /usr/include/libmilter +INCS= ${SENDMAIL_DIR}/include/libmilter/mfapi.h \ + ${SENDMAIL_DIR}/include/libmilter/mfdef.h +LIB= milter + +SRCS+= sm_os.h +SRCS+= main.c engine.c listener.c handler.c comm.c smfi.c \ + signal.c sm_gethost.c errstring.c strl.c +CLEANFILES+=sm_os.h + +sm_os.h: + ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h + +.include <bsd.lib.mk> |