Makefile.ssl 2.3 KB

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