Makefile 2.4 KB

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