Makefile 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #
  2. # OpenSSL/crypto/rc4/Makefile
  3. #
  4. DIR= rc4
  5. TOP= ../..
  6. CC= cc
  7. CPP= $(CC) -E
  8. INCLUDES=
  9. CFLAG=-g
  10. AR= ar r
  11. RC4_ENC=rc4_enc.o rc4_skey.o
  12. CFLAGS= $(INCLUDES) $(CFLAG)
  13. ASFLAGS= $(INCLUDES) $(ASFLAG)
  14. AFLAGS= $(ASFLAGS)
  15. GENERAL=Makefile
  16. TEST=rc4test.c
  17. APPS=
  18. LIB=$(TOP)/libcrypto.a
  19. LIBSRC=rc4_skey.c rc4_enc.c
  20. LIBOBJ=$(RC4_ENC)
  21. SRC= $(LIBSRC)
  22. EXHEADER= rc4.h
  23. HEADER= $(EXHEADER) rc4_locl.h
  24. ALL= $(GENERAL) $(SRC) $(HEADER)
  25. top:
  26. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  27. all: lib
  28. lib: $(LIBOBJ)
  29. $(AR) $(LIB) $(LIBOBJ)
  30. $(RANLIB) $(LIB) || echo Never mind.
  31. @touch lib
  32. rc4-586.s: asm/rc4-586.pl ../perlasm/x86asm.pl
  33. $(PERL) asm/rc4-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
  34. rc4-x86_64.s: asm/rc4-x86_64.pl
  35. $(PERL) asm/rc4-x86_64.pl $(PERLASM_SCHEME) > $@
  36. rc4-ia64.S: asm/rc4-ia64.pl
  37. $(PERL) asm/rc4-ia64.pl $(CFLAGS) > $@
  38. rc4-s390x.s: asm/rc4-s390x.pl
  39. $(PERL) asm/rc4-s390x.pl > $@
  40. rc4-ia64.s: rc4-ia64.S
  41. @case `awk '/^#define RC4_INT/{print$$NF}' $(TOP)/include/openssl/opensslconf.h` in \
  42. int) set -x; $(CC) $(CFLAGS) -DSZ=4 -E rc4-ia64.S > $@ ;; \
  43. char) set -x; $(CC) $(CFLAGS) -DSZ=1 -E rc4-ia64.S > $@ ;; \
  44. *) exit 1 ;; \
  45. esac
  46. files:
  47. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  48. links:
  49. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  50. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  51. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  52. install:
  53. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  54. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  55. do \
  56. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  57. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  58. done;
  59. tags:
  60. ctags $(SRC)
  61. tests:
  62. lint:
  63. lint -DLINT $(INCLUDES) $(SRC)>fluff
  64. depend:
  65. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  66. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  67. dclean:
  68. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  69. mv -f Makefile.new $(MAKEFILE)
  70. clean:
  71. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  72. # DO NOT DELETE THIS LINE -- make depend depends on it.
  73. rc4_enc.o: ../../e_os.h ../../include/openssl/bio.h
  74. rc4_enc.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  75. rc4_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  76. rc4_enc.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  77. rc4_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  78. rc4_enc.o: ../../include/openssl/rc4.h ../../include/openssl/safestack.h
  79. rc4_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  80. rc4_enc.o: ../cryptlib.h rc4_enc.c rc4_locl.h
  81. rc4_skey.o: ../../e_os.h ../../include/openssl/bio.h
  82. rc4_skey.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  83. rc4_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  84. rc4_skey.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  85. rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  86. rc4_skey.o: ../../include/openssl/rc4.h ../../include/openssl/safestack.h
  87. rc4_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  88. rc4_skey.o: ../cryptlib.h rc4_locl.h rc4_skey.c