Makefile revision 1.11
1# $NetBSD: Makefile,v 1.11 2023/05/07 16:19:24 christos Exp $ 2 3WARNS?= 2 # XXX -Wcast-qual 4 5NOMAN= # defined 6BINDIR=/usr/bin 7 8.include <bsd.own.mk> 9 10USE_FORT?= yes # cryptographic software 11 12# RCSid: 13# $Id: Makefile,v 1.11 2023/05/07 16:19:24 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@quick.com.au 26# 27 28PROG= openssl 29 30SRCS+= \ 31asn1parse.c \ 32ca.c \ 33ciphers.c \ 34cmp.c \ 35cms.c \ 36crl.c \ 37crl2pkcs7.c \ 38dgst.c \ 39dhparam.c \ 40dsa.c \ 41dsaparam.c \ 42ec.c \ 43ecparam.c \ 44enc.c \ 45engine.c \ 46errstr.c \ 47fipsinstall.c \ 48gendsa.c \ 49genpkey.c \ 50genrsa.c \ 51info.c \ 52kdf.c \ 53list.c \ 54mac.c \ 55nseq.c \ 56ocsp.c \ 57openssl.c \ 58passwd.c \ 59pkcs12.c \ 60pkcs7.c \ 61pkcs8.c \ 62pkey.c \ 63pkeyparam.c \ 64pkeyutl.c \ 65prime.c \ 66progs.c \ 67rand.c \ 68rehash.c \ 69req.c \ 70rsa.c \ 71rsautl.c \ 72s_client.c \ 73s_server.c \ 74s_time.c \ 75sess_id.c \ 76smime.c \ 77speed.c \ 78spkac.c \ 79srp.c \ 80storeutl.c \ 81ts.c \ 82verify.c \ 83version.c \ 84x509.c \ 85 86CPPFLAGS+= -DMONOLITH -DUSE_SSL -I${OPENSSLSRC} -I${.CURDIR} 87CPPFLAGS+= -I${OPENSSLSRC}/include -I${OPENSSLSRC}/apps/include 88 89PROGDPLIBSSTATIC=yes 90PROGDPLIBS+= apps ${OPENSSLSRC}/../lib/libapps 91PROGDPLIBS+= ssl ${OPENSSLSRC}/../lib/libssl 92PROGDPLIBS+= crypto ${OPENSSLSRC}/../lib/libcrypto 93 94LDADD+= -lcrypt 95DPADD+= ${LIBCRYPT} 96 97CRYPTODIST= ${NETBSDSRCDIR}/crypto 98.include "${NETBSDSRCDIR}/crypto/Makefile.openssl" 99.PATH: ${OPENSSLSRC}/apps 100 101.PATH: ${OPENSSLSRC}/engines 102SRCS+= e_padlock.c 103 104#LINKS= openssl verify \ 105# openssl asn1pars \ 106# openssl req \ 107# openssl dgst \ 108# openssl dh \ 109# openssl dhparam \ 110# openssl enc \ 111# openssl passwd \ 112# openssl gendh \ 113# openssl errstr \ 114# openssl ca \ 115# openssl crl \ 116# openssl rsa \ 117# openssl rsautl \ 118# openssl dsa \ 119# openssl dsaparam \ 120# openssl x509 \ 121# openssl genrsa \ 122# openssl gendsa \ 123# openssl s_server \ 124# openssl s_client \ 125# openssl speed \ 126# openssl s_time \ 127# openssl version \ 128# openssl pkcs7 \ 129# openssl crl2pkcs7 \ 130# openssl sess_id \ 131# openssl ciphers \ 132# openssl nseq \ 133# openssl pkcs12 \ 134# openssl pkcs8 \ 135# openssl spkac \ 136# openssl smime \ 137# openssl rand \ 138# openssl engine \ 139# openssl ocsp 140 141.if ${MKSHARE} != "no" 142FILES= CA.pl openssl.cnf 143FILESBUILD= yes 144FILESDIR=/usr/share/examples/openssl 145 146CA.pl: CA.pl.in 147 ${_MKTARGET_CREATE} 148 rm -f ${.TARGET} 149 ${TOOL_SED} \ 150 -e 's@{- \$$config{hashbangperl} -}@/usr/bin/env perl@' \ 151 ${.ALLSRC} > ${.TARGET} 152 153CLEANFILES+=CA.pl 154 155.endif 156 157.include <bsd.prog.mk> 158