Makefile 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. #
  2. # OpenSSL/fips/rand/Makefile
  3. #
  4. DIR= rand
  5. TOP= ../..
  6. CC= cc
  7. INCLUDES=
  8. CFLAG=-g
  9. INSTALL_PREFIX=
  10. OPENSSLDIR= /usr/local/ssl
  11. INSTALLTOP=/usr/local/ssl
  12. MAKEDEPPROG= makedepend
  13. MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
  14. MAKEFILE= Makefile
  15. AR= ar r
  16. CFLAGS= $(INCLUDES) $(CFLAG)
  17. GENERAL=Makefile
  18. TEST= fips_randtest.c fips_rngvs.c fips_drbgvs.c
  19. APPS=
  20. LIB=$(TOP)/libcrypto.a
  21. LIBSRC= fips_rand.c fips_rand_selftest.c \
  22. fips_drbg_lib.c fips_drbg_hash.c fips_drbg_ctr.c fips_drbg_selftest.c \
  23. fips_drbg_rand.c fips_rand_lib.c
  24. LIBOBJ= fips_rand.o fips_rand_selftest.o \
  25. fips_drbg_lib.o fips_drbg_hash.o fips_drbg_ctr.o fips_drbg_selftest.o \
  26. fips_drbg_rand.o fips_rand_lib.o
  27. SRC= $(LIBSRC)
  28. EXHEADER= fips_rand.h
  29. HEADER= $(EXHEADER) fips_rand_lcl.h
  30. ALL= $(GENERAL) $(SRC) $(HEADER)
  31. top:
  32. (cd $(TOP); $(MAKE) DIRS=fips SDIRS=$(DIR) sub_all)
  33. all: lib
  34. lib: $(LIBOBJ)
  35. @echo $(LIBOBJ) > lib
  36. files:
  37. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  38. links:
  39. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
  40. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST)
  41. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS)
  42. install:
  43. @headerlist="$(EXHEADER)"; for i in $$headerlist; \
  44. do \
  45. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  46. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  47. done
  48. tags:
  49. ctags $(SRC)
  50. tests:
  51. Q=../testvectors/rng/req
  52. A=../testvectors/rng/rsp
  53. fips_test:
  54. -rm -rf $(A)
  55. mkdir $(A)
  56. if [ -f $(Q)/ANSI931_AES128MCT.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rngvs mct < $(Q)/ANSI931_AES128MCT.req > $(A)/ANSI931_AES128MCT.rsp; fi
  57. if [ -f $(Q)/ANSI931_AES192MCT.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rngvs mct < $(Q)/ANSI931_AES192MCT.req > $(A)/ANSI931_AES192MCT.rsp; fi
  58. if [ -f $(Q)/ANSI931_AES256MCT.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rngvs mct < $(Q)/ANSI931_AES256MCT.req > $(A)/ANSI931_AES256MCT.rsp; fi
  59. if [ -f $(Q)/ANSI931_AES128VST.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rngvs vst < $(Q)/ANSI931_AES128VST.req > $(A)/ANSI931_AES128VST.rsp; fi
  60. if [ -f $(Q)/ANSI931_AES192VST.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rngvs vst < $(Q)/ANSI931_AES192VST.req > $(A)/ANSI931_AES192VST.rsp; fi
  61. if [ -f $(Q)/ANSI931_AES256VST.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rngvs vst < $(Q)/ANSI931_AES256VST.req > $(A)/ANSI931_AES256VST.rsp; fi
  62. lint:
  63. lint -DLINT $(INCLUDES) $(SRC)>fluff
  64. depend:
  65. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
  66. dclean:
  67. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  68. mv -f Makefile.new $(MAKEFILE)
  69. clean:
  70. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  71. # DO NOT DELETE THIS LINE -- make depend depends on it.
  72. fips_drbg_ctr.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
  73. fips_drbg_ctr.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  74. fips_drbg_ctr.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  75. fips_drbg_ctr.o: ../../include/openssl/e_os2.h ../../include/openssl/evp.h
  76. fips_drbg_ctr.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h
  77. fips_drbg_ctr.o: ../../include/openssl/obj_mac.h
  78. fips_drbg_ctr.o: ../../include/openssl/objects.h
  79. fips_drbg_ctr.o: ../../include/openssl/opensslconf.h
  80. fips_drbg_ctr.o: ../../include/openssl/opensslv.h
  81. fips_drbg_ctr.o: ../../include/openssl/ossl_typ.h
  82. fips_drbg_ctr.o: ../../include/openssl/safestack.h
  83. fips_drbg_ctr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  84. fips_drbg_ctr.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  85. fips_drbg_ctr.o: fips_drbg_ctr.c fips_rand_lcl.h
  86. fips_drbg_hash.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
  87. fips_drbg_hash.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  88. fips_drbg_hash.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  89. fips_drbg_hash.o: ../../include/openssl/e_os2.h ../../include/openssl/evp.h
  90. fips_drbg_hash.o: ../../include/openssl/fips.h
  91. fips_drbg_hash.o: ../../include/openssl/fips_rand.h
  92. fips_drbg_hash.o: ../../include/openssl/obj_mac.h
  93. fips_drbg_hash.o: ../../include/openssl/objects.h
  94. fips_drbg_hash.o: ../../include/openssl/opensslconf.h
  95. fips_drbg_hash.o: ../../include/openssl/opensslv.h
  96. fips_drbg_hash.o: ../../include/openssl/ossl_typ.h
  97. fips_drbg_hash.o: ../../include/openssl/safestack.h
  98. fips_drbg_hash.o: ../../include/openssl/stack.h
  99. fips_drbg_hash.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  100. fips_drbg_hash.o: ../../include/openssl/ui_compat.h fips_drbg_hash.c
  101. fips_drbg_hash.o: fips_rand_lcl.h
  102. fips_drbg_lib.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
  103. fips_drbg_lib.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  104. fips_drbg_lib.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  105. fips_drbg_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  106. fips_drbg_lib.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  107. fips_drbg_lib.o: ../../include/openssl/fips_rand.h
  108. fips_drbg_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  109. fips_drbg_lib.o: ../../include/openssl/objects.h
  110. fips_drbg_lib.o: ../../include/openssl/opensslconf.h
  111. fips_drbg_lib.o: ../../include/openssl/opensslv.h
  112. fips_drbg_lib.o: ../../include/openssl/ossl_typ.h
  113. fips_drbg_lib.o: ../../include/openssl/safestack.h
  114. fips_drbg_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  115. fips_drbg_lib.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  116. fips_drbg_lib.o: fips_drbg_lib.c fips_rand_lcl.h
  117. fips_drbg_selftest.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
  118. fips_drbg_selftest.o: ../../include/openssl/bio.h
  119. fips_drbg_selftest.o: ../../include/openssl/crypto.h
  120. fips_drbg_selftest.o: ../../include/openssl/des.h
  121. fips_drbg_selftest.o: ../../include/openssl/des_old.h
  122. fips_drbg_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  123. fips_drbg_selftest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  124. fips_drbg_selftest.o: ../../include/openssl/fips_rand.h
  125. fips_drbg_selftest.o: ../../include/openssl/lhash.h
  126. fips_drbg_selftest.o: ../../include/openssl/obj_mac.h
  127. fips_drbg_selftest.o: ../../include/openssl/objects.h
  128. fips_drbg_selftest.o: ../../include/openssl/opensslconf.h
  129. fips_drbg_selftest.o: ../../include/openssl/opensslv.h
  130. fips_drbg_selftest.o: ../../include/openssl/ossl_typ.h
  131. fips_drbg_selftest.o: ../../include/openssl/safestack.h
  132. fips_drbg_selftest.o: ../../include/openssl/stack.h
  133. fips_drbg_selftest.o: ../../include/openssl/symhacks.h
  134. fips_drbg_selftest.o: ../../include/openssl/ui.h
  135. fips_drbg_selftest.o: ../../include/openssl/ui_compat.h fips_drbg_selftest.c
  136. fips_drbg_selftest.o: fips_rand_lcl.h
  137. fips_drbgvs.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  138. fips_drbgvs.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  139. fips_drbgvs.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  140. fips_drbgvs.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
  141. fips_drbgvs.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  142. fips_drbgvs.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h
  143. fips_drbgvs.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  144. fips_drbgvs.o: ../../include/openssl/objects.h
  145. fips_drbgvs.o: ../../include/openssl/opensslconf.h
  146. fips_drbgvs.o: ../../include/openssl/opensslv.h
  147. fips_drbgvs.o: ../../include/openssl/ossl_typ.h
  148. fips_drbgvs.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  149. fips_drbgvs.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  150. fips_drbgvs.o: ../../include/openssl/ui_compat.h ../fips_utl.h fips_drbgvs.c
  151. fips_rand.o: ../../e_os.h ../../include/openssl/aes.h
  152. fips_rand.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  153. fips_rand.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  154. fips_rand.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  155. fips_rand.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h
  156. fips_rand.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  157. fips_rand.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  158. fips_rand.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  159. fips_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  160. fips_rand.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  161. fips_rand.o: ../fips_locl.h fips_rand.c
  162. fips_rand_selftest.o: ../../include/openssl/bio.h
  163. fips_rand_selftest.o: ../../include/openssl/crypto.h
  164. fips_rand_selftest.o: ../../include/openssl/des.h
  165. fips_rand_selftest.o: ../../include/openssl/des_old.h
  166. fips_rand_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  167. fips_rand_selftest.o: ../../include/openssl/fips.h
  168. fips_rand_selftest.o: ../../include/openssl/fips_rand.h
  169. fips_rand_selftest.o: ../../include/openssl/lhash.h
  170. fips_rand_selftest.o: ../../include/openssl/opensslconf.h
  171. fips_rand_selftest.o: ../../include/openssl/opensslv.h
  172. fips_rand_selftest.o: ../../include/openssl/ossl_typ.h
  173. fips_rand_selftest.o: ../../include/openssl/rand.h
  174. fips_rand_selftest.o: ../../include/openssl/safestack.h
  175. fips_rand_selftest.o: ../../include/openssl/stack.h
  176. fips_rand_selftest.o: ../../include/openssl/symhacks.h
  177. fips_rand_selftest.o: ../../include/openssl/ui.h
  178. fips_rand_selftest.o: ../../include/openssl/ui_compat.h fips_rand_selftest.c
  179. fips_randtest.o: ../../e_os.h ../../include/openssl/bio.h
  180. fips_randtest.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  181. fips_randtest.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  182. fips_randtest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  183. fips_randtest.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h
  184. fips_randtest.o: ../../include/openssl/lhash.h
  185. fips_randtest.o: ../../include/openssl/opensslconf.h
  186. fips_randtest.o: ../../include/openssl/opensslv.h
  187. fips_randtest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  188. fips_randtest.o: ../../include/openssl/safestack.h
  189. fips_randtest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  190. fips_randtest.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  191. fips_randtest.o: ../fips_utl.h fips_randtest.c
  192. fips_rngvs.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  193. fips_rngvs.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  194. fips_rngvs.o: ../../include/openssl/des_old.h ../../include/openssl/dsa.h
  195. fips_rngvs.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  196. fips_rngvs.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h
  197. fips_rngvs.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  198. fips_rngvs.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  199. fips_rngvs.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  200. fips_rngvs.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  201. fips_rngvs.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  202. fips_rngvs.o: ../fips_utl.h fips_rngvs.c