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