2
0

Makefile 3.8 KB

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