1 # $NetBSD: Makefile.inc,v 1.1 2008/09/19 21:38:40 christos Exp $
11 IDIST= ${NETBSDSRCDIR}/external/bsd/am-utils/dist
13 CPPFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/../../include -I${IDIST}/libamu \
14 -I${IDIST}/include -I${LIBAMUOBJDIR}
16 .if (${USE_HESIOD} != "no")
17 CPPFLAGS+=-DHAVE_MAP_HESIOD=1
20 .if (${USE_LDAP} != "no")
21 CPPFLAGS+=-DHAVE_MAP_LDAP=1 -DHAVE_LBER_H=1 -DHAVE_LDAP_H -DHAVE_LDAP_OPEN=1
22 CPPFLAGS+=-DLDAP_DEPRECATED=1 # OpenLDAP 2.2 deprecated ldap_unbind()
25 .if (${USE_YP} != "no")
26 CPPFLAGS+=-DHAVE_MAP_NIS=1
29 .if !defined(LIB) || empty(LIB)
30 LDADD+= -L${LIBAMUOBJDIR} -lamu
31 .if ${MKPICLIB} == "no"
32 DPADD+= ${LIBAMUOBJDIR}/libamu.a
34 DPADD+= ${LIBAMUOBJDIR}/libamu_pic.a