Apply mingw patches as supplied by Roumen Petrov an Alon Bar-Lev
[openssl.git] / engines / ccgost / 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= gost2001.c gost2001_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= e_gost_err.o gost2001_keyx.o gost2001.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 [ "$(PLATFORM)" != "Cygwin" ]; then \
49                         case "$(CFLAGS)" in \
50                         *DSO_BEOS*) sfx=".so";; \
51                         *DSO_DLFCN*) sfx=".so";; \
52                         *DSO_DL*) sfx=".sl";; \
53                         *DSO_WIN32*)    sfx="eay32.dll"; pfx=;; \
54                         *) sfx=".bad";; \
55                         esac; \
56                         cp $${pfx}$(LIBNAME)$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/$${pfx}$(LIBNAME)$$sfx.new; \
57                 else \
58                         sfx="so"; \
59                         cp cyg$(LIBNAME).dll $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/$${pfx}$(LIBNAME)$$sfx.new; \
60                 fi; \
61                 chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/$${pfx}$(LIBNAME)$$sfx.new; \
62                 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/$${pfx}$(LIBNAME)$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/$${pfx}$(LIBNAME)$$sfx; \
63         fi
64
65 links:
66
67 tests:
68
69 depend:
70         @if [ -z "$(THIS)" ]; then \
71             $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; \
72         else \
73             $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC); \
74         fi
75
76 files:
77
78
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 gost2001.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
93 gost2001.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
94 gost2001.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
95 gost2001.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
96 gost2001.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
97 gost2001.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
98 gost2001.o: ../../include/openssl/err.h ../../include/openssl/evp.h
99 gost2001.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
100 gost2001.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
101 gost2001.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
102 gost2001.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
103 gost2001.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
104 gost2001.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
105 gost2001.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
106 gost2001.o: e_gost_err.h gost2001.c gost89.h gost_lcl.h gost_params.h
107 gost2001.o: gosthash.h
108 gost2001_keyx.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
109 gost2001_keyx.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
110 gost2001_keyx.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
111 gost2001_keyx.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
112 gost2001_keyx.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
113 gost2001_keyx.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
114 gost2001_keyx.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
115 gost2001_keyx.o: ../../include/openssl/obj_mac.h
116 gost2001_keyx.o: ../../include/openssl/objects.h
117 gost2001_keyx.o: ../../include/openssl/opensslconf.h
118 gost2001_keyx.o: ../../include/openssl/opensslv.h
119 gost2001_keyx.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
120 gost2001_keyx.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
121 gost2001_keyx.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
122 gost2001_keyx.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
123 gost2001_keyx.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost2001_keyx.c
124 gost2001_keyx.o: gost2001_keyx.h gost89.h gost_keywrap.h gost_lcl.h gosthash.h
125 gost89.o: gost89.c gost89.h
126 gost94_keyx.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
127 gost94_keyx.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
128 gost94_keyx.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
129 gost94_keyx.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
130 gost94_keyx.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
131 gost94_keyx.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
132 gost94_keyx.o: ../../include/openssl/engine.h ../../include/openssl/evp.h
133 gost94_keyx.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
134 gost94_keyx.o: ../../include/openssl/objects.h
135 gost94_keyx.o: ../../include/openssl/opensslconf.h
136 gost94_keyx.o: ../../include/openssl/opensslv.h
137 gost94_keyx.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
138 gost94_keyx.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
139 gost94_keyx.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
140 gost94_keyx.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
141 gost94_keyx.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost89.h
142 gost94_keyx.o: gost94_keyx.c gost_keywrap.h gost_lcl.h gosthash.h
143 gost_ameth.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
144 gost_ameth.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
145 gost_ameth.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
146 gost_ameth.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
147 gost_ameth.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
148 gost_ameth.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
149 gost_ameth.o: ../../include/openssl/err.h ../../include/openssl/evp.h
150 gost_ameth.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
151 gost_ameth.o: ../../include/openssl/objects.h
152 gost_ameth.o: ../../include/openssl/opensslconf.h
153 gost_ameth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
154 gost_ameth.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
155 gost_ameth.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
156 gost_ameth.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
157 gost_ameth.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost89.h
158 gost_ameth.o: gost_ameth.c gost_lcl.h gost_params.h gosthash.h
159 gost_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
160 gost_asn1.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
161 gost_asn1.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
162 gost_asn1.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
163 gost_asn1.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
164 gost_asn1.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
165 gost_asn1.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
166 gost_asn1.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
167 gost_asn1.o: ../../include/openssl/opensslconf.h
168 gost_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
169 gost_asn1.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
170 gost_asn1.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
171 gost_asn1.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
172 gost_asn1.o: ../../include/openssl/x509_vfy.h gost89.h gost_asn1.c gost_lcl.h
173 gost_asn1.o: gosthash.h
174 gost_crypt.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
175 gost_crypt.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
176 gost_crypt.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
177 gost_crypt.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
178 gost_crypt.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
179 gost_crypt.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
180 gost_crypt.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
181 gost_crypt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
182 gost_crypt.o: ../../include/openssl/opensslconf.h
183 gost_crypt.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
184 gost_crypt.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
185 gost_crypt.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
186 gost_crypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
187 gost_crypt.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
188 gost_crypt.o: e_gost_err.h gost89.h gost_crypt.c gost_lcl.h gosthash.h
189 gost_ctl.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
190 gost_ctl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
191 gost_ctl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
192 gost_ctl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
193 gost_ctl.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
194 gost_ctl.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
195 gost_ctl.o: ../../include/openssl/err.h ../../include/openssl/evp.h
196 gost_ctl.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
197 gost_ctl.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
198 gost_ctl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
199 gost_ctl.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
200 gost_ctl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
201 gost_ctl.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
202 gost_ctl.o: ../../include/openssl/x509_vfy.h gost89.h gost_ctl.c gost_lcl.h
203 gost_ctl.o: gosthash.h
204 gost_eng.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
205 gost_eng.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
206 gost_eng.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
207 gost_eng.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
208 gost_eng.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
209 gost_eng.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
210 gost_eng.o: ../../include/openssl/err.h ../../include/openssl/evp.h
211 gost_eng.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
212 gost_eng.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
213 gost_eng.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
214 gost_eng.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
215 gost_eng.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
216 gost_eng.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
217 gost_eng.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost89.h gost_eng.c
218 gost_eng.o: gost_lcl.h gosthash.h
219 gost_keywrap.o: gost89.h gost_keywrap.c gost_keywrap.h
220 gost_md.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
221 gost_md.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
222 gost_md.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
223 gost_md.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
224 gost_md.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
225 gost_md.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
226 gost_md.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
227 gost_md.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
228 gost_md.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
229 gost_md.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
230 gost_md.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
231 gost_md.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
232 gost_md.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
233 gost_md.o: e_gost_err.h gost89.h gost_lcl.h gost_md.c gosthash.h
234 gost_params.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
235 gost_params.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
236 gost_params.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
237 gost_params.o: ../../include/openssl/opensslconf.h
238 gost_params.o: ../../include/openssl/opensslv.h
239 gost_params.o: ../../include/openssl/ossl_typ.h
240 gost_params.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
241 gost_params.o: ../../include/openssl/symhacks.h gost_params.c gost_params.h
242 gost_pmeth.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
243 gost_pmeth.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
244 gost_pmeth.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h
245 gost_pmeth.o: ../../include/openssl/crypto.h ../../include/openssl/dsa.h
246 gost_pmeth.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
247 gost_pmeth.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
248 gost_pmeth.o: ../../include/openssl/engine.h ../../include/openssl/evp.h
249 gost_pmeth.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
250 gost_pmeth.o: ../../include/openssl/objects.h
251 gost_pmeth.o: ../../include/openssl/opensslconf.h
252 gost_pmeth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
253 gost_pmeth.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
254 gost_pmeth.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
255 gost_pmeth.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
256 gost_pmeth.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h
257 gost_pmeth.o: e_gost_err.h gost89.h gost_lcl.h gost_params.h gost_pmeth.c
258 gost_pmeth.o: gosthash.h
259 gost_sign.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
260 gost_sign.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
261 gost_sign.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
262 gost_sign.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
263 gost_sign.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
264 gost_sign.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
265 gost_sign.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
266 gost_sign.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
267 gost_sign.o: ../../include/openssl/opensslconf.h
268 gost_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
269 gost_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
270 gost_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
271 gost_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
272 gost_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
273 gost_sign.o: e_gost_err.h gost89.h gost_lcl.h gost_params.h gost_sign.c
274 gost_sign.o: gosthash.h
275 gosthash.o: gost89.h gosthash.c gosthash.h