xref: /minix3/crypto/external/bsd/openssl/bin/Makefile (revision ebfedea0ce5bbe81e252ddf32d732e40fb633fae)
1*ebfedea0SLionel Sambuc#	$NetBSD: Makefile,v 1.6 2012/07/13 19:32:51 christos Exp $
2*ebfedea0SLionel Sambuc
3*ebfedea0SLionel SambucWARNS?=	2	# XXX -Wcast-qual
4*ebfedea0SLionel Sambuc
5*ebfedea0SLionel SambucNOMAN=	# defined
6*ebfedea0SLionel SambucBINDIR=/usr/bin
7*ebfedea0SLionel Sambuc
8*ebfedea0SLionel Sambuc.include <bsd.own.mk>
9*ebfedea0SLionel Sambuc
10*ebfedea0SLionel SambucUSE_FORT?= yes	# cryptographic software
11*ebfedea0SLionel Sambuc
12*ebfedea0SLionel Sambuc# RCSid:
13*ebfedea0SLionel Sambuc#	$Id: Makefile,v 1.6 2012/07/13 19:32:51 christos Exp $
14*ebfedea0SLionel Sambuc#
15*ebfedea0SLionel Sambuc#	@(#) Copyright (c) 1995 Simon J. Gerraty
16*ebfedea0SLionel Sambuc#
17*ebfedea0SLionel Sambuc#	This file is provided in the hope that it will
18*ebfedea0SLionel Sambuc#	be of use.  There is absolutely NO WARRANTY.
19*ebfedea0SLionel Sambuc#	Permission to copy, redistribute or otherwise
20*ebfedea0SLionel Sambuc#	use this file is hereby granted provided that
21*ebfedea0SLionel Sambuc#	the above copyright notice and this notice are
22*ebfedea0SLionel Sambuc#	left intact.
23*ebfedea0SLionel Sambuc#
24*ebfedea0SLionel Sambuc#	Please send copies of changes and bug-fixes to:
25*ebfedea0SLionel Sambuc#	sjg@quick.com.au
26*ebfedea0SLionel Sambuc#
27*ebfedea0SLionel Sambuc
28*ebfedea0SLionel SambucPROG=	openssl
29*ebfedea0SLionel Sambuc
30*ebfedea0SLionel SambucSRCS=	openssl.c
31*ebfedea0SLionel SambucSRCS+=	apps.c ecparam.c ec.c pkeyparam.c genpkey.c pkey.c pkeyutl.c ts.c cms.c
32*ebfedea0SLionel SambucSRCS+=	s_cb.c s_socket.c
33*ebfedea0SLionel SambucSRCS+=	app_rand.c
34*ebfedea0SLionel SambucSRCS+=	verify.c asn1pars.c req.c dgst.c dh.c dhparam.c enc.c passwd.c gendh.c errstr.c ca.c \
35*ebfedea0SLionel Sambuc	pkcs7.c crl2p7.c crl.c \
36*ebfedea0SLionel Sambuc	rsa.c rsautl.c dsa.c dsaparam.c \
37*ebfedea0SLionel Sambuc	x509.c genrsa.c gendsa.c prime.c s_server.c s_client.c speed.c \
38*ebfedea0SLionel Sambuc	s_time.c version.c sess_id.c srp.c \
39*ebfedea0SLionel Sambuc	ciphers.c nseq.c pkcs12.c pkcs8.c spkac.c smime.c rand.c engine.c ocsp.c
40*ebfedea0SLionel Sambuc
41*ebfedea0SLionel SambucCPPFLAGS+= -DMONOLITH -DUSE_SSL -I${OPENSSLSRC}
42*ebfedea0SLionel Sambuc
43*ebfedea0SLionel Sambuc# with normal OpenSSL, OPENSSL_NO_RC5 changes ABI due to change in
44*ebfedea0SLionel Sambuc# struct/union.  we nuked it in our header files and it is now safe.
45*ebfedea0SLionel Sambuc.if ${MKCRYPTO_RC5} == "no"
46*ebfedea0SLionel SambucCPPFLAGS+= -DOPENSSL_NO_RC5
47*ebfedea0SLionel Sambuc.else
48*ebfedea0SLionel SambucLDADD+=	-lcrypto_rc5
49*ebfedea0SLionel SambucDPADD+=	${LIBCRYPTO_RC5}
50*ebfedea0SLionel Sambuc.endif
51*ebfedea0SLionel Sambuc
52*ebfedea0SLionel Sambuc# this must be _after_ the libcrypto_rc5/libcrypto_idea entries.
53*ebfedea0SLionel SambucLDADD+=	-lssl -lcrypto -lcrypt
54*ebfedea0SLionel SambucDPADD+=	${LIBSSL} ${LIBCRYPTO} ${LIBCRYPT}
55*ebfedea0SLionel Sambuc
56*ebfedea0SLionel SambucCRYPTODIST=	${NETBSDSRCDIR}/crypto
57*ebfedea0SLionel Sambuc.include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
58*ebfedea0SLionel Sambuc.PATH:	${OPENSSLSRC}/apps
59*ebfedea0SLionel Sambuc
60*ebfedea0SLionel Sambuc#LINKS=	openssl verify \
61*ebfedea0SLionel Sambuc#	openssl asn1pars \
62*ebfedea0SLionel Sambuc#	openssl req \
63*ebfedea0SLionel Sambuc#	openssl dgst \
64*ebfedea0SLionel Sambuc#	openssl dh \
65*ebfedea0SLionel Sambuc#	openssl dhparam \
66*ebfedea0SLionel Sambuc#	openssl enc \
67*ebfedea0SLionel Sambuc#	openssl passwd \
68*ebfedea0SLionel Sambuc#	openssl gendh \
69*ebfedea0SLionel Sambuc#	openssl errstr \
70*ebfedea0SLionel Sambuc#	openssl ca \
71*ebfedea0SLionel Sambuc#	openssl crl \
72*ebfedea0SLionel Sambuc#	openssl rsa \
73*ebfedea0SLionel Sambuc#	openssl rsautl \
74*ebfedea0SLionel Sambuc#	openssl dsa \
75*ebfedea0SLionel Sambuc#	openssl dsaparam \
76*ebfedea0SLionel Sambuc#	openssl x509 \
77*ebfedea0SLionel Sambuc#	openssl genrsa \
78*ebfedea0SLionel Sambuc#	openssl gendsa \
79*ebfedea0SLionel Sambuc#	openssl s_server \
80*ebfedea0SLionel Sambuc#	openssl s_client \
81*ebfedea0SLionel Sambuc#	openssl speed \
82*ebfedea0SLionel Sambuc#	openssl s_time \
83*ebfedea0SLionel Sambuc#	openssl version \
84*ebfedea0SLionel Sambuc#	openssl pkcs7 \
85*ebfedea0SLionel Sambuc#	openssl crl2pkcs7 \
86*ebfedea0SLionel Sambuc#	openssl sess_id \
87*ebfedea0SLionel Sambuc#	openssl ciphers \
88*ebfedea0SLionel Sambuc#	openssl nseq \
89*ebfedea0SLionel Sambuc#	openssl pkcs12 \
90*ebfedea0SLionel Sambuc#	openssl pkcs8 \
91*ebfedea0SLionel Sambuc#	openssl spkac \
92*ebfedea0SLionel Sambuc#	openssl smime \
93*ebfedea0SLionel Sambuc#	openssl rand \
94*ebfedea0SLionel Sambuc#	openssl engine \
95*ebfedea0SLionel Sambuc#	openssl ocsp
96*ebfedea0SLionel Sambuc
97*ebfedea0SLionel Sambuc.if ${MKSHARE} != "no"
98*ebfedea0SLionel SambucFILES=  CA.sh CA.pl openssl.cnf
99*ebfedea0SLionel SambucFILESDIR=/usr/share/examples/openssl
100*ebfedea0SLionel Sambuc.endif
101*ebfedea0SLionel Sambuc
102*ebfedea0SLionel Sambuc.include <bsd.prog.mk>
103