2002-09-27 11:08:29 +04:00
|
|
|
# $NetBSD: Makefile,v 1.17 2002/09/27 07:08:29 itojun Exp $
|
2001-12-12 15:24:19 +03:00
|
|
|
|
|
|
|
NOMAN= # defined
|
2000-06-16 10:29:40 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
# RCSid:
|
2002-09-27 11:08:29 +04:00
|
|
|
# $Id: Makefile,v 1.17 2002/09/27 07:08:29 itojun Exp $
|
2000-06-16 10:29:40 +04:00
|
|
|
#
|
|
|
|
# @(#) Copyright (c) 1995 Simon J. Gerraty
|
|
|
|
#
|
|
|
|
# This file is provided in the hope that it will
|
|
|
|
# be of use. There is absolutely NO WARRANTY.
|
|
|
|
# Permission to copy, redistribute or otherwise
|
|
|
|
# use this file is hereby granted provided that
|
|
|
|
# the above copyright notice and this notice are
|
|
|
|
# left intact.
|
|
|
|
#
|
|
|
|
# Please send copies of changes and bug-fixes to:
|
|
|
|
# sjg@quick.com.au
|
|
|
|
#
|
|
|
|
|
2000-06-16 10:37:17 +04:00
|
|
|
# XXX There's a bit of work to do before we can enable warnings.
|
|
|
|
WARNS=0
|
|
|
|
|
2000-06-16 10:29:40 +04:00
|
|
|
PROG= openssl
|
|
|
|
|
|
|
|
SRCS= openssl.c
|
2001-04-12 11:48:03 +04:00
|
|
|
SRCS+= apps.c
|
|
|
|
SRCS+= s_cb.c s_socket.c
|
|
|
|
SRCS+= app_rand.c
|
|
|
|
SRCS+= verify.c asn1pars.c req.c dgst.c dh.c dhparam.c enc.c passwd.c gendh.c errstr.c ca.c \
|
|
|
|
pkcs7.c crl2p7.c crl.c \
|
|
|
|
rsa.c rsautl.c dsa.c dsaparam.c \
|
|
|
|
x509.c genrsa.c gendsa.c s_server.c s_client.c speed.c \
|
|
|
|
s_time.c $(A_SRC) $(S_SRC) $(RAND_SRC) version.c sess_id.c \
|
|
|
|
ciphers.c nseq.c pkcs12.c pkcs8.c spkac.c smime.c rand.c
|
2000-06-16 10:29:40 +04:00
|
|
|
|
2002-08-31 14:46:36 +04:00
|
|
|
CPPFLAGS+= -DMONOLITH -DUSE_SSL -I${OPENSSLSRC}
|
2000-10-02 02:13:37 +04:00
|
|
|
|
2002-09-27 11:08:29 +04:00
|
|
|
# with normal OpenSSL, NO_{IDEA,MDC2,RC5} changes ABI due to change in
|
|
|
|
# struct/union. we nuked all of them in our header files and it is now safe.
|
2000-10-02 02:13:37 +04:00
|
|
|
.if ${MKCRYPTO_IDEA} == "no"
|
|
|
|
CPPFLAGS+= -DNO_IDEA
|
2001-01-08 10:49:01 +03:00
|
|
|
.else
|
|
|
|
LDADD+= -lcrypto_idea
|
|
|
|
DPADD+= ${LIBCRYPTO_IDEA}
|
2000-10-02 02:13:37 +04:00
|
|
|
.endif
|
2002-09-26 17:05:54 +04:00
|
|
|
.if ${MKCRYPTO_MDC2} == "no"
|
|
|
|
CPPFLAGS+= -DNO_MDC2
|
|
|
|
.else
|
|
|
|
LDADD+= -lcrypto_mdc2
|
|
|
|
DPADD+= ${LIBCRYPTO_MDC2}
|
|
|
|
.endif
|
2002-09-27 11:08:29 +04:00
|
|
|
.if ${MKCRYPTO_RC5} == "no"
|
|
|
|
CPPFLAGS+= -DNO_RC5
|
|
|
|
.else
|
|
|
|
LDADD+= -lcrypto_rc5
|
|
|
|
DPADD+= ${LIBCRYPTO_RC5}
|
|
|
|
.endif
|
2000-10-02 02:13:37 +04:00
|
|
|
|
2001-01-08 10:49:01 +03:00
|
|
|
# this must be _after_ the libcrypto_rc5/libcrypto_idea entries.
|
|
|
|
LDADD+= -lssl -lcrypto
|
|
|
|
DPADD+= ${LIBSSL} ${LIBCRYPTO}
|
2001-04-12 11:48:03 +04:00
|
|
|
LDADD+= -lcompat
|
|
|
|
DPADD+= ${LIBCOMPAT}
|
2001-01-08 10:49:01 +03:00
|
|
|
|
2002-09-18 18:00:33 +04:00
|
|
|
CRYPTODIST= ${NETBSDSRCDIR}/crypto/dist
|
|
|
|
.include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
|
2000-06-16 10:29:40 +04:00
|
|
|
.PATH: ${OPENSSLSRC}/apps
|
|
|
|
|
|
|
|
#LINKS= openssl verify \
|
|
|
|
# openssl asn1parse \
|
|
|
|
# openssl req \
|
|
|
|
# openssl dgst \
|
|
|
|
# openssl dh \
|
|
|
|
# openssl enc \
|
|
|
|
# openssl gendh \
|
|
|
|
# openssl gendsa \
|
|
|
|
# openssl errstr \
|
|
|
|
# openssl ca \
|
|
|
|
# openssl crl \
|
|
|
|
# openssl dsa \
|
|
|
|
# openssl dsaparam \
|
|
|
|
# openssl x509 \
|
|
|
|
# openssl s_server \
|
|
|
|
# openssl s_client \
|
|
|
|
# openssl sess_id \
|
|
|
|
# openssl ciphers \
|
|
|
|
# openssl s_filter \
|
|
|
|
# openssl speed \
|
|
|
|
# openssl hashdir \
|
|
|
|
# openssl s_time \
|
|
|
|
# openssl s_mult \
|
|
|
|
# openssl version \
|
|
|
|
# openssl pkcs7 \
|
|
|
|
# openssl crl2pkcs7 \
|
|
|
|
# openssl md2 \
|
|
|
|
# openssl sha \
|
|
|
|
# openssl sha1 \
|
|
|
|
# openssl base64 \
|
|
|
|
# openssl des \
|
|
|
|
# openssl des3 \
|
|
|
|
# openssl rc4 \
|
|
|
|
# openssl rc2 \
|
|
|
|
# openssl des-ecb \
|
|
|
|
# openssl des-ede \
|
|
|
|
# openssl des-ede3 \
|
|
|
|
# openssl des-cbc \
|
|
|
|
# openssl des-ede-cbc \
|
|
|
|
# openssl des-ede3-cbc \
|
|
|
|
# openssl des-cfb \
|
|
|
|
# openssl des-ede-cfb \
|
|
|
|
# openssl des-ede3-cfb \
|
|
|
|
# openssl des-ofb \
|
|
|
|
# openssl des-ede-ofb \
|
|
|
|
# openssl des-ede3-ofb \
|
|
|
|
# openssl rc2-cbc \
|
|
|
|
# openssl rc2-ecb \
|
|
|
|
# openssl rc2-cfb \
|
|
|
|
# openssl rc2-ofb \
|
|
|
|
|
|
|
|
#LINKS+= openssl rsa \
|
|
|
|
# openssl rsa-cbc \
|
|
|
|
# openssl rsa-ecb \
|
|
|
|
# openssl rsa-cfb \
|
|
|
|
# openssl rsa-ofb
|
|
|
|
|
|
|
|
ssleay.o: ssleay.c
|
|
|
|
${CC} ${CFLAGS} -UMONOLITH -o ${.TARGET} -c ${.IMPSRC}
|
|
|
|
|
|
|
|
.if ${MKSHARE} != "no"
|
2000-06-21 01:57:12 +04:00
|
|
|
FILES= CA.sh CA.pl der_chop openssl.cnf
|
2000-06-16 10:29:40 +04:00
|
|
|
FILESDIR=/usr/share/examples/openssl
|
|
|
|
.endif
|
|
|
|
|
2002-04-24 12:18:45 +04:00
|
|
|
.include <bsd.prog.mk>
|