Makefile 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. #
  2. # OpenSSL/fips/dsa/Makefile
  3. #
  4. DIR= dsa
  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_dsatest.c fips_dssvs.c
  19. APPS=
  20. LIB=$(TOP)/libcrypto.a
  21. LIBSRC= fips_dsa_selftest.c \
  22. fips_dsa_lib.c fips_dsa_sign.c
  23. LIBOBJ= fips_dsa_selftest.o \
  24. fips_dsa_lib.o fips_dsa_sign.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/dsa/req
  50. A=../testvectors/dsa/rsp
  51. fips_test:
  52. -rm -rf $A
  53. mkdir $A
  54. if [ -f $(Q)/PQGGen.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_dssvs pqg < $(Q)/PQGGen.req > $(A)/PQGGen.rsp; fi
  55. if [ -f $(Q)/KeyPair.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_dssvs keypair < $(Q)/KeyPair.req > $(A)/KeyPair.rsp; fi
  56. if [ -f $(Q)/SigGen.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_dssvs siggen < $(Q)/SigGen.req > $(A)/SigGen.rsp; fi
  57. if [ -f $(Q)/SigVer.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_dssvs sigver < $Q/SigVer.req > $A/SigVer.rsp; fi
  58. lint:
  59. lint -DLINT $(INCLUDES) $(SRC)>fluff
  60. depend:
  61. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
  62. dclean:
  63. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  64. mv -f Makefile.new $(MAKEFILE)
  65. clean:
  66. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  67. # DO NOT DELETE THIS LINE -- make depend depends on it.
  68. fips_dsa_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  69. fips_dsa_lib.o: ../../include/openssl/crypto.h ../../include/openssl/dsa.h
  70. fips_dsa_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h
  71. fips_dsa_lib.o: ../../include/openssl/opensslconf.h
  72. fips_dsa_lib.o: ../../include/openssl/opensslv.h
  73. fips_dsa_lib.o: ../../include/openssl/ossl_typ.h
  74. fips_dsa_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  75. fips_dsa_lib.o: ../../include/openssl/symhacks.h fips_dsa_lib.c
  76. fips_dsa_selftest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  77. fips_dsa_selftest.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  78. fips_dsa_selftest.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
  79. fips_dsa_selftest.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  80. fips_dsa_selftest.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
  81. fips_dsa_selftest.o: ../../include/openssl/obj_mac.h
  82. fips_dsa_selftest.o: ../../include/openssl/objects.h
  83. fips_dsa_selftest.o: ../../include/openssl/opensslconf.h
  84. fips_dsa_selftest.o: ../../include/openssl/opensslv.h
  85. fips_dsa_selftest.o: ../../include/openssl/ossl_typ.h
  86. fips_dsa_selftest.o: ../../include/openssl/safestack.h
  87. fips_dsa_selftest.o: ../../include/openssl/stack.h
  88. fips_dsa_selftest.o: ../../include/openssl/symhacks.h fips_dsa_selftest.c
  89. fips_dsa_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  90. fips_dsa_sign.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  91. fips_dsa_sign.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
  92. fips_dsa_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  93. fips_dsa_sign.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
  94. fips_dsa_sign.o: ../../include/openssl/obj_mac.h
  95. fips_dsa_sign.o: ../../include/openssl/objects.h
  96. fips_dsa_sign.o: ../../include/openssl/opensslconf.h
  97. fips_dsa_sign.o: ../../include/openssl/opensslv.h
  98. fips_dsa_sign.o: ../../include/openssl/ossl_typ.h
  99. fips_dsa_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
  100. fips_dsa_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  101. fips_dsa_sign.o: fips_dsa_sign.c
  102. fips_dsatest.o: ../../e_os.h ../../include/openssl/asn1.h
  103. fips_dsatest.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  104. fips_dsatest.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  105. fips_dsatest.o: ../../include/openssl/des_old.h ../../include/openssl/dsa.h
  106. fips_dsatest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  107. fips_dsatest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  108. fips_dsatest.o: ../../include/openssl/fips_rand.h ../../include/openssl/lhash.h
  109. fips_dsatest.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  110. fips_dsatest.o: ../../include/openssl/opensslconf.h
  111. fips_dsatest.o: ../../include/openssl/opensslv.h
  112. fips_dsatest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  113. fips_dsatest.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  114. fips_dsatest.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  115. fips_dsatest.o: ../../include/openssl/ui_compat.h ../fips_utl.h fips_dsatest.c
  116. fips_dssvs.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  117. fips_dssvs.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  118. fips_dssvs.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
  119. fips_dssvs.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  120. fips_dssvs.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
  121. fips_dssvs.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  122. fips_dssvs.o: ../../include/openssl/opensslconf.h
  123. fips_dssvs.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  124. fips_dssvs.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  125. fips_dssvs.o: ../../include/openssl/symhacks.h ../fips_utl.h fips_dssvs.c