2
0

Makefile.ssl 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #
  2. # SSLeay/crypto/rc4/Makefile
  3. #
  4. DIR= rc4
  5. TOP= ../..
  6. CC= cc
  7. CPP= $(CC) -E
  8. INCLUDES=
  9. CFLAG=-g
  10. INSTALL_PREFIX=
  11. OPENSSLDIR= /usr/local/ssl
  12. INSTALLTOP=/usr/local/ssl
  13. MAKE= make -f Makefile.ssl
  14. MAKEDEPEND= $(TOP)/util/domd $(TOP)
  15. MAKEFILE= Makefile.ssl
  16. AR= ar r
  17. RC4_ENC=rc4_enc.o
  18. # or use
  19. #RC4_ENC=asm/rx86-elf.o
  20. #RC4_ENC=asm/rx86-out.o
  21. #RC4_ENC=asm/rx86-sol.o
  22. #RC4_ENC=asm/rx86bdsi.o
  23. CFLAGS= $(INCLUDES) $(CFLAG)
  24. GENERAL=Makefile
  25. TEST=rc4test.c
  26. APPS=
  27. LIB=$(TOP)/libcrypto.a
  28. LIBSRC=rc4_skey.c rc4_enc.c
  29. LIBOBJ=rc4_skey.o $(RC4_ENC)
  30. SRC= $(LIBSRC)
  31. EXHEADER= rc4.h
  32. HEADER= $(EXHEADER) rc4_locl.h
  33. ALL= $(GENERAL) $(SRC) $(HEADER)
  34. top:
  35. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  36. all: lib
  37. lib: $(LIBOBJ)
  38. $(AR) $(LIB) $(LIBOBJ)
  39. @echo You may get an error following this line. Please ignore.
  40. - $(RANLIB) $(LIB)
  41. @touch lib
  42. # elf
  43. asm/rx86-elf.o: asm/rx86unix.cpp
  44. $(CPP) -DELF -x c asm/rx86unix.cpp | as -o asm/rx86-elf.o
  45. # solaris
  46. asm/rx86-sol.o: asm/rx86unix.cpp
  47. $(CC) -E -DSOL asm/rx86unix.cpp | sed 's/^#.*//' > asm/rx86-sol.s
  48. as -o asm/rx86-sol.o asm/rx86-sol.s
  49. rm -f asm/rx86-sol.s
  50. # a.out
  51. asm/rx86-out.o: asm/rx86unix.cpp
  52. $(CPP) -DOUT asm/rx86unix.cpp | as -o asm/rx86-out.o
  53. # bsdi
  54. asm/rx86bsdi.o: asm/rx86unix.cpp
  55. $(CPP) -DBSDI asm/rx86unix.cpp | sed 's/ :/:/' | as -o asm/rx86bsdi.o
  56. asm/rx86unix.cpp: asm/rc4-586.pl ../perlasm/x86asm.pl
  57. (cd asm; $(PERL) rc4-586.pl cpp >rx86unix.cpp)
  58. files:
  59. $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
  60. links:
  61. @$(TOP)/util/point.sh Makefile.ssl Makefile
  62. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  63. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  64. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  65. install:
  66. @for i in $(EXHEADER) ; \
  67. do \
  68. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  69. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  70. done;
  71. tags:
  72. ctags $(SRC)
  73. tests:
  74. lint:
  75. lint -DLINT $(INCLUDES) $(SRC)>fluff
  76. depend:
  77. $(MAKEDEPEND) -- $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  78. dclean:
  79. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  80. mv -f Makefile.new $(MAKEFILE)
  81. clean:
  82. rm -f asm/rx86unix.cpp *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
  83. # DO NOT DELETE THIS LINE -- make depend depends on it.
  84. rc4_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc4.h
  85. rc4_enc.o: rc4_locl.h
  86. rc4_skey.o: ../../include/openssl/opensslconf.h
  87. rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h
  88. rc4_skey.o: rc4_locl.h