Makefile 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. #
  2. # OpenSSL/crypto/md/Makefile
  3. #
  4. DIR= hmac
  5. TOP= ../..
  6. CC= cc
  7. INCLUDES=
  8. CFLAG=-g
  9. MAKEFILE= Makefile
  10. AR= ar r
  11. CFLAGS= $(INCLUDES) $(CFLAG)
  12. GENERAL=Makefile
  13. TEST=hmactest.c
  14. APPS=
  15. LIB=$(TOP)/libcrypto.a
  16. LIBSRC=hmac.c hm_ameth.c hm_pmeth.c
  17. LIBOBJ=hmac.o hm_ameth.o hm_pmeth.o
  18. SRC= $(LIBSRC)
  19. EXHEADER= hmac.h
  20. HEADER= $(EXHEADER)
  21. ALL= $(GENERAL) $(SRC) $(HEADER)
  22. top:
  23. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  24. all: lib
  25. lib: $(LIBOBJ)
  26. $(AR) $(LIB) $(LIBOBJ)
  27. $(RANLIB) $(LIB) || echo Never mind.
  28. @touch lib
  29. files:
  30. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  31. links:
  32. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  33. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  34. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  35. install:
  36. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  37. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  38. do \
  39. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  40. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  41. done;
  42. tags:
  43. ctags $(SRC)
  44. tests:
  45. lint:
  46. lint -DLINT $(INCLUDES) $(SRC)>fluff
  47. update: depend
  48. depend:
  49. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  50. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  51. dclean:
  52. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  53. mv -f Makefile.new $(MAKEFILE)
  54. clean:
  55. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  56. # DO NOT DELETE THIS LINE -- make depend depends on it.
  57. hm_ameth.o: ../../e_os.h ../../include/openssl/asn1.h
  58. hm_ameth.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
  59. hm_ameth.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  60. hm_ameth.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  61. hm_ameth.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  62. hm_ameth.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
  63. hm_ameth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  64. hm_ameth.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  65. hm_ameth.o: ../../include/openssl/symhacks.h ../asn1/asn1_locl.h ../cryptlib.h
  66. hm_ameth.o: hm_ameth.c
  67. hm_pmeth.o: ../../e_os.h ../../include/openssl/asn1.h
  68. hm_pmeth.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
  69. hm_pmeth.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
  70. hm_pmeth.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  71. hm_pmeth.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
  72. hm_pmeth.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  73. hm_pmeth.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
  74. hm_pmeth.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  75. hm_pmeth.o: ../../include/openssl/opensslconf.h
  76. hm_pmeth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  77. hm_pmeth.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
  78. hm_pmeth.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
  79. hm_pmeth.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
  80. hm_pmeth.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h
  81. hm_pmeth.o: ../cryptlib.h ../evp/evp_locl.h hm_pmeth.c
  82. hmac.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h
  83. hmac.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  84. hmac.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  85. hmac.o: ../../include/openssl/evp.h ../../include/openssl/hmac.h
  86. hmac.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  87. hmac.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
  88. hmac.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  89. hmac.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  90. hmac.o: ../../include/openssl/symhacks.h ../cryptlib.h hmac.c