2019-04-24 13:28:17 +03:00
|
|
|
# $NetBSD: Makefile.inc,v 1.8 2019/04/24 10:28:17 roy Exp $
|
2008-09-20 01:38:40 +04:00
|
|
|
|
2013-02-14 05:57:42 +04:00
|
|
|
.ifndef AMU_MAKEFILE_INC
|
|
|
|
AMU_MAKEFILE_INC=
|
2008-09-20 01:38:40 +04:00
|
|
|
WARNS?= 1
|
2015-01-22 00:48:43 +03:00
|
|
|
CWARNFLAGS.clang+= -Wno-error=enum-conversion
|
2008-09-20 01:38:40 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2008-09-20 14:45:48 +04:00
|
|
|
BINDIR?= /usr/sbin
|
2008-09-20 01:38:40 +04:00
|
|
|
|
|
|
|
USE_FORT?=yes
|
|
|
|
|
2013-02-14 05:57:42 +04:00
|
|
|
AMUTILS= ${NETBSDSRCDIR}/external/bsd/am-utils
|
|
|
|
IDIST= ${AMUTILS}/dist
|
2008-09-20 01:38:40 +04:00
|
|
|
|
|
|
|
CPPFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/../../include -I${IDIST}/libamu \
|
2013-02-14 05:57:42 +04:00
|
|
|
-I${IDIST}/include
|
|
|
|
|
|
|
|
LIBAMUOBJDIR!= cd ${AMUTILS}/lib/libamu && ${PRINTOBJDIR}
|
2015-02-02 19:18:27 +03:00
|
|
|
CPPFLAGS+= -I${LIBAMUOBJDIR} -DDEBUG
|
2008-09-20 01:38:40 +04:00
|
|
|
|
|
|
|
.if (${USE_HESIOD} != "no")
|
|
|
|
CPPFLAGS+=-DHAVE_MAP_HESIOD=1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if (${USE_LDAP} != "no")
|
|
|
|
CPPFLAGS+=-DHAVE_MAP_LDAP=1 -DHAVE_LBER_H=1 -DHAVE_LDAP_H -DHAVE_LDAP_OPEN=1
|
|
|
|
CPPFLAGS+=-DLDAP_DEPRECATED=1 # OpenLDAP 2.2 deprecated ldap_unbind()
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if (${USE_YP} != "no")
|
2019-04-24 13:28:17 +03:00
|
|
|
CPPFLAGS+=-DHAVE_MAP_NIS=1 -DYP
|
2008-09-20 01:38:40 +04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(LIB) || empty(LIB)
|
2013-02-14 05:57:42 +04:00
|
|
|
PROGDPLIBS+= amu ${AMUTILS}/lib/libamu
|
|
|
|
.endif
|
2008-09-20 01:38:40 +04:00
|
|
|
.endif
|