Makefile 15 KB

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