# $NetBSD: engines.mk,v 1.1.14.1 2023/08/11 13:41:53 martin Exp $ NOLINT= # don't build a lint library NOPROFILE= # don't build a profile library NOPICINSTALL= # don't install _pic.a library .include SHLIB_MAJOR=0 SHLIB_MINOR=0 CRYPTODIST= ${NETBSDSRCDIR}/crypto .include "${NETBSDSRCDIR}/crypto/Makefile.openssl" .PATH: ${OPENSSLSRC}/engines CPPFLAGS+= -I${OPENSSLSRC}/include -I${OPENSSLSRC}/../include LIBDPLIBS+=crypto ${.CURDIR}/../../libcrypto LIBDIR=${OSSL_ENGINESDIR} .if ${MKPIC} != "no" .PRECIOUS: ${DESTDIR}${LIBDIR}/${LIB}.so libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so .else libinstall:: .endif LDFLAGS+=-Wl,--version-script=${.CURDIR}/${LIB}.map .include ${DESTDIR}${LIBDIR}/${LIB}.so: lib${LIB}.so.${SHLIB_FULLVERSION} ${_MKTARGET_INSTALL} ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ ${.ALLSRC} ${.TARGET}