Makefile 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. #
  2. # OpenSSL/crypto/objects/Makefile
  3. #
  4. DIR= objects
  5. TOP= ../..
  6. CC= cc
  7. INCLUDES= -I.. -I$(TOP) -I../../include
  8. CFLAG=-g
  9. MAKEFILE= Makefile
  10. AR= ar r
  11. PERL= perl
  12. CFLAGS= $(INCLUDES) $(CFLAG)
  13. GENERAL=Makefile README
  14. TEST=
  15. APPS=
  16. LIB=$(TOP)/libcrypto.a
  17. LIBSRC= o_names.c obj_dat.c obj_lib.c obj_err.c obj_xref.c
  18. LIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o obj_xref.o
  19. SRC= $(LIBSRC)
  20. EXHEADER= objects.h obj_mac.h
  21. HEADER= $(EXHEADER) obj_dat.h obj_xref.h
  22. ALL= $(GENERAL) $(SRC) $(HEADER)
  23. top:
  24. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  25. all: obj_dat.h obj_xref.h lib
  26. lib: $(LIBOBJ)
  27. $(AR) $(LIB) $(LIBOBJ)
  28. $(RANLIB) $(LIB) || echo Never mind.
  29. @touch lib
  30. obj_dat.h: obj_dat.pl obj_mac.h
  31. $(PERL) obj_dat.pl obj_mac.h obj_dat.h
  32. # objects.pl both reads and writes obj_mac.num
  33. obj_mac.h: objects.pl objects.txt obj_mac.num
  34. $(PERL) objects.pl objects.txt obj_mac.num obj_mac.h
  35. @sleep 1; touch obj_mac.h; sleep 1
  36. obj_xref.h: objxref.pl obj_xref.txt obj_mac.num
  37. $(PERL) objxref.pl obj_mac.num obj_xref.txt > obj_xref.h
  38. @sleep 1; touch obj_xref.h; sleep 1
  39. files:
  40. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  41. links:
  42. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  43. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  44. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  45. install:
  46. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  47. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  48. do \
  49. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  50. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  51. done;
  52. tags:
  53. ctags $(SRC)
  54. tests:
  55. lint:
  56. lint -DLINT $(INCLUDES) $(SRC)>fluff
  57. update: obj_dat.h obj_mac.h obj_xref.h depend
  58. depend:
  59. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  60. $(MAKEDEPEND) -- $(CFLAG) $(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/crypto.h ../../include/openssl/e_os2.h
  69. o_names.o: ../../include/openssl/err.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/ossl_typ.h ../../include/openssl/safestack.h
  73. o_names.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.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/ossl_typ.h
  82. obj_dat.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  83. obj_dat.o: ../../include/openssl/symhacks.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/crypto.h ../../include/openssl/e_os2.h
  86. obj_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  87. obj_err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  88. obj_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  89. obj_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  90. obj_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  91. obj_err.o: obj_err.c
  92. obj_lib.o: ../../e_os.h ../../include/openssl/asn1.h
  93. obj_lib.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
  94. obj_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  95. obj_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  96. obj_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  97. obj_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  98. obj_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  99. obj_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  100. obj_lib.o: ../cryptlib.h obj_lib.c
  101. obj_xref.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  102. obj_xref.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  103. obj_xref.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  104. obj_xref.o: ../../include/openssl/opensslconf.h
  105. obj_xref.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  106. obj_xref.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  107. obj_xref.o: ../../include/openssl/symhacks.h obj_xref.c obj_xref.h