Makefile for plugins

This commit is contained in:
christos 2022-03-06 17:50:19 +00:00
parent e30c3d8025
commit aaa1857f42
1 changed files with 27 additions and 0 deletions

27
external/mpl/bind/lib/plugins/Makefile vendored Normal file
View File

@ -0,0 +1,27 @@
# $NetBSD: Makefile,v 1.1 2022/03/06 17:50:19 christos Exp $
LIBISMODULE:= yes
.include <bsd.init.mk>
SHLIB_MAJOR=0
LIB= filter-aaaa
SRCS= filter-aaaa.c
LIBDIR= /usr/lib/named
DIST=${IDIST}/bin/plugins
.PATH: ${DIST}
.if ${MKPIC} != "no"
.PRECIOUS: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}
libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}
.else
libinstall::
.endif
.include <bsd.lib.mk>
${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}: ${LIB}.so.${SHLIB_FULLVERSION}
${_MKTARGET_INSTALL}
${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
${.ALLSRC} ${.TARGET}