1 1.1 christos # $NetBSD: Makefile,v 1.1 2025/07/17 14:26:11 christos Exp $ 2 1.1 christos 3 1.1 christos # RCSid: 4 1.1 christos # Id: Makefile,v 1.33 1998/11/11 11:53:53 sjg Exp 5 1.1 christos # 6 1.1 christos # @(#) Copyright (c) 1994 Simon J. Gerraty 7 1.1 christos # 8 1.1 christos # This file is provided in the hope that it will 9 1.1 christos # be of use. There is absolutely NO WARRANTY. 10 1.1 christos # Permission to copy, redistribute or otherwise 11 1.1 christos # use this file is hereby granted provided that 12 1.1 christos # the above copyright notice and this notice are 13 1.1 christos # left intact. 14 1.1 christos # 15 1.1 christos # Please send copies of changes and bug-fixes to: 16 1.1 christos # sjg (at] quick.com.au 17 1.1 christos # 18 1.1 christos NOLINT= # don't build a lint library 19 1.1 christos NOPROFILE= # don't build a profile library 20 1.1 christos NOPICINSTALL= # don't install _pic.a library 21 1.1 christos LIB= legacy 22 1.1 christos USE_FORT?= yes # cryptographic software 23 1.1 christos #DBG=-g 24 1.1 christos 25 1.1 christos .include <bsd.own.mk> 26 1.1 christos .include <bsd.shlib.mk> 27 1.1 christos 28 1.1 christos CPPFLAGS+= -Dlib${LIB} -I. -I${OPENSSLSRC}/crypto -I${OPENSSLSRC} -I${.CURDIR} 29 1.1 christos CPPFLAGS+= -I${OPENSSLSRC}/include -I${OPENSSLSRC}/crypto/include 30 1.1 christos CPPFLAGS+= -I${OPENSSLSRC}/crypto/asn1 -I${OPENSSLSRC}/crypto/evp 31 1.1 christos CPPFLAGS+= -I${OPENSSLSRC}/crypto/modes 32 1.1 christos CPPFLAGS+= -I${OPENSSLSRC}/../include 33 1.1 christos CPPFLAGS+= -I${OPENSSLSRC}/providers/common/include 34 1.1 christos CPPFLAGS+= -I${OPENSSLSRC}/providers/fips/include 35 1.1 christos CPPFLAGS+= -I${OPENSSLSRC}/providers/implementations/include 36 1.1 christos CPPFLAGS+= -I${.CURDIR}/../libdefault 37 1.1 christos 38 1.1 christos 39 1.1 christos CRYPTODIST= ${NETBSDSRCDIR}/crypto 40 1.1 christos OPENSSLINC= ${OPENSSLSRC}/include/openssl 41 1.1 christos 42 1.1 christos .include "${NETBSDSRCDIR}/crypto/Makefile.openssl" 43 1.1 christos .PATH: ${OPENSSLSRC} ${OPENSSLINC} 44 1.1 christos .PATH: ${OPENSSLSRC}/../include/openssl 45 1.1 christos 46 1.1 christos .include "srcs.inc" 47 1.1 christos 48 1.1 christos #SRCS+=legacyprov.c 49 1.1 christos 50 1.1 christos AFLAGS+=-DELF 51 1.1 christos 52 1.1 christos OS_VERSION!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh 53 1.1 christos 54 1.1 christos 55 1.1 christos SHLIB_MAJOR=0 56 1.1 christos SHLIB_MINOR=0 57 1.1 christos 58 1.1 christos LIBDIR=${OSSL_MODULESDIR} 59 1.1 christos 60 1.1 christos .if ${MKPIC} != "no" 61 1.1 christos .PRECIOUS: ${DESTDIR}${LIBDIR}/${LIB}.so 62 1.1 christos libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so 63 1.1 christos .else 64 1.1 christos libinstall:: 65 1.1 christos .endif 66 1.1 christos 67 1.1 christos VERSION_MAP= ${LIB}.map 68 1.1 christos 69 1.1 christos .if ${MKPICLIB} == "yes" 70 1.1 christos LIBDPLIBS+= common_pic ${.CURDIR}/../libcommon 71 1.1 christos .else 72 1.1 christos LIBDPLIBS+= common ${.CURDIR}/../libcommon 73 1.1 christos .endif 74 1.1 christos LIBDPLIBS+= crypto ${.CURDIR}/../libcrypto 75 1.1 christos 76 1.1 christos .include <bsd.lib.mk> 77 1.1 christos 78 1.1 christos ${DESTDIR}${LIBDIR}/${LIB}.so: lib${LIB}.so.${SHLIB_FULLVERSION} 79 1.1 christos ${_MKTARGET_INSTALL} 80 1.1 christos ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 81 1.1 christos ${.ALLSRC} ${.TARGET} 82