head	1.8;
access;
symbols
	netbsd-11-0-RC4:1.8
	netbsd-11-0-RC3:1.8
	netbsd-11-0-RC2:1.8
	netbsd-11-0-RC1:1.8
	perseant-exfatfs-base-20250801:1.8
	netbsd-11:1.8.0.14
	netbsd-11-base:1.8
	netbsd-10-1-RELEASE:1.8
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.12
	perseant-exfatfs-base:1.8
	netbsd-8-3-RELEASE:1.7
	netbsd-9-4-RELEASE:1.8
	netbsd-10-0-RELEASE:1.8
	netbsd-10-0-RC6:1.8
	netbsd-10-0-RC5:1.8
	netbsd-10-0-RC4:1.8
	netbsd-10-0-RC3:1.8
	netbsd-10-0-RC2:1.8
	netbsd-10-0-RC1:1.8
	netbsd-10:1.8.0.10
	netbsd-10-base:1.8
	netbsd-9-3-RELEASE:1.8
	cjep_sun2x-base1:1.8
	cjep_sun2x:1.8.0.8
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	netbsd-9-2-RELEASE:1.8
	cjep_staticlib_x:1.8.0.6
	cjep_staticlib_x-base:1.8
	netbsd-9-1-RELEASE:1.8
	phil-wifi-20200421:1.8
	phil-wifi-20200411:1.8
	is-mlppp:1.8.0.4
	is-mlppp-base:1.8
	phil-wifi-20200406:1.8
	netbsd-8-2-RELEASE:1.7
	netbsd-9-0-RELEASE:1.8
	netbsd-9-0-RC2:1.8
	netbsd-9-0-RC1:1.8
	phil-wifi-20191119:1.8
	netbsd-9:1.8.0.2
	netbsd-9-base:1.8
	phil-wifi-20190609:1.8
	netbsd-8-1-RELEASE:1.7
	netbsd-8-1-RC1:1.7
	pgoyette-compat-merge-20190127:1.7
	pgoyette-compat-20190127:1.7
	pgoyette-compat-20190118:1.7
	pgoyette-compat-1226:1.7
	pgoyette-compat-1126:1.7
	pgoyette-compat-1020:1.7
	pgoyette-compat-0930:1.7
	pgoyette-compat-0906:1.7
	netbsd-7-2-RELEASE:1.5
	pgoyette-compat-0728:1.7
	netbsd-8-0-RELEASE:1.7
	phil-wifi:1.7.0.16
	phil-wifi-base:1.7
	pgoyette-compat-0625:1.7
	netbsd-8-0-RC2:1.7
	pgoyette-compat-0521:1.7
	pgoyette-compat-0502:1.7
	pgoyette-compat-0422:1.7
	netbsd-8-0-RC1:1.7
	pgoyette-compat-0415:1.7
	pgoyette-compat-0407:1.7
	pgoyette-compat-0330:1.7
	pgoyette-compat-0322:1.7
	pgoyette-compat-0315:1.7
	netbsd-7-1-2-RELEASE:1.5
	pgoyette-compat:1.7.0.14
	pgoyette-compat-base:1.7
	netbsd-7-1-1-RELEASE:1.5
	matt-nb8-mediatek:1.7.0.12
	matt-nb8-mediatek-base:1.7
	perseant-stdc-iso10646:1.7.0.10
	perseant-stdc-iso10646-base:1.7
	netbsd-8:1.7.0.8
	netbsd-8-base:1.7
	prg-localcount2-base3:1.7
	prg-localcount2-base2:1.7
	prg-localcount2-base1:1.7
	prg-localcount2:1.7.0.6
	prg-localcount2-base:1.7
	pgoyette-localcount-20170426:1.7
	bouyer-socketcan-base1:1.7
	pgoyette-localcount-20170320:1.7
	netbsd-7-1:1.5.0.16
	netbsd-7-1-RELEASE:1.5
	netbsd-7-1-RC2:1.5
	netbsd-7-nhusb-base-20170116:1.5
	bouyer-socketcan:1.7.0.4
	bouyer-socketcan-base:1.7
	pgoyette-localcount-20170107:1.7
	netbsd-7-1-RC1:1.5
	pgoyette-localcount-20161104:1.7
	netbsd-7-0-2-RELEASE:1.5
	localcount-20160914:1.7
	netbsd-7-nhusb:1.5.0.14
	netbsd-7-nhusb-base:1.5
	pgoyette-localcount-20160806:1.7
	pgoyette-localcount-20160726:1.7
	pgoyette-localcount:1.7.0.2
	pgoyette-localcount-base:1.7
	netbsd-7-0-1-RELEASE:1.5
	netbsd-7-0:1.5.0.12
	netbsd-7-0-RELEASE:1.5
	netbsd-7-0-RC3:1.5
	netbsd-7-0-RC2:1.5
	netbsd-7-0-RC1:1.5
	netbsd-5-2-3-RELEASE:1.2
	netbsd-5-1-5-RELEASE:1.2
	netbsd-6-0-6-RELEASE:1.2
	netbsd-6-1-5-RELEASE:1.2
	netbsd-7:1.5.0.10
	netbsd-7-base:1.5
	yamt-pagecache-base9:1.5
	yamt-pagecache-tag8:1.2
	netbsd-6-1-4-RELEASE:1.2
	netbsd-6-0-5-RELEASE:1.2
	tls-earlyentropy:1.5.0.8
	tls-earlyentropy-base:1.5
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.5
	riastradh-drm2-base3:1.5
	netbsd-6-1-3-RELEASE:1.2
	netbsd-6-0-4-RELEASE:1.2
	netbsd-5-2-2-RELEASE:1.2
	netbsd-5-1-4-RELEASE:1.2
	netbsd-6-1-2-RELEASE:1.2
	netbsd-6-0-3-RELEASE:1.2
	netbsd-5-2-1-RELEASE:1.2
	netbsd-5-1-3-RELEASE:1.2
	netbsd-6-1-1-RELEASE:1.2
	riastradh-drm2-base2:1.5
	riastradh-drm2-base1:1.5
	riastradh-drm2:1.5.0.2
	riastradh-drm2-base:1.5
	netbsd-6-1:1.2.0.32
	netbsd-6-0-2-RELEASE:1.2
	netbsd-6-1-RELEASE:1.2
	khorben-n900:1.5.0.6
	netbsd-6-1-RC4:1.2
	netbsd-6-1-RC3:1.2
	agc-symver:1.5.0.4
	agc-symver-base:1.5
	netbsd-6-1-RC2:1.2
	netbsd-6-1-RC1:1.2
	yamt-pagecache-base8:1.2
	netbsd-5-2:1.2.0.30
	netbsd-6-0-1-RELEASE:1.2
	yamt-pagecache-base7:1.2
	netbsd-5-2-RELEASE:1.2
	netbsd-5-2-RC1:1.2
	matt-nb6-plus-nbase:1.2
	yamt-pagecache-base6:1.2
	netbsd-6-0:1.2.0.28
	netbsd-6-0-RELEASE:1.2
	netbsd-6-0-RC2:1.2
	tls-maxphys:1.2.0.26
	tls-maxphys-base:1.5
	matt-nb6-plus:1.2.0.24
	matt-nb6-plus-base:1.2
	netbsd-6-0-RC1:1.2
	yamt-pagecache-base5:1.2
	yamt-pagecache-base4:1.2
	netbsd-6:1.2.0.22
	netbsd-6-base:1.2
	netbsd-5-1-2-RELEASE:1.2
	netbsd-5-1-1-RELEASE:1.2
	yamt-pagecache-base3:1.2
	yamt-pagecache-base2:1.2
	yamt-pagecache:1.2.0.2
	yamt-pagecache-base:1.2
	cherry-xenmp:1.2.0.20
	cherry-xenmp-base:1.2
	bouyer-quota2-nbase:1.2
	bouyer-quota2:1.2.0.18
	bouyer-quota2-base:1.2
	matt-mips64-premerge-20101231:1.2
	matt-nb5-mips64-premerge-20101231:1.2
	matt-nb5-pq3:1.2.0.16
	matt-nb5-pq3-base:1.2
	netbsd-5-1:1.2.0.14
	netbsd-5-1-RELEASE:1.2
	netbsd-5-1-RC4:1.2
	matt-nb5-mips64-k15:1.2
	netbsd-5-1-RC3:1.2
	netbsd-5-1-RC2:1.2
	netbsd-5-1-RC1:1.2
	netbsd-5-0-2-RELEASE:1.2
	matt-nb5-mips64-premerge-20091211:1.2
	matt-premerge-20091211:1.2
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.2
	matt-nb4-mips64-k7-u2a-k9b:1.2
	matt-nb5-mips64-u1-k1-k5:1.2
	matt-nb5-mips64:1.2.0.12
	netbsd-5-0-1-RELEASE:1.2
	jym-xensuspend-nbase:1.2
	netbsd-5-0:1.2.0.10
	netbsd-5-0-RELEASE:1.2
	netbsd-5-0-RC4:1.2
	netbsd-5-0-RC3:1.2
	netbsd-5-0-RC2:1.2
	jym-xensuspend:1.2.0.8
	jym-xensuspend-base:1.2
	netbsd-5-0-RC1:1.2
	haad-dm-base:1.2
	haad-dm-base2:1.2
	haad-nbase2:1.2
	netbsd-5:1.2.0.6
	netbsd-5-base:1.2
	matt-mips64-base2:1.2
	haad-dm:1.2.0.4
	haad-dm-base1:1.2;
