Makefile 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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
  18. LIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o
  19. SRC= $(LIBSRC)
  20. EXHEADER= objects.h obj_mac.h
  21. HEADER= $(EXHEADER) obj_dat.h
  22. ALL= $(GENERAL) $(SRC) $(HEADER)
  23. top:
  24. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  25. all: obj_dat.h lib
  26. lib: $(LIBOBJ)
  27. $(ARX) $(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. files:
  37. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  38. links:
  39. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  40. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  41. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  42. install:
  43. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  44. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  45. do \
  46. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  47. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  48. done;
  49. tags:
  50. ctags $(SRC)
  51. tests:
  52. lint:
  53. lint -DLINT $(INCLUDES) $(SRC)>fluff
  54. depend:
  55. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  56. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  57. dclean:
  58. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  59. mv -f Makefile.new $(MAKEFILE)
  60. clean:
  61. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  62. # DO NOT DELETE THIS LINE -- make depend depends on it.
  63. o_names.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  64. o_names.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  65. o_names.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  66. o_names.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  67. o_names.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  68. o_names.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  69. o_names.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  70. o_names.o: o_names.c
  71. obj_dat.o: ../../e_os.h ../../include/openssl/asn1.h
  72. obj_dat.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  73. obj_dat.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  74. obj_dat.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  75. obj_dat.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  76. obj_dat.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
  77. obj_dat.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  78. obj_dat.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  79. obj_dat.o: ../../include/openssl/symhacks.h ../cryptlib.h obj_dat.c obj_dat.h
  80. obj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  81. obj_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  82. obj_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  83. obj_err.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  84. obj_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  85. obj_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  86. obj_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  87. obj_err.o: obj_err.c
  88. obj_lib.o: ../../e_os.h ../../include/openssl/asn1.h
  89. obj_lib.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
  90. obj_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  91. obj_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  92. obj_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  93. obj_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  94. obj_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  95. obj_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  96. obj_lib.o: ../cryptlib.h obj_lib.c