1 2.include <src.opts.mk> 3 4PACKAGE=lib${LIB} 5SENDMAIL_DIR=${SRCTOP}/contrib/sendmail 6.PATH: ${SENDMAIL_DIR}/libsmutil 7 8CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. 9CFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL 10 11.if ${MK_OPENSSL} != "no" 12# STARTTLS support 13CFLAGS+=-DSTARTTLS 14.endif 15 16# User customizations to the sendmail build environment 17CFLAGS+=${SENDMAIL_CFLAGS} 18 19WARNS?= 2 20 21LIB= smutil 22 23SRCS+= sm_os.h 24SRCS+= debug.c err.c lockfile.c safefile.c snprintf.c cf.c 25CLEANFILES+=sm_os.h 26 27INTERNALLIB= 28 29sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA 30 ln -sf ${.ALLSRC} ${.TARGET} 31 32.include <bsd.lib.mk> 33 34CWARNFLAGS+= ${NO_WDEPRECATED_NON_PROTOTYPE} 35