Makefile 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. #
  2. # crypto/ecdsa/Makefile
  3. #
  4. DIR= ecdsa
  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=ecdsatest.c
  14. APPS=
  15. LIB=$(TOP)/libcrypto.a
  16. LIBSRC= ecs_lib.c ecs_asn1.c ecs_ossl.c ecs_sign.c ecs_vrf.c ecs_err.c
  17. LIBOBJ= ecs_lib.o ecs_asn1.o ecs_ossl.o ecs_sign.o ecs_vrf.o ecs_err.o
  18. SRC= $(LIBSRC)
  19. EXHEADER= ecdsa.h
  20. HEADER= ecs_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. depend:
  48. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  49. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  50. dclean:
  51. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  52. mv -f Makefile.new $(MAKEFILE)
  53. clean:
  54. rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  55. # DO NOT DELETE THIS LINE -- make depend depends on it.
  56. ecs_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
  57. ecs_asn1.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  58. ecs_asn1.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  59. ecs_asn1.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h
  60. ecs_asn1.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  61. ecs_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  62. ecs_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  63. ecs_asn1.o: ../../include/openssl/symhacks.h ecs_asn1.c ecs_locl.h
  64. ecs_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  65. ecs_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  66. ecs_err.o: ../../include/openssl/ec.h ../../include/openssl/ecdsa.h
  67. ecs_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  68. ecs_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  69. ecs_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  70. ecs_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  71. ecs_err.o: ecs_err.c
  72. ecs_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  73. ecs_lib.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  74. ecs_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  75. ecs_lib.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
  76. ecs_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  77. ecs_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  78. ecs_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  79. ecs_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  80. ecs_lib.o: ecs_lib.c ecs_locl.h
  81. ecs_ossl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  82. ecs_ossl.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  83. ecs_ossl.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  84. ecs_ossl.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h
  85. ecs_ossl.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  86. ecs_ossl.o: ../../include/openssl/opensslconf.h
  87. ecs_ossl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  88. ecs_ossl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  89. ecs_ossl.o: ../../include/openssl/symhacks.h ecs_locl.h ecs_ossl.c
  90. ecs_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  91. ecs_sign.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  92. ecs_sign.o: ../../include/openssl/ec.h ../../include/openssl/ecdsa.h
  93. ecs_sign.o: ../../include/openssl/engine.h ../../include/openssl/opensslconf.h
  94. ecs_sign.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  95. ecs_sign.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  96. ecs_sign.o: ../../include/openssl/symhacks.h ecs_locl.h ecs_sign.c
  97. ecs_vrf.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  98. ecs_vrf.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  99. ecs_vrf.o: ../../include/openssl/ec.h ../../include/openssl/ecdsa.h
  100. ecs_vrf.o: ../../include/openssl/engine.h ../../include/openssl/opensslconf.h
  101. ecs_vrf.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  102. ecs_vrf.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  103. ecs_vrf.o: ../../include/openssl/symhacks.h ecs_locl.h ecs_vrf.c