locks; strict;
comment	@# @;


1.8
date	2019.04.24.10.28.17;	author roy;	state Exp;
branches;
next	1.7;
commitid	9gqN0v2WDuOkzAkB;

1.7
date	2015.02.02.16.18.27;	author christos;	state Exp;
branches
	1.7.16.1;
next	1.6;
commitid	yr4LMredtJ4y4s8y;

1.6
date	2015.01.21.21.48.43;	author joerg;	state Exp;
branches;
next	1.5;
commitid	mxcPtBhO2RRJhW6y;

1.5
date	2013.02.14.01.57.42;	author christos;	state Exp;
branches;
next	1.4;

1.4
date	2013.02.14.01.06.04;	author matt;	state Exp;
branches;
next	1.3;

1.3
date	2013.02.14.00.54.12;	author matt;	state Exp;
branches;
next	1.2;

1.2
date	2008.09.20.10.45.48;	author mrg;	state Exp;
branches
	1.2.2.1
	1.2.4.1
	1.2.26.1;
next	1.1;

1.1
date	2008.09.19.21.38.40;	author christos;	state Exp;
branches;
next	;

1.7.16.1
date	2019.06.10.21.42.47;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.2.2.1
date	2014.05.22.15.41.06;	author yamt;	state Exp;
branches;
next	;
commitid	SFbWOH8OpGAX5yBx;

1.2.4.1
date	2008.09.20.10.45.48;	author haad;	state dead;
branches;
next	1.2.4.2;

1.2.4.2
date	2008.10.19.22.39.28;	author haad;	state Exp;
branches;
next	;

1.2.26.1
date	2013.02.25.00.24.52;	author tls;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Fix building am-utils with MKYP=no
@
text
@#	$NetBSD: Makefile.inc,v 1.7 2015/02/02 16:18:27 christos Exp $

.ifndef AMU_MAKEFILE_INC
AMU_MAKEFILE_INC=
WARNS?=	1
CWARNFLAGS.clang+=	-Wno-error=enum-conversion

.include <bsd.own.mk>

BINDIR?= /usr/sbin

USE_FORT?=yes

AMUTILS=	${NETBSDSRCDIR}/external/bsd/am-utils
IDIST=		${AMUTILS}/dist

CPPFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/../../include -I${IDIST}/libamu \
    -I${IDIST}/include

LIBAMUOBJDIR!=	cd ${AMUTILS}/lib/libamu && ${PRINTOBJDIR}
CPPFLAGS+=	-I${LIBAMUOBJDIR} -DDEBUG

.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")
CPPFLAGS+=-DHAVE_MAP_NIS=1 -DYP
.endif

.if !defined(LIB) || empty(LIB)
PROGDPLIBS+=	amu	${AMUTILS}/lib/libamu
.endif
.endif
@


1.7
log
@make DEBUG build the default.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 2015/01/21 21:48:43 joerg Exp $
d33 1
a33 1
CPPFLAGS+=-DHAVE_MAP_NIS=1
@


1.7.16.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 2019/04/24 10:28:17 roy Exp $
d33 1
a33 1
CPPFLAGS+=-DHAVE_MAP_NIS=1 -DYP
@


1.6
log
@Don't bail out on implicit enum casts.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 2013/02/14 01:57:42 christos Exp $
d21 1
a21 1
CPPFLAGS+=	-I${LIBAMUOBJDIR}
@


1.5
log
@add PROGDPLIBS, and remove duplicate dependencies.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2013/02/14 01:06:04 matt Exp $
d6 1
@


1.4
log
@Use LIBDPLIBS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2013/02/14 00:54:12 matt Exp $
d3 2
d13 2
a14 1
IDIST=	${NETBSDSRCDIR}/external/bsd/am-utils/dist
d17 4
a20 1
	-I${IDIST}/include -I${LIBAMUOBJDIR}
d36 2
a37 9
LDADD+=	-L${LIBAMUOBJDIR} -lamu
LIBDPLIBS+= -llibamu ${LIBAMUOBJDIR}
#.if ${MKPICLIB} != "no"
#DPADD+=	${LIBAMUOBJDIR}/libamu_pic.a
#.elif ${MKPIC} != "no"
#DPADD+=	${LIBAMUOBJDIR}/libamu.so
#.else
#DPADD+=	${LIBAMUOBJDIR}/libamu.a
#.endif
@


1.3
log
@Deal with MKPICLIB=no fallout
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 2008/09/20 10:45:48 mrg Exp $
d31 8
a38 7
.if ${MKPICLIB} != "no"
DPADD+=	${LIBAMUOBJDIR}/libamu_pic.a
.elif ${MKPIC} != "no"
DPADD+=	${LIBAMUOBJDIR}/libamu.so
.else
DPADD+=	${LIBAMUOBJDIR}/libamu.a
.endif
@


1.2
log
@allow BINDIR to be set in bin/pawd/Makefile, so it won't get installed
into /usr/sbin..
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1 2008/09/19 21:38:40 christos Exp $
d31 5
a35 1
.if ${MKPICLIB} == "no"
a36 2
.else
DPADD+=	${LIBAMUOBJDIR}/libamu_pic.a
@


1.2.2.1
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 2008/09/20 10:45:48 mrg Exp $
a2 2
.ifndef AMU_MAKEFILE_INC
AMU_MAKEFILE_INC=
d11 1
a11 2
AMUTILS=	${NETBSDSRCDIR}/external/bsd/am-utils
IDIST=		${AMUTILS}/dist
d14 1
a14 4
    -I${IDIST}/include

LIBAMUOBJDIR!=	cd ${AMUTILS}/lib/libamu && ${PRINTOBJDIR}
CPPFLAGS+=	-I${LIBAMUOBJDIR}
d30 5
a34 1
PROGDPLIBS+=	amu	${AMUTILS}/lib/libamu
@


1.2.26.1
log
@resync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 2008/09/20 10:45:48 mrg Exp $
a2 2
.ifndef AMU_MAKEFILE_INC
AMU_MAKEFILE_INC=
d11 1
a11 2
AMUTILS=	${NETBSDSRCDIR}/external/bsd/am-utils
IDIST=		${AMUTILS}/dist
d14 1
a14 4
    -I${IDIST}/include

LIBAMUOBJDIR!=	cd ${AMUTILS}/lib/libamu && ${PRINTOBJDIR}
CPPFLAGS+=	-I${LIBAMUOBJDIR}
d30 5
a34 1
PROGDPLIBS+=	amu	${AMUTILS}/lib/libamu
@


1.2.4.1
log
@file Makefile.inc was added on branch haad-dm on 2008-10-19 22:39:28 +0000
@
text
@d1 36
@


1.2.4.2
log
@Sync with HEAD.
@
text
@a0 36
#	$NetBSD: Makefile.inc,v 1.2 2008/09/20 10:45:48 mrg Exp $

WARNS?=	1

.include <bsd.own.mk>

BINDIR?= /usr/sbin

USE_FORT?=yes

IDIST=	${NETBSDSRCDIR}/external/bsd/am-utils/dist

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_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")
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
@


1.1
log
@resolve issues and add build glue
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.22 2008/05/22 14:48:15 lukem Exp $
d7 1
a7 1
BINDIR= /usr/sbin
@
