Makefile 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #
  2. # OpenSSL/crypto/md5/Makefile
  3. #
  4. DIR= md5
  5. TOP= ../..
  6. CC= cc
  7. CPP= $(CC) -E
  8. INCLUDES=-I.. -I$(TOP) -I../../include
  9. CFLAG=-g
  10. MAKEFILE= Makefile
  11. AR= ar r
  12. MD5_ASM_OBJ=
  13. CFLAGS= $(INCLUDES) $(CFLAG)
  14. ASFLAGS= $(INCLUDES) $(ASFLAG)
  15. AFLAGS= $(ASFLAGS)
  16. GENERAL=Makefile
  17. TEST=md5test.c
  18. APPS=
  19. LIB=$(TOP)/libcrypto.a
  20. LIBSRC=md5_dgst.c md5_one.c
  21. LIBOBJ=md5_dgst.o md5_one.o $(MD5_ASM_OBJ)
  22. SRC= $(LIBSRC)
  23. EXHEADER= md5.h
  24. HEADER= md5_locl.h $(EXHEADER)
  25. ALL= $(GENERAL) $(SRC) $(HEADER)
  26. top:
  27. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  28. all: lib
  29. lib: $(LIBOBJ)
  30. $(AR) $(LIB) $(LIBOBJ)
  31. $(RANLIB) $(LIB) || echo Never mind.
  32. @touch lib
  33. # ELF
  34. mx86-elf.s: asm/md5-586.pl ../perlasm/x86asm.pl
  35. (cd asm; $(PERL) md5-586.pl elf $(CFLAGS) > ../$@)
  36. # COFF
  37. mx86-cof.s: asm/md5-586.pl ../perlasm/x86asm.pl
  38. (cd asm; $(PERL) md5-586.pl coff $(CFLAGS) > ../$@)
  39. # a.out
  40. mx86-out.s: asm/md5-586.pl ../perlasm/x86asm.pl
  41. (cd asm; $(PERL) md5-586.pl a.out $(CFLAGS) > ../$@)
  42. md5-sparcv9.o: asm/md5-sparcv9.S
  43. $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \
  44. -o md5-sparcv9.o asm/md5-sparcv9.S
  45. md5-x86_64.s: asm/md5-x86_64.pl; $(PERL) asm/md5-x86_64.pl $@
  46. md5-ia64.s: asm/md5-ia64.S
  47. $(CC) $(CFLAGS) -E asm/md5-ia64.S | \
  48. $(PERL) -ne 's/;\s+/;\n/g; print;' > $@
  49. files:
  50. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  51. links:
  52. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  53. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  54. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  55. install:
  56. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  57. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  58. do \
  59. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  60. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  61. done;
  62. tags:
  63. ctags $(SRC)
  64. tests:
  65. lint:
  66. lint -DLINT $(INCLUDES) $(SRC)>fluff
  67. depend:
  68. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  69. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  70. dclean:
  71. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  72. mv -f Makefile.new $(MAKEFILE)
  73. clean:
  74. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  75. # DO NOT DELETE THIS LINE -- make depend depends on it.
  76. md5_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/md5.h
  77. md5_dgst.o: ../../include/openssl/opensslconf.h
  78. md5_dgst.o: ../../include/openssl/opensslv.h ../md32_common.h md5_dgst.c
  79. md5_dgst.o: md5_locl.h
  80. md5_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  81. md5_one.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h
  82. md5_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  83. md5_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  84. md5_one.o: ../../include/openssl/symhacks.h md5_one.c