Makefile 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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. PEX_LIBS=
  12. EX_LIBS=
  13. CFLAGS= $(INCLUDES) $(CFLAG)
  14. GENERAL=Makefile engines.com install.com engine_vector.mar
  15. TEST=
  16. APPS=
  17. LIB=$(TOP)/libcrypto.a
  18. LIBNAMES= 4758cca aep atalla cswift gmp chil nuron sureware ubsec
  19. LIBSRC= e_4758cca.c \
  20. e_aep.c \
  21. e_atalla.c \
  22. e_cswift.c \
  23. e_gmp.c \
  24. e_chil.c \
  25. e_nuron.c \
  26. e_sureware.c \
  27. e_ubsec.c
  28. LIBOBJ= e_4758cca.o \
  29. e_aep.o \
  30. e_atalla.o \
  31. e_cswift.o \
  32. e_gmp.o \
  33. e_chil.o \
  34. e_nuron.o \
  35. e_sureware.o \
  36. e_ubsec.o
  37. SRC= $(LIBSRC)
  38. EXHEADER=
  39. HEADER= e_4758cca_err.c e_4758cca_err.h \
  40. e_aep_err.c e_aep_err.h \
  41. e_atalla_err.c e_atalla_err.h \
  42. e_cswift_err.c e_cswift_err.h \
  43. e_gmp_err.c e_gmp_err.h \
  44. e_chil_err.c e_chil_err.h \
  45. e_nuron_err.c e_nuron_err.h \
  46. e_sureware_err.c e_sureware_err.h \
  47. e_ubsec_err.c e_ubsec_err.h
  48. ALL= $(GENERAL) $(SRC) $(HEADER)
  49. top:
  50. (cd ..; $(MAKE) DIRS=$(DIR) all)
  51. all: lib
  52. lib: $(LIBOBJ)
  53. @if [ -n "$(SHARED_LIBS)" ]; then \
  54. set -e; \
  55. for l in $(LIBNAMES); do \
  56. $(MAKE) -f ../Makefile.shared -e \
  57. LIBNAME=$$l LIBEXTRAS=e_$$l.o \
  58. LIBDEPS='-L.. -lcrypto $(EX_LIBS)' \
  59. link_o.$(SHLIB_TARGET); \
  60. done; \
  61. else \
  62. $(AR) $(LIB) $(LIBOBJ); \
  63. $(RANLIB) $(LIB) || echo Never mind.; \
  64. fi; \
  65. touch lib
  66. files:
  67. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  68. links:
  69. # XXXXX This currently only works on systems that use .so as suffix
  70. # for shared libraries as well as for Cygwin which uses the
  71. # dlfcn_name_converter and therefore stores the engines with .so suffix, too.
  72. # XXXXX This was extended to HP-UX dl targets, which use .sl suffix.
  73. install:
  74. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  75. @if [ -n "$(SHARED_LIBS)" ]; then \
  76. set -e; \
  77. for l in $(LIBNAMES); do \
  78. ( echo installing $$l; \
  79. if [ "$(PLATFORM)" != "Cygwin" ]; then \
  80. case "$(CFLAGS)" in \
  81. *DSO_BEOS*) sfx="so";; \
  82. *DSO_DLFCN*) sfx="so";; \
  83. *DSO_DL*) sfx="sl";; \
  84. *) sfx="bad";; \
  85. esac; \
  86. cp lib$$l.$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \
  87. else \
  88. sfx="so"; \
  89. cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \
  90. fi; \
  91. chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \
  92. mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx ); \
  93. done; \
  94. fi
  95. tags:
  96. ctags $(SRC)
  97. errors:
  98. set -e; for l in $(LIBNAMES); do \
  99. $(PERL) ../util/mkerr.pl -conf e_$$l.ec \
  100. -nostatic -staticloader -write e_$$l.c; \
  101. done
  102. tests:
  103. lint:
  104. lint -DLINT $(INCLUDES) $(SRC)>fluff
  105. depend:
  106. @if [ -z "$(THIS)" ]; then \
  107. $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; \
  108. else \
  109. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC); \
  110. fi
  111. dclean:
  112. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  113. mv -f Makefile.new $(MAKEFILE)
  114. clean:
  115. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  116. # DO NOT DELETE THIS LINE -- make depend depends on it.
  117. e_4758cca.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  118. e_4758cca.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  119. e_4758cca.o: ../include/openssl/crypto.h ../include/openssl/dso.h
  120. e_4758cca.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
  121. e_4758cca.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
  122. e_4758cca.o: ../include/openssl/engine.h ../include/openssl/err.h
  123. e_4758cca.o: ../include/openssl/evp.h ../include/openssl/lhash.h
  124. e_4758cca.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
  125. e_4758cca.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  126. e_4758cca.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h
  127. e_4758cca.o: ../include/openssl/rand.h ../include/openssl/rsa.h
  128. e_4758cca.o: ../include/openssl/safestack.h ../include/openssl/sha.h
  129. e_4758cca.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
  130. e_4758cca.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h
  131. e_4758cca.o: e_4758cca.c e_4758cca_err.c e_4758cca_err.h
  132. e_4758cca.o: vendor_defns/hw_4758_cca.h
  133. e_aep.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  134. e_aep.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  135. e_aep.o: ../include/openssl/crypto.h ../include/openssl/dh.h
  136. e_aep.o: ../include/openssl/dsa.h ../include/openssl/dso.h
  137. e_aep.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
  138. e_aep.o: ../include/openssl/err.h ../include/openssl/lhash.h
  139. e_aep.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  140. e_aep.o: ../include/openssl/ossl_typ.h ../include/openssl/rsa.h
  141. e_aep.o: ../include/openssl/safestack.h ../include/openssl/stack.h
  142. e_aep.o: ../include/openssl/symhacks.h e_aep.c e_aep_err.c e_aep_err.h
  143. e_aep.o: vendor_defns/aep.h
  144. e_atalla.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  145. e_atalla.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  146. e_atalla.o: ../include/openssl/crypto.h ../include/openssl/dh.h
  147. e_atalla.o: ../include/openssl/dsa.h ../include/openssl/dso.h
  148. e_atalla.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
  149. e_atalla.o: ../include/openssl/err.h ../include/openssl/lhash.h
  150. e_atalla.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  151. e_atalla.o: ../include/openssl/ossl_typ.h ../include/openssl/rsa.h
  152. e_atalla.o: ../include/openssl/safestack.h ../include/openssl/stack.h
  153. e_atalla.o: ../include/openssl/symhacks.h e_atalla.c e_atalla_err.c
  154. e_atalla.o: e_atalla_err.h vendor_defns/atalla.h
  155. e_chil.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  156. e_chil.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  157. e_chil.o: ../include/openssl/crypto.h ../include/openssl/dh.h
  158. e_chil.o: ../include/openssl/dso.h ../include/openssl/e_os2.h
  159. e_chil.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
  160. e_chil.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h
  161. e_chil.o: ../include/openssl/err.h ../include/openssl/evp.h
  162. e_chil.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
  163. e_chil.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
  164. e_chil.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
  165. e_chil.o: ../include/openssl/pem.h ../include/openssl/pem2.h
  166. e_chil.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
  167. e_chil.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
  168. e_chil.o: ../include/openssl/sha.h ../include/openssl/stack.h
  169. e_chil.o: ../include/openssl/symhacks.h ../include/openssl/ui.h
  170. e_chil.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h e_chil.c
  171. e_chil.o: e_chil_err.c e_chil_err.h vendor_defns/hwcryptohook.h
  172. e_cswift.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  173. e_cswift.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  174. e_cswift.o: ../include/openssl/crypto.h ../include/openssl/dh.h
  175. e_cswift.o: ../include/openssl/dsa.h ../include/openssl/dso.h
  176. e_cswift.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
  177. e_cswift.o: ../include/openssl/err.h ../include/openssl/lhash.h
  178. e_cswift.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  179. e_cswift.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h
  180. e_cswift.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
  181. e_cswift.o: ../include/openssl/stack.h ../include/openssl/symhacks.h e_cswift.c
  182. e_cswift.o: e_cswift_err.c e_cswift_err.h vendor_defns/cswift.h
  183. e_gmp.o: ../include/openssl/buffer.h ../include/openssl/crypto.h
  184. e_gmp.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
  185. e_gmp.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  186. e_gmp.o: ../include/openssl/ossl_typ.h ../include/openssl/safestack.h
  187. e_gmp.o: ../include/openssl/stack.h ../include/openssl/symhacks.h e_gmp.c
  188. e_nuron.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  189. e_nuron.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  190. e_nuron.o: ../include/openssl/crypto.h ../include/openssl/dh.h
  191. e_nuron.o: ../include/openssl/dsa.h ../include/openssl/dso.h
  192. e_nuron.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
  193. e_nuron.o: ../include/openssl/err.h ../include/openssl/lhash.h
  194. e_nuron.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  195. e_nuron.o: ../include/openssl/ossl_typ.h ../include/openssl/rsa.h
  196. e_nuron.o: ../include/openssl/safestack.h ../include/openssl/stack.h
  197. e_nuron.o: ../include/openssl/symhacks.h e_nuron.c e_nuron_err.c e_nuron_err.h
  198. e_sureware.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  199. e_sureware.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  200. e_sureware.o: ../include/openssl/crypto.h ../include/openssl/dh.h
  201. e_sureware.o: ../include/openssl/dsa.h ../include/openssl/dso.h
  202. e_sureware.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
  203. e_sureware.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
  204. e_sureware.o: ../include/openssl/engine.h ../include/openssl/err.h
  205. e_sureware.o: ../include/openssl/evp.h ../include/openssl/lhash.h
  206. e_sureware.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
  207. e_sureware.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  208. e_sureware.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h
  209. e_sureware.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
  210. e_sureware.o: ../include/openssl/rand.h ../include/openssl/rsa.h
  211. e_sureware.o: ../include/openssl/safestack.h ../include/openssl/sha.h
  212. e_sureware.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
  213. e_sureware.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h
  214. e_sureware.o: e_sureware.c e_sureware_err.c e_sureware_err.h
  215. e_sureware.o: vendor_defns/sureware.h
  216. e_ubsec.o: ../include/openssl/asn1.h ../include/openssl/bio.h
  217. e_ubsec.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  218. e_ubsec.o: ../include/openssl/crypto.h ../include/openssl/dh.h
  219. e_ubsec.o: ../include/openssl/dsa.h ../include/openssl/dso.h
  220. e_ubsec.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
  221. e_ubsec.o: ../include/openssl/err.h ../include/openssl/lhash.h
  222. e_ubsec.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  223. e_ubsec.o: ../include/openssl/ossl_typ.h ../include/openssl/rsa.h
  224. e_ubsec.o: ../include/openssl/safestack.h ../include/openssl/stack.h
  225. e_ubsec.o: ../include/openssl/symhacks.h e_ubsec.c e_ubsec_err.c e_ubsec_err.h
  226. e_ubsec.o: vendor_defns/hw_ubsec.h