Makefile 3.8 KB

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