1 2SENDMAIL_DIR= ${SRCTOP}/contrib/sendmail 3.PATH: ${SENDMAIL_DIR}/mailstats 4 5PROG= mailstats 6SRCS= mailstats.c 7MAN= mailstats.8 8 9CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. 10CFLAGS+= -DNOT_SENDMAIL 11 12WARNS?= 2 13 14LIBADD= sm smutil 15 16SRCS+= sm_os.h 17CLEANFILES+=sm_os.h 18 19# User customizations to the sendmail build environment 20CFLAGS+= ${SENDMAIL_CFLAGS} 21DPADD+= ${SENDMAIL_DPADD} 22LDADD+= ${SENDMAIL_LDADD} 23LDFLAGS+= ${SENDMAIL_LDFLAGS} 24 25sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA 26 ln -sf ${.ALLSRC} ${.TARGET} 27 28.include <bsd.prog.mk> 29 30CWARNFLAGS+= ${NO_WDEPRECATED_NON_PROTOTYPE} 31