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