2006-10-08 21:52:28 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.20 2006/10/08 17:52:29 peter Exp $
|
2000-11-20 03:24:41 +03:00
|
|
|
|
|
|
|
WARNS?= 1
|
|
|
|
|
2001-01-07 11:00:54 +03:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2002-09-18 07:54:26 +04:00
|
|
|
IDIST= ${NETBSDSRCDIR}/dist/am-utils
|
2000-11-20 03:24:41 +03:00
|
|
|
|
2001-01-07 11:00:54 +03:00
|
|
|
LIBAMUOBJDIR!=cd ${.CURDIR}/../libamu && ${PRINTOBJDIR}
|
2000-11-20 03:24:41 +03:00
|
|
|
|
|
|
|
CPPFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/../include -I${IDIST}/libamu \
|
|
|
|
-I${IDIST}/include -I${LIBAMUOBJDIR}
|
1998-04-13 00:45:05 +04:00
|
|
|
|
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 21:10:19 +03:00
|
|
|
.if (${USE_HESIOD} != "no")
|
|
|
|
CPPFLAGS+=-DHAVE_MAP_HESIOD=1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if (${USE_YP} != "no")
|
|
|
|
CPPFLAGS+=-DHAVE_MAP_NIS=1
|
|
|
|
.endif
|
|
|
|
|
1998-09-27 20:28:54 +04:00
|
|
|
.if !defined(LIB) || empty(LIB)
|
2000-11-20 03:24:41 +03:00
|
|
|
LDADD+= -L${LIBAMUOBJDIR} -lamu
|
2003-04-12 02:46:02 +04:00
|
|
|
.if ${MKPICLIB} == "no"
|
2000-11-20 03:24:41 +03:00
|
|
|
DPADD+= ${LIBAMUOBJDIR}/libamu.a
|
1998-04-13 00:45:05 +04:00
|
|
|
.else
|
2000-11-20 03:24:41 +03:00
|
|
|
DPADD+= ${LIBAMUOBJDIR}/libamu_pic.a
|
1998-04-13 00:45:05 +04:00
|
|
|
.endif
|
1998-09-27 20:28:54 +04:00
|
|
|
.endif
|
1997-10-18 10:42:25 +04:00
|
|
|
|
|
|
|
.if exists(${.CURDIR}/../../Makefile.inc)
|
|
|
|
.include "${.CURDIR}/../../Makefile.inc"
|
|
|
|
.endif
|