Makefile 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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 fips_drbg_lib.c \
  22. fips_drbg_hash.c fips_drbg_hmac.c fips_drbg_ctr.c fips_drbg_ec.c \
  23. fips_drbg_selftest.c fips_drbg_rand.c fips_rand_lib.c
  24. LIBOBJ= fips_rand.o fips_rand_selftest.o fips_drbg_lib.o \
  25. fips_drbg_hash.o fips_drbg_hmac.o fips_drbg_ctr.o fips_drbg_ec.o \
  26. fips_drbg_selftest.o fips_drbg_rand.o fips_rand_lib.o
  27. SRC= $(LIBSRC)
  28. EXHEADER= fips_rand.h
  29. HEADER= $(EXHEADER) fips_rand_lcl.h fips_drbg_selftest.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/e_os2.h ../../include/openssl/ec.h
  75. fips_drbg_ctr.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  76. fips_drbg_ctr.o: ../../include/openssl/fips_rand.h ../../include/openssl/hmac.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: fips_drbg_ctr.c fips_rand_lcl.h
  85. fips_drbg_ec.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
  86. fips_drbg_ec.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  87. fips_drbg_ec.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  88. fips_drbg_ec.o: ../../include/openssl/ec.h ../../include/openssl/evp.h
  89. fips_drbg_ec.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h
  90. fips_drbg_ec.o: ../../include/openssl/hmac.h ../../include/openssl/obj_mac.h
  91. fips_drbg_ec.o: ../../include/openssl/objects.h
  92. fips_drbg_ec.o: ../../include/openssl/opensslconf.h
  93. fips_drbg_ec.o: ../../include/openssl/opensslv.h
  94. fips_drbg_ec.o: ../../include/openssl/ossl_typ.h
  95. fips_drbg_ec.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  96. fips_drbg_ec.o: ../../include/openssl/symhacks.h fips_drbg_ec.c fips_rand_lcl.h
  97. fips_drbg_hash.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
  98. fips_drbg_hash.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  99. fips_drbg_hash.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  100. fips_drbg_hash.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  101. fips_drbg_hash.o: ../../include/openssl/fips_rand.h
  102. fips_drbg_hash.o: ../../include/openssl/hmac.h ../../include/openssl/obj_mac.h
  103. fips_drbg_hash.o: ../../include/openssl/objects.h
  104. fips_drbg_hash.o: ../../include/openssl/opensslconf.h
  105. fips_drbg_hash.o: ../../include/openssl/opensslv.h
  106. fips_drbg_hash.o: ../../include/openssl/ossl_typ.h
  107. fips_drbg_hash.o: ../../include/openssl/safestack.h
  108. fips_drbg_hash.o: ../../include/openssl/stack.h
  109. fips_drbg_hash.o: ../../include/openssl/symhacks.h fips_drbg_hash.c
  110. fips_drbg_hash.o: fips_rand_lcl.h
  111. fips_drbg_hmac.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
  112. fips_drbg_hmac.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  113. fips_drbg_hmac.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  114. fips_drbg_hmac.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  115. fips_drbg_hmac.o: ../../include/openssl/fips_rand.h
  116. fips_drbg_hmac.o: ../../include/openssl/hmac.h ../../include/openssl/obj_mac.h
  117. fips_drbg_hmac.o: ../../include/openssl/objects.h
  118. fips_drbg_hmac.o: ../../include/openssl/opensslconf.h
  119. fips_drbg_hmac.o: ../../include/openssl/opensslv.h
  120. fips_drbg_hmac.o: ../../include/openssl/ossl_typ.h
  121. fips_drbg_hmac.o: ../../include/openssl/safestack.h
  122. fips_drbg_hmac.o: ../../include/openssl/stack.h
  123. fips_drbg_hmac.o: ../../include/openssl/symhacks.h fips_drbg_hmac.c
  124. fips_drbg_hmac.o: fips_rand_lcl.h
  125. fips_drbg_lib.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
  126. fips_drbg_lib.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  127. fips_drbg_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  128. fips_drbg_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  129. fips_drbg_lib.o: ../../include/openssl/fips_rand.h ../../include/openssl/hmac.h
  130. fips_drbg_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  131. fips_drbg_lib.o: ../../include/openssl/objects.h
  132. fips_drbg_lib.o: ../../include/openssl/opensslconf.h
  133. fips_drbg_lib.o: ../../include/openssl/opensslv.h
  134. fips_drbg_lib.o: ../../include/openssl/ossl_typ.h
  135. fips_drbg_lib.o: ../../include/openssl/safestack.h
  136. fips_drbg_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  137. fips_drbg_lib.o: fips_drbg_lib.c fips_rand_lcl.h
  138. fips_drbg_rand.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
  139. fips_drbg_rand.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  140. fips_drbg_rand.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  141. fips_drbg_rand.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  142. fips_drbg_rand.o: ../../include/openssl/fips_rand.h
  143. fips_drbg_rand.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
  144. fips_drbg_rand.o: ../../include/openssl/obj_mac.h
  145. fips_drbg_rand.o: ../../include/openssl/objects.h
  146. fips_drbg_rand.o: ../../include/openssl/opensslconf.h
  147. fips_drbg_rand.o: ../../include/openssl/opensslv.h
  148. fips_drbg_rand.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  149. fips_drbg_rand.o: ../../include/openssl/safestack.h
  150. fips_drbg_rand.o: ../../include/openssl/stack.h
  151. fips_drbg_rand.o: ../../include/openssl/symhacks.h fips_drbg_rand.c
  152. fips_drbg_rand.o: fips_rand_lcl.h
  153. fips_drbg_selftest.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
  154. fips_drbg_selftest.o: ../../include/openssl/bio.h
  155. fips_drbg_selftest.o: ../../include/openssl/crypto.h
  156. fips_drbg_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  157. fips_drbg_selftest.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  158. fips_drbg_selftest.o: ../../include/openssl/fips_rand.h
  159. fips_drbg_selftest.o: ../../include/openssl/hmac.h
  160. fips_drbg_selftest.o: ../../include/openssl/lhash.h
  161. fips_drbg_selftest.o: ../../include/openssl/obj_mac.h
  162. fips_drbg_selftest.o: ../../include/openssl/objects.h
  163. fips_drbg_selftest.o: ../../include/openssl/opensslconf.h
  164. fips_drbg_selftest.o: ../../include/openssl/opensslv.h
  165. fips_drbg_selftest.o: ../../include/openssl/ossl_typ.h
  166. fips_drbg_selftest.o: ../../include/openssl/safestack.h
  167. fips_drbg_selftest.o: ../../include/openssl/stack.h
  168. fips_drbg_selftest.o: ../../include/openssl/symhacks.h ../fips_locl.h
  169. fips_drbg_selftest.o: fips_drbg_selftest.c fips_drbg_selftest.h fips_rand_lcl.h
  170. fips_drbgvs.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
  171. fips_drbgvs.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  172. fips_drbgvs.o: ../../include/openssl/crypto.h ../../include/openssl/dsa.h
  173. fips_drbgvs.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  174. fips_drbgvs.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  175. fips_drbgvs.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h
  176. fips_drbgvs.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
  177. fips_drbgvs.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  178. fips_drbgvs.o: ../../include/openssl/opensslconf.h
  179. fips_drbgvs.o: ../../include/openssl/opensslv.h
  180. fips_drbgvs.o: ../../include/openssl/ossl_typ.h
  181. fips_drbgvs.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  182. fips_drbgvs.o: ../../include/openssl/symhacks.h ../fips_utl.h fips_drbgvs.c
  183. fips_rand.o: ../../e_os.h ../../include/openssl/aes.h
  184. fips_rand.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  185. fips_rand.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  186. fips_rand.o: ../../include/openssl/ec.h ../../include/openssl/err.h
  187. fips_rand.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  188. fips_rand.o: ../../include/openssl/fips_rand.h ../../include/openssl/hmac.h
  189. fips_rand.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  190. fips_rand.o: ../../include/openssl/objects.h
  191. fips_rand.o: ../../include/openssl/opensslconf.h
  192. fips_rand.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  193. fips_rand.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  194. fips_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  195. fips_rand.o: ../fips_locl.h fips_rand.c
  196. fips_rand_lib.o: ../../e_os.h ../../include/openssl/aes.h
  197. fips_rand_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  198. fips_rand_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  199. fips_rand_lib.o: ../../include/openssl/ec.h ../../include/openssl/err.h
  200. fips_rand_lib.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  201. fips_rand_lib.o: ../../include/openssl/fips_rand.h ../../include/openssl/hmac.h
  202. fips_rand_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  203. fips_rand_lib.o: ../../include/openssl/objects.h
  204. fips_rand_lib.o: ../../include/openssl/opensslconf.h
  205. fips_rand_lib.o: ../../include/openssl/opensslv.h
  206. fips_rand_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  207. fips_rand_lib.o: ../../include/openssl/safestack.h
  208. fips_rand_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  209. fips_rand_lib.o: fips_rand_lib.c
  210. fips_rand_selftest.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
  211. fips_rand_selftest.o: ../../include/openssl/bio.h
  212. fips_rand_selftest.o: ../../include/openssl/crypto.h
  213. fips_rand_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  214. fips_rand_selftest.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  215. fips_rand_selftest.o: ../../include/openssl/fips.h
  216. fips_rand_selftest.o: ../../include/openssl/fips_rand.h
  217. fips_rand_selftest.o: ../../include/openssl/hmac.h
  218. fips_rand_selftest.o: ../../include/openssl/lhash.h
  219. fips_rand_selftest.o: ../../include/openssl/obj_mac.h
  220. fips_rand_selftest.o: ../../include/openssl/objects.h
  221. fips_rand_selftest.o: ../../include/openssl/opensslconf.h
  222. fips_rand_selftest.o: ../../include/openssl/opensslv.h
  223. fips_rand_selftest.o: ../../include/openssl/ossl_typ.h
  224. fips_rand_selftest.o: ../../include/openssl/rand.h
  225. fips_rand_selftest.o: ../../include/openssl/safestack.h
  226. fips_rand_selftest.o: ../../include/openssl/stack.h
  227. fips_rand_selftest.o: ../../include/openssl/symhacks.h ../fips_locl.h
  228. fips_rand_selftest.o: fips_rand_selftest.c
  229. fips_randtest.o: ../../e_os.h ../../include/openssl/aes.h
  230. fips_randtest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  231. fips_randtest.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  232. fips_randtest.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  233. fips_randtest.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  234. fips_randtest.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h
  235. fips_randtest.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
  236. fips_randtest.o: ../../include/openssl/obj_mac.h
  237. fips_randtest.o: ../../include/openssl/objects.h
  238. fips_randtest.o: ../../include/openssl/opensslconf.h
  239. fips_randtest.o: ../../include/openssl/opensslv.h
  240. fips_randtest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  241. fips_randtest.o: ../../include/openssl/safestack.h
  242. fips_randtest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  243. fips_randtest.o: ../fips_utl.h fips_randtest.c
  244. fips_rngvs.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
  245. fips_rngvs.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  246. fips_rngvs.o: ../../include/openssl/crypto.h ../../include/openssl/dsa.h
  247. fips_rngvs.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
  248. fips_rngvs.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  249. fips_rngvs.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h
  250. fips_rngvs.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
  251. fips_rngvs.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  252. fips_rngvs.o: ../../include/openssl/opensslconf.h
  253. fips_rngvs.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  254. fips_rngvs.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  255. fips_rngvs.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  256. fips_rngvs.o: ../fips_utl.h fips_rngvs.c