Makefile 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #
  2. # OpenSSL/crypto/mdc2/Makefile
  3. #
  4. DIR= mdc2
  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= mdc2test.c
  14. APPS=
  15. LIB=$(TOP)/libcrypto.a
  16. LIBSRC=mdc2dgst.c mdc2_one.c
  17. LIBOBJ=mdc2dgst.o mdc2_one.o
  18. SRC= $(LIBSRC)
  19. EXHEADER= mdc2.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. 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 *.obj lib tags core .pure .nfs* *.old *.bak fluff
  55. # DO NOT DELETE THIS LINE -- make depend depends on it.
  56. mdc2_one.o: ../../e_os.h ../../include/openssl/bio.h
  57. mdc2_one.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  58. mdc2_one.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  59. mdc2_one.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  60. mdc2_one.o: ../../include/openssl/lhash.h ../../include/openssl/mdc2.h
  61. mdc2_one.o: ../../include/openssl/opensslconf.h
  62. mdc2_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  63. mdc2_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  64. mdc2_one.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  65. mdc2_one.o: ../../include/openssl/ui_compat.h ../cryptlib.h mdc2_one.c
  66. mdc2dgst.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  67. mdc2dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/mdc2.h
  68. mdc2dgst.o: ../../include/openssl/opensslconf.h
  69. mdc2dgst.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  70. mdc2dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  71. mdc2dgst.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  72. mdc2dgst.o: mdc2dgst.c