Makefile 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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_ASM_OBJ=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_ctr.c aes_ige.c aes_wrap.c
  23. LIBOBJ=aes_misc.o aes_ecb.o aes_cfb.o aes_ofb.o aes_ctr.o aes_ige.o aes_wrap.o \
  24. $(AES_ASM_OBJ)
  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. $(LIBOBJ): $(LIBSRC)
  37. aes-ia64.s: asm/aes-ia64.S
  38. $(CC) $(CFLAGS) -E asm/aes-ia64.S > $@
  39. ax86-elf.s: asm/aes-586.pl ../perlasm/x86asm.pl
  40. (cd asm; $(PERL) aes-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@)
  41. ax86-cof.s: asm/aes-586.pl ../perlasm/x86asm.pl
  42. (cd asm; $(PERL) aes-586.pl coff $(CFLAGS) $(PROCESSOR) > ../$@)
  43. ax86-out.s: asm/aes-586.pl ../perlasm/x86asm.pl
  44. (cd asm; $(PERL) aes-586.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@)
  45. aes-x86_64.s: asm/aes-x86_64.pl
  46. $(PERL) asm/aes-x86_64.pl $@
  47. files:
  48. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  49. links:
  50. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  51. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  52. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  53. install:
  54. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  55. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  56. do \
  57. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  58. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  59. done;
  60. tags:
  61. ctags $(SRC)
  62. tests:
  63. lint:
  64. lint -DLINT $(INCLUDES) $(SRC)>fluff
  65. depend:
  66. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  67. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  68. dclean:
  69. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  70. mv -f Makefile.new $(MAKEFILE)
  71. clean:
  72. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  73. # DO NOT DELETE THIS LINE -- make depend depends on it.
  74. aes_cbc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
  75. aes_cbc.o: ../../include/openssl/opensslconf.h aes_cbc.c aes_locl.h
  76. aes_cfb.o: ../../e_os.h ../../include/openssl/aes.h
  77. aes_cfb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  78. aes_cfb.o: aes_cfb.c aes_locl.h
  79. aes_core.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
  80. aes_core.o: ../../include/openssl/fips.h ../../include/openssl/opensslconf.h
  81. aes_core.o: aes_core.c aes_locl.h
  82. aes_ctr.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
  83. aes_ctr.o: ../../include/openssl/opensslconf.h aes_ctr.c aes_locl.h
  84. aes_ecb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
  85. aes_ecb.o: ../../include/openssl/opensslconf.h aes_ecb.c aes_locl.h
  86. aes_ige.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/bio.h
  87. aes_ige.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  88. aes_ige.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  89. aes_ige.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  90. aes_ige.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  91. aes_ige.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  92. aes_ige.o: ../../include/openssl/symhacks.h ../cryptlib.h aes_ige.c aes_locl.h
  93. aes_misc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
  94. aes_misc.o: ../../include/openssl/opensslconf.h
  95. aes_misc.o: ../../include/openssl/opensslv.h aes_locl.h aes_misc.c
  96. aes_ofb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
  97. aes_ofb.o: ../../include/openssl/opensslconf.h aes_locl.h aes_ofb.c
  98. aes_wrap.o: ../../e_os.h ../../include/openssl/aes.h
  99. aes_wrap.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
  100. aes_wrap.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  101. aes_wrap.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  102. aes_wrap.o: ../../include/openssl/opensslconf.h
  103. aes_wrap.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  104. aes_wrap.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  105. aes_wrap.o: ../../include/openssl/symhacks.h ../cryptlib.h aes_wrap.c