NetBSD/usr.sbin/amd/Makefile.inc
2003-04-11 22:46:02 +00:00

35 lines
709 B
Makefile

# $NetBSD: Makefile.inc,v 1.19 2003/04/11 22:47:32 thorpej Exp $
WARNS?= 1
WFORMAT=2
.include <bsd.own.mk>
IDIST= ${NETBSDSRCDIR}/dist/am-utils
LIBAMUOBJDIR!=cd ${.CURDIR}/../libamu && ${PRINTOBJDIR}
CPPFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/../include -I${IDIST}/libamu \
-I${IDIST}/include -I${LIBAMUOBJDIR}
.if (${USE_HESIOD} != "no")
CPPFLAGS+=-DHAVE_MAP_HESIOD=1
.endif
.if (${USE_YP} != "no")
CPPFLAGS+=-DHAVE_MAP_NIS=1
.endif
.if !defined(LIB) || empty(LIB)
LDADD+= -L${LIBAMUOBJDIR} -lamu
.if ${MKPICLIB} == "no"
DPADD+= ${LIBAMUOBJDIR}/libamu.a
.else
DPADD+= ${LIBAMUOBJDIR}/libamu_pic.a
.endif
.endif
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif