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