Makefile.ssl 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. #
  2. # SSLeay/rsaref/Makefile
  3. #
  4. DIR= rsaref
  5. TOP= ..
  6. CC= cc
  7. INCLUDES= -I../crypto -I../include
  8. CFLAG=-g
  9. INSTALL_PREFIX=
  10. OPENSSLDIR= /usr/local/ssl
  11. INSTALLTOP=/usr/local/ssl
  12. MAKE= make -f Makefile.ssl
  13. MAKEDEPEND= $(TOP)/util/domd $(TOP)
  14. MAKEFILE= Makefile.ssl
  15. AR= ar r
  16. CFLAGS= $(INCLUDES) $(CFLAG)
  17. GENERAL=Makefile rsaref-lib.com install.com
  18. TEST=
  19. APPS=
  20. LIB=$(TOP)/libRSAglue.a
  21. LIBSRC= rsaref.c rsar_err.c
  22. LIBOBJ= rsaref.o rsar_err.o
  23. SRC= $(LIBSRC)
  24. EXHEADER= rsaref.h
  25. HEADER= $(EXHEADER)
  26. ALL= $(GENERAL) $(SRC) $(HEADER)
  27. top:
  28. (cd ..; $(MAKE) DIRS=rsaref all)
  29. all: lib
  30. lib: $(LIBOBJ)
  31. $(AR) $(LIB) $(LIBOBJ)
  32. @echo You may get an error following this line. Please ignore.
  33. - $(RANLIB) $(LIB)
  34. @touch lib
  35. files:
  36. $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
  37. links:
  38. @$(TOP)/util/point.sh Makefile.ssl Makefile
  39. @$(PERL) $(TOP)/util/mklink.pl ../include/openssl $(EXHEADER)
  40. @$(PERL) $(TOP)/util/mklink.pl ../test $(TEST)
  41. @$(PERL) $(TOP)/util/mklink.pl ../apps $(APPS)
  42. install:
  43. -@if [ "x`echo x $(EX_LIBS) | grep RSAglue`" != x ]; then \
  44. echo "installing libRSAglue.a"; \
  45. cp $(LIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/libRSAglue.a; \
  46. $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/libRSAglue.a; \
  47. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/libRSAglue.a; \
  48. fi
  49. # @for i in $(EXHEADER) ; \
  50. # do \
  51. # (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  52. # chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  53. # done;
  54. tags:
  55. ctags $(SRC)
  56. tests:
  57. lint:
  58. lint -DLINT $(INCLUDES) $(SRC)>fluff
  59. depend:
  60. $(MAKEDEPEND) -- $(INCLUDES) -- $(PROGS) $(LIBSRC)
  61. dclean:
  62. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  63. mv -f Makefile.new $(MAKEFILE)
  64. clean:
  65. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  66. # DO NOT DELETE THIS LINE -- make depend depends on it.
  67. rsar_err.o: ../include/openssl/bio.h ../include/openssl/bn.h
  68. rsar_err.o: ../include/openssl/crypto.h ../include/openssl/err.h
  69. rsar_err.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
  70. rsar_err.o: ../include/openssl/opensslv.h ../include/openssl/rsa.h
  71. rsar_err.o: ../include/openssl/rsaref.h ../include/openssl/safestack.h
  72. rsar_err.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
  73. rsaref.o: ../crypto/cryptlib.h ../e_os.h ../include/openssl/bio.h
  74. rsaref.o: ../include/openssl/bn.h ../include/openssl/buffer.h
  75. rsaref.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
  76. rsaref.o: ../include/openssl/err.h ../include/openssl/lhash.h
  77. rsaref.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
  78. rsaref.o: ../include/openssl/rand.h ../include/openssl/rsa.h
  79. rsaref.o: ../include/openssl/rsaref.h ../include/openssl/safestack.h
  80. rsaref.o: ../include/openssl/stack.h ../include/openssl/symhacks.h