]> www.wagner.pp.ru Git - openssl-gost/engine.git/blob - Makefile
Initial commit providing GOST 2012 algorithms.
[openssl-gost/engine.git] / Makefile
1 DIR=ccgost
2 TOP=../..
3 CC=cc
4 INCLUDES= -I../../include
5 CFLAG=-g
6 MAKEFILE= Makefile
7 AR= ar r
8 CFLAGS= $(INCLUDES) $(CFLAG)
9 LIB=$(TOP)/libcrypto.a
10
11 LIBSRC= gost_md2012.c gosthash2012.c gost_ec_sign.c gost_ec_keyx.c gost89.c gost94_keyx.c gost_ameth.c gost_asn1.c gost_crypt.c gost_ctl.c gost_eng.c gosthash.c gost_keywrap.c gost_md.c gost_params.c gost_pmeth.c gost_sign.c
12
13 LIBOBJ= gost_md2012.o gosthash2012.o e_gost_err.o gost_ec_keyx.o gost_ec_sign.o gost89.o gost94_keyx.o gost_ameth.o gost_asn1.o gost_crypt.o gost_ctl.o gost_eng.o gosthash.o gost_keywrap.o gost_md.o gost_params.o gost_pmeth.o gost_sign.o
14
15 SRC=$(LIBSRC)
16
17 LIBNAME=gost
18
19 top: 
20         (cd $(TOP); $(MAKE) DIRS=engines EDIRS=$(DIR) sub_all)
21
22 all: lib
23
24 tags:
25         ctags $(SRC)
26
27 errors:
28         $(PERL) ../../util/mkerr.pl -conf gost.ec -nostatic -write $(SRC)
29
30 lib: $(LIBOBJ)
31         if [ -n "$(SHARED_LIBS)" ]; then \
32                 $(MAKE) -f $(TOP)/Makefile.shared -e \
33                         LIBNAME=$(LIBNAME) \
34                         LIBEXTRAS='$(LIBOBJ)' \
35                         LIBDEPS='-L$(TOP) -lcrypto' \
36                         link_o.$(SHLIB_TARGET); \
37         else \
38                 $(AR) $(LIB) $(LIBOBJ); \
39         fi
40         @touch lib
41
42 install:
43         [ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
44         if [ -n "$(SHARED_LIBS)" ]; then \
45                 set -e; \
46                 echo installing $(LIBNAME); \
47                 pfx=lib; \
48                 if expr "$(PLATFORM)" : "Cygwin" >/dev/null; then \
49                         sfx=".so"; \
50                         cp cyg$(LIBNAME).dll $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx.new; \
51                 else \
52                         case "$(CFLAGS)" in \
53                         *DSO_BEOS*) sfx=".so";; \
54                         *DSO_DLFCN*) sfx=`expr "$(SHLIB_EXT)" : '.*\(\.[a-z][a-z]*\)' \| ".so"`;; \
55                         *DSO_DL*) sfx=".sl";; \
56                         *DSO_WIN32*) sfx="eay32.dll"; pfx=;; \
57                         *) sfx=".bad";; \
58                         esac; \
59                         cp $${pfx}$(LIBNAME)$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx.new; \
60                 fi; \
61                 chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx.new; \
62                 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx; \
63         fi
64
65 links:
66
67 tests:
68
69 update: local_depend
70         @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
71
72 depend: local_depend
73         @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
74 local_depend:
75         @[ -z "$(THIS)" ] || $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
76
77 files:
78         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
79
80 lint:
81         lint -DLINT $(INCLUDES) $(SRC)>fluff
82
83 dclean:
84         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
85         mv -f Makefile.new $(MAKEFILE)
86
87 clean:
88         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff *.so *.sl *.dll
89
90 # DO NOT DELETE THIS LINE -- make depend depends on it.
91
92 gost_ec_sign.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
93 gost_ec_sign.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
94 gost_ec_sign.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
95 gost_ec_sign.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
96 gost_ec_sign.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
97 gost_ec_sign.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
98 gost_ec_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h
99 gost_ec_sign.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
100 gost_ec_sign.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
101 gost_ec_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
102 gost_ec_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
103 gost_ec_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
104 gost_ec_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
105 gost_ec_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
106 gost_ec_sign.o: e_gost_err.h gost_ec_sign.c gost89.h gost_lcl.h gost_params.h
107 gost_ec_sign.o: gosthash.h
108 gost_ec_keyx.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
109 gost_ec_keyx.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
110 gost_ec_keyx.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
111 gost_ec_keyx.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
112 gost_ec_keyx.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
113 gost_ec_keyx.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
114 gost_ec_keyx.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
115 gost_ec_keyx.o: ../../include/openssl/obj_mac.h
116 gost_ec_keyx.o: ../../include/openssl/objects.h
117 gost_ec_keyx.o: ../../include/openssl/opensslconf.h
118 gost_ec_keyx.o: ../../include/openssl/opensslv.h
119 gost_ec_keyx.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
120 gost_ec_keyx.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
121 gost_ec_keyx.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
122 gost_ec_keyx.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
123 gost_ec_keyx.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost_ec_keyx.c
124 gost_ec_keyx.o: gost89.h gost_keywrap.h gost_lcl.h gosthash.h
125 gosthash2012.o: gosthash2012_const.h
126 gosthash2012.o: gosthash2012.c gosthash2012.h
127 gosthash2012.o: gosthash2012_precalc.h gosthash2012_ref.h
128 gost_md2012.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
129 gost_md2012.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
130 gost_md2012.o: ../../include/openssl/evp.h ../../include/openssl/obj_mac.h
131 gost_md2012.o: ../../include/openssl/objects.h
132 gost_md2012.o: ../../include/openssl/opensslconf.h
133 gost_md2012.o: ../../include/openssl/opensslv.h
134 gost_md2012.o: ../../include/openssl/ossl_typ.h
135 gost_md2012.o: ../../include/openssl/safestack.h
136 gost_md2012.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
137 gost_md2012.o: gosthash2012_const.h
138 gost_md2012.o: gosthash2012.h gosthash2012_precalc.h
139 gost_md2012.o: gosthash2012_ref.h gost_md2012.c
140 gost89.o: gost89.c gost89.h
141 gost94_keyx.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
142 gost94_keyx.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
143 gost94_keyx.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
144 gost94_keyx.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
145 gost94_keyx.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
146 gost94_keyx.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
147 gost94_keyx.o: ../../include/openssl/engine.h ../../include/openssl/evp.h
148 gost94_keyx.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
149 gost94_keyx.o: ../../include/openssl/objects.h
150 gost94_keyx.o: ../../include/openssl/opensslconf.h
151 gost94_keyx.o: ../../include/openssl/opensslv.h
152 gost94_keyx.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
153 gost94_keyx.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
154 gost94_keyx.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
155 gost94_keyx.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
156 gost94_keyx.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost89.h
157 gost94_keyx.o: gost94_keyx.c gost_keywrap.h gost_lcl.h gosthash.h
158 gost_ameth.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
159 gost_ameth.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
160 gost_ameth.o: ../../include/openssl/buffer.h ../../include/openssl/cms.h
161 gost_ameth.o: ../../include/openssl/conf.h
162 gost_ameth.o: ../../include/openssl/crypto.h ../../include/openssl/dsa.h
163 gost_ameth.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
164 gost_ameth.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
165 gost_ameth.o: ../../include/openssl/engine.h ../../include/openssl/err.h
166 gost_ameth.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
167 gost_ameth.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
168 gost_ameth.o: ../../include/openssl/opensslconf.h
169 gost_ameth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
170 gost_ameth.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
171 gost_ameth.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
172 gost_ameth.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
173 gost_ameth.o: ../../include/openssl/x509v3.h
174 gost_ameth.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost89.h
175 gost_ameth.o: gost_ameth.c gost_lcl.h gost_params.h gosthash.h
176 gost_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
177 gost_asn1.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
178 gost_asn1.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
179 gost_asn1.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
180 gost_asn1.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
181 gost_asn1.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
182 gost_asn1.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
183 gost_asn1.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
184 gost_asn1.o: ../../include/openssl/opensslconf.h
185 gost_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
186 gost_asn1.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
187 gost_asn1.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
188 gost_asn1.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
189 gost_asn1.o: ../../include/openssl/x509_vfy.h gost89.h gost_asn1.c gost_lcl.h
190 gost_asn1.o: gosthash.h
191 gost_crypt.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
192 gost_crypt.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
193 gost_crypt.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
194 gost_crypt.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
195 gost_crypt.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
196 gost_crypt.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
197 gost_crypt.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
198 gost_crypt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
199 gost_crypt.o: ../../include/openssl/opensslconf.h
200 gost_crypt.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
201 gost_crypt.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
202 gost_crypt.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
203 gost_crypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
204 gost_crypt.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
205 gost_crypt.o: e_gost_err.h gost89.h gost_crypt.c gost_lcl.h gosthash.h
206 gost_ctl.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
207 gost_ctl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
208 gost_ctl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
209 gost_ctl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
210 gost_ctl.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
211 gost_ctl.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
212 gost_ctl.o: ../../include/openssl/err.h ../../include/openssl/evp.h
213 gost_ctl.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
214 gost_ctl.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
215 gost_ctl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
216 gost_ctl.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
217 gost_ctl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
218 gost_ctl.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
219 gost_ctl.o: ../../include/openssl/x509_vfy.h gost89.h gost_ctl.c gost_lcl.h
220 gost_ctl.o: gosthash.h
221 gost_eng.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
222 gost_eng.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
223 gost_eng.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
224 gost_eng.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
225 gost_eng.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
226 gost_eng.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
227 gost_eng.o: ../../include/openssl/err.h ../../include/openssl/evp.h
228 gost_eng.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
229 gost_eng.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
230 gost_eng.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
231 gost_eng.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
232 gost_eng.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
233 gost_eng.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
234 gost_eng.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost89.h gost_eng.c
235 gost_eng.o: gost_lcl.h gosthash.h
236 gost_keywrap.o: gost89.h gost_keywrap.c gost_keywrap.h
237 gost_md.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
238 gost_md.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
239 gost_md.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
240 gost_md.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
241 gost_md.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
242 gost_md.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
243 gost_md.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
244 gost_md.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
245 gost_md.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
246 gost_md.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
247 gost_md.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
248 gost_md.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
249 gost_md.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
250 gost_md.o: e_gost_err.h gost89.h gost_lcl.h gost_md.c gosthash.h
251 gost_params.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
252 gost_params.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
253 gost_params.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
254 gost_params.o: ../../include/openssl/opensslconf.h
255 gost_params.o: ../../include/openssl/opensslv.h
256 gost_params.o: ../../include/openssl/ossl_typ.h
257 gost_params.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
258 gost_params.o: ../../include/openssl/symhacks.h gost_params.c gost_params.h
259 gost_pmeth.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
260 gost_pmeth.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
261 gost_pmeth.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h
262 gost_pmeth.o: ../../include/openssl/cms.h ../../include/openssl/err.h
263 gost_pmeth.o: ../../include/openssl/crypto.h ../../include/openssl/dsa.h
264 gost_pmeth.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
265 gost_pmeth.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
266 gost_pmeth.o: ../../include/openssl/engine.h ../../include/openssl/evp.h
267 gost_pmeth.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
268 gost_pmeth.o: ../../include/openssl/objects.h
269 gost_pmeth.o: ../../include/openssl/opensslconf.h
270 gost_pmeth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
271 gost_pmeth.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
272 gost_pmeth.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
273 gost_pmeth.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
274 gost_pmeth.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h
275 gost_pmeth.o: e_gost_err.h gost89.h gost_lcl.h gost_params.h gost_pmeth.c
276 gost_pmeth.o: gosthash.h
277 gost_sign.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
278 gost_sign.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
279 gost_sign.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
280 gost_sign.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
281 gost_sign.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
282 gost_sign.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
283 gost_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h
284 gost_sign.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
285 gost_sign.o: ../../include/openssl/objects.h
286 gost_sign.o: ../../include/openssl/opensslconf.h
287 gost_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
288 gost_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
289 gost_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
290 gost_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
291 gost_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
292 gost_sign.o: e_gost_err.h gost89.h gost_lcl.h gost_params.h gost_sign.c
293 gost_sign.o: gosthash.h
294 gosthash.o: gost89.h gosthash.c gosthash.h