1# $FreeBSD$ 2 3MAINTAINER= gshapiro@FreeBSD.org 4 5SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail 6.PATH: ${SENDMAIL_DIR}/editmap 7 8PROG= editmap 9SRCS= editmap.c 10MAN= editmap.8 11 12CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. 13CFLAGS+= -DNEWDB -DNOT_SENDMAIL 14 15.if exists(${.OBJDIR}/../../lib/libsm) 16LIBSMDIR:= ${.OBJDIR}/../../lib/libsm 17.else 18LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR 19.endif 20LIBSM:= ${LIBSMDIR}/libsm.a 21 22.if exists(${.OBJDIR}/../../lib/libsmdb) 23LIBSMDBDIR:= ${.OBJDIR}/../../lib/libsmdb 24.else 25LIBSMDBDIR!= cd ${.CURDIR}/../../lib/libsmdb; make -V .OBJDIR 26.endif 27LIBSMDB:= ${LIBSMDBDIR}/libsmdb.a 28 29.if exists(${.OBJDIR}/../../lib/libsmutil) 30LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil 31.else 32LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR 33.endif 34LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a 35 36DPADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM} 37LDADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM} 38 39SRCS+= sm_os.h 40CLEANFILES+=sm_os.h 41 42# User customizations to the sendmail build environment 43CFLAGS+=${SENDMAIL_CFLAGS} 44DPADD+=${SENDMAIL_DPADD} 45LDADD+=${SENDMAIL_LDADD} 46LDFLAGS+=${SENDMAIL_LDFLAGS} 47 48sm_os.h: 49 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 50 51.include <bsd.prog.mk> 52