Makefile.ssl 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #
  2. # SSLeay/ssl/Makefile
  3. #
  4. DIR= ssl
  5. TOP= ..
  6. CC= cc
  7. INCLUDES= -I../crypto -I../include
  8. CFLAG=-g
  9. INSTALLTOP=/usr/local/ssl
  10. MAKE= make -f Makefile.ssl
  11. MAKEDEPEND= makedepend -f Makefile.ssl
  12. MAKEFILE= Makefile.ssl
  13. AR= ar r
  14. CFLAGS= $(INCLUDES) $(CFLAG)
  15. ERR=ssl
  16. ERRC=ssl_err
  17. GENERAL=Makefile README
  18. TEST=ssltest.c
  19. APPS=
  20. LIB=$(TOP)/libssl.a
  21. LIBSRC= \
  22. s2_meth.c s2_srvr.c s2_clnt.c s2_lib.c s2_enc.c s2_pkt.c \
  23. s3_meth.c s3_srvr.c s3_clnt.c s3_lib.c s3_enc.c s3_pkt.c s3_both.c \
  24. s23_meth.c s23_srvr.c s23_clnt.c s23_lib.c s23_pkt.c \
  25. t1_meth.c t1_srvr.c t1_clnt.c t1_lib.c t1_enc.c \
  26. ssl_lib.c ssl_err2.c ssl_cert.c ssl_sess.c \
  27. ssl_ciph.c ssl_stat.c ssl_rsa.c \
  28. ssl_asn1.c ssl_txt.c ssl_algs.c \
  29. bio_ssl.c $(ERRC).c
  30. LIBOBJ= \
  31. s2_meth.o s2_srvr.o s2_clnt.o s2_lib.o s2_enc.o s2_pkt.o \
  32. s3_meth.o s3_srvr.o s3_clnt.o s3_lib.o s3_enc.o s3_pkt.o s3_both.o \
  33. s23_meth.o s23_srvr.o s23_clnt.o s23_lib.o s23_pkt.o \
  34. t1_meth.o t1_srvr.o t1_clnt.o t1_lib.o t1_enc.o \
  35. ssl_lib.o ssl_err2.o ssl_cert.o ssl_sess.o \
  36. ssl_ciph.o ssl_stat.o ssl_rsa.o \
  37. ssl_asn1.o ssl_txt.o ssl_algs.o \
  38. bio_ssl.o $(ERRC).o
  39. SRC= $(LIBSRC)
  40. EXHEADER= ssl.h ssl2.h ssl3.h ssl23.h tls1.h
  41. HEADER= $(EXHEADER) ssl_locl.h
  42. ALL= $(GENERAL) $(SRC) $(HEADER)
  43. top:
  44. (cd ..; $(MAKE) DIRS=$(DIR) all)
  45. all: lib
  46. lib: $(LIBOBJ)
  47. $(AR) $(LIB) $(LIBOBJ)
  48. sh $(TOP)/util/ranlib.sh $(LIB)
  49. @touch lib
  50. files:
  51. perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
  52. links:
  53. /bin/rm -f Makefile
  54. $(TOP)/util/point.sh Makefile.ssl Makefile ;
  55. $(TOP)/util/mklink.sh ../include $(EXHEADER)
  56. $(TOP)/util/mklink.sh ../test $(TEST)
  57. $(TOP)/util/mklink.sh ../apps $(APPS)
  58. install:
  59. @for i in $(EXHEADER) ; \
  60. do \
  61. (cp $$i $(INSTALLTOP)/include/$$i; \
  62. chmod 644 $(INSTALLTOP)/include/$$i ); \
  63. done;
  64. tags:
  65. ctags $(SRC)
  66. tests:
  67. lint:
  68. lint -DLINT $(INCLUDES) $(SRC)>fluff
  69. depend:
  70. $(MAKEDEPEND) $(INCLUDES) $(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. /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  76. errors:
  77. perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
  78. perl ../crypto/err/err_genc.pl -s $(ERR).h $(ERRC).c
  79. # DO NOT DELETE THIS LINE -- make depend depends on it.