Makefile.ssl 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #
  2. # SSLeay/crypto/md/Makefile
  3. #
  4. DIR= md2
  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=md2test.c
  20. APPS=
  21. LIB=$(TOP)/libcrypto.a
  22. LIBSRC=md2_dgst.c md2_one.c
  23. LIBOBJ=md2_dgst.o md2_one.o
  24. SRC= $(LIBSRC)
  25. EXHEADER= md2.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. @$(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) $(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. md2_dgst.o: ../../include/openssl/md2.h ../../include/openssl/opensslconf.h
  62. md2_dgst.o: ../../include/openssl/opensslv.h md2_dgst.c
  63. md2_one.o: ../../e_os.h ../../include/openssl/bio.h
  64. md2_one.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  65. md2_one.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  66. md2_one.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
  67. md2_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  68. md2_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  69. md2_one.o: ../../include/openssl/symhacks.h ../cryptlib.h md2_one.c