summaryrefslogtreecommitdiff
path: root/external/mpl/bind/libexec/plugin.mk
blob: 4ac7a24d870a8c1fc9628a7ee47cf2844448b73b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#	$NetBSD: plugin.mk,v 1.1 2021/03/31 04:37:50 christos Exp $
#
# Based on src/lib/libpam/modules/mod.mk
#	NetBSD: mod.mk,v 1.17 2020/05/23 00:43:33 rin Exp

.include "${.CURDIR}/../../Makefile.inc"

DIST=		${IDIST}/bin/plugins
.PATH.c:	${DIST}

LIBDIR=		/usr/libexec/named

NOLINT=		# don't build a lint library
NOPROFILE=	# don't build a profile library
NOPICINSTALL=	# don't install _pic.a library

# Define the shared library version here, we need these variables early for
# plugin install rules.
SHLIB_MAJOR=	0
SHLIB_MINOR=	0

.include <bsd.own.mk>

.if ${MKPIC} != "no"
.PRECIOUS: ${DESTDIR}${LIBDIR}/${LIB}.so
libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so
.else
libinstall::
.endif

.include <bsd.lib.mk>

${DESTDIR}${LIBDIR}/${LIB}.so: lib${LIB}.so.${SHLIB_FULLVERSION}
	${_MKTARGET_INSTALL}
	${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
	    ${.ALLSRC} ${.TARGET}