Makefile.ssl 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #
  2. # SSLeay/crypto/buffer/Makefile
  3. #
  4. DIR= buffer
  5. TOP= ../..
  6. CC= cc
  7. INCLUDES= -I.. -I$(TOP) -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. MAKEDEPPROG= makedepend
  14. MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
  15. MAKEFILE= Makefile.ssl
  16. AR= ar r
  17. CFLAGS= $(INCLUDES) $(CFLAG)
  18. GENERAL=Makefile
  19. TEST=
  20. APPS=
  21. LIB=$(TOP)/libcrypto.a
  22. LIBSRC= buffer.c buf_err.c
  23. LIBOBJ= buffer.o buf_err.o
  24. SRC= $(LIBSRC)
  25. EXHEADER= buffer.h
  26. HEADER= $(EXHEADER)
  27. ALL= $(GENERAL) $(SRC) $(HEADER)
  28. top:
  29. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  30. all: lib
  31. lib: $(LIBOBJ)
  32. $(AR) $(LIB) $(LIBOBJ)
  33. $(RANLIB) $(LIB) || echo Never mind.
  34. @touch lib
  35. files:
  36. $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
  37. links:
  38. @sh $(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. @for i in $(EXHEADER) ; \
  44. do \
  45. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  46. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  47. done;
  48. tags:
  49. ctags $(SRC)
  50. tests:
  51. lint:
  52. lint -DLINT $(INCLUDES) $(SRC)>fluff
  53. depend:
  54. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  55. dclean:
  56. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  57. mv -f Makefile.new $(MAKEFILE)
  58. clean:
  59. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  60. # DO NOT DELETE THIS LINE -- make depend depends on it.
  61. buf_err.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
  62. buf_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  63. buf_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  64. buf_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  65. buf_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  66. buf_err.o: ../../include/openssl/symhacks.h buf_err.c
  67. buffer.o: ../../e_os.h ../../include/openssl/bio.h
  68. buffer.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  69. buffer.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  70. buffer.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  71. buffer.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
  72. buffer.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  73. buffer.o: ../cryptlib.h buffer.c