Makefile 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. $(AR) $(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. update: depend
  49. depend:
  50. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  51. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  52. dclean:
  53. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  54. mv -f Makefile.new $(MAKEFILE)
  55. rm -f ../../include/openssl/$(EXHEADER) ../../test/$(TEST) ../../apps/$(APPS)
  56. clean:
  57. rm -f asm/mx86unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  58. # DO NOT DELETE THIS LINE -- make depend depends on it.
  59. md4_dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.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