Home | History | Annotate | Line # | Download | only in plugins
Makefile revision 1.1
      1 #	$NetBSD: Makefile,v 1.1 2022/03/06 17:50:19 christos Exp $
      2 
      3 LIBISMODULE:=	yes
      4 .include <bsd.init.mk>
      5 
      6 SHLIB_MAJOR=0
      7 LIB=	filter-aaaa
      8 SRCS=	filter-aaaa.c
      9 LIBDIR=	/usr/lib/named
     10 
     11 DIST=${IDIST}/bin/plugins
     12 
     13 .PATH: ${DIST}
     14 
     15 .if ${MKPIC} != "no"
     16 .PRECIOUS: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}
     17 libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}
     18 .else
     19 libinstall::
     20 .endif
     21 
     22 .include <bsd.lib.mk>
     23 
     24 ${DESTDIR}${LIBDIR}/${LIB}.so.${SHLIB_MAJOR}: ${LIB}.so.${SHLIB_FULLVERSION}
     25 	${_MKTARGET_INSTALL}
     26 	${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
     27 	    ${.ALLSRC} ${.TARGET}
     28