Makefile 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. DIR= srp
  2. TOP= ../..
  3. CC= cc
  4. INCLUDES= -I.. -I$(TOP) -I../../include
  5. CFLAG=-g
  6. INSTALL_PREFIX=
  7. OPENSSLDIR= /usr/local/ssl
  8. INSTALLTOP=/usr/local/ssl
  9. MAKEDEPPROG= makedepend
  10. MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
  11. MAKEFILE= Makefile.ssl
  12. AR= ar r
  13. CFLAGS= $(INCLUDES) $(CFLAG)
  14. GENERAL=Makefile
  15. TEST=srptest.c
  16. APPS=
  17. LIB=$(TOP)/libcrypto.a
  18. LIBSRC=srp_lib.c srp_vfy.c
  19. LIBOBJ=srp_lib.o srp_vfy.o
  20. SRC= $(LIBSRC)
  21. EXHEADER= srp.h
  22. HEADER= $(EXHEADER)
  23. top:
  24. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  25. all: lib
  26. lib: $(LIBOBJ)
  27. $(AR) $(LIB) $(LIBOBJ)
  28. $(RANLIB) $(LIB) || echo Never mind.
  29. @touch lib
  30. links:
  31. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  32. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  33. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  34. install:
  35. @for i in $(EXHEADER) ; \
  36. do \
  37. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  38. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  39. done;
  40. tags:
  41. ctags $(SRC)
  42. tests:
  43. srptest: top srptest.c $(LIB)
  44. $(CC) $(CFLAGS) -Wall -Werror -g -o srptest srptest.c $(LIB)
  45. lint:
  46. lint -DLINT $(INCLUDES) $(SRC)>fluff
  47. depend:
  48. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  49. dclean:
  50. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  51. mv -f Makefile.new $(MAKEFILE)
  52. clean:
  53. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  54. # DO NOT DELETE THIS LINE -- make depend depends on it.
  55. srp_lib.o: ../../e_os.h ../../include/openssl/asn1.h
  56. srp_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  57. srp_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  58. srp_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  59. srp_lib.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
  60. srp_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  61. srp_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  62. srp_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  63. srp_lib.o: ../../include/openssl/sha.h ../../include/openssl/srp.h
  64. srp_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  65. srp_lib.o: ../cryptlib.h srp_grps.h srp_lcl.h srp_lib.c
  66. srp_vfy.o: ../../e_os.h ../../include/openssl/asn1.h
  67. srp_vfy.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  68. srp_vfy.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  69. srp_vfy.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  70. srp_vfy.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
  71. srp_vfy.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  72. srp_vfy.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  73. srp_vfy.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  74. srp_vfy.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
  75. srp_vfy.o: ../../include/openssl/srp.h ../../include/openssl/stack.h
  76. srp_vfy.o: ../../include/openssl/symhacks.h ../../include/openssl/txt_db.h
  77. srp_vfy.o: ../cryptlib.h srp_lcl.h srp_vfy.c