Makefile.ssl 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #
  2. # SSLeay/crypto/objects/Makefile
  3. #
  4. DIR= objects
  5. TOP= ../..
  6. CC= cc
  7. INCLUDES= -I.. -I$(TOP) -I../../include
  8. CFLAG=-g
  9. INSTALL_PREFIX=
  10. OPENSSLDIR= /usr/local/ssl
  11. INSTALLTOP=/usr/local/ssl
  12. MAKE= make -f Makefile.ssl
  13. MAKEDEPPROG= makedepend
  14. MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
  15. MAKEFILE= Makefile.ssl
  16. AR= ar r
  17. PERL= perl
  18. CFLAGS= $(INCLUDES) $(CFLAG)
  19. GENERAL=Makefile README
  20. TEST=
  21. APPS=
  22. LIB=$(TOP)/libcrypto.a
  23. LIBSRC= o_names.c obj_dat.c obj_lib.c obj_err.c
  24. LIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o
  25. SRC= $(LIBSRC)
  26. EXHEADER= objects.h obj_mac.h
  27. HEADER= $(EXHEADER) obj_dat.h
  28. ALL= $(GENERAL) $(SRC) $(HEADER)
  29. top:
  30. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  31. all: obj_dat.h lib
  32. lib: $(LIBOBJ)
  33. $(AR) $(LIB) $(LIBOBJ)
  34. $(RANLIB) $(LIB) || echo Never mind.
  35. @touch lib
  36. obj_dat.h: obj_dat.pl obj_mac.h
  37. $(PERL) obj_dat.pl obj_mac.h obj_dat.h
  38. # objects.pl both reads and writes obj_mac.num
  39. obj_mac.h: objects.pl objects.txt obj_mac.num
  40. $(PERL) objects.pl objects.txt obj_mac.num obj_mac.h
  41. files:
  42. $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
  43. links:
  44. @$(TOP)/util/point.sh Makefile.ssl Makefile
  45. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  46. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  47. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  48. install:
  49. @for i in $(EXHEADER) ; \
  50. do \
  51. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  52. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  53. done;
  54. tags:
  55. ctags $(SRC)
  56. tests:
  57. lint:
  58. lint -DLINT $(INCLUDES) $(SRC)>fluff
  59. depend:
  60. $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
  61. dclean:
  62. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  63. mv -f Makefile.new $(MAKEFILE)
  64. clean:
  65. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  66. # DO NOT DELETE THIS LINE -- make depend depends on it.
  67. o_names.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  68. o_names.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  69. o_names.o: ../../include/openssl/e_os2.h ../../include/openssl/lhash.h
  70. o_names.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  71. o_names.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  72. o_names.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  73. o_names.o: ../../include/openssl/symhacks.h ../../include/openssl/types.h
  74. o_names.o: o_names.c
  75. obj_dat.o: ../../e_os.h ../../include/openssl/asn1.h
  76. obj_dat.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  77. obj_dat.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  78. obj_dat.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  79. obj_dat.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  80. obj_dat.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
  81. obj_dat.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
  82. obj_dat.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  83. obj_dat.o: ../../include/openssl/types.h ../cryptlib.h obj_dat.c obj_dat.h
  84. obj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  85. obj_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  86. obj_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  87. obj_err.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  88. obj_err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
  89. obj_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
  90. obj_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  91. obj_err.o: ../../include/openssl/types.h obj_err.c
  92. obj_lib.o: ../../e_os.h ../../include/openssl/asn1.h
  93. obj_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  94. obj_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  95. obj_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  96. obj_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  97. obj_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
  98. obj_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
  99. obj_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  100. obj_lib.o: ../../include/openssl/types.h ../cryptlib.h obj_lib.c