Makefile 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. #
  2. # crypto/ec/Makefile
  3. #
  4. DIR= ec
  5. TOP= ../..
  6. CC= cc
  7. INCLUDES= -I.. -I$(TOP) -I../../include
  8. CFLAG=-g
  9. MAKEFILE= Makefile
  10. AR= ar r
  11. CFLAGS= $(INCLUDES) $(CFLAG)
  12. GENERAL=Makefile
  13. TEST=ectest.c
  14. APPS=
  15. LIB=$(TOP)/libcrypto.a
  16. LIBSRC= ec_lib.c ecp_smpl.c ecp_mont.c ecp_nist.c ec_cvt.c ec_mult.c\
  17. ec_err.c ec_curve.c ec_check.c ec_print.c ec_asn1.c ec_key.c\
  18. ec2_smpl.c ec2_smpt.c ec2_mult.c
  19. LIBOBJ= ec_lib.o ecp_smpl.o ecp_mont.o ecp_nist.o ec_cvt.o ec_mult.o\
  20. ec_err.o ec_curve.o ec_check.o ec_print.o ec_asn1.o ec_key.o\
  21. ec2_smpl.o ec2_mult.o
  22. SRC= $(LIBSRC)
  23. EXHEADER= ec.h
  24. HEADER= ec_lcl.h $(EXHEADER)
  25. ALL= $(GENERAL) $(SRC) $(HEADER)
  26. top:
  27. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  28. all: lib
  29. lib: $(LIBOBJ)
  30. $(ARX) $(LIB) $(LIBOBJ)
  31. $(RANLIB) $(LIB) || echo Never mind.
  32. @touch lib
  33. files:
  34. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  35. links:
  36. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  37. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  38. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  39. install:
  40. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  41. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  42. do \
  43. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  44. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  45. done;
  46. tags:
  47. ctags $(SRC)
  48. tests:
  49. lint:
  50. lint -DLINT $(INCLUDES) $(SRC)>fluff
  51. depend:
  52. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  53. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  54. dclean:
  55. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  56. mv -f Makefile.new $(MAKEFILE)
  57. clean:
  58. rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  59. # DO NOT DELETE THIS LINE -- make depend depends on it.
  60. ec2_mult.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  61. ec2_mult.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  62. ec2_mult.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  63. ec2_mult.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  64. ec2_mult.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
  65. ec2_mult.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  66. ec2_mult.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  67. ec2_mult.o: ../../include/openssl/symhacks.h ec2_mult.c ec_lcl.h
  68. ec2_smpl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  69. ec2_smpl.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  70. ec2_smpl.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  71. ec2_smpl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  72. ec2_smpl.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
  73. ec2_smpl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  74. ec2_smpl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  75. ec2_smpl.o: ../../include/openssl/symhacks.h ec2_smpl.c ec2_smpt.c ec_lcl.h
  76. ec2_smpt.o: ec2_smpt.c
  77. ec_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
  78. ec_asn1.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  79. ec_asn1.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  80. ec_asn1.o: ../../include/openssl/ec.h ../../include/openssl/err.h
  81. ec_asn1.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  82. ec_asn1.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
  83. ec_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  84. ec_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  85. ec_asn1.o: ../../include/openssl/symhacks.h ec_asn1.c ec_lcl.h
  86. ec_check.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  87. ec_check.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  88. ec_check.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  89. ec_check.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  90. ec_check.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
  91. ec_check.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  92. ec_check.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  93. ec_check.o: ../../include/openssl/symhacks.h ec_check.c ec_lcl.h
  94. ec_curve.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  95. ec_curve.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  96. ec_curve.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  97. ec_curve.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  98. ec_curve.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
  99. ec_curve.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  100. ec_curve.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  101. ec_curve.o: ../../include/openssl/symhacks.h ec_curve.c ec_lcl.h
  102. ec_cvt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  103. ec_cvt.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  104. ec_cvt.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  105. ec_cvt.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  106. ec_cvt.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
  107. ec_cvt.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  108. ec_cvt.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  109. ec_cvt.o: ../../include/openssl/symhacks.h ec_cvt.c ec_lcl.h
  110. ec_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  111. ec_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  112. ec_err.o: ../../include/openssl/ec.h ../../include/openssl/err.h
  113. ec_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  114. ec_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  115. ec_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  116. ec_err.o: ../../include/openssl/symhacks.h ec_err.c
  117. ec_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  118. ec_key.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  119. ec_key.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  120. ec_key.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  121. ec_key.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
  122. ec_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  123. ec_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  124. ec_key.o: ../../include/openssl/symhacks.h ec_key.c ec_lcl.h
  125. ec_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  126. ec_lib.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  127. ec_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  128. ec_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  129. ec_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
  130. ec_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  131. ec_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  132. ec_lib.o: ../../include/openssl/symhacks.h ec_lcl.h ec_lib.c
  133. ec_mult.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  134. ec_mult.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  135. ec_mult.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  136. ec_mult.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  137. ec_mult.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
  138. ec_mult.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  139. ec_mult.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  140. ec_mult.o: ../../include/openssl/symhacks.h ec_lcl.h ec_mult.c
  141. ec_print.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  142. ec_print.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  143. ec_print.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  144. ec_print.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
  145. ec_print.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  146. ec_print.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  147. ec_print.o: ../../include/openssl/symhacks.h ec_lcl.h ec_print.c
  148. ecp_mont.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  149. ecp_mont.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  150. ecp_mont.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  151. ecp_mont.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  152. ecp_mont.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
  153. ecp_mont.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  154. ecp_mont.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  155. ecp_mont.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_mont.c
  156. ecp_nist.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  157. ecp_nist.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  158. ecp_nist.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  159. ecp_nist.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  160. ecp_nist.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
  161. ecp_nist.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  162. ecp_nist.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  163. ecp_nist.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_nist.c
  164. ecp_smpl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  165. ecp_smpl.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  166. ecp_smpl.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  167. ecp_smpl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  168. ecp_smpl.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
  169. ecp_smpl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  170. ecp_smpl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  171. ecp_smpl.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_smpl.c