mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 15:32:45 +00:00
daaf575910
Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway.
36 lines
835 B
Makefile
36 lines
835 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
|
.PATH: ${SENDMAIL_DIR}/libmilter ${SENDMAIL_DIR}/libsm
|
|
|
|
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
|
|
CFLAGS+=-DNOT_SENDMAIL -Dsm_snprintf=snprintf
|
|
CFLAGS+=-D_THREAD_SAFE
|
|
CFLAGS+=-DSM_CONF_POLL
|
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
CFLAGS+=-DNETINET6
|
|
.endif
|
|
|
|
# User customizations to the sendmail build environment
|
|
CFLAGS+=${SENDMAIL_CFLAGS}
|
|
|
|
INCSDIR=${INCLUDEDIR}/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 monitor.c smfi.c \
|
|
signal.c sm_gethost.c errstring.c strl.c worker.c
|
|
CLEANFILES+=sm_os.h
|
|
|
|
WARNS?= 0
|
|
|
|
sm_os.h:
|
|
ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
|
|
|
|
.include <bsd.lib.mk>
|