Makefile 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. #
  2. # OpenSSL/crypto/err/Makefile
  3. #
  4. DIR= err
  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=err.c err_all.c err_prn.c
  17. LIBOBJ=err.o err_all.o err_prn.o
  18. SRC= $(LIBSRC)
  19. EXHEADER= err.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. err.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/buffer.h
  58. err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  59. err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  60. err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  61. err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  62. err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  63. err.o: ../cryptlib.h err.c
  64. err_all.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  65. err_all.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
  66. err_all.o: ../../include/openssl/cms.h ../../include/openssl/comp.h
  67. err_all.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
  68. err_all.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
  69. err_all.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
  70. err_all.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
  71. err_all.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
  72. err_all.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  73. err_all.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  74. err_all.o: ../../include/openssl/objects.h ../../include/openssl/ocsp.h
  75. err_all.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  76. err_all.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem2.h
  77. err_all.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h
  78. err_all.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h
  79. err_all.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
  80. err_all.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  81. err_all.o: ../../include/openssl/ts.h ../../include/openssl/ui.h
  82. err_all.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
  83. err_all.o: ../../include/openssl/x509v3.h err_all.c
  84. err_prn.o: ../../e_os.h ../../include/openssl/bio.h
  85. err_prn.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  86. err_prn.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  87. err_prn.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  88. err_prn.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  89. err_prn.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  90. err_prn.o: ../../include/openssl/symhacks.h ../cryptlib.h err_prn.c