# $OpenBSD: Makefile.inc,v 1.5 2000/09/03 18:41:12 espie Exp $ .include .include ENVDEF+= -DNEWDB -DMAP_REGEX ENVDEF+= -DNETINET6 -DNEEDSGETIPNODE .if (${YP:L} == "yes") ENVDEF+=-DNIS .endif .if defined(WANT_LIBWRAP) .if (${TCP_WRAPPERS:L} == "yes") ENVDEF+=-DTCPWRAPPERS DPADD+= ${LIBWRAP} LDADD+= -lwrap .endif .endif .if defined(WANT_LIBSMDB) LDADD+= -lsmdb .if exists(${.CURDIR}/../libsmdb/${__objdir}) DPADD+= ${.CURDIR}/../libsmdb/${__objdir}/libsmdb.a LDFLAGS+=-L${.CURDIR}/../libsmdb/${__objdir} .else DPADD+= ${.CURDIR}/../libsmdb/libsmdb.a LDFLAGS+=-L${.CURDIR}/../libsmdb .endif .endif .if defined(WANT_LIBSMUTIL) LDADD+= -lsmutil .if exists(${.CURDIR}/../libsmutil/${__objdir}) DPADD+= ${.CURDIR}/../libsmutil/${__objdir}/libsmutil.a LDFLAGS+=-L${.CURDIR}/../libsmutil/${__objdir} .else DPADD+= ${.CURDIR}/../libsmutil/libsmutil.a LDFLAGS+=-L${.CURDIR}/../libsmutil .endif .endif CFLAGS+=${ENVDEF} -I${.CURDIR}/../sendmail -I${.CURDIR}/../include