Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. LIB=$(TOP)/libcrypto.a
  14. LIBSRC= buffer.c buf_str.c buf_err.c
  15. LIBOBJ= buffer.o buf_str.o buf_err.o
  16. SRC= $(LIBSRC)
  17. HEADER=
  18. ALL= $(GENERAL) $(SRC) $(HEADER)
  19. top:
  20. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  21. all: lib
  22. lib: $(LIBOBJ)
  23. $(AR) $(LIB) $(LIBOBJ)
  24. $(RANLIB) $(LIB) || echo Never mind.
  25. @touch lib
  26. files:
  27. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  28. tags:
  29. ctags $(SRC)
  30. tests:
  31. lint:
  32. lint -DLINT $(INCLUDES) $(SRC)>fluff
  33. depend:
  34. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  35. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  36. dclean:
  37. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  38. mv -f Makefile.new $(MAKEFILE)
  39. clean:
  40. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  41. # DO NOT DELETE THIS LINE -- make depend depends on it.
  42. buf_err.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
  43. buf_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  44. buf_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  45. buf_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  46. buf_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  47. buf_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  48. buf_err.o: buf_err.c
  49. buf_str.o: ../../e_os.h ../../include/openssl/bio.h
  50. buf_str.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  51. buf_str.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  52. buf_str.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  53. buf_str.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  54. buf_str.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  55. buf_str.o: ../../include/openssl/symhacks.h ../cryptlib.h buf_str.c
  56. buffer.o: ../../e_os.h ../../include/openssl/bio.h
  57. buffer.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  58. buffer.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  59. buffer.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  60. buffer.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  61. buffer.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  62. buffer.o: ../../include/openssl/symhacks.h ../cryptlib.h buffer.c