Makefile 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. #
  2. # crypto/ecdh/Makefile
  3. #
  4. DIR= ecdh
  5. TOP= ../..
  6. CC= cc
  7. INCLUDES= -I.. -I$(TOP) -I../../include
  8. CFLAG=-g -Wall
  9. MAKEFILE= Makefile
  10. AR= ar r
  11. CFLAGS= $(INCLUDES) $(CFLAG)
  12. GENERAL=Makefile
  13. TEST=ecdhtest.c
  14. APPS=
  15. LIB=$(TOP)/libcrypto.a
  16. LIBSRC= ech_lib.c ech_ossl.c ech_key.c ech_err.c ech_kdf.c
  17. LIBOBJ= ech_lib.o ech_ossl.o ech_key.o ech_err.o ech_kdf.o
  18. SRC= $(LIBSRC)
  19. EXHEADER= ecdh.h
  20. HEADER= ech_locl.h $(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 */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  56. # DO NOT DELETE THIS LINE -- make depend depends on it.
  57. ech_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  58. ech_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  59. ech_err.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
  60. ech_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  61. ech_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  62. ech_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  63. ech_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  64. ech_err.o: ech_err.c
  65. ech_kdf.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  66. ech_kdf.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  67. ech_kdf.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
  68. ech_kdf.o: ../../include/openssl/evp.h ../../include/openssl/obj_mac.h
  69. ech_kdf.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
  70. ech_kdf.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  71. ech_kdf.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  72. ech_kdf.o: ../../include/openssl/symhacks.h ech_kdf.c
  73. ech_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  74. ech_key.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  75. ech_key.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
  76. ech_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  77. ech_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  78. ech_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  79. ech_key.o: ech_key.c ech_locl.h
  80. ech_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  81. ech_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  82. ech_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  83. ech_lib.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
  84. ech_lib.o: ../../include/openssl/engine.h ../../include/openssl/err.h
  85. ech_lib.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
  86. ech_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  87. ech_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  88. ech_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
  89. ech_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
  90. ech_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  91. ech_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
  92. ech_lib.o: ech_lib.c ech_locl.h
  93. ech_ossl.o: ../../e_os.h ../../include/openssl/asn1.h
  94. ech_ossl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  95. ech_ossl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  96. ech_ossl.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  97. ech_ossl.o: ../../include/openssl/ecdh.h ../../include/openssl/err.h
  98. ech_ossl.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  99. ech_ossl.o: ../../include/openssl/opensslconf.h
  100. ech_ossl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  101. ech_ossl.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
  102. ech_ossl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  103. ech_ossl.o: ../cryptlib.h ech_locl.h ech_ossl.c