Makefile 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. #
  2. # OpenSSL/fips/rsa/Makefile
  3. #
  4. DIR= rsa
  5. TOP= ../..
  6. CC= cc
  7. INCLUDES=
  8. CFLAG=-g
  9. INSTALL_PREFIX=
  10. OPENSSLDIR= /usr/local/ssl
  11. INSTALLTOP=/usr/local/ssl
  12. MAKEDEPPROG= makedepend
  13. MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
  14. MAKEFILE= Makefile
  15. AR= ar r
  16. CFLAGS= $(INCLUDES) $(CFLAG)
  17. GENERAL=Makefile
  18. TEST= fips_rsavtest.c fips_rsastest.c fips_rsagtest.c
  19. APPS=
  20. LIB=$(TOP)/libcrypto.a
  21. LIBSRC=fips_rsa_eay.c fips_rsa_gen.c fips_rsa_selftest.c fips_rsa_x931g.c \
  22. fips_rsa_sign.c fips_rsa_lib.c
  23. LIBOBJ=fips_rsa_eay.o fips_rsa_gen.o fips_rsa_selftest.o fips_rsa_x931g.o \
  24. fips_rsa_sign.o fips_rsa_lib.o
  25. SRC= $(LIBSRC)
  26. EXHEADER=
  27. HEADER= $(EXHEADER)
  28. ALL= $(GENERAL) $(SRC) $(HEADER)
  29. top:
  30. (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) sub_all)
  31. all: lib
  32. lib: $(LIBOBJ)
  33. @echo $(LIBOBJ) > lib
  34. files:
  35. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  36. links:
  37. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
  38. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST)
  39. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS)
  40. install:
  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. Q=../testvectors/rsa/req
  50. A=../testvectors/rsa/rsp
  51. Q62=../testvectors/rsa_salt_62/req
  52. A62=../testvectors/rsa_salt_62/rsp
  53. fips_test:
  54. -rm -rf $(A) $(A62)
  55. mkdir $(A) $(A62)
  56. if [ -f $(Q)/SigGen15.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsastest < $(Q)/SigGen15.req > $(A)/SigGen15.rsp; fi
  57. if [ -f $(Q)/SigVer15.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsavtest < $(Q)/SigVer15.req > $(A)/SigVer15.rsp; fi
  58. if [ -f $(Q)/SigGenPSS.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsastest -saltlen 0 < $(Q)/SigGenPSS.req > $(A)/SigGenPSS.rsp; fi
  59. if [ -f $(Q)/SigVerPSS.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsavtest -saltlen 0 < $(Q)/SigVerPSS.req > $(A)/SigVerPSS.rsp; fi
  60. if [ -f $(Q)/SigGenRSA.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsastest -x931 < $(Q)/SigGenRSA.req > $(A)/SigGenRSA.rsp; fi
  61. if [ -f $(Q)/SigVerRSA.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsavtest -x931 < $(Q)/SigVerRSA.req > $(A)/SigVerRSA.rsp; fi
  62. if [ -f $(Q62)/SigGenPSS.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsastest -saltlen 62 < $(Q62)/SigGenPSS.req >$(A62)/SigGenPSS.rsp; fi
  63. if [ -f $(Q62)/SigVerPSS.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsavtest -saltlen 62 <$(Q62)/SigVerPSS.req >$(A62)/SigVerPSS.rsp; fi
  64. if [ -f $(Q)/KeyGenRSA.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsagtest < $(Q)/KeyGenRSA.req > $(A)/KeyGenRSA.rsp; fi
  65. lint:
  66. lint -DLINT $(INCLUDES) $(SRC)>fluff
  67. depend:
  68. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
  69. dclean:
  70. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  71. mv -f Makefile.new $(MAKEFILE)
  72. clean:
  73. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  74. # DO NOT DELETE THIS LINE -- make depend depends on it.
  75. fips_rsa_eay.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  76. fips_rsa_eay.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  77. fips_rsa_eay.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  78. fips_rsa_eay.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
  79. fips_rsa_eay.o: ../../include/openssl/opensslconf.h
  80. fips_rsa_eay.o: ../../include/openssl/opensslv.h
  81. fips_rsa_eay.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  82. fips_rsa_eay.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
  83. fips_rsa_eay.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  84. fips_rsa_eay.o: fips_rsa_eay.c
  85. fips_rsa_gen.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  86. fips_rsa_gen.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  87. fips_rsa_gen.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  88. fips_rsa_gen.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  89. fips_rsa_gen.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  90. fips_rsa_gen.o: ../../include/openssl/objects.h
  91. fips_rsa_gen.o: ../../include/openssl/opensslconf.h
  92. fips_rsa_gen.o: ../../include/openssl/opensslv.h
  93. fips_rsa_gen.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h
  94. fips_rsa_gen.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  95. fips_rsa_gen.o: ../../include/openssl/symhacks.h fips_rsa_gen.c
  96. fips_rsa_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  97. fips_rsa_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  98. fips_rsa_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  99. fips_rsa_lib.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
  100. fips_rsa_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  101. fips_rsa_lib.o: ../../include/openssl/opensslconf.h
  102. fips_rsa_lib.o: ../../include/openssl/opensslv.h
  103. fips_rsa_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h
  104. fips_rsa_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  105. fips_rsa_lib.o: ../../include/openssl/symhacks.h fips_rsa_lib.c
  106. fips_rsa_selftest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  107. fips_rsa_selftest.o: ../../include/openssl/crypto.h
  108. fips_rsa_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  109. fips_rsa_selftest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  110. fips_rsa_selftest.o: ../../include/openssl/lhash.h
  111. fips_rsa_selftest.o: ../../include/openssl/obj_mac.h
  112. fips_rsa_selftest.o: ../../include/openssl/objects.h
  113. fips_rsa_selftest.o: ../../include/openssl/opensslconf.h
  114. fips_rsa_selftest.o: ../../include/openssl/opensslv.h
  115. fips_rsa_selftest.o: ../../include/openssl/ossl_typ.h
  116. fips_rsa_selftest.o: ../../include/openssl/rsa.h
  117. fips_rsa_selftest.o: ../../include/openssl/safestack.h
  118. fips_rsa_selftest.o: ../../include/openssl/stack.h
  119. fips_rsa_selftest.o: ../../include/openssl/symhacks.h fips_rsa_selftest.c
  120. fips_rsa_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  121. fips_rsa_sign.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  122. fips_rsa_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  123. fips_rsa_sign.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
  124. fips_rsa_sign.o: ../../include/openssl/obj_mac.h
  125. fips_rsa_sign.o: ../../include/openssl/objects.h
  126. fips_rsa_sign.o: ../../include/openssl/opensslconf.h
  127. fips_rsa_sign.o: ../../include/openssl/opensslv.h
  128. fips_rsa_sign.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h
  129. fips_rsa_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
  130. fips_rsa_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  131. fips_rsa_sign.o: fips_rsa_sign.c
  132. fips_rsa_x931g.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  133. fips_rsa_x931g.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  134. fips_rsa_x931g.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  135. fips_rsa_x931g.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
  136. fips_rsa_x931g.o: ../../include/openssl/opensslconf.h
  137. fips_rsa_x931g.o: ../../include/openssl/opensslv.h
  138. fips_rsa_x931g.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h
  139. fips_rsa_x931g.o: ../../include/openssl/safestack.h
  140. fips_rsa_x931g.o: ../../include/openssl/stack.h
  141. fips_rsa_x931g.o: ../../include/openssl/symhacks.h fips_rsa_x931g.c
  142. fips_rsagtest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  143. fips_rsagtest.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h
  144. fips_rsagtest.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  145. fips_rsagtest.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
  146. fips_rsagtest.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h
  147. fips_rsagtest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  148. fips_rsagtest.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
  149. fips_rsagtest.o: ../../include/openssl/obj_mac.h
  150. fips_rsagtest.o: ../../include/openssl/objects.h
  151. fips_rsagtest.o: ../../include/openssl/opensslconf.h
  152. fips_rsagtest.o: ../../include/openssl/opensslv.h
  153. fips_rsagtest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
  154. fips_rsagtest.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
  155. fips_rsagtest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  156. fips_rsagtest.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
  157. fips_rsagtest.o: ../../include/openssl/x509v3.h ../fips_utl.h fips_rsagtest.c
  158. fips_rsastest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  159. fips_rsastest.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h
  160. fips_rsastest.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  161. fips_rsastest.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
  162. fips_rsastest.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h
  163. fips_rsastest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  164. fips_rsastest.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
  165. fips_rsastest.o: ../../include/openssl/obj_mac.h
  166. fips_rsastest.o: ../../include/openssl/objects.h
  167. fips_rsastest.o: ../../include/openssl/opensslconf.h
  168. fips_rsastest.o: ../../include/openssl/opensslv.h
  169. fips_rsastest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
  170. fips_rsastest.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
  171. fips_rsastest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  172. fips_rsastest.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
  173. fips_rsastest.o: ../../include/openssl/x509v3.h ../fips_utl.h fips_rsastest.c
  174. fips_rsavtest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  175. fips_rsavtest.o: ../../include/openssl/buffer.h ../../include/openssl/conf.h
  176. fips_rsavtest.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  177. fips_rsavtest.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
  178. fips_rsavtest.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h
  179. fips_rsavtest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  180. fips_rsavtest.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
  181. fips_rsavtest.o: ../../include/openssl/obj_mac.h
  182. fips_rsavtest.o: ../../include/openssl/objects.h
  183. fips_rsavtest.o: ../../include/openssl/opensslconf.h
  184. fips_rsavtest.o: ../../include/openssl/opensslv.h
  185. fips_rsavtest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
  186. fips_rsavtest.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
  187. fips_rsavtest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  188. fips_rsavtest.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
  189. fips_rsavtest.o: ../../include/openssl/x509v3.h ../fips_utl.h fips_rsavtest.c