Makefile 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. #
  2. # OpenSSL/fips/hmac/Makefile
  3. #
  4. DIR= hmac
  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_hmactest.c
  19. APPS=
  20. LIB=$(TOP)/libcrypto.a
  21. LIBSRC= fips_hmac_selftest.c
  22. LIBOBJ= fips_hmac_selftest.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/hmac/req
  48. A=../testvectors/hmac/rsp
  49. fips_test:
  50. -rm -rf $(A)
  51. mkdir $(A)
  52. if [ -f $(Q)/HMAC.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_hmactest < $(Q)/HMAC.req > $(A)/HMAC.rsp; fi
  53. lint:
  54. lint -DLINT $(INCLUDES) $(SRC)>fluff
  55. depend:
  56. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
  57. dclean:
  58. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  59. mv -f Makefile.new $(MAKEFILE)
  60. clean:
  61. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  62. # DO NOT DELETE THIS LINE -- make depend depends on it.
  63. fips_hmac_selftest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  64. fips_hmac_selftest.o: ../../include/openssl/crypto.h
  65. fips_hmac_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  66. fips_hmac_selftest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  67. fips_hmac_selftest.o: ../../include/openssl/hmac.h
  68. fips_hmac_selftest.o: ../../include/openssl/lhash.h
  69. fips_hmac_selftest.o: ../../include/openssl/obj_mac.h
  70. fips_hmac_selftest.o: ../../include/openssl/objects.h
  71. fips_hmac_selftest.o: ../../include/openssl/opensslconf.h
  72. fips_hmac_selftest.o: ../../include/openssl/opensslv.h
  73. fips_hmac_selftest.o: ../../include/openssl/ossl_typ.h
  74. fips_hmac_selftest.o: ../../include/openssl/safestack.h
  75. fips_hmac_selftest.o: ../../include/openssl/stack.h
  76. fips_hmac_selftest.o: ../../include/openssl/symhacks.h fips_hmac_selftest.c
  77. fips_hmactest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  78. fips_hmactest.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  79. fips_hmactest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  80. fips_hmactest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  81. fips_hmactest.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
  82. fips_hmactest.o: ../../include/openssl/obj_mac.h
  83. fips_hmactest.o: ../../include/openssl/objects.h
  84. fips_hmactest.o: ../../include/openssl/opensslconf.h
  85. fips_hmactest.o: ../../include/openssl/opensslv.h
  86. fips_hmactest.o: ../../include/openssl/ossl_typ.h
  87. fips_hmactest.o: ../../include/openssl/safestack.h
  88. fips_hmactest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  89. fips_hmactest.o: ../fips_utl.h fips_hmactest.c