Makefile 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. #
  2. # OpenSSL/crypto/rand/Makefile
  3. #
  4. DIR= rand
  5. TOP= ../..
  6. CC= cc
  7. INCLUDES=
  8. CFLAG=-g
  9. MAKEFILE= Makefile
  10. AR= ar r
  11. CFLAGS= $(INCLUDES) $(CFLAG)
  12. GENERAL=Makefile
  13. TEST= randtest.c
  14. APPS=
  15. LIB=$(TOP)/libcrypto.a
  16. LIBSRC=md_rand.c randfile.c rand_lib.c rand_err.c rand_egd.c \
  17. rand_win.c rand_unix.c rand_os2.c rand_nw.c
  18. LIBOBJ=md_rand.o randfile.o rand_lib.o rand_err.o rand_egd.o \
  19. rand_win.o rand_unix.o rand_os2.o rand_nw.o
  20. SRC= $(LIBSRC)
  21. EXHEADER= rand.h
  22. HEADER= $(EXHEADER)
  23. ALL= $(GENERAL) $(SRC) $(HEADER)
  24. top:
  25. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  26. all: lib
  27. lib: $(LIBOBJ)
  28. $(AR) $(LIB) $(LIBOBJ)
  29. $(RANLIB) $(LIB) || echo Never mind.
  30. @touch lib
  31. files:
  32. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  33. links:
  34. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  35. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  36. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  37. install:
  38. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  39. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  40. do \
  41. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  42. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  43. done;
  44. tags:
  45. ctags $(SRC)
  46. tests:
  47. lint:
  48. lint -DLINT $(INCLUDES) $(SRC)>fluff
  49. depend:
  50. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  51. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  52. dclean:
  53. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  54. mv -f Makefile.new $(MAKEFILE)
  55. clean:
  56. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  57. # DO NOT DELETE THIS LINE -- make depend depends on it.
  58. md_rand.o: ../../e_os.h ../../include/openssl/asn1.h
  59. md_rand.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  60. md_rand.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  61. md_rand.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
  62. md_rand.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  63. md_rand.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  64. md_rand.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  65. md_rand.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
  66. md_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  67. md_rand.o: md_rand.c rand_lcl.h
  68. rand_egd.o: ../../include/openssl/buffer.h ../../include/openssl/e_os2.h
  69. rand_egd.o: ../../include/openssl/opensslconf.h
  70. rand_egd.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  71. rand_egd.o: rand_egd.c
  72. rand_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  73. rand_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  74. rand_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  75. rand_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  76. rand_err.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  77. rand_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  78. rand_err.o: rand_err.c
  79. rand_lib.o: ../../e_os.h ../../include/openssl/bio.h
  80. rand_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
  81. rand_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h
  82. rand_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  83. rand_lib.o: ../../include/openssl/opensslconf.h
  84. rand_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  85. rand_lib.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  86. rand_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  87. rand_lib.o: ../cryptlib.h rand_lib.c
  88. rand_nw.o: ../../e_os.h ../../include/openssl/asn1.h
  89. rand_nw.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
  90. rand_nw.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  91. rand_nw.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  92. rand_nw.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  93. rand_nw.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
  94. rand_nw.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  95. rand_nw.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  96. rand_nw.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
  97. rand_nw.o: ../../include/openssl/symhacks.h ../cryptlib.h rand_lcl.h rand_nw.c
  98. rand_os2.o: ../../e_os.h ../../include/openssl/asn1.h
  99. rand_os2.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
  100. rand_os2.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  101. rand_os2.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  102. rand_os2.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  103. rand_os2.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
  104. rand_os2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  105. rand_os2.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  106. rand_os2.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
  107. rand_os2.o: ../../include/openssl/symhacks.h ../cryptlib.h rand_lcl.h
  108. rand_os2.o: rand_os2.c
  109. rand_unix.o: ../../e_os.h ../../include/openssl/asn1.h
  110. rand_unix.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
  111. rand_unix.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  112. rand_unix.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  113. rand_unix.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  114. rand_unix.o: ../../include/openssl/objects.h
  115. rand_unix.o: ../../include/openssl/opensslconf.h
  116. rand_unix.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  117. rand_unix.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  118. rand_unix.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
  119. rand_unix.o: ../../include/openssl/symhacks.h ../cryptlib.h rand_lcl.h
  120. rand_unix.o: rand_unix.c
  121. rand_win.o: ../../e_os.h ../../include/openssl/asn1.h
  122. rand_win.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
  123. rand_win.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  124. rand_win.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  125. rand_win.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  126. rand_win.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
  127. rand_win.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  128. rand_win.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  129. rand_win.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
  130. rand_win.o: ../../include/openssl/symhacks.h ../cryptlib.h rand_lcl.h
  131. rand_win.o: rand_win.c
  132. randfile.o: ../../e_os.h ../../include/openssl/buffer.h
  133. randfile.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  134. randfile.o: ../../include/openssl/opensslconf.h
  135. randfile.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  136. randfile.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  137. randfile.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  138. randfile.o: randfile.c