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