Makefile revision 1.7
1#	$NetBSD: Makefile,v 1.7 2017/05/21 14:20:44 riastradh 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.7 2017/05/21 14:20:44 riastradh 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
43LDADD+=	-lssl -lcrypto -lcrypt
44DPADD+=	${LIBSSL} ${LIBCRYPTO} ${LIBCRYPT}
45
46CRYPTODIST=	${NETBSDSRCDIR}/crypto
47.include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
48.PATH:	${OPENSSLSRC}/apps
49
50#LINKS=	openssl verify \
51#	openssl asn1pars \
52#	openssl req \
53#	openssl dgst \
54#	openssl dh \
55#	openssl dhparam \
56#	openssl enc \
57#	openssl passwd \
58#	openssl gendh \
59#	openssl errstr \
60#	openssl ca \
61#	openssl crl \
62#	openssl rsa \
63#	openssl rsautl \
64#	openssl dsa \
65#	openssl dsaparam \
66#	openssl x509 \
67#	openssl genrsa \
68#	openssl gendsa \
69#	openssl s_server \
70#	openssl s_client \
71#	openssl speed \
72#	openssl s_time \
73#	openssl version \
74#	openssl pkcs7 \
75#	openssl crl2pkcs7 \
76#	openssl sess_id \
77#	openssl ciphers \
78#	openssl nseq \
79#	openssl pkcs12 \
80#	openssl pkcs8 \
81#	openssl spkac \
82#	openssl smime \
83#	openssl rand \
84#	openssl engine \
85#	openssl ocsp
86
87.if ${MKSHARE} != "no"
88FILES=  CA.sh CA.pl openssl.cnf
89FILESDIR=/usr/share/examples/openssl
90.endif
91
92.include <bsd.prog.mk>
93