Makefile 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. depend:
  58. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  59. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  60. dclean:
  61. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  62. mv -f Makefile.new $(MAKEFILE)
  63. clean:
  64. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  65. # DO NOT DELETE THIS LINE -- make depend depends on it.
  66. o_names.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  67. o_names.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  68. o_names.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  69. o_names.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  70. o_names.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  71. o_names.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  72. o_names.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  73. o_names.o: o_names.c
  74. obj_dat.o: ../../e_os.h ../../include/openssl/asn1.h
  75. obj_dat.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  76. obj_dat.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  77. obj_dat.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  78. obj_dat.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  79. obj_dat.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
  80. obj_dat.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  81. obj_dat.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  82. obj_dat.o: ../../include/openssl/symhacks.h ../cryptlib.h obj_dat.c obj_dat.h
  83. obj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  84. obj_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  85. obj_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  86. obj_err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  87. obj_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  88. obj_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  89. obj_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  90. obj_err.o: obj_err.c
  91. obj_lib.o: ../../e_os.h ../../include/openssl/asn1.h
  92. obj_lib.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
  93. obj_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  94. obj_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  95. obj_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  96. obj_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  97. obj_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  98. obj_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  99. obj_lib.o: ../cryptlib.h obj_lib.c
  100. obj_xref.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  101. obj_xref.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  102. obj_xref.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  103. obj_xref.o: ../../include/openssl/opensslconf.h
  104. obj_xref.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  105. obj_xref.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  106. obj_xref.o: ../../include/openssl/symhacks.h obj_xref.c obj_xref.h