Makefile revision 201390
1# $FreeBSD: head/usr.sbin/editmap/Makefile 201390 2010-01-02 11:07:44Z ed $ 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 13WARNS?= 2 14 15LIBSMDIR= ${.OBJDIR}/../../lib/libsm 16LIBSM= ${LIBSMDIR}/libsm.a 17 18LIBSMDBDIR= ${.OBJDIR}/../../lib/libsmdb 19LIBSMDB= ${LIBSMDBDIR}/libsmdb.a 20 21LIBSMUTILDIR= ${.OBJDIR}/../../lib/libsmutil 22LIBSMUTIL= ${LIBSMUTILDIR}/libsmutil.a 23 24DPADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM} 25LDADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM} 26 27SRCS+= sm_os.h 28CLEANFILES+=sm_os.h 29 30# User customizations to the sendmail build environment 31CFLAGS+=${SENDMAIL_CFLAGS} 32DPADD+=${SENDMAIL_DPADD} 33LDADD+=${SENDMAIL_LDADD} 34LDFLAGS+=${SENDMAIL_LDFLAGS} 35 36sm_os.h: 37 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 38 39.include <bsd.prog.mk> 40