NetBSD/usr.bin/openssl/Makefile

115 lines
2.6 KiB
Makefile
Raw Normal View History

2005-03-26 03:32:35 +03:00
# $NetBSD: Makefile,v 1.22 2005/03/26 00:32:35 christos Exp $
NOMAN= # defined
.include <bsd.own.mk>
# RCSid:
2005-03-26 03:32:35 +03:00
# $Id: Makefile,v 1.22 2005/03/26 00:32:35 christos Exp $
#
# @(#) 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
PROG= openssl
SRCS= openssl.c
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 \
2005-03-26 01:36:54 +03:00
x509.c genrsa.c gendsa.c prime.c s_server.c s_client.c speed.c \
2003-07-24 18:20:59 +04:00
s_time.c version.c sess_id.c \
ciphers.c nseq.c pkcs12.c pkcs8.c spkac.c smime.c rand.c engine.c ocsp.c
CPPFLAGS+= -DMONOLITH -DUSE_SSL -I${OPENSSLSRC}
2000-10-02 02:13:37 +04:00
# with normal OpenSSL, OPENSSL_NO_{IDEA,MDC2,RC5} changes ABI due to change in
2002-09-27 11:08:29 +04:00
# 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+= -DOPENSSL_NO_IDEA
.else
LDADD+= -lcrypto_idea
DPADD+= ${LIBCRYPTO_IDEA}
2000-10-02 02:13:37 +04:00
.endif
.if ${MKCRYPTO_MDC2} == "no"
CPPFLAGS+= -DOPENSSL_NO_MDC2
.else
LDADD+= -lcrypto_mdc2
DPADD+= ${LIBCRYPTO_MDC2}
.endif
2002-09-27 11:08:29 +04:00
.if ${MKCRYPTO_RC5} == "no"
CPPFLAGS+= -DOPENSSL_NO_RC5
2002-09-27 11:08:29 +04:00
.else
LDADD+= -lcrypto_rc5
DPADD+= ${LIBCRYPTO_RC5}
.endif
2000-10-02 02:13:37 +04:00
# this must be _after_ the libcrypto_rc5/libcrypto_idea entries.
LDADD+= -lssl -lcrypto -lcrypt
DPADD+= ${LIBSSL} ${LIBCRYPTO} ${LIBCRYPT}
LDADD+= -lcompat
DPADD+= ${LIBCOMPAT}
CRYPTODIST= ${NETBSDSRCDIR}/crypto/dist
.include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
.PATH: ${OPENSSLSRC}/apps
2003-07-24 18:20:59 +04:00
#LINKS= openssl verify \
# openssl asn1pars \
# openssl req \
# openssl dgst \
# openssl dh \
2003-07-24 18:20:59 +04:00
# openssl dhparam \
# openssl enc \
2003-07-24 18:20:59 +04:00
# openssl passwd \
# openssl gendh \
# openssl errstr \
# openssl ca \
# openssl crl \
2003-07-24 18:20:59 +04:00
# openssl rsa \
# openssl rsautl \
# openssl dsa \
# openssl dsaparam \
# openssl x509 \
2003-07-24 18:20:59 +04:00
# openssl genrsa \
# openssl gendsa \
# openssl s_server \
# openssl s_client \
# openssl speed \
# openssl s_time \
# openssl version \
# openssl pkcs7 \
# openssl crl2pkcs7 \
2003-07-24 18:20:59 +04:00
# openssl sess_id \
# openssl ciphers \
# openssl nseq \
# openssl pkcs12 \
# openssl pkcs8 \
# openssl spkac \
# openssl smime \
# openssl rand \
# openssl engine \
# openssl ocsp
.if ${MKSHARE} != "no"
2005-03-26 03:32:35 +03:00
FILES= CA.sh CA.pl openssl.cnf
FILESDIR=/usr/share/examples/openssl
.endif
.include <bsd.prog.mk>