Makefile 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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_selftest.c fips_rsa_sign.c fips_rsa_lib.c
  22. LIBOBJ= fips_rsa_selftest.o fips_rsa_sign.o fips_rsa_lib.o
  23. SRC= $(LIBSRC)
  24. EXHEADER=
  25. HEADER= $(EXHEADER)
  26. ALL= $(GENERAL) $(SRC) $(HEADER)
  27. top:
  28. (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) sub_all)
  29. all: lib
  30. lib: $(LIBOBJ)
  31. @echo $(LIBOBJ) > lib
  32. files:
  33. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  34. links:
  35. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
  36. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST)
  37. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS)
  38. install:
  39. @headerlist="$(EXHEADER)"; for i in $$headerlist; \
  40. do \
  41. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  42. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  43. done
  44. tags:
  45. ctags $(SRC)
  46. tests:
  47. Q=../testvectors/rsa/req
  48. A=../testvectors/rsa/rsp
  49. Q62=../testvectors/rsa_salt_62/req
  50. A62=../testvectors/rsa_salt_62/rsp
  51. fips_test:
  52. -rm -rf $(A) $(A62)
  53. mkdir $(A) $(A62)
  54. if [ -f $(Q)/SigGen15.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsastest < $(Q)/SigGen15.req > $(A)/SigGen15.rsp; fi
  55. if [ -f $(Q)/SigVer15.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsavtest < $(Q)/SigVer15.req > $(A)/SigVer15.rsp; fi
  56. if [ -f $(Q)/SigGenPSS.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsastest -saltlen 0 < $(Q)/SigGenPSS.req > $(A)/SigGenPSS.rsp; fi
  57. if [ -f $(Q)/SigVerPSS.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsavtest -saltlen 0 < $(Q)/SigVerPSS.req > $(A)/SigVerPSS.rsp; fi
  58. if [ -f $(Q)/SigGenRSA.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsastest -x931 < $(Q)/SigGenRSA.req > $(A)/SigGenRSA.rsp; fi
  59. if [ -f $(Q)/SigVerRSA.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsavtest -x931 < $(Q)/SigVerRSA.req > $(A)/SigVerRSA.rsp; fi
  60. if [ -f $(Q62)/SigGenPSS.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsastest -saltlen 62 < $(Q62)/SigGenPSS.req >$(A62)/SigGenPSS.rsp; fi
  61. if [ -f $(Q62)/SigVerPSS.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsavtest -saltlen 62 <$(Q62)/SigVerPSS.req >$(A62)/SigVerPSS.rsp; fi
  62. if [ -f $(Q)/KeyGenRSA.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsagtest < $(Q)/KeyGenRSA.req > $(A)/KeyGenRSA.rsp; fi
  63. lint:
  64. lint -DLINT $(INCLUDES) $(SRC)>fluff
  65. depend:
  66. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
  67. dclean:
  68. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  69. mv -f Makefile.new $(MAKEFILE)
  70. clean:
  71. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  72. # DO NOT DELETE THIS LINE -- make depend depends on it.
  73. fips_rsa_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  74. fips_rsa_lib.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  75. fips_rsa_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  76. fips_rsa_lib.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  77. fips_rsa_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  78. fips_rsa_lib.o: ../../include/openssl/objects.h
  79. fips_rsa_lib.o: ../../include/openssl/opensslconf.h
  80. fips_rsa_lib.o: ../../include/openssl/opensslv.h
  81. fips_rsa_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h
  82. fips_rsa_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  83. fips_rsa_lib.o: ../../include/openssl/symhacks.h fips_rsa_lib.c
  84. fips_rsa_selftest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  85. fips_rsa_selftest.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  86. fips_rsa_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  87. fips_rsa_selftest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  88. fips_rsa_selftest.o: ../../include/openssl/lhash.h
  89. fips_rsa_selftest.o: ../../include/openssl/obj_mac.h
  90. fips_rsa_selftest.o: ../../include/openssl/objects.h
  91. fips_rsa_selftest.o: ../../include/openssl/opensslconf.h
  92. fips_rsa_selftest.o: ../../include/openssl/opensslv.h
  93. fips_rsa_selftest.o: ../../include/openssl/ossl_typ.h
  94. fips_rsa_selftest.o: ../../include/openssl/rsa.h
  95. fips_rsa_selftest.o: ../../include/openssl/safestack.h
  96. fips_rsa_selftest.o: ../../include/openssl/stack.h
  97. fips_rsa_selftest.o: ../../include/openssl/symhacks.h fips_rsa_selftest.c
  98. fips_rsa_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  99. fips_rsa_sign.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  100. fips_rsa_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  101. fips_rsa_sign.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
  102. fips_rsa_sign.o: ../../include/openssl/obj_mac.h
  103. fips_rsa_sign.o: ../../include/openssl/objects.h
  104. fips_rsa_sign.o: ../../include/openssl/opensslconf.h
  105. fips_rsa_sign.o: ../../include/openssl/opensslv.h
  106. fips_rsa_sign.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h
  107. fips_rsa_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
  108. fips_rsa_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  109. fips_rsa_sign.o: fips_rsa_sign.c
  110. fips_rsagtest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  111. fips_rsagtest.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  112. fips_rsagtest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  113. fips_rsagtest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  114. fips_rsagtest.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
  115. fips_rsagtest.o: ../../include/openssl/obj_mac.h
  116. fips_rsagtest.o: ../../include/openssl/objects.h
  117. fips_rsagtest.o: ../../include/openssl/opensslconf.h
  118. fips_rsagtest.o: ../../include/openssl/opensslv.h
  119. fips_rsagtest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h
  120. fips_rsagtest.o: ../../include/openssl/safestack.h
  121. fips_rsagtest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  122. fips_rsagtest.o: ../fips_utl.h fips_rsagtest.c
  123. fips_rsastest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  124. fips_rsastest.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  125. fips_rsastest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  126. fips_rsastest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  127. fips_rsastest.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
  128. fips_rsastest.o: ../../include/openssl/obj_mac.h
  129. fips_rsastest.o: ../../include/openssl/objects.h
  130. fips_rsastest.o: ../../include/openssl/opensslconf.h
  131. fips_rsastest.o: ../../include/openssl/opensslv.h
  132. fips_rsastest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h
  133. fips_rsastest.o: ../../include/openssl/safestack.h
  134. fips_rsastest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  135. fips_rsastest.o: ../fips_utl.h fips_rsastest.c
  136. fips_rsavtest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  137. fips_rsavtest.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  138. fips_rsavtest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  139. fips_rsavtest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  140. fips_rsavtest.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
  141. fips_rsavtest.o: ../../include/openssl/obj_mac.h
  142. fips_rsavtest.o: ../../include/openssl/objects.h
  143. fips_rsavtest.o: ../../include/openssl/opensslconf.h
  144. fips_rsavtest.o: ../../include/openssl/opensslv.h
  145. fips_rsavtest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h
  146. fips_rsavtest.o: ../../include/openssl/safestack.h
  147. fips_rsavtest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  148. fips_rsavtest.o: ../fips_utl.h fips_rsavtest.c