2
0

Makefile 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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
  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_skey.o $(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. # ELF
  33. rx86-elf.s: asm/rc4-586.pl ../perlasm/x86asm.pl
  34. (cd asm; $(PERL) rc4-586.pl elf $(CFLAGS) > ../$@)
  35. # COFF
  36. rx86-cof.s: asm/rc4-586.pl ../perlasm/x86asm.pl
  37. (cd asm; $(PERL) rc4-586.pl coff $(CFLAGS) > ../$@)
  38. # a.out
  39. rx86-out.s: asm/rc4-586.pl ../perlasm/x86asm.pl
  40. (cd asm; $(PERL) rc4-586.pl a.out $(CFLAGS) > ../$@)
  41. rc4-x86_64.s: asm/rc4-x86_64.pl; $(PERL) asm/rc4-x86_64.pl $@
  42. rc4-ia64.S: asm/rc4-ia64.pl
  43. $(PERL) asm/rc4-ia64.pl $(CFLAGS) > $@
  44. rc4-ia64.s: rc4-ia64.S
  45. @case `awk '/^#define RC4_INT/{print$$NF}' $(TOP)/include/openssl/opensslconf.h` in \
  46. int) set -x; $(CC) $(CFLAGS) -DSZ=4 -E rc4-ia64.S > $@ ;; \
  47. char) set -x; $(CC) $(CFLAGS) -DSZ=1 -E rc4-ia64.S > $@ ;; \
  48. *) exit 1 ;; \
  49. esac
  50. files:
  51. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  52. links:
  53. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  54. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  55. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  56. install:
  57. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  58. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  59. do \
  60. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  61. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  62. done;
  63. tags:
  64. ctags $(SRC)
  65. tests:
  66. lint:
  67. lint -DLINT $(INCLUDES) $(SRC)>fluff
  68. depend:
  69. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  70. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  71. dclean:
  72. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  73. mv -f Makefile.new $(MAKEFILE)
  74. clean:
  75. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  76. # DO NOT DELETE THIS LINE -- make depend depends on it.
  77. rc4_enc.o: ../../e_os.h ../../include/openssl/bio.h
  78. rc4_enc.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  79. rc4_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  80. rc4_enc.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  81. rc4_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  82. rc4_enc.o: ../../include/openssl/rc4.h ../../include/openssl/safestack.h
  83. rc4_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  84. rc4_enc.o: ../cryptlib.h rc4_enc.c rc4_locl.h
  85. rc4_skey.o: ../../e_os.h ../../include/openssl/bio.h
  86. rc4_skey.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  87. rc4_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  88. rc4_skey.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  89. rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  90. rc4_skey.o: ../../include/openssl/rc4.h ../../include/openssl/safestack.h
  91. rc4_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  92. rc4_skey.o: ../cryptlib.h rc4_locl.h rc4_skey.c