Makefile 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. #
  2. # SSLeay/fips/sha1/Makefile
  3. #
  4. DIR= sha1
  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_sha1test.c
  19. TESTDATA= sha1vectors.txt sha1hashes.txt
  20. APPS=
  21. EXE= fips_standalone_sha1
  22. LIB=$(TOP)/libcrypto.a
  23. LIBSRC=fips_sha1dgst.c fips_sha1_selftest.c asm/sx86-elf.s
  24. LIBOBJ=fips_sha1dgst.o fips_sha1_selftest.o $(FIPS_SHA1_ASM_OBJ)
  25. SRC= $(LIBSRC) fips_standalone_sha1.c
  26. EXHEADER=
  27. HEADER= $(EXHEADER) fips_sha_locl.h fips_md32_common.h
  28. ALL= $(GENERAL) $(SRC) $(HEADER)
  29. top:
  30. (cd $(TOP); $(MAKE) DIRS=fips SDIRS=$(DIR) sub_all)
  31. all: check_standalone check lib
  32. check:
  33. TOP=`pwd`/$(TOP) ../fips_check_sha1 fingerprint.sha1 $(LIBSRC) $(HEADER)
  34. check_standalone: fips_standalone_sha1
  35. TOP=`pwd`/$(TOP) ../fips_check_sha1 standalone.sha1 $(SRC) $(HEADER)
  36. lib: $(LIBOBJ)
  37. $(AR) $(LIB) $(LIBOBJ)
  38. $(RANLIB) $(LIB) || echo Never mind.
  39. @sleep 2; touch lib
  40. fips_standalone_sha1: fips_standalone_sha1.o fips_sha1dgst.o
  41. $(CC) -o fips_standalone_sha1 $(CFLAGS) fips_standalone_sha1.o \
  42. fips_sha1dgst.o $(FIPS_SHA1_ASM_OBJ)
  43. files:
  44. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  45. links:
  46. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
  47. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST)
  48. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TESTDATA)
  49. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS)
  50. install:
  51. @for i in $(EXHEADER) ; \
  52. do \
  53. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  54. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  55. done;
  56. tags:
  57. ctags $(SRC)
  58. tests:
  59. top_fips_sha1test:
  60. (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) TARGET=fips_sha1test sub_target)
  61. fips_sha1test: fips_sha1test.o $(TOP)/libcrypto.a
  62. $(CC) $(CFLAGS) -o fips_sha1test fips_sha1test.o $(PEX_LIBS) $(TOP)/libcrypto.a $(EX_LIBS)
  63. TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a fips_sha1test
  64. fips_test: top_fips_sha1test
  65. -rm -rf ../testvectors/sha1/rsp
  66. mkdir ../testvectors/sha1/rsp
  67. ./fips_sha1test ../testvectors/sha1/req/sha.req > ../testvectors/sha1/rsp/sha.rsp
  68. lint:
  69. lint -DLINT $(INCLUDES) $(SRC)>fluff
  70. depend:
  71. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
  72. dclean:
  73. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  74. mv -f Makefile.new $(MAKEFILE)
  75. clean:
  76. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE)
  77. # DO NOT DELETE THIS LINE -- make depend depends on it.
  78. fips_sha1_selftest.o: ../../include/openssl/bio.h
  79. fips_sha1_selftest.o: ../../include/openssl/crypto.h
  80. fips_sha1_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  81. fips_sha1_selftest.o: ../../include/openssl/fips.h
  82. fips_sha1_selftest.o: ../../include/openssl/lhash.h
  83. fips_sha1_selftest.o: ../../include/openssl/opensslconf.h
  84. fips_sha1_selftest.o: ../../include/openssl/opensslv.h
  85. fips_sha1_selftest.o: ../../include/openssl/safestack.h
  86. fips_sha1_selftest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
  87. fips_sha1_selftest.o: ../../include/openssl/symhacks.h fips_sha1_selftest.c
  88. fips_sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h
  89. fips_sha1dgst.o: ../../include/openssl/opensslconf.h
  90. fips_sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
  91. fips_sha1dgst.o: fips_md32_common.h fips_sha1dgst.c fips_sha_locl.h
  92. fips_sha1test.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
  93. fips_sha1test.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  94. fips_sha1test.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
  95. fips_sha1test.o: ../../include/openssl/opensslconf.h
  96. fips_sha1test.o: ../../include/openssl/opensslv.h
  97. fips_sha1test.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
  98. fips_sha1test.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  99. fips_sha1test.o: fips_sha1test.c
  100. fips_standalone_sha1.o: ../../include/openssl/aes.h
  101. fips_standalone_sha1.o: ../../include/openssl/asn1.h
  102. fips_standalone_sha1.o: ../../include/openssl/bio.h
  103. fips_standalone_sha1.o: ../../include/openssl/blowfish.h
  104. fips_standalone_sha1.o: ../../include/openssl/bn.h ../../include/openssl/cast.h
  105. fips_standalone_sha1.o: ../../include/openssl/crypto.h
  106. fips_standalone_sha1.o: ../../include/openssl/des.h
  107. fips_standalone_sha1.o: ../../include/openssl/des_old.h
  108. fips_standalone_sha1.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
  109. fips_standalone_sha1.o: ../../include/openssl/e_os2.h
  110. fips_standalone_sha1.o: ../../include/openssl/evp.h
  111. fips_standalone_sha1.o: ../../include/openssl/hmac.h
  112. fips_standalone_sha1.o: ../../include/openssl/idea.h
  113. fips_standalone_sha1.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
  114. fips_standalone_sha1.o: ../../include/openssl/md5.h
  115. fips_standalone_sha1.o: ../../include/openssl/mdc2.h
  116. fips_standalone_sha1.o: ../../include/openssl/obj_mac.h
  117. fips_standalone_sha1.o: ../../include/openssl/objects.h
  118. fips_standalone_sha1.o: ../../include/openssl/opensslconf.h
  119. fips_standalone_sha1.o: ../../include/openssl/opensslv.h
  120. fips_standalone_sha1.o: ../../include/openssl/ossl_typ.h
  121. fips_standalone_sha1.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
  122. fips_standalone_sha1.o: ../../include/openssl/rc5.h
  123. fips_standalone_sha1.o: ../../include/openssl/ripemd.h
  124. fips_standalone_sha1.o: ../../include/openssl/rsa.h
  125. fips_standalone_sha1.o: ../../include/openssl/safestack.h
  126. fips_standalone_sha1.o: ../../include/openssl/sha.h
  127. fips_standalone_sha1.o: ../../include/openssl/stack.h
  128. fips_standalone_sha1.o: ../../include/openssl/symhacks.h
  129. fips_standalone_sha1.o: ../../include/openssl/ui.h
  130. fips_standalone_sha1.o: ../../include/openssl/ui_compat.h
  131. fips_standalone_sha1.o: fips_standalone_sha1.c