xref: /minix/crypto/external/bsd/openssl/bin/Makefile (revision ebfedea0)
1#	$NetBSD: Makefile,v 1.6 2012/07/13 19:32:51 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.6 2012/07/13 19:32:51 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=	openssl.c
31SRCS+=	apps.c ecparam.c ec.c pkeyparam.c genpkey.c pkey.c pkeyutl.c ts.c cms.c
32SRCS+=	s_cb.c s_socket.c
33SRCS+=	app_rand.c
34SRCS+=	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
40
41CPPFLAGS+= -DMONOLITH -DUSE_SSL -I${OPENSSLSRC}
42
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"
46CPPFLAGS+= -DOPENSSL_NO_RC5
47.else
48LDADD+=	-lcrypto_rc5
49DPADD+=	${LIBCRYPTO_RC5}
50.endif
51
52# this must be _after_ the libcrypto_rc5/libcrypto_idea entries.
53LDADD+=	-lssl -lcrypto -lcrypt
54DPADD+=	${LIBSSL} ${LIBCRYPTO} ${LIBCRYPT}
55
56CRYPTODIST=	${NETBSDSRCDIR}/crypto
57.include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
58.PATH:	${OPENSSLSRC}/apps
59
60#LINKS=	openssl verify \
61#	openssl asn1pars \
62#	openssl req \
63#	openssl dgst \
64#	openssl dh \
65#	openssl dhparam \
66#	openssl enc \
67#	openssl passwd \
68#	openssl gendh \
69#	openssl errstr \
70#	openssl ca \
71#	openssl crl \
72#	openssl rsa \
73#	openssl rsautl \
74#	openssl dsa \
75#	openssl dsaparam \
76#	openssl x509 \
77#	openssl genrsa \
78#	openssl gendsa \
79#	openssl s_server \
80#	openssl s_client \
81#	openssl speed \
82#	openssl s_time \
83#	openssl version \
84#	openssl pkcs7 \
85#	openssl crl2pkcs7 \
86#	openssl sess_id \
87#	openssl ciphers \
88#	openssl nseq \
89#	openssl pkcs12 \
90#	openssl pkcs8 \
91#	openssl spkac \
92#	openssl smime \
93#	openssl rand \
94#	openssl engine \
95#	openssl ocsp
96
97.if ${MKSHARE} != "no"
98FILES=  CA.sh CA.pl openssl.cnf
99FILESDIR=/usr/share/examples/openssl
100.endif
101
102.include <bsd.prog.mk>
103