1 # $NetBSD: Makefile,v 1.1 2009/07/19 23:30:37 christos Exp $
3 WARNS?
= 2 # XXX -Wcast-qual
10 USE_FORT?
= yes
# cryptographic software
13 # $Id: Makefile,v 1.2 2009/07/19 23:33:34 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 \
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_{IDEA,MDC2,RC5} changes ABI due to change in
44 # struct/union. we nuked all of them in our header files and it is now safe.
45 .if
${MKCRYPTO_IDEA} == "no"
46 CPPFLAGS
+= -DOPENSSL_NO_IDEA
49 DPADD
+= ${LIBCRYPTO_IDEA}
51 .if
${MKCRYPTO_MDC2} == "no"
52 CPPFLAGS
+= -DOPENSSL_NO_MDC2
55 DPADD
+= ${LIBCRYPTO_MDC2}
57 .if
${MKCRYPTO_RC5} == "no"
58 CPPFLAGS
+= -DOPENSSL_NO_RC5
61 DPADD
+= ${LIBCRYPTO_RC5}
64 # this must be _after_ the libcrypto_rc5/libcrypto_idea entries.
65 LDADD
+= -lssl
-lcrypto
-lcrypt
66 DPADD
+= ${LIBSSL} ${LIBCRYPTO} ${LIBCRYPT}
68 CRYPTODIST
= ${NETBSDSRCDIR}/crypto
69 .
include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
70 .PATH
: ${OPENSSLSRC}/apps
72 #LINKS= openssl verify \
109 .if
${MKSHARE} != "no"
110 FILES
= CA.sh CA.pl openssl.cnf
111 FILESDIR
=/usr
/share
/examples
/openssl
114 .
include <bsd.prog.mk
>