Makefile 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. #
  2. # OpenSSL/engines/Makefile
  3. #
  4. DIR= engines
  5. TOP= ..
  6. CC= cc
  7. INCLUDES= -I../include
  8. CFLAG=-g
  9. MAKEFILE= Makefile
  10. AR= ar r
  11. ENGDIRS= ccgost
  12. RECURSIVE_MAKE= [ -z "$(ENGDIRS)" ] || for i in $(ENGDIRS) ; do \
  13. (cd $$i && echo "making $$target in $(DIR)/$$i..." && \
  14. $(MAKE) -e TOP=../.. DIR=$$i $$target ) || exit 1; \
  15. done;
  16. ENGINES_ASM_OBJ=
  17. PEX_LIBS=
  18. EX_LIBS=
  19. CFLAGS= $(INCLUDES) $(CFLAG)
  20. ASFLAGS= $(INCLUDES) $(ASFLAG)
  21. GENERAL=Makefile engines.com install.com engine_vector.mar
  22. TEST=
  23. APPS=
  24. LIB=$(TOP)/libcrypto.a
  25. LIBNAMES= 4758cca aep atalla cswift gmp chil nuron sureware ubsec padlock capi
  26. LIBSRC= e_4758cca.c \
  27. e_aep.c \
  28. e_atalla.c \
  29. e_cswift.c \
  30. e_gmp.c \
  31. e_chil.c \
  32. e_nuron.c \
  33. e_sureware.c \
  34. e_ubsec.c \
  35. e_padlock.c \
  36. e_capi.c
  37. LIBOBJ= e_4758cca.o \
  38. e_aep.o \
  39. e_atalla.o \
  40. e_cswift.o \
  41. e_gmp.o \
  42. e_chil.o \
  43. e_nuron.o \
  44. e_sureware.o \
  45. e_ubsec.o \
  46. e_padlock.o \
  47. e_capi.o \
  48. $(ENGINES_ASM_OBJ)
  49. SRC= $(LIBSRC)
  50. EXHEADER=
  51. HEADER= e_4758cca_err.c e_4758cca_err.h \
  52. e_aep_err.c e_aep_err.h \
  53. e_atalla_err.c e_atalla_err.h \
  54. e_cswift_err.c e_cswift_err.h \
  55. e_gmp_err.c e_gmp_err.h \
  56. e_chil_err.c e_chil_err.h \
  57. e_nuron_err.c e_nuron_err.h \
  58. e_sureware_err.c e_sureware_err.h \
  59. e_ubsec_err.c e_ubsec_err.h \
  60. e_capi_err.c e_capi_err.h
  61. ALL= $(GENERAL) $(SRC) $(HEADER)
  62. top:
  63. (cd ..; $(MAKE) DIRS=$(DIR) all)
  64. all: lib subdirs
  65. lib: $(LIBOBJ)
  66. @if [ -n "$(SHARED_LIBS)" ]; then \
  67. set -e; \
  68. for l in $(LIBNAMES); do \
  69. $(MAKE) -f ../Makefile.shared -e \
  70. LIBNAME=$$l LIBEXTRAS="e_$$l*.o" \
  71. LIBDEPS='-L.. -lcrypto $(EX_LIBS)' \
  72. link_o.$(SHLIB_TARGET); \
  73. done; \
  74. else \
  75. $(AR) $(LIB) $(LIBOBJ); \
  76. $(RANLIB) $(LIB) || echo Never mind.; \
  77. fi; \
  78. touch lib
  79. e_padlock-x86.s: asm/e_padlock-x86.pl
  80. $(PERL) asm/e_padlock-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
  81. e_padlock-x86_64.s: asm/e_padlock-x86_64.pl
  82. $(PERL) asm/e_padlock-x86_64.pl $(PERLASM_SCHEME) > $@
  83. subdirs:
  84. echo $(EDIRS)
  85. @target=all; $(RECURSIVE_MAKE)
  86. files:
  87. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  88. @target=files; $(RECURSIVE_MAKE)
  89. links:
  90. @target=links; $(RECURSIVE_MAKE)
  91. # XXXXX This currently only works on systems that use .so as suffix
  92. # for shared libraries as well as for Cygwin which uses the
  93. # dlfcn_name_converter and therefore stores the engines with .so suffix, too.
  94. # XXXXX This was extended to HP-UX dl targets, which use .sl suffix.
  95. # XXXXX This was extended to mingw targets, which use eay32.dll suffix without lib as prefix.
  96. install:
  97. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  98. @if [ -n "$(SHARED_LIBS)" ]; then \
  99. set -e; \
  100. $(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines; \
  101. for l in $(LIBNAMES); do \
  102. ( echo installing $$l; \
  103. pfx=lib; \
  104. if [ "$(PLATFORM)" != "Cygwin" ]; then \
  105. case "$(CFLAGS)" in \
  106. *DSO_BEOS*) sfx=".so";; \
  107. *DSO_DLFCN*) sfx=`expr "$(SHLIB_EXT)" : '.*\(\.[a-z][a-z]*\)' \| ".so"`;; \
  108. *DSO_DL*) sfx=".sl";; \
  109. *DSO_WIN32*) sfx="eay32.dll"; pfx=;; \
  110. *) sfx=".bad";; \
  111. esac; \
  112. cp $$pfx$$l$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \
  113. else \
  114. sfx=".so"; \
  115. cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \
  116. fi; \
  117. chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \
  118. mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx ); \
  119. done; \
  120. fi
  121. @target=install; $(RECURSIVE_MAKE)
  122. tags:
  123. ctags $(SRC)
  124. errors:
  125. set -e; for l in $(LIBNAMES); do \
  126. $(PERL) ../util/mkerr.pl -conf e_$$l.ec \
  127. -nostatic -staticloader -write e_$$l.c; \
  128. done
  129. (cd ccgost; $(MAKE) PERL=$(PERL) errors)
  130. tests:
  131. lint:
  132. lint -DLINT $(INCLUDES) $(SRC)>fluff
  133. @target=lint; $(RECURSIVE_MAKE)
  134. depend:
  135. @if [ -z "$(THIS)" ]; then \
  136. $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; \
  137. fi
  138. @[ -z "$(THIS)" ] || $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  139. @[ -z "$(THIS)" ] || (set -e; target=depend; $(RECURSIVE_MAKE) )
  140. dclean:
  141. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  142. mv -f Makefile.new $(MAKEFILE)
  143. @target=dclean; $(RECURSIVE_MAKE)
  144. clean:
  145. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  146. @target=clean; $(RECURSIVE_MAKE)
  147. # DO NOT DELETE THIS LINE -- make depend depends on it.
  148. e_4758cca.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  149. e_4758cca.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  150. e_4758cca.o: ../include/openssl/crypto.h ../include/openssl/dso.h
  151. e_4758cca.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
  152. e_4758cca.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
  153. e_4758cca.o: ../include/openssl/engine.h ../include/openssl/err.h
  154. e_4758cca.o: ../include/openssl/evp.h ../include/openssl/lhash.h
  155. e_4758cca.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
  156. e_4758cca.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  157. e_4758cca.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h
  158. e_4758cca.o: ../include/openssl/rand.h ../include/openssl/rsa.h
  159. e_4758cca.o: ../include/openssl/safestack.h ../include/openssl/sha.h
  160. e_4758cca.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
  161. e_4758cca.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h
  162. e_4758cca.o: e_4758cca.c e_4758cca_err.c e_4758cca_err.h
  163. e_4758cca.o: vendor_defns/hw_4758_cca.h
  164. e_aep.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  165. e_aep.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  166. e_aep.o: ../include/openssl/crypto.h ../include/openssl/dh.h
  167. e_aep.o: ../include/openssl/dsa.h ../include/openssl/dso.h
  168. e_aep.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
  169. e_aep.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
  170. e_aep.o: ../include/openssl/engine.h ../include/openssl/err.h
  171. e_aep.o: ../include/openssl/evp.h ../include/openssl/lhash.h
  172. e_aep.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
  173. e_aep.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  174. e_aep.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h
  175. e_aep.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
  176. e_aep.o: ../include/openssl/sha.h ../include/openssl/stack.h
  177. e_aep.o: ../include/openssl/symhacks.h ../include/openssl/x509.h
  178. e_aep.o: ../include/openssl/x509_vfy.h e_aep.c e_aep_err.c e_aep_err.h
  179. e_aep.o: vendor_defns/aep.h
  180. e_atalla.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  181. e_atalla.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  182. e_atalla.o: ../include/openssl/crypto.h ../include/openssl/dh.h
  183. e_atalla.o: ../include/openssl/dsa.h ../include/openssl/dso.h
  184. e_atalla.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
  185. e_atalla.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
  186. e_atalla.o: ../include/openssl/engine.h ../include/openssl/err.h
  187. e_atalla.o: ../include/openssl/evp.h ../include/openssl/lhash.h
  188. e_atalla.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
  189. e_atalla.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  190. e_atalla.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h
  191. e_atalla.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
  192. e_atalla.o: ../include/openssl/sha.h ../include/openssl/stack.h
  193. e_atalla.o: ../include/openssl/symhacks.h ../include/openssl/x509.h
  194. e_atalla.o: ../include/openssl/x509_vfy.h e_atalla.c e_atalla_err.c
  195. e_atalla.o: e_atalla_err.h vendor_defns/atalla.h
  196. e_capi.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  197. e_capi.o: ../include/openssl/buffer.h ../include/openssl/crypto.h
  198. e_capi.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
  199. e_capi.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
  200. e_capi.o: ../include/openssl/engine.h ../include/openssl/evp.h
  201. e_capi.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
  202. e_capi.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
  203. e_capi.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
  204. e_capi.o: ../include/openssl/pkcs7.h ../include/openssl/safestack.h
  205. e_capi.o: ../include/openssl/sha.h ../include/openssl/stack.h
  206. e_capi.o: ../include/openssl/symhacks.h ../include/openssl/x509.h
  207. e_capi.o: ../include/openssl/x509_vfy.h e_capi.c
  208. e_chil.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  209. e_chil.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  210. e_chil.o: ../include/openssl/crypto.h ../include/openssl/dh.h
  211. e_chil.o: ../include/openssl/dso.h ../include/openssl/e_os2.h
  212. e_chil.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
  213. e_chil.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h
  214. e_chil.o: ../include/openssl/err.h ../include/openssl/evp.h
  215. e_chil.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
  216. e_chil.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
  217. e_chil.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
  218. e_chil.o: ../include/openssl/pem.h ../include/openssl/pem2.h
  219. e_chil.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
  220. e_chil.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
  221. e_chil.o: ../include/openssl/sha.h ../include/openssl/stack.h
  222. e_chil.o: ../include/openssl/symhacks.h ../include/openssl/ui.h
  223. e_chil.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h e_chil.c
  224. e_chil.o: e_chil_err.c e_chil_err.h vendor_defns/hwcryptohook.h
  225. e_cswift.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  226. e_cswift.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  227. e_cswift.o: ../include/openssl/crypto.h ../include/openssl/dh.h
  228. e_cswift.o: ../include/openssl/dsa.h ../include/openssl/dso.h
  229. e_cswift.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
  230. e_cswift.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
  231. e_cswift.o: ../include/openssl/engine.h ../include/openssl/err.h
  232. e_cswift.o: ../include/openssl/evp.h ../include/openssl/lhash.h
  233. e_cswift.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
  234. e_cswift.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  235. e_cswift.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h
  236. e_cswift.o: ../include/openssl/rand.h ../include/openssl/rsa.h
  237. e_cswift.o: ../include/openssl/safestack.h ../include/openssl/sha.h
  238. e_cswift.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
  239. e_cswift.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h e_cswift.c
  240. e_cswift.o: e_cswift_err.c e_cswift_err.h vendor_defns/cswift.h
  241. e_gmp.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  242. e_gmp.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  243. e_gmp.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
  244. e_gmp.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
  245. e_gmp.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h
  246. e_gmp.o: ../include/openssl/evp.h ../include/openssl/lhash.h
  247. e_gmp.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
  248. e_gmp.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  249. e_gmp.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h
  250. e_gmp.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
  251. e_gmp.o: ../include/openssl/sha.h ../include/openssl/stack.h
  252. e_gmp.o: ../include/openssl/symhacks.h ../include/openssl/x509.h
  253. e_gmp.o: ../include/openssl/x509_vfy.h e_gmp.c
  254. e_nuron.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  255. e_nuron.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  256. e_nuron.o: ../include/openssl/crypto.h ../include/openssl/dh.h
  257. e_nuron.o: ../include/openssl/dsa.h ../include/openssl/dso.h
  258. e_nuron.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
  259. e_nuron.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
  260. e_nuron.o: ../include/openssl/engine.h ../include/openssl/err.h
  261. e_nuron.o: ../include/openssl/evp.h ../include/openssl/lhash.h
  262. e_nuron.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
  263. e_nuron.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  264. e_nuron.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h
  265. e_nuron.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
  266. e_nuron.o: ../include/openssl/sha.h ../include/openssl/stack.h
  267. e_nuron.o: ../include/openssl/symhacks.h ../include/openssl/x509.h
  268. e_nuron.o: ../include/openssl/x509_vfy.h e_nuron.c e_nuron_err.c e_nuron_err.h
  269. e_padlock.o: ../include/openssl/aes.h ../include/openssl/asn1.h
  270. e_padlock.o: ../include/openssl/bio.h ../include/openssl/buffer.h
  271. e_padlock.o: ../include/openssl/crypto.h ../include/openssl/dso.h
  272. e_padlock.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
  273. e_padlock.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
  274. e_padlock.o: ../include/openssl/engine.h ../include/openssl/err.h
  275. e_padlock.o: ../include/openssl/evp.h ../include/openssl/lhash.h
  276. e_padlock.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
  277. e_padlock.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  278. e_padlock.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h
  279. e_padlock.o: ../include/openssl/rand.h ../include/openssl/safestack.h
  280. e_padlock.o: ../include/openssl/sha.h ../include/openssl/stack.h
  281. e_padlock.o: ../include/openssl/symhacks.h ../include/openssl/x509.h
  282. e_padlock.o: ../include/openssl/x509_vfy.h e_padlock.c
  283. e_sureware.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  284. e_sureware.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  285. e_sureware.o: ../include/openssl/crypto.h ../include/openssl/dh.h
  286. e_sureware.o: ../include/openssl/dsa.h ../include/openssl/dso.h
  287. e_sureware.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
  288. e_sureware.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
  289. e_sureware.o: ../include/openssl/engine.h ../include/openssl/err.h
  290. e_sureware.o: ../include/openssl/evp.h ../include/openssl/lhash.h
  291. e_sureware.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
  292. e_sureware.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  293. e_sureware.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h
  294. e_sureware.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
  295. e_sureware.o: ../include/openssl/rand.h ../include/openssl/rsa.h
  296. e_sureware.o: ../include/openssl/safestack.h ../include/openssl/sha.h
  297. e_sureware.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
  298. e_sureware.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h
  299. e_sureware.o: e_sureware.c e_sureware_err.c e_sureware_err.h
  300. e_sureware.o: vendor_defns/sureware.h
  301. e_ubsec.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  302. e_ubsec.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  303. e_ubsec.o: ../include/openssl/crypto.h ../include/openssl/dh.h
  304. e_ubsec.o: ../include/openssl/dsa.h ../include/openssl/dso.h
  305. e_ubsec.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
  306. e_ubsec.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
  307. e_ubsec.o: ../include/openssl/engine.h ../include/openssl/err.h
  308. e_ubsec.o: ../include/openssl/evp.h ../include/openssl/lhash.h
  309. e_ubsec.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
  310. e_ubsec.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  311. e_ubsec.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h
  312. e_ubsec.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
  313. e_ubsec.o: ../include/openssl/sha.h ../include/openssl/stack.h
  314. e_ubsec.o: ../include/openssl/symhacks.h ../include/openssl/x509.h
  315. e_ubsec.o: ../include/openssl/x509_vfy.h e_ubsec.c e_ubsec_err.c e_ubsec_err.h
  316. e_ubsec.o: vendor_defns/hw_ubsec.h