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