fix error found by coverity: check if ctx is != NULL before calling BN_CTX_end()
[openssl.git] / crypto / rsa / Makefile
1 #
2 # OpenSSL/crypto/rsa/Makefile
3 #
4
5 DIR=    rsa
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I$(TOP) -I../../include
9 CFLAG=-g
10 MAKEFILE=       Makefile
11 AR=             ar r
12
13 CFLAGS= $(INCLUDES) $(CFLAG)
14
15 GENERAL=Makefile
16 TEST=rsa_test.c
17 APPS=
18
19 LIB=$(TOP)/libcrypto.a
20 LIBSRC= rsa_eay.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_saos.c rsa_err.c \
21         rsa_pk1.c rsa_ssl.c rsa_none.c rsa_oaep.c rsa_chk.c rsa_null.c \
22         rsa_pss.c rsa_x931.c rsa_asn1.c rsa_depr.c
23 LIBOBJ= rsa_eay.o rsa_gen.o rsa_lib.o rsa_sign.o rsa_saos.o rsa_err.o \
24         rsa_pk1.o rsa_ssl.o rsa_none.o rsa_oaep.o rsa_chk.o rsa_null.o \
25         rsa_pss.o rsa_x931.o rsa_asn1.o rsa_depr.o
26
27 SRC= $(LIBSRC)
28
29 EXHEADER= rsa.h
30 HEADER= $(EXHEADER)
31
32 ALL=    $(GENERAL) $(SRC) $(HEADER)
33
34 top:
35         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
36
37 all:    lib
38
39 lib:    $(LIBOBJ)
40         $(AR) $(LIB) $(LIBOBJ)
41         $(RANLIB) $(LIB) || echo Never mind.
42         @touch lib
43
44 files:
45         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
46
47 links:
48         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
49         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
50         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
51
52 install:
53         @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
54         @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
55         do  \
56         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
57         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
58         done;
59
60 tags:
61         ctags $(SRC)
62
63 tests:
64
65 lint:
66         lint -DLINT $(INCLUDES) $(SRC)>fluff
67
68 depend:
69         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
70         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
71
72 dclean:
73         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
74         mv -f Makefile.new $(MAKEFILE)
75
76 clean:
77         rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
78
79 # DO NOT DELETE THIS LINE -- make depend depends on it.
80
81 rsa_asn1.o: ../../e_os.h ../../include/openssl/asn1.h
82 rsa_asn1.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h
83 rsa_asn1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
84 rsa_asn1.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
85 rsa_asn1.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
86 rsa_asn1.o: ../../include/openssl/opensslconf.h
87 rsa_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
88 rsa_asn1.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
89 rsa_asn1.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
90 rsa_asn1.o: ../cryptlib.h rsa_asn1.c
91 rsa_chk.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
92 rsa_chk.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
93 rsa_chk.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
94 rsa_chk.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
95 rsa_chk.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
96 rsa_chk.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
97 rsa_chk.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
98 rsa_chk.o: rsa_chk.c
99 rsa_depr.o: ../../e_os.h ../../include/openssl/asn1.h
100 rsa_depr.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
101 rsa_depr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
102 rsa_depr.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
103 rsa_depr.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
104 rsa_depr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
105 rsa_depr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
106 rsa_depr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
107 rsa_depr.o: ../cryptlib.h rsa_depr.c
108 rsa_eay.o: ../../e_os.h ../../include/openssl/asn1.h
109 rsa_eay.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
110 rsa_eay.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
111 rsa_eay.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
112 rsa_eay.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
113 rsa_eay.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
114 rsa_eay.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h
115 rsa_eay.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
116 rsa_eay.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_eay.c
117 rsa_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
118 rsa_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
119 rsa_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
120 rsa_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
121 rsa_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h
122 rsa_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
123 rsa_err.o: ../../include/openssl/symhacks.h rsa_err.c
124 rsa_gen.o: ../../e_os.h ../../include/openssl/asn1.h
125 rsa_gen.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
126 rsa_gen.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
127 rsa_gen.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
128 rsa_gen.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
129 rsa_gen.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
130 rsa_gen.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
131 rsa_gen.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
132 rsa_gen.o: ../cryptlib.h rsa_gen.c
133 rsa_lib.o: ../../e_os.h ../../include/openssl/asn1.h
134 rsa_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
135 rsa_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
136 rsa_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h
137 rsa_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
138 rsa_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
139 rsa_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
140 rsa_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
141 rsa_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
142 rsa_lib.o: ../cryptlib.h rsa_lib.c
143 rsa_none.o: ../../e_os.h ../../include/openssl/asn1.h
144 rsa_none.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
145 rsa_none.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
146 rsa_none.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
147 rsa_none.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
148 rsa_none.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
149 rsa_none.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h
150 rsa_none.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
151 rsa_none.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_none.c
152 rsa_null.o: ../../e_os.h ../../include/openssl/asn1.h
153 rsa_null.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
154 rsa_null.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
155 rsa_null.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
156 rsa_null.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
157 rsa_null.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
158 rsa_null.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h
159 rsa_null.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
160 rsa_null.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_null.c
161 rsa_oaep.o: ../../e_os.h ../../include/openssl/asn1.h
162 rsa_oaep.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
163 rsa_oaep.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
164 rsa_oaep.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
165 rsa_oaep.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
166 rsa_oaep.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
167 rsa_oaep.o: ../../include/openssl/opensslconf.h
168 rsa_oaep.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
169 rsa_oaep.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h
170 rsa_oaep.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
171 rsa_oaep.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
172 rsa_oaep.o: ../cryptlib.h rsa_oaep.c
173 rsa_pk1.o: ../../e_os.h ../../include/openssl/asn1.h
174 rsa_pk1.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
175 rsa_pk1.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
176 rsa_pk1.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
177 rsa_pk1.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
178 rsa_pk1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
179 rsa_pk1.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h
180 rsa_pk1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
181 rsa_pk1.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_pk1.c
182 rsa_pss.o: ../../e_os.h ../../include/openssl/asn1.h
183 rsa_pss.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
184 rsa_pss.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
185 rsa_pss.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
186 rsa_pss.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
187 rsa_pss.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
188 rsa_pss.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
189 rsa_pss.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
190 rsa_pss.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
191 rsa_pss.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
192 rsa_pss.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_pss.c
193 rsa_saos.o: ../../e_os.h ../../include/openssl/asn1.h
194 rsa_saos.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
195 rsa_saos.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
196 rsa_saos.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
197 rsa_saos.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
198 rsa_saos.o: ../../include/openssl/err.h ../../include/openssl/evp.h
199 rsa_saos.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
200 rsa_saos.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
201 rsa_saos.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
202 rsa_saos.o: ../../include/openssl/pkcs7.h ../../include/openssl/rsa.h
203 rsa_saos.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
204 rsa_saos.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
205 rsa_saos.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
206 rsa_saos.o: ../cryptlib.h rsa_saos.c
207 rsa_sign.o: ../../e_os.h ../../include/openssl/asn1.h
208 rsa_sign.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
209 rsa_sign.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
210 rsa_sign.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
211 rsa_sign.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
212 rsa_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h
213 rsa_sign.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
214 rsa_sign.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
215 rsa_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
216 rsa_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rsa.h
217 rsa_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
218 rsa_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
219 rsa_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
220 rsa_sign.o: ../cryptlib.h rsa_sign.c
221 rsa_ssl.o: ../../e_os.h ../../include/openssl/asn1.h
222 rsa_ssl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
223 rsa_ssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
224 rsa_ssl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
225 rsa_ssl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
226 rsa_ssl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
227 rsa_ssl.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h
228 rsa_ssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
229 rsa_ssl.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_ssl.c
230 rsa_x931.o: ../../e_os.h ../../include/openssl/asn1.h
231 rsa_x931.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
232 rsa_x931.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
233 rsa_x931.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
234 rsa_x931.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
235 rsa_x931.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
236 rsa_x931.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
237 rsa_x931.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h
238 rsa_x931.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
239 rsa_x931.o: ../../include/openssl/symhacks.h ../cryptlib.h rsa_x931.c