Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #
  2. # OpenSSL/crypto/md4/Makefile
  3. #
  4. DIR= md4
  5. TOP= ../..
  6. CC= cc
  7. CPP= $(CC) -E
  8. INCLUDES=
  9. CFLAG=-g
  10. MAKEFILE= Makefile
  11. AR= ar r
  12. CFLAGS= $(INCLUDES) $(CFLAG)
  13. GENERAL=Makefile
  14. TEST=md4test.c
  15. APPS=md4.c
  16. LIB=$(TOP)/libcrypto.a
  17. LIBSRC=md4_dgst.c md4_one.c
  18. LIBOBJ=md4_dgst.o md4_one.o
  19. SRC= $(LIBSRC)
  20. EXHEADER= md4.h
  21. HEADER= md4_locl.h $(EXHEADER)
  22. ALL= $(GENERAL) $(SRC) $(HEADER)
  23. top:
  24. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  25. all: lib
  26. lib: $(LIBOBJ)
  27. $(ARX) $(LIB) $(LIBOBJ)
  28. $(RANLIB) $(LIB) || echo Never mind.
  29. @touch lib
  30. files:
  31. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  32. links:
  33. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  34. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  35. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  36. install:
  37. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  38. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  39. do \
  40. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  41. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  42. done;
  43. tags:
  44. ctags $(SRC)
  45. tests:
  46. lint:
  47. lint -DLINT $(INCLUDES) $(SRC)>fluff
  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 asm/mx86unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  56. # DO NOT DELETE THIS LINE -- make depend depends on it.
  57. md4_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  58. md4_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  59. md4_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
  60. md4_dgst.o: ../../include/openssl/md4.h ../../include/openssl/opensslconf.h
  61. md4_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  62. md4_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  63. md4_dgst.o: ../../include/openssl/symhacks.h ../md32_common.h md4_dgst.c
  64. md4_dgst.o: md4_locl.h
  65. md4_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  66. md4_one.o: ../../include/openssl/md4.h ../../include/openssl/opensslconf.h
  67. md4_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  68. md4_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  69. md4_one.o: ../../include/openssl/symhacks.h md4_one.c