1# @(#)Makefile 8.2 (Berkeley) 9/21/96 2# $FreeBSD$ 3 4SENDMAIL_DIR= ${.CURDIR}/../../contrib/sendmail 5.PATH: ${SENDMAIL_DIR}/mailstats 6 7PROG= mailstats 8SRCS= mailstats.c 9MAN= mailstats.8 10 11CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. 12CFLAGS+= -DNOT_SENDMAIL 13 14LIBSMDIR= ${.OBJDIR}/../../lib/libsm 15LIBSM= ${LIBSMDIR}/libsm.a 16 17LIBSMUTILDIR= ${.OBJDIR}/../../lib/libsmutil 18LIBSMUTIL= ${LIBSMUTILDIR}/libsmutil.a 19 20DPADD= ${LIBSMUTIL} ${LIBSM} 21LDADD= ${LIBSMUTIL} ${LIBSM} 22 23SRCS+= sm_os.h 24CLEANFILES+=sm_os.h 25 26# User customizations to the sendmail build environment 27CFLAGS+= ${SENDMAIL_CFLAGS} 28DPADD+= ${SENDMAIL_DPADD} 29LDADD+= ${SENDMAIL_LDADD} 30LDFLAGS+= ${SENDMAIL_LDFLAGS} 31 32sm_os.h: 33 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 34 35.include <bsd.prog.mk> 36