1 # $NetBSD: Makefile,v 1.1 2025/07/17 14:26:11 christos 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/fips/include 35 CPPFLAGS+= -I${OPENSSLSRC}/providers/implementations/include 36 CPPFLAGS+= -I${.CURDIR}/../libdefault 37 38 39 CRYPTODIST= ${NETBSDSRCDIR}/crypto 40 OPENSSLINC= ${OPENSSLSRC}/include/openssl 41 42 .include "${NETBSDSRCDIR}/crypto/Makefile.openssl" 43 .PATH: ${OPENSSLSRC} ${OPENSSLINC} 44 .PATH: ${OPENSSLSRC}/../include/openssl 45 46 .include "srcs.inc" 47 48 #SRCS+=legacyprov.c 49 50 AFLAGS+=-DELF 51 52 OS_VERSION!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh 53 54 55 SHLIB_MAJOR=0 56 SHLIB_MINOR=0 57 58 LIBDIR=${OSSL_MODULESDIR} 59 60 .if ${MKPIC} != "no" 61 .PRECIOUS: ${DESTDIR}${LIBDIR}/${LIB}.so 62 libinstall:: ${DESTDIR}${LIBDIR}/${LIB}.so 63 .else 64 libinstall:: 65 .endif 66 67 VERSION_MAP= ${LIB}.map 68 69 .if ${MKPICLIB} == "yes" 70 LIBDPLIBS+= common_pic ${.CURDIR}/../libcommon 71 .else 72 LIBDPLIBS+= common ${.CURDIR}/../libcommon 73 .endif 74 LIBDPLIBS+= crypto ${.CURDIR}/../libcrypto 75 76 .include <bsd.lib.mk> 77 78 ${DESTDIR}${LIBDIR}/${LIB}.so: lib${LIB}.so.${SHLIB_FULLVERSION} 79 ${_MKTARGET_INSTALL} 80 ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 81 ${.ALLSRC} ${.TARGET} 82