Makefile 5.5 KB

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