Add missing prototype. Fix various warnings (C++ comments, ; outside function).
[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 -debug -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
41 install:        
42         [ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
43         if [ -n "$(SHARED_LIBS)" ]; then \
44                 set -e; \
45                 echo installing $(LIBNAME); \
46                 if [ "$(PLATFORM)" != "Cygwin" ]; then \
47                         case "$(CFLAGS)" in \
48                         *DSO_BEOS*) sfx="so";; \
49                         *DSO_DLFCN*) sfx="so";; \
50                         *DSO_DL*) sfx="sl";; \
51                         *) sfx="bad";; \
52                         esac; \
53                         cp lib$(LIBNAME).$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$(LIBNAME).$$sfx.new; \
54                 else \
55                         sfx="so"; \
56                         cp cyg$(LIBNAME).dll $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$(LIBNAME).$$sfx.new; \
57                 fi; \
58                 chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$(LIBNAME).$$sfx.new; \
59                 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$(LIBNAME).$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$(LIBNAME).$$sfx; \
60         fi
61
62 links:
63
64 tests:
65
66 depend:
67         @if [ -z "$(THIS)" ]; then \
68             $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; \
69         else \
70             $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC); \
71         fi
72
73 files:
74
75
76
77 lint:
78         lint -DLINT $(INCLUDES) $(SRC)>fluff
79
80 dclean:
81         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
82         mv -f Makefile.new $(MAKEFILE)
83
84 clean:
85         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff *.so *.sl *.dll
86
87 # DO NOT DELETE THIS LINE -- make depend depends on it.
88
89 gost2001.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
90 gost2001.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
91 gost2001.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
92 gost2001.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
93 gost2001.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
94 gost2001.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
95 gost2001.o: ../../include/openssl/err.h ../../include/openssl/evp.h
96 gost2001.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
97 gost2001.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
98 gost2001.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
99 gost2001.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
100 gost2001.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
101 gost2001.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
102 gost2001.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
103 gost2001.o: e_gost_err.h gost2001.c gost89.h gost_lcl.h gost_params.h
104 gost2001.o: gosthash.h
105 gost2001_keyx.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
106 gost2001_keyx.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
107 gost2001_keyx.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
108 gost2001_keyx.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
109 gost2001_keyx.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
110 gost2001_keyx.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
111 gost2001_keyx.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
112 gost2001_keyx.o: ../../include/openssl/obj_mac.h
113 gost2001_keyx.o: ../../include/openssl/objects.h
114 gost2001_keyx.o: ../../include/openssl/opensslconf.h
115 gost2001_keyx.o: ../../include/openssl/opensslv.h
116 gost2001_keyx.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
117 gost2001_keyx.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
118 gost2001_keyx.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
119 gost2001_keyx.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
120 gost2001_keyx.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost2001_keyx.c
121 gost2001_keyx.o: gost89.h gost_keywrap.h gost_lcl.h gosthash.h
122 gost89.o: gost89.c gost89.h
123 gost94_keyx.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
124 gost94_keyx.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
125 gost94_keyx.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
126 gost94_keyx.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
127 gost94_keyx.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
128 gost94_keyx.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
129 gost94_keyx.o: ../../include/openssl/engine.h ../../include/openssl/evp.h
130 gost94_keyx.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
131 gost94_keyx.o: ../../include/openssl/objects.h
132 gost94_keyx.o: ../../include/openssl/opensslconf.h
133 gost94_keyx.o: ../../include/openssl/opensslv.h
134 gost94_keyx.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
135 gost94_keyx.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
136 gost94_keyx.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
137 gost94_keyx.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
138 gost94_keyx.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost89.h
139 gost94_keyx.o: gost94_keyx.c gost_keywrap.h gost_lcl.h gosthash.h
140 gost_ameth.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
141 gost_ameth.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
142 gost_ameth.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
143 gost_ameth.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
144 gost_ameth.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
145 gost_ameth.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
146 gost_ameth.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
147 gost_ameth.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
148 gost_ameth.o: ../../include/openssl/opensslconf.h
149 gost_ameth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
150 gost_ameth.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
151 gost_ameth.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
152 gost_ameth.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
153 gost_ameth.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost89.h
154 gost_ameth.o: gost_ameth.c gost_lcl.h gost_params.h gosthash.h
155 gost_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
156 gost_asn1.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
157 gost_asn1.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
158 gost_asn1.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
159 gost_asn1.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
160 gost_asn1.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
161 gost_asn1.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
162 gost_asn1.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
163 gost_asn1.o: ../../include/openssl/opensslconf.h
164 gost_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
165 gost_asn1.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
166 gost_asn1.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
167 gost_asn1.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
168 gost_asn1.o: ../../include/openssl/x509_vfy.h gost89.h gost_asn1.c gost_lcl.h
169 gost_asn1.o: gosthash.h
170 gost_crypt.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
171 gost_crypt.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
172 gost_crypt.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
173 gost_crypt.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
174 gost_crypt.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
175 gost_crypt.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
176 gost_crypt.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
177 gost_crypt.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
178 gost_crypt.o: ../../include/openssl/opensslconf.h
179 gost_crypt.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
180 gost_crypt.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
181 gost_crypt.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
182 gost_crypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
183 gost_crypt.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
184 gost_crypt.o: e_gost_err.h gost89.h gost_crypt.c gost_lcl.h gosthash.h
185 gost_ctl.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
186 gost_ctl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
187 gost_ctl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
188 gost_ctl.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
189 gost_ctl.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
190 gost_ctl.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
191 gost_ctl.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
192 gost_ctl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
193 gost_ctl.o: ../../include/openssl/opensslconf.h
194 gost_ctl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
195 gost_ctl.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
196 gost_ctl.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
197 gost_ctl.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
198 gost_ctl.o: ../../include/openssl/x509_vfy.h gost89.h gost_ctl.c gost_lcl.h
199 gost_ctl.o: gosthash.h
200 gost_eng.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
201 gost_eng.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
202 gost_eng.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
203 gost_eng.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
204 gost_eng.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
205 gost_eng.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
206 gost_eng.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
207 gost_eng.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
208 gost_eng.o: ../../include/openssl/opensslconf.h
209 gost_eng.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
210 gost_eng.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
211 gost_eng.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
212 gost_eng.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
213 gost_eng.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost89.h gost_eng.c
214 gost_eng.o: gost_lcl.h gosthash.h
215 gost_keywrap.o: gost89.h gost_keywrap.c gost_keywrap.h
216 gost_md.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
217 gost_md.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
218 gost_md.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
219 gost_md.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
220 gost_md.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
221 gost_md.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
222 gost_md.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
223 gost_md.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
224 gost_md.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
225 gost_md.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
226 gost_md.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
227 gost_md.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
228 gost_md.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
229 gost_md.o: e_gost_err.h gost89.h gost_lcl.h gost_md.c gosthash.h
230 gost_params.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
231 gost_params.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
232 gost_params.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
233 gost_params.o: ../../include/openssl/opensslconf.h
234 gost_params.o: ../../include/openssl/opensslv.h
235 gost_params.o: ../../include/openssl/ossl_typ.h
236 gost_params.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
237 gost_params.o: ../../include/openssl/symhacks.h gost_params.c gost_params.h
238 gost_pmeth.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
239 gost_pmeth.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
240 gost_pmeth.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
241 gost_pmeth.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
242 gost_pmeth.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
243 gost_pmeth.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
244 gost_pmeth.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
245 gost_pmeth.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
246 gost_pmeth.o: ../../include/openssl/opensslconf.h
247 gost_pmeth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
248 gost_pmeth.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
249 gost_pmeth.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
250 gost_pmeth.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
251 gost_pmeth.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost89.h gost_lcl.h
252 gost_pmeth.o: gost_params.h gost_pmeth.c gosthash.h
253 gost_sign.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
254 gost_sign.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
255 gost_sign.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
256 gost_sign.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
257 gost_sign.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
258 gost_sign.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
259 gost_sign.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
260 gost_sign.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
261 gost_sign.o: ../../include/openssl/opensslconf.h
262 gost_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
263 gost_sign.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
264 gost_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
265 gost_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
266 gost_sign.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
267 gost_sign.o: e_gost_err.h gost89.h gost_lcl.h gost_params.h gost_sign.c
268 gost_sign.o: gosthash.h
269 gosthash.o: gost89.h gosthash.c gosthash.h