Makefile 5.9 KB

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