Makefile 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. #
  2. # OpenSSL/crypto/store/Makefile
  3. #
  4. DIR= store
  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= storetest.c
  14. TEST=
  15. APPS=
  16. LIB=$(TOP)/libcrypto.a
  17. LIBSRC= str_err.c str_lib.c str_meth.c str_mem.c
  18. LIBOBJ= str_err.o str_lib.o str_meth.o str_mem.o
  19. SRC= $(LIBSRC)
  20. #EXHEADER= store.h str_compat.h
  21. EXHEADER= store.h
  22. HEADER= $(EXHEADER) str_locl.h
  23. ALL= $(GENERAL) $(SRC) $(HEADER)
  24. top:
  25. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  26. all: lib
  27. lib: $(LIBOBJ)
  28. $(AR) $(LIB) $(LIBOBJ)
  29. $(RANLIB) $(LIB) || echo Never mind.
  30. @touch lib
  31. files:
  32. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  33. links:
  34. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  35. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  36. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  37. install:
  38. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  39. @headerlist="$(EXHEADER)"; for i in $$headerlist; \
  40. do \
  41. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  42. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  43. done;
  44. tags:
  45. ctags $(SRC)
  46. tests:
  47. lint:
  48. lint -DLINT $(INCLUDES) $(SRC)>fluff
  49. depend:
  50. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  51. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  52. dclean:
  53. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  54. mv -f Makefile.new $(MAKEFILE)
  55. clean:
  56. rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  57. # DO NOT DELETE THIS LINE -- make depend depends on it.
  58. str_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  59. str_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  60. str_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  61. str_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  62. str_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  63. str_err.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
  64. str_err.o: str_err.c
  65. str_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  66. str_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
  67. str_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  68. str_lib.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
  69. str_lib.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
  70. str_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  71. str_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  72. str_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
  73. str_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  74. str_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
  75. str_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
  76. str_lib.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
  77. str_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
  78. str_lib.o: str_lib.c str_locl.h
  79. str_mem.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  80. str_mem.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  81. str_mem.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  82. str_mem.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  83. str_mem.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  84. str_mem.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
  85. str_mem.o: str_locl.h str_mem.c
  86. str_meth.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  87. str_meth.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  88. str_meth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  89. str_meth.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  90. str_meth.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
  91. str_meth.o: str_locl.h str_meth.c