1# $NetBSD: Makefile.inc,v 1.2 2008/09/20 10:45:48 mrg Exp $ 2 3WARNS?= 1 4 5.include <bsd.own.mk> 6 7BINDIR?= /usr/sbin 8 9USE_FORT?=yes 10 11IDIST= ${NETBSDSRCDIR}/external/bsd/am-utils/dist 12 13CPPFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/../../include -I${IDIST}/libamu \ 14 -I${IDIST}/include -I${LIBAMUOBJDIR} 15 16.if (${USE_HESIOD} != "no") 17CPPFLAGS+=-DHAVE_MAP_HESIOD=1 18.endif 19 20.if (${USE_LDAP} != "no") 21CPPFLAGS+=-DHAVE_MAP_LDAP=1 -DHAVE_LBER_H=1 -DHAVE_LDAP_H -DHAVE_LDAP_OPEN=1 22CPPFLAGS+=-DLDAP_DEPRECATED=1 # OpenLDAP 2.2 deprecated ldap_unbind() 23.endif 24 25.if (${USE_YP} != "no") 26CPPFLAGS+=-DHAVE_MAP_NIS=1 27.endif 28 29.if !defined(LIB) || empty(LIB) 30LDADD+= -L${LIBAMUOBJDIR} -lamu 31.if ${MKPICLIB} == "no" 32DPADD+= ${LIBAMUOBJDIR}/libamu.a 33.else 34DPADD+= ${LIBAMUOBJDIR}/libamu_pic.a 35.endif 36.endif 37