Makefile 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. #
  2. # crypto/aes/Makefile
  3. #
  4. DIR= aes
  5. TOP= ../..
  6. CC= cc
  7. CPP= $(CC) -E
  8. INCLUDES=
  9. CFLAG=-g
  10. MAKEFILE= Makefile
  11. AR= ar r
  12. AES_ENC=aes_core.o aes_cbc.o
  13. CFLAGS= $(INCLUDES) $(CFLAG)
  14. ASFLAGS= $(INCLUDES) $(ASFLAG)
  15. AFLAGS= $(ASFLAGS)
  16. GENERAL=Makefile
  17. LIB=$(TOP)/libcrypto.a
  18. LIBSRC=aes_core.c aes_misc.c aes_ecb.c aes_cbc.c aes_cfb.c aes_ofb.c \
  19. aes_ige.c aes_wrap.c
  20. LIBOBJ=aes_misc.o aes_ecb.o aes_cfb.o aes_ofb.o aes_ige.o aes_wrap.o \
  21. $(AES_ENC)
  22. SRC= $(LIBSRC)
  23. HEADER= aes_locl.h
  24. ALL= $(GENERAL) $(SRC) $(HEADER)
  25. top:
  26. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  27. all: lib
  28. lib: $(LIBOBJ)
  29. $(AR) $(LIB) $(LIBOBJ)
  30. $(RANLIB) $(LIB) || echo Never mind.
  31. @touch lib
  32. aes-ia64.s: asm/aes-ia64.S
  33. $(CC) $(CFLAGS) -E asm/aes-ia64.S > $@
  34. aes-586.s: asm/aes-586.pl ../perlasm/x86asm.pl
  35. $(PERL) asm/aes-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
  36. vpaes-x86.s: asm/vpaes-x86.pl ../perlasm/x86asm.pl
  37. $(PERL) asm/vpaes-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
  38. aesni-x86.s: asm/aesni-x86.pl ../perlasm/x86asm.pl
  39. $(PERL) asm/aesni-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
  40. aes-x86_64.s: asm/aes-x86_64.pl
  41. $(PERL) asm/aes-x86_64.pl $(PERLASM_SCHEME) > $@
  42. vpaes-x86_64.s: asm/vpaes-x86_64.pl
  43. $(PERL) asm/vpaes-x86_64.pl $(PERLASM_SCHEME) > $@
  44. bsaes-x86_64.s: asm/bsaes-x86_64.pl
  45. $(PERL) asm/bsaes-x86_64.pl $(PERLASM_SCHEME) > $@
  46. aesni-x86_64.s: asm/aesni-x86_64.pl
  47. $(PERL) asm/aesni-x86_64.pl $(PERLASM_SCHEME) > $@
  48. aesni-sha1-x86_64.s: asm/aesni-sha1-x86_64.pl
  49. $(PERL) asm/aesni-sha1-x86_64.pl $(PERLASM_SCHEME) > $@
  50. aesni-sha256-x86_64.s: asm/aesni-sha256-x86_64.pl
  51. $(PERL) asm/aesni-sha256-x86_64.pl $(PERLASM_SCHEME) > $@
  52. aesni-mb-x86_64.s: asm/aesni-mb-x86_64.pl
  53. $(PERL) asm/aesni-mb-x86_64.pl $(PERLASM_SCHEME) > $@
  54. aes-sparcv9.s: asm/aes-sparcv9.pl
  55. $(PERL) asm/aes-sparcv9.pl $(CFLAGS) > $@
  56. aest4-sparcv9.s: asm/aest4-sparcv9.pl ../perlasm/sparcv9_modes.pl
  57. $(PERL) asm/aest4-sparcv9.pl $(CFLAGS) > $@
  58. aes-ppc.s: asm/aes-ppc.pl
  59. $(PERL) asm/aes-ppc.pl $(PERLASM_SCHEME) $@
  60. vpaes-ppc.s: asm/vpaes-ppc.pl
  61. $(PERL) asm/vpaes-ppc.pl $(PERLASM_SCHEME) $@
  62. aesp8-ppc.s: asm/aesp8-ppc.pl
  63. $(PERL) asm/aesp8-ppc.pl $(PERLASM_SCHEME) $@
  64. aes-parisc.s: asm/aes-parisc.pl
  65. $(PERL) asm/aes-parisc.pl $(PERLASM_SCHEME) $@
  66. aes-mips.S: asm/aes-mips.pl
  67. $(PERL) asm/aes-mips.pl $(PERLASM_SCHEME) $@
  68. aesv8-armx.S: asm/aesv8-armx.pl
  69. $(PERL) asm/aesv8-armx.pl $(PERLASM_SCHEME) $@
  70. aesv8-armx.o: aesv8-armx.S
  71. vpaes-armv8.S: asm/vpaes-armv8.pl
  72. $(PERL) asm/vpaes-armv8.pl $(PERLASM_SCHEME) $@
  73. vpaes-armv8.o: vpaes-armv8.S
  74. # GNU make "catch all"
  75. aes-%.S: asm/aes-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
  76. aes-armv4.o: aes-armv4.S
  77. bsaes-%.S: asm/bsaes-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
  78. bsaes-armv7.o: bsaes-armv7.S
  79. files:
  80. $(PERL) $(TOP)/util/files.pl "AES_ENC=$(AES_ENC)" Makefile >> $(TOP)/MINFO
  81. tags:
  82. ctags $(SRC)
  83. tests:
  84. lint:
  85. lint -DLINT $(INCLUDES) $(SRC)>fluff
  86. depend:
  87. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  88. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  89. dclean:
  90. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  91. mv -f Makefile.new $(MAKEFILE)
  92. clean:
  93. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  94. # DO NOT DELETE THIS LINE -- make depend depends on it.
  95. aes_cbc.o: ../../include/openssl/aes.h ../../include/openssl/modes.h
  96. aes_cbc.o: ../../include/openssl/opensslconf.h aes_cbc.c
  97. aes_cfb.o: ../../include/openssl/aes.h ../../include/openssl/modes.h
  98. aes_cfb.o: ../../include/openssl/opensslconf.h aes_cfb.c
  99. aes_core.o: ../../include/openssl/aes.h ../../include/openssl/crypto.h
  100. aes_core.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  101. aes_core.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  102. aes_core.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  103. aes_core.o: ../../include/openssl/symhacks.h aes_core.c aes_locl.h
  104. aes_ecb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
  105. aes_ecb.o: ../../include/openssl/opensslconf.h aes_ecb.c aes_locl.h
  106. aes_ige.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/bio.h
  107. aes_ige.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  108. aes_ige.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  109. aes_ige.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  110. aes_ige.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  111. aes_ige.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  112. aes_ige.o: ../../include/openssl/symhacks.h ../cryptlib.h aes_ige.c aes_locl.h
  113. aes_misc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
  114. aes_misc.o: ../../include/openssl/opensslconf.h
  115. aes_misc.o: ../../include/openssl/opensslv.h aes_locl.h aes_misc.c
  116. aes_ofb.o: ../../include/openssl/aes.h ../../include/openssl/modes.h
  117. aes_ofb.o: ../../include/openssl/opensslconf.h aes_ofb.c
  118. aes_wrap.o: ../../e_os.h ../../include/openssl/aes.h
  119. aes_wrap.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
  120. aes_wrap.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  121. aes_wrap.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  122. aes_wrap.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  123. aes_wrap.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  124. aes_wrap.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  125. aes_wrap.o: ../../include/openssl/symhacks.h ../cryptlib.h aes_wrap.c