Makefile 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. #TEST=aestest.c
  18. TEST=
  19. APPS=
  20. LIB=$(TOP)/libcrypto.a
  21. LIBSRC=aes_core.c aes_misc.c aes_ecb.c aes_cbc.c aes_cfb.c aes_ofb.c \
  22. aes_ige.c aes_wrap.c
  23. LIBOBJ=aes_misc.o aes_ecb.o aes_cfb.o aes_ofb.o aes_ige.o aes_wrap.o \
  24. $(AES_ENC)
  25. SRC= $(LIBSRC)
  26. EXHEADER= aes.h
  27. HEADER= aes_locl.h $(EXHEADER)
  28. ALL= $(GENERAL) $(SRC) $(HEADER)
  29. top:
  30. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  31. all: lib
  32. lib: $(LIBOBJ)
  33. $(ARX) $(LIB) $(LIBOBJ)
  34. $(RANLIB) $(LIB) || echo Never mind.
  35. @touch lib
  36. aes-ia64.s: asm/aes-ia64.S
  37. $(CC) $(CFLAGS) -E asm/aes-ia64.S > $@
  38. aes-586.s: asm/aes-586.pl ../perlasm/x86asm.pl
  39. $(PERL) asm/aes-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
  40. vpaes-x86.s: asm/vpaes-x86.pl ../perlasm/x86asm.pl
  41. $(PERL) asm/vpaes-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
  42. aesni-x86.s: asm/aesni-x86.pl ../perlasm/x86asm.pl
  43. $(PERL) asm/aesni-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
  44. aes-x86_64.s: asm/aes-x86_64.pl
  45. $(PERL) asm/aes-x86_64.pl $(PERLASM_SCHEME) > $@
  46. vpaes-x86_64.s: asm/vpaes-x86_64.pl
  47. $(PERL) asm/vpaes-x86_64.pl $(PERLASM_SCHEME) > $@
  48. aesni-x86_64.s: asm/aesni-x86_64.pl
  49. $(PERL) asm/aesni-x86_64.pl $(PERLASM_SCHEME) > $@
  50. aesni-sha1-x86_64.s: asm/aesni-sha1-x86_64.pl
  51. $(PERL) asm/aesni-sha1-x86_64.pl $(PERLASM_SCHEME) > $@
  52. aes-sparcv9.s: asm/aes-sparcv9.pl
  53. $(PERL) asm/aes-sparcv9.pl $(CFLAGS) > $@
  54. aes-ppc.s: asm/aes-ppc.pl
  55. $(PERL) asm/aes-ppc.pl $(PERLASM_SCHEME) $@
  56. aes-parisc.s: asm/aes-parisc.pl
  57. $(PERL) asm/aes-parisc.pl $(PERLASM_SCHEME) $@
  58. aes-mips.s: asm/aes-mips.pl
  59. $(PERL) asm/aes-mips.pl $(PERLASM_SCHEME) $@
  60. # GNU make "catch all"
  61. aes-%.S: asm/aes-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
  62. aes-armv4.o: aes-armv4.S
  63. files:
  64. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  65. links:
  66. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  67. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  68. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  69. install:
  70. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  71. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  72. do \
  73. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  74. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  75. done;
  76. tags:
  77. ctags $(SRC)
  78. tests:
  79. lint:
  80. lint -DLINT $(INCLUDES) $(SRC)>fluff
  81. depend:
  82. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  83. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  84. dclean:
  85. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  86. mv -f Makefile.new $(MAKEFILE)
  87. clean:
  88. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  89. # DO NOT DELETE THIS LINE -- make depend depends on it.
  90. aes_cbc.o: ../../include/openssl/aes.h ../../include/openssl/crypto.h
  91. aes_cbc.o: ../../include/openssl/e_os2.h ../../include/openssl/modes.h
  92. aes_cbc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  93. aes_cbc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  94. aes_cbc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  95. aes_cbc.o: aes_cbc.c
  96. aes_cfb.o: ../../include/openssl/aes.h ../../include/openssl/crypto.h
  97. aes_cfb.o: ../../include/openssl/e_os2.h ../../include/openssl/modes.h
  98. aes_cfb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  99. aes_cfb.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  100. aes_cfb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  101. aes_cfb.o: aes_cfb.c
  102. aes_core.o: ../../include/openssl/aes.h ../../include/openssl/crypto.h
  103. aes_core.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  104. aes_core.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  105. aes_core.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  106. aes_core.o: ../../include/openssl/symhacks.h aes_core.c aes_locl.h
  107. aes_ecb.o: ../../include/openssl/aes.h ../../include/openssl/crypto.h
  108. aes_ecb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  109. aes_ecb.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  110. aes_ecb.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  111. aes_ecb.o: ../../include/openssl/symhacks.h aes_ecb.c aes_locl.h
  112. aes_ige.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/bio.h
  113. aes_ige.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  114. aes_ige.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  115. aes_ige.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  116. aes_ige.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  117. aes_ige.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  118. aes_ige.o: ../../include/openssl/symhacks.h ../cryptlib.h aes_ige.c aes_locl.h
  119. aes_misc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
  120. aes_misc.o: ../../include/openssl/opensslconf.h
  121. aes_misc.o: ../../include/openssl/opensslv.h aes_locl.h aes_misc.c
  122. aes_ofb.o: ../../include/openssl/aes.h ../../include/openssl/crypto.h
  123. aes_ofb.o: ../../include/openssl/e_os2.h ../../include/openssl/modes.h
  124. aes_ofb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  125. aes_ofb.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  126. aes_ofb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  127. aes_ofb.o: aes_ofb.c
  128. aes_wrap.o: ../../e_os.h ../../include/openssl/aes.h
  129. aes_wrap.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
  130. aes_wrap.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  131. aes_wrap.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  132. aes_wrap.o: ../../include/openssl/opensslconf.h
  133. aes_wrap.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  134. aes_wrap.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  135. aes_wrap.o: ../../include/openssl/symhacks.h ../cryptlib.h aes_wrap.c