Makefile 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #
  2. # OpenSSL/crypto/md/Makefile
  3. #
  4. DIR= md2
  5. TOP= ../..
  6. CC= cc
  7. INCLUDES=
  8. CFLAG=-g
  9. MAKEFILE= Makefile
  10. AR= ar r
  11. CFLAGS= $(INCLUDES) $(CFLAG)
  12. GENERAL=Makefile
  13. TEST=md2test.c
  14. APPS=
  15. LIB=$(TOP)/libcrypto.a
  16. LIBSRC=md2_dgst.c md2_one.c
  17. LIBOBJ=md2_dgst.o md2_one.o
  18. SRC= $(LIBSRC)
  19. EXHEADER= md2.h
  20. HEADER= $(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 *.obj lib tags core .pure .nfs* *.old *.bak fluff
  56. # DO NOT DELETE THIS LINE -- make depend depends on it.
  57. md2_dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  58. md2_dgst.o: ../../include/openssl/md2.h ../../include/openssl/opensslconf.h
  59. md2_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  60. md2_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  61. md2_dgst.o: ../../include/openssl/symhacks.h md2_dgst.c
  62. md2_one.o: ../../e_os.h ../../include/openssl/bio.h
  63. md2_one.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  64. md2_one.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  65. md2_one.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
  66. md2_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  67. md2_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  68. md2_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  69. md2_one.o: ../cryptlib.h md2_one.c