1 # $NetBSD: Makefile,v 1.1.1.2 2023/04/18 14:19:03 christos Exp $ 2 3 WARNS?= 2 # XXX -Wcast-qual 4 5 NOMAN= # defined 6 BINDIR=/usr/bin 7 8 .include <bsd.own.mk> 9 10 USE_FORT?= yes # cryptographic software 11 12 # RCSid: 13 # $Id: Makefile,v 1.1.1.2 2023/04/18 14:19:03 christos Exp $ 14 # 15 # @(#) Copyright (c) 1995 Simon J. Gerraty 16 # 17 # This file is provided in the hope that it will 18 # be of use. There is absolutely NO WARRANTY. 19 # Permission to copy, redistribute or otherwise 20 # use this file is hereby granted provided that 21 # the above copyright notice and this notice are 22 # left intact. 23 # 24 # Please send copies of changes and bug-fixes to: 25 # sjg (at] quick.com.au 26 # 27 28 PROG= openssl 29 30 SRCS= openssl.c 31 SRCS+= apps.c ecparam.c ec.c pkeyparam.c genpkey.c pkey.c pkeyutl.c ts.c cms.c 32 SRCS+= s_cb.c s_socket.c bf_prefix.c storeutl.c 33 SRCS+= app_rand.c rehash.c 34 SRCS+= verify.c asn1pars.c req.c dgst.c dhparam.c enc.c passwd.c errstr.c \ 35 opt.c ca.c \ 36 pkcs7.c crl2p7.c crl.c \ 37 rsa.c rsautl.c dsa.c dsaparam.c \ 38 x509.c genrsa.c gendsa.c prime.c s_server.c s_client.c speed.c \ 39 s_time.c version.c sess_id.c srp.c \ 40 ciphers.c nseq.c pkcs12.c pkcs8.c spkac.c smime.c rand.c engine.c ocsp.c 41 42 CPPFLAGS+= -DMONOLITH -DUSE_SSL -I${OPENSSLSRC} 43 CPPFLAGS+= -I${OPENSSLSRC}/include -I${OPENSSLSRC}/../include 44 45 LDADD+= -lssl -lcrypto -lcrypt 46 DPADD+= ${LIBSSL} ${LIBCRYPTO} ${LIBCRYPT} 47 48 CRYPTODIST= ${NETBSDSRCDIR}/crypto 49 .include "${NETBSDSRCDIR}/crypto/Makefile.openssl" 50 .PATH: ${OPENSSLSRC}/apps 51 52 .PATH: ${OPENSSLSRC}/engines 53 SRCS+= e_padlock.c 54 55 #LINKS= openssl verify \ 56 # openssl asn1pars \ 57 # openssl req \ 58 # openssl dgst \ 59 # openssl dh \ 60 # openssl dhparam \ 61 # openssl enc \ 62 # openssl passwd \ 63 # openssl gendh \ 64 # openssl errstr \ 65 # openssl ca \ 66 # openssl crl \ 67 # openssl rsa \ 68 # openssl rsautl \ 69 # openssl dsa \ 70 # openssl dsaparam \ 71 # openssl x509 \ 72 # openssl genrsa \ 73 # openssl gendsa \ 74 # openssl s_server \ 75 # openssl s_client \ 76 # openssl speed \ 77 # openssl s_time \ 78 # openssl version \ 79 # openssl pkcs7 \ 80 # openssl crl2pkcs7 \ 81 # openssl sess_id \ 82 # openssl ciphers \ 83 # openssl nseq \ 84 # openssl pkcs12 \ 85 # openssl pkcs8 \ 86 # openssl spkac \ 87 # openssl smime \ 88 # openssl rand \ 89 # openssl engine \ 90 # openssl ocsp 91 92 .if ${MKSHARE} != "no" 93 FILES= CA.pl openssl.cnf 94 FILESBUILD= yes 95 FILESDIR=/usr/share/examples/openssl 96 97 CA.pl: CA.pl.in 98 ${_MKTARGET_CREATE} 99 rm -f ${.TARGET} 100 ${TOOL_SED} \ 101 -e 's@{- \$$config{hashbangperl} -}@/usr/bin/env perl@' \ 102 ${.ALLSRC} > ${.TARGET} 103 104 CLEANFILES+=CA.pl 105 106 .endif 107 108 .include <bsd.prog.mk> 109