Makefile 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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
  19. APPS=
  20. LIB=$(TOP)/libcrypto.a
  21. LIBSRC=fips_rand.c fips_rand_selftest.c
  22. LIBOBJ=fips_rand.o fips_rand_selftest.o
  23. SRC= $(LIBSRC)
  24. EXHEADER= fips_rand.h
  25. HEADER= $(EXHEADER)
  26. ALL= $(GENERAL) $(SRC) $(HEADER)
  27. top:
  28. (cd $(TOP); $(MAKE) DIRS=fips SDIRS=$(DIR) sub_all)
  29. all: lib
  30. lib: $(LIBOBJ)
  31. @echo $(LIBOBJ) > lib
  32. files:
  33. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  34. links:
  35. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
  36. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST)
  37. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS)
  38. install:
  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. Q=../testvectors/rng/req
  48. A=../testvectors/rng/rsp
  49. fips_test:
  50. -rm -rf $(A)
  51. mkdir $(A)
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. lint:
  59. lint -DLINT $(INCLUDES) $(SRC)>fluff
  60. depend:
  61. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
  62. dclean:
  63. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  64. mv -f Makefile.new $(MAKEFILE)
  65. clean:
  66. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  67. # DO NOT DELETE THIS LINE -- make depend depends on it.
  68. fips_rand.o: ../../e_os.h ../../include/openssl/aes.h
  69. fips_rand.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  70. fips_rand.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  71. fips_rand.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  72. fips_rand.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h
  73. fips_rand.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  74. fips_rand.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  75. fips_rand.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
  76. fips_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  77. fips_rand.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  78. fips_rand.o: ../fips_locl.h fips_rand.c
  79. fips_rand_selftest.o: ../../include/openssl/bio.h
  80. fips_rand_selftest.o: ../../include/openssl/crypto.h
  81. fips_rand_selftest.o: ../../include/openssl/des.h
  82. fips_rand_selftest.o: ../../include/openssl/des_old.h
  83. fips_rand_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  84. fips_rand_selftest.o: ../../include/openssl/fips.h
  85. fips_rand_selftest.o: ../../include/openssl/fips_rand.h
  86. fips_rand_selftest.o: ../../include/openssl/lhash.h
  87. fips_rand_selftest.o: ../../include/openssl/opensslconf.h
  88. fips_rand_selftest.o: ../../include/openssl/opensslv.h
  89. fips_rand_selftest.o: ../../include/openssl/ossl_typ.h
  90. fips_rand_selftest.o: ../../include/openssl/rand.h
  91. fips_rand_selftest.o: ../../include/openssl/safestack.h
  92. fips_rand_selftest.o: ../../include/openssl/stack.h
  93. fips_rand_selftest.o: ../../include/openssl/symhacks.h
  94. fips_rand_selftest.o: ../../include/openssl/ui.h
  95. fips_rand_selftest.o: ../../include/openssl/ui_compat.h fips_rand_selftest.c
  96. fips_randtest.o: ../../e_os.h ../../include/openssl/bio.h
  97. fips_randtest.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  98. fips_randtest.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  99. fips_randtest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  100. fips_randtest.o: ../../include/openssl/fips_rand.h
  101. fips_randtest.o: ../../include/openssl/lhash.h
  102. fips_randtest.o: ../../include/openssl/opensslconf.h
  103. fips_randtest.o: ../../include/openssl/opensslv.h
  104. fips_randtest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
  105. fips_randtest.o: ../../include/openssl/safestack.h
  106. fips_randtest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  107. fips_randtest.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  108. fips_randtest.o: ../fips_utl.h fips_randtest.c
  109. fips_rngvs.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  110. fips_rngvs.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
  111. fips_rngvs.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
  112. fips_rngvs.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
  113. fips_rngvs.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
  114. fips_rngvs.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
  115. fips_rngvs.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h
  116. fips_rngvs.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  117. fips_rngvs.o: ../../include/openssl/fips_rand.h ../../include/openssl/lhash.h
  118. fips_rngvs.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  119. fips_rngvs.o: ../../include/openssl/opensslconf.h
  120. fips_rngvs.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  121. fips_rngvs.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
  122. fips_rngvs.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
  123. fips_rngvs.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  124. fips_rngvs.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
  125. fips_rngvs.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
  126. fips_rngvs.o: ../../include/openssl/x509v3.h ../fips_utl.h fips_rngvs.c