2
0

Makefile.in 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. #
  2. # OpenSSL/crypto/sha/Makefile
  3. #
  4. DIR= sha
  5. TOP= ../..
  6. CC= cc
  7. CPP= $(CC) -E
  8. INCLUDES=
  9. CFLAG=-g
  10. MAKEFILE= Makefile
  11. AR= ar r
  12. SHA1_ASM_OBJ=
  13. CFLAGS= $(INCLUDES) $(CFLAG)
  14. ASFLAGS= $(INCLUDES) $(ASFLAG)
  15. AFLAGS= $(ASFLAGS)
  16. GENERAL=Makefile
  17. LIB=$(TOP)/libcrypto.a
  18. LIBSRC=sha1dgst.c sha1_one.c sha256.c sha512.c
  19. LIBOBJ=sha1dgst.o sha1_one.o sha256.o sha512.o $(SHA1_ASM_OBJ)
  20. SRC= $(LIBSRC)
  21. HEADER= sha_locl.h
  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. sha1-586.s: asm/sha1-586.pl ../perlasm/x86asm.pl
  31. $(PERL) asm/sha1-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
  32. sha256-586.s: asm/sha256-586.pl ../perlasm/x86asm.pl
  33. $(PERL) asm/sha256-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
  34. sha512-586.s: asm/sha512-586.pl ../perlasm/x86asm.pl
  35. $(PERL) asm/sha512-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
  36. sha1-ia64.s: asm/sha1-ia64.pl
  37. (cd asm; $(PERL) sha1-ia64.pl ../$@ $(CFLAGS))
  38. sha256-ia64.s: asm/sha512-ia64.pl
  39. (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
  40. sha512-ia64.s: asm/sha512-ia64.pl
  41. (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
  42. sha256-armv4.S: asm/sha256-armv4.pl
  43. $(PERL) $< $(PERLASM_SCHEME) $@
  44. sha1-alpha.s: asm/sha1-alpha.pl
  45. (preproc=$$$$.$@.S; trap "rm $$preproc" INT; \
  46. $(PERL) asm/sha1-alpha.pl > $$preproc && \
  47. $(CC) -E -P $$preproc > $@ && rm $$preproc)
  48. # Solaris make has to be explicitly told
  49. sha1-x86_64.s: asm/sha1-x86_64.pl; $(PERL) asm/sha1-x86_64.pl $(PERLASM_SCHEME) > $@
  50. sha1-mb-x86_64.s: asm/sha1-mb-x86_64.pl; $(PERL) asm/sha1-mb-x86_64.pl $(PERLASM_SCHEME) > $@
  51. sha256-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $(PERLASM_SCHEME) $@
  52. sha256-mb-x86_64.s: asm/sha256-mb-x86_64.pl; $(PERL) asm/sha256-mb-x86_64.pl $(PERLASM_SCHEME) > $@
  53. sha512-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $(PERLASM_SCHEME) $@
  54. sha1-sparcv9.S: asm/sha1-sparcv9.pl; $(PERL) asm/sha1-sparcv9.pl $@ $(CFLAGS)
  55. sha256-sparcv9.S:asm/sha512-sparcv9.pl; $(PERL) asm/sha512-sparcv9.pl $@ $(CFLAGS)
  56. sha512-sparcv9.S:asm/sha512-sparcv9.pl; $(PERL) asm/sha512-sparcv9.pl $@ $(CFLAGS)
  57. sha1-ppc.s: asm/sha1-ppc.pl; $(PERL) asm/sha1-ppc.pl $(PERLASM_SCHEME) $@
  58. sha256-ppc.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@
  59. sha512-ppc.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@
  60. sha256p8-ppc.s: asm/sha512p8-ppc.pl; $(PERL) asm/sha512p8-ppc.pl $(PERLASM_SCHEME) $@
  61. sha512p8-ppc.s: asm/sha512p8-ppc.pl; $(PERL) asm/sha512p8-ppc.pl $(PERLASM_SCHEME) $@
  62. sha1-parisc.s: asm/sha1-parisc.pl; $(PERL) asm/sha1-parisc.pl $(PERLASM_SCHEME) $@
  63. sha256-parisc.s:asm/sha512-parisc.pl; $(PERL) asm/sha512-parisc.pl $(PERLASM_SCHEME) $@
  64. sha512-parisc.s:asm/sha512-parisc.pl; $(PERL) asm/sha512-parisc.pl $(PERLASM_SCHEME) $@
  65. sha1-mips.S: asm/sha1-mips.pl; $(PERL) asm/sha1-mips.pl $(PERLASM_SCHEME) $@
  66. sha256-mips.S: asm/sha512-mips.pl; $(PERL) asm/sha512-mips.pl $(PERLASM_SCHEME) $@
  67. sha512-mips.S: asm/sha512-mips.pl; $(PERL) asm/sha512-mips.pl $(PERLASM_SCHEME) $@
  68. # GNU make "catch all"
  69. sha1-%.S: asm/sha1-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
  70. sha256-%.S: asm/sha512-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
  71. sha512-%.S: asm/sha512-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
  72. sha1-armv4-large.o: sha1-armv4-large.S
  73. sha256-armv4.o: sha256-armv4.S
  74. sha512-armv4.o: sha512-armv4.S
  75. sha1-armv8.o: sha1-armv8.S
  76. sha256-armv8.o: sha256-armv8.S
  77. sha512-armv8.o: sha512-armv8.S
  78. files:
  79. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  80. update: depend
  81. depend:
  82. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  83. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  84. clean:
  85. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  86. # DO NOT DELETE THIS LINE -- make depend depends on it.