]>
Commit | Line | Data |
---|---|---|
38e19a42 RL |
1 | # |
2 | # SSLeay/engines/Makefile | |
3 | # | |
4 | ||
5 | DIR= engines | |
6 | TOP= .. | |
7 | CC= cc | |
8 | INCLUDES= -I../include | |
9 | CFLAG=-g | |
38e19a42 RL |
10 | MAKEDEPPROG= makedepend |
11 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | |
42ba5d23 | 12 | MAKEFILE= Makefile |
38e19a42 RL |
13 | AR= ar r |
14 | ||
79a6260a RL |
15 | PEX_LIBS= |
16 | EX_LIBS= | |
fbeaa3c4 | 17 | |
38e19a42 RL |
18 | CFLAGS= $(INCLUDES) $(CFLAG) |
19 | ||
1c243470 | 20 | GENERAL=Makefile engines.com install.com engine_vector.mar |
38e19a42 RL |
21 | TEST= |
22 | APPS= | |
23 | ||
24 | LIB=$(TOP)/libcrypto.a | |
a85bef18 | 25 | LIBNAMES= 4758_cca aep atalla cswift gmp ncipher nuron sureware ubsec |
97e2e71e | 26 | |
38e19a42 RL |
27 | LIBSRC= e_4758_cca.c \ |
28 | e_aep.c \ | |
29 | e_atalla.c \ | |
38e19a42 | 30 | e_cswift.c \ |
a85bef18 | 31 | e_gmp.c \ |
38e19a42 RL |
32 | e_ncipher.c \ |
33 | e_nuron.c \ | |
34 | e_sureware.c \ | |
35 | e_ubsec.c | |
36 | LIBOBJ= e_4758_cca.o \ | |
37 | e_aep.o \ | |
38 | e_atalla.o \ | |
38e19a42 | 39 | e_cswift.o \ |
a85bef18 | 40 | e_gmp.o \ |
38e19a42 RL |
41 | e_ncipher.o \ |
42 | e_nuron.o \ | |
43 | e_sureware.o \ | |
44 | e_ubsec.o | |
45 | ||
46 | SRC= $(LIBSRC) | |
47 | ||
48 | EXHEADER= | |
49 | HEADER= e_4758_cca_err.c e_4758_cca_err.h \ | |
50 | e_aep_err.c e_aep_err.h \ | |
51 | e_atalla_err.c e_atalla_err.h \ | |
38e19a42 | 52 | e_cswift_err.c e_cswift_err.h \ |
a85bef18 | 53 | e_gmp_err.c e_gmp_err.h \ |
38e19a42 RL |
54 | e_ncipher_err.c e_ncipher_err.h \ |
55 | e_nuron_err.c e_nuron_err.h \ | |
56 | e_sureware_err.c e_sureware_err.h \ | |
57 | e_ubsec_err.c e_ubsec_err.h | |
58 | ||
59 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
60 | ||
61 | top: | |
62 | (cd ..; $(MAKE) DIRS=$(DIR) all) | |
63 | ||
44866623 | 64 | all: lib |
38e19a42 | 65 | |
44866623 | 66 | lib: $(LIBOBJ) |
38e19a42 RL |
67 | @if [ -n "$(SHARED_LIBS)" ]; then \ |
68 | set -e; \ | |
69 | for l in $(LIBNAMES); do \ | |
4c3a2d64 | 70 | $(MAKE) -f ../Makefile.shared \ |
734540f8 | 71 | LIBNAME=$$l LIBEXTRAS=e_$$l.o \ |
79a6260a | 72 | LIBDEPS='-L.. -lcrypto $(EX_LIBS)' \ |
38e19a42 RL |
73 | link_o.$(SHLIB_TARGET); \ |
74 | done; \ | |
75 | else \ | |
76 | $(AR) $(LIB) $(LIBOBJ); \ | |
77 | $(RANLIB) $(LIB) || echo Never mind.; \ | |
78 | fi; \ | |
44866623 | 79 | touch lib |
38e19a42 RL |
80 | |
81 | files: | |
42ba5d23 | 82 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
38e19a42 RL |
83 | |
84 | links: | |
38e19a42 RL |
85 | |
86 | # XXXXX This currently only works on systems that use .so as suffix | |
87 | # for shared libraries. | |
88 | install: | |
81a86fcf | 89 | @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... |
38e19a42 RL |
90 | @if [ -n "$(SHARED_LIBS)" ]; then \ |
91 | set -e; \ | |
92 | for l in $(LIBNAMES); do \ | |
f6661d39 | 93 | ( echo installing $$l; \ |
90819805 GT |
94 | cp lib$$l.so $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.so.new; \ |
95 | chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.so.new; \ | |
96 | mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.so.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.so ); \ | |
38e19a42 RL |
97 | done; \ |
98 | fi | |
99 | ||
100 | tags: | |
101 | ctags $(SRC) | |
102 | ||
103 | errors: | |
104 | set -e; for l in $(LIBNAMES); do \ | |
105 | $(PERL) ../util/mkerr.pl -conf e_$$l.ec \ | |
106 | -nostatic -staticloader -write e_$$l.c; \ | |
107 | done | |
108 | ||
109 | tests: | |
110 | ||
111 | lint: | |
112 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
113 | ||
114 | depend: | |
115 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | |
116 | ||
117 | dclean: | |
118 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | |
119 | mv -f Makefile.new $(MAKEFILE) | |
120 | ||
121 | clean: | |
122 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | |
123 | ||
124 | # DO NOT DELETE THIS LINE -- make depend depends on it. | |
125 | ||
5e42f9ab | 126 | e_4758_cca.o: ../include/openssl/asn1.h ../include/openssl/bio.h |
38e19a42 | 127 | e_4758_cca.o: ../include/openssl/bn.h ../include/openssl/buffer.h |
c57bc2dc | 128 | e_4758_cca.o: ../include/openssl/crypto.h ../include/openssl/dso.h |
5e42f9ab RL |
129 | e_4758_cca.o: ../include/openssl/e_os2.h ../include/openssl/ec.h |
130 | e_4758_cca.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h | |
131 | e_4758_cca.o: ../include/openssl/engine.h ../include/openssl/err.h | |
132 | e_4758_cca.o: ../include/openssl/evp.h ../include/openssl/lhash.h | |
38e19a42 RL |
133 | e_4758_cca.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h |
134 | e_4758_cca.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | |
135 | e_4758_cca.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h | |
5e42f9ab | 136 | e_4758_cca.o: ../include/openssl/rand.h ../include/openssl/rsa.h |
38e19a42 | 137 | e_4758_cca.o: ../include/openssl/safestack.h ../include/openssl/sha.h |
c57bc2dc | 138 | e_4758_cca.o: ../include/openssl/stack.h ../include/openssl/symhacks.h |
98cec7fc RL |
139 | e_4758_cca.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h |
140 | e_4758_cca.o: e_4758_cca.c e_4758_cca_err.c e_4758_cca_err.h | |
141 | e_4758_cca.o: vendor_defns/hw_4758_cca.h | |
38e19a42 RL |
142 | e_aep.o: ../include/openssl/asn1.h ../include/openssl/bio.h |
143 | e_aep.o: ../include/openssl/bn.h ../include/openssl/buffer.h | |
144 | e_aep.o: ../include/openssl/crypto.h ../include/openssl/dh.h | |
145 | e_aep.o: ../include/openssl/dsa.h ../include/openssl/dso.h | |
c57bc2dc GT |
146 | e_aep.o: ../include/openssl/e_os2.h ../include/openssl/engine.h |
147 | e_aep.o: ../include/openssl/err.h ../include/openssl/lhash.h | |
98cec7fc | 148 | e_aep.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h |
c57bc2dc GT |
149 | e_aep.o: ../include/openssl/ossl_typ.h ../include/openssl/rsa.h |
150 | e_aep.o: ../include/openssl/safestack.h ../include/openssl/stack.h | |
151 | e_aep.o: ../include/openssl/symhacks.h e_aep.c e_aep_err.c e_aep_err.h | |
152 | e_aep.o: vendor_defns/aep.h | |
38e19a42 | 153 | e_atalla.o: ../include/openssl/asn1.h ../include/openssl/bio.h |
7cdc7bac RL |
154 | e_atalla.o: ../include/openssl/bn.h ../include/openssl/buffer.h |
155 | e_atalla.o: ../include/openssl/crypto.h ../include/openssl/dh.h | |
156 | e_atalla.o: ../include/openssl/dsa.h ../include/openssl/dso.h | |
c57bc2dc GT |
157 | e_atalla.o: ../include/openssl/e_os2.h ../include/openssl/engine.h |
158 | e_atalla.o: ../include/openssl/err.h ../include/openssl/lhash.h | |
98cec7fc | 159 | e_atalla.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h |
c57bc2dc GT |
160 | e_atalla.o: ../include/openssl/ossl_typ.h ../include/openssl/rsa.h |
161 | e_atalla.o: ../include/openssl/safestack.h ../include/openssl/stack.h | |
162 | e_atalla.o: ../include/openssl/symhacks.h e_atalla.c e_atalla_err.c | |
163 | e_atalla.o: e_atalla_err.h vendor_defns/atalla.h | |
38e19a42 | 164 | e_cswift.o: ../include/openssl/asn1.h ../include/openssl/bio.h |
7cdc7bac RL |
165 | e_cswift.o: ../include/openssl/bn.h ../include/openssl/buffer.h |
166 | e_cswift.o: ../include/openssl/crypto.h ../include/openssl/dh.h | |
167 | e_cswift.o: ../include/openssl/dsa.h ../include/openssl/dso.h | |
c57bc2dc GT |
168 | e_cswift.o: ../include/openssl/e_os2.h ../include/openssl/engine.h |
169 | e_cswift.o: ../include/openssl/err.h ../include/openssl/lhash.h | |
98cec7fc | 170 | e_cswift.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h |
c57bc2dc GT |
171 | e_cswift.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h |
172 | e_cswift.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | |
173 | e_cswift.o: ../include/openssl/stack.h ../include/openssl/symhacks.h e_cswift.c | |
7cdc7bac | 174 | e_cswift.o: e_cswift_err.c e_cswift_err.h vendor_defns/cswift.h |
c57bc2dc GT |
175 | e_gmp.o: ../include/openssl/buffer.h ../include/openssl/crypto.h |
176 | e_gmp.o: ../include/openssl/e_os2.h ../include/openssl/engine.h | |
177 | e_gmp.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | |
178 | e_gmp.o: ../include/openssl/ossl_typ.h ../include/openssl/safestack.h | |
179 | e_gmp.o: ../include/openssl/stack.h ../include/openssl/symhacks.h e_gmp.c | |
5e42f9ab | 180 | e_ncipher.o: ../include/openssl/asn1.h ../include/openssl/bio.h |
38e19a42 | 181 | e_ncipher.o: ../include/openssl/bn.h ../include/openssl/buffer.h |
5e42f9ab | 182 | e_ncipher.o: ../include/openssl/crypto.h ../include/openssl/dh.h |
c57bc2dc GT |
183 | e_ncipher.o: ../include/openssl/dso.h ../include/openssl/e_os2.h |
184 | e_ncipher.o: ../include/openssl/ec.h ../include/openssl/ecdh.h | |
185 | e_ncipher.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h | |
186 | e_ncipher.o: ../include/openssl/err.h ../include/openssl/evp.h | |
187 | e_ncipher.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h | |
188 | e_ncipher.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h | |
189 | e_ncipher.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h | |
190 | e_ncipher.o: ../include/openssl/pem.h ../include/openssl/pem2.h | |
191 | e_ncipher.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h | |
192 | e_ncipher.o: ../include/openssl/rsa.h ../include/openssl/safestack.h | |
193 | e_ncipher.o: ../include/openssl/sha.h ../include/openssl/stack.h | |
98cec7fc RL |
194 | e_ncipher.o: ../include/openssl/symhacks.h ../include/openssl/ui.h |
195 | e_ncipher.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h | |
196 | e_ncipher.o: e_ncipher.c e_ncipher_err.c e_ncipher_err.h | |
197 | e_ncipher.o: vendor_defns/hwcryptohook.h | |
38e19a42 | 198 | e_nuron.o: ../include/openssl/asn1.h ../include/openssl/bio.h |
7cdc7bac RL |
199 | e_nuron.o: ../include/openssl/bn.h ../include/openssl/buffer.h |
200 | e_nuron.o: ../include/openssl/crypto.h ../include/openssl/dh.h | |
201 | e_nuron.o: ../include/openssl/dsa.h ../include/openssl/dso.h | |
c57bc2dc GT |
202 | e_nuron.o: ../include/openssl/e_os2.h ../include/openssl/engine.h |
203 | e_nuron.o: ../include/openssl/err.h ../include/openssl/lhash.h | |
98cec7fc | 204 | e_nuron.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h |
c57bc2dc GT |
205 | e_nuron.o: ../include/openssl/ossl_typ.h ../include/openssl/rsa.h |
206 | e_nuron.o: ../include/openssl/safestack.h ../include/openssl/stack.h | |
207 | e_nuron.o: ../include/openssl/symhacks.h e_nuron.c e_nuron_err.c e_nuron_err.h | |
5e42f9ab | 208 | e_sureware.o: ../include/openssl/asn1.h ../include/openssl/bio.h |
38e19a42 | 209 | e_sureware.o: ../include/openssl/bn.h ../include/openssl/buffer.h |
5e42f9ab RL |
210 | e_sureware.o: ../include/openssl/crypto.h ../include/openssl/dh.h |
211 | e_sureware.o: ../include/openssl/dsa.h ../include/openssl/dso.h | |
212 | e_sureware.o: ../include/openssl/e_os2.h ../include/openssl/ec.h | |
213 | e_sureware.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h | |
214 | e_sureware.o: ../include/openssl/engine.h ../include/openssl/err.h | |
215 | e_sureware.o: ../include/openssl/evp.h ../include/openssl/lhash.h | |
38e19a42 RL |
216 | e_sureware.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h |
217 | e_sureware.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h | |
218 | e_sureware.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h | |
219 | e_sureware.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h | |
5e42f9ab | 220 | e_sureware.o: ../include/openssl/rand.h ../include/openssl/rsa.h |
38e19a42 | 221 | e_sureware.o: ../include/openssl/safestack.h ../include/openssl/sha.h |
c57bc2dc | 222 | e_sureware.o: ../include/openssl/stack.h ../include/openssl/symhacks.h |
98cec7fc RL |
223 | e_sureware.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h |
224 | e_sureware.o: e_sureware.c e_sureware_err.c e_sureware_err.h | |
225 | e_sureware.o: vendor_defns/sureware.h | |
38e19a42 | 226 | e_ubsec.o: ../include/openssl/asn1.h ../include/openssl/bio.h |
7cdc7bac RL |
227 | e_ubsec.o: ../include/openssl/bn.h ../include/openssl/buffer.h |
228 | e_ubsec.o: ../include/openssl/crypto.h ../include/openssl/dh.h | |
229 | e_ubsec.o: ../include/openssl/dsa.h ../include/openssl/dso.h | |
c57bc2dc GT |
230 | e_ubsec.o: ../include/openssl/e_os2.h ../include/openssl/engine.h |
231 | e_ubsec.o: ../include/openssl/err.h ../include/openssl/lhash.h | |
98cec7fc | 232 | e_ubsec.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h |
c57bc2dc GT |
233 | e_ubsec.o: ../include/openssl/ossl_typ.h ../include/openssl/rsa.h |
234 | e_ubsec.o: ../include/openssl/safestack.h ../include/openssl/stack.h | |
235 | e_ubsec.o: ../include/openssl/symhacks.h e_ubsec.c e_ubsec_err.c e_ubsec_err.h | |
236 | e_ubsec.o: vendor_defns/hw_ubsec.h |