Makefile 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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 aes_ctr.c
  22. LIBOBJ=aes_misc.o aes_ecb.o aes_cfb.o aes_ofb.o aes_ctr.o $(AES_ASM_OBJ)
  23. SRC= $(LIBSRC)
  24. EXHEADER= aes.h
  25. HEADER= aes_locl.h $(EXHEADER)
  26. ALL= $(GENERAL) $(SRC) $(HEADER)
  27. top:
  28. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  29. all: lib
  30. lib: $(LIBOBJ)
  31. $(AR) $(LIB) $(LIBOBJ)
  32. $(RANLIB) $(LIB) || echo Never mind.
  33. @touch lib
  34. $(LIBOBJ): $(LIBSRC)
  35. aes-ia64.s: asm/aes-ia64.S
  36. $(CC) $(CFLAGS) -E asm/aes-ia64.S > $@
  37. ax86-elf.s: asm/aes-586.pl ../perlasm/x86asm.pl
  38. (cd asm; $(PERL) aes-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@)
  39. ax86-cof.s: asm/aes-586.pl ../perlasm/x86asm.pl
  40. (cd asm; $(PERL) aes-586.pl coff $(CFLAGS) $(PROCESSOR) > ../$@)
  41. ax86-out.s: asm/aes-586.pl ../perlasm/x86asm.pl
  42. (cd asm; $(PERL) aes-586.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@)
  43. aes-x86_64.s: asm/aes-x86_64.pl
  44. $(PERL) asm/aes-x86_64.pl $@
  45. aes-sparcv9.s: asm/aes-sparcv9.pl
  46. $(PERL) asm/aes-sparcv9.pl $(CFLAGS) > $@
  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/opensslconf.h aes_core.c aes_locl.h
  81. aes_ctr.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
  82. aes_ctr.o: ../../include/openssl/opensslconf.h aes_ctr.c aes_locl.h
  83. aes_ecb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
  84. aes_ecb.o: ../../include/openssl/opensslconf.h aes_ecb.c aes_locl.h
  85. aes_misc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
  86. aes_misc.o: ../../include/openssl/opensslconf.h
  87. aes_misc.o: ../../include/openssl/opensslv.h aes_locl.h aes_misc.c
  88. aes_ofb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
  89. aes_ofb.o: ../../include/openssl/opensslconf.h aes_locl.h aes_ofb.c