Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / am-utils / Makefile.inc
blobd97594aa421509c107672d95eeea2ce8624c2d48
1 #       $NetBSD: Makefile.inc,v 1.1 2008/09/19 21:38:40 christos Exp $
3 WARNS?= 1
5 .include <bsd.own.mk>
7 BINDIR?= /usr/sbin
9 USE_FORT?=yes
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
18 .endif
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()
23 .endif
25 .if (${USE_YP} != "no")
26 CPPFLAGS+=-DHAVE_MAP_NIS=1
27 .endif
29 .if !defined(LIB) || empty(LIB)
30 LDADD+= -L${LIBAMUOBJDIR} -lamu
31 .if ${MKPICLIB} == "no"
32 DPADD+= ${LIBAMUOBJDIR}/libamu.a
33 .else
34 DPADD+= ${LIBAMUOBJDIR}/libamu_pic.a
35 .endif
36 .endif