summaryrefslogtreecommitdiff
path: root/usr.bin/openssl/Makefile
blob: dfbd8d777f82ebb6e7ca62f40f2b910899c839a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#	$NetBSD: Makefile,v 1.12 2001/12/12 12:24:29 lukem Exp $

NOMAN=	# defined

.include <bsd.own.mk>

# RCSid:
#	$Id: Makefile,v 1.12 2001/12/12 12:24:29 lukem Exp $
#
#	@(#) Copyright (c) 1995 Simon J. Gerraty
#
#	This file is provided in the hope that it will
#	be of use.  There is absolutely NO WARRANTY.
#	Permission to copy, redistribute or otherwise
#	use this file is hereby granted provided that 
#	the above copyright notice and this notice are
#	left intact. 
#      
#	Please send copies of changes and bug-fixes to:
#	sjg@quick.com.au
#

# XXX There's a bit of work to do before we can enable warnings.
WARNS=0

PROG=	openssl

SRCS=	openssl.c
SRCS+=	apps.c
SRCS+=	s_cb.c s_socket.c
SRCS+=	app_rand.c
SRCS+=	verify.c asn1pars.c req.c dgst.c dh.c dhparam.c enc.c passwd.c gendh.c errstr.c ca.c \
	pkcs7.c crl2p7.c crl.c \
	rsa.c rsautl.c dsa.c dsaparam.c \
	x509.c genrsa.c gendsa.c s_server.c s_client.c speed.c \
	s_time.c $(A_SRC) $(S_SRC) $(RAND_SRC) version.c sess_id.c \
	ciphers.c nseq.c pkcs12.c pkcs8.c spkac.c smime.c rand.c

CPPFLAGS+= -DMONOLITH -DUSE_SSL

# with normal OpenSSL, NO_{RC5,IDEA} changes ABI due to change in struct/union.
# we nuked all of them in our header files and it is now safe.
.if ${MKCRYPTO_RC5} == "no"
CPPFLAGS+= -DNO_RC5
.else
LDADD+=	-lcrypto_rc5
DPADD+=	${LIBCRYPTO_RC5}
.endif
.if ${MKCRYPTO_IDEA} == "no"
CPPFLAGS+= -DNO_IDEA
.else
LDADD+=	-lcrypto_idea
DPADD+=	${LIBCRYPTO_IDEA}
.endif

# this must be _after_ the libcrypto_rc5/libcrypto_idea entries.
LDADD+=	-lssl -lcrypto
DPADD+=	${LIBSSL} ${LIBCRYPTO}
LDADD+=	-lcompat
DPADD+=	${LIBCOMPAT}

CRYPTODIST=	${.CURDIR}/../../crypto/dist
.include "../../crypto/Makefile.openssl"
.PATH:	${OPENSSLSRC}/apps

#LINKS= 	openssl verify \
#	openssl asn1parse \
#	openssl req \
#	openssl dgst \
#	openssl dh \
#	openssl enc \
#	openssl gendh \
#	openssl gendsa \
#	openssl errstr \
#	openssl ca \
#	openssl crl \
#	openssl dsa \
#	openssl dsaparam \
#	openssl x509 \
#	openssl s_server \
#	openssl s_client \
#	openssl sess_id \
#	openssl ciphers \
#	openssl s_filter \
#	openssl speed \
#	openssl hashdir \
#	openssl s_time \
#	openssl s_mult \
#	openssl version \
#	openssl pkcs7 \
#	openssl crl2pkcs7 \
#	openssl md2 \
#	openssl sha \
#	openssl sha1 \
#	openssl base64 \
#	openssl des \
#	openssl des3 \
#	openssl rc4 \
#	openssl rc2 \
#	openssl des-ecb \
#	openssl des-ede \
#	openssl des-ede3 \
#	openssl des-cbc \
#	openssl des-ede-cbc \
#	openssl des-ede3-cbc \
#	openssl des-cfb \
#	openssl des-ede-cfb \
#	openssl des-ede3-cfb \
#	openssl des-ofb \
#	openssl des-ede-ofb \
#	openssl des-ede3-ofb \
#	openssl rc2-cbc \
#	openssl rc2-ecb \
#	openssl rc2-cfb \
#	openssl rc2-ofb \

#LINKS+=	openssl rsa \
#	openssl rsa-cbc \
#	openssl rsa-ecb \
#	openssl rsa-cfb \
#	openssl rsa-ofb

ssleay.o:	ssleay.c
	${CC} ${CFLAGS} -UMONOLITH -o ${.TARGET} -c ${.IMPSRC}

.include <bsd.prog.mk>

.if ${MKSHARE} != "no"
FILES=  CA.sh CA.pl der_chop openssl.cnf
FILESDIR=/usr/share/examples/openssl
.endif

.include <bsd.files.mk>