1 # $NetBSD: Makefile,v 1.6 2012/07/13 19:32:51 christos Exp $
3 WARNS?
= 2 # XXX -Wcast-qual
10 USE_FORT?
= yes
# cryptographic software
13 # $Id: Makefile,v 1.6 2012/07/13 19:32:51 christos Exp $
15 # @(#) Copyright (c) 1995 Simon J. Gerraty
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
24 # Please send copies of changes and bug-fixes to:
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
34 SRCS
+= verify.c asn1pars.c req.c dgst.c dh.c dhparam.c enc.c passwd.c gendh.c errstr.c ca.c \
35 pkcs7.c crl2p7.c crl.c \
36 rsa.c rsautl.c dsa.c dsaparam.c \
37 x509.c genrsa.c gendsa.c prime.c s_server.c s_client.c speed.c \
38 s_time.c version.c sess_id.c srp.c \
39 ciphers.c nseq.c pkcs12.c pkcs8.c spkac.c smime.c rand.c engine.c ocsp.c
41 CPPFLAGS
+= -DMONOLITH
-DUSE_SSL
-I
${OPENSSLSRC}
43 # with normal OpenSSL, OPENSSL_NO_RC5 changes ABI due to change in
44 # struct/union. we nuked it in our header files and it is now safe.
45 .if
${MKCRYPTO_RC5} == "no"
46 CPPFLAGS
+= -DOPENSSL_NO_RC5
49 DPADD
+= ${LIBCRYPTO_RC5}
52 # this must be _after_ the libcrypto_rc5/libcrypto_idea entries.
53 LDADD
+= -lssl
-lcrypto
-lcrypt
54 DPADD
+= ${LIBSSL} ${LIBCRYPTO} ${LIBCRYPT}
56 CRYPTODIST
= ${NETBSDSRCDIR}/crypto
57 .
include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
58 .PATH
: ${OPENSSLSRC}/apps
60 #LINKS= openssl verify \
97 .if
${MKSHARE} != "no"
98 FILES
= CA.sh CA.pl openssl.cnf
99 FILESDIR
=/usr
/share
/examples
/openssl
102 .
include <bsd.prog.mk
>