Makefile revision 117299
1# $FreeBSD: head/usr.sbin/editmap/Makefile 117299 2003-07-07 03:54:04Z gshapiro $ 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 13.if exists(${.OBJDIR}/../../lib/libsm) 14LIBSMDIR:= ${.OBJDIR}/../../lib/libsm 15.else 16LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR 17.endif 18LIBSM:= ${LIBSMDIR}/libsm.a 19 20.if exists(${.OBJDIR}/../../lib/libsmdb) 21LIBSMDBDIR:= ${.OBJDIR}/../../lib/libsmdb 22.else 23LIBSMDBDIR!= cd ${.CURDIR}/../../lib/libsmdb; make -V .OBJDIR 24.endif 25LIBSMDB:= ${LIBSMDBDIR}/libsmdb.a 26 27.if exists(${.OBJDIR}/../../lib/libsmutil) 28LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil 29.else 30LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR 31.endif 32LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a 33 34DPADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM} 35LDADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM} 36 37SRCS+= sm_os.h 38CLEANFILES+=sm_os.h 39 40# User customizations to the sendmail build environment 41CFLAGS+=${SENDMAIL_CFLAGS} 42DPADD+=${SENDMAIL_DPADD} 43LDADD+=${SENDMAIL_LDADD} 44LDFLAGS+=${SENDMAIL_LDFLAGS} 45 46sm_os.h: 47 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 48 49.include <bsd.prog.mk> 50