2
0

Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. #
  2. # OpenSSL/fips/des/Makefile
  3. #
  4. DIR= des
  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. ASFLAGS= $(INCLUDES) $(ASFLAG)
  17. AFLAGS= $(ASFLAGS)
  18. CFLAGS= $(INCLUDES) $(CFLAG)
  19. GENERAL=Makefile
  20. TEST= fips_desmovs.c
  21. APPS=
  22. LIB=$(TOP)/libcrypto.a
  23. LIBSRC=fips_des_selftest.c
  24. LIBOBJ=fips_des_selftest.o
  25. SRC= $(LIBSRC)
  26. EXHEADER=
  27. HEADER=
  28. ALL= $(GENERAL) $(SRC) $(HEADER)
  29. top:
  30. (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) sub_all)
  31. all: lib
  32. lib: $(LIBOBJ)
  33. @echo $(LIBOBJ) > lib
  34. files:
  35. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  36. links:
  37. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
  38. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST)
  39. @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS)
  40. install:
  41. @headerlist="$(EXHEADER)"; for i in $$headerlist; \
  42. do \
  43. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  44. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  45. done
  46. tags:
  47. ctags $(SRC)
  48. tests:
  49. fips_test:
  50. -find ../testvectors/tdes/req -name '*.req' > testlist
  51. -rm -rf ../testvectors/tdes/rsp
  52. mkdir ../testvectors/tdes/rsp
  53. if [ -s testlist ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_desmovs -d testlist; fi
  54. lint:
  55. lint -DLINT $(INCLUDES) $(SRC)>fluff
  56. depend:
  57. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) \
  58. $(SRC) $(TEST)
  59. dclean:
  60. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  61. mv -f Makefile.new $(MAKEFILE)
  62. clean:
  63. rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff testlist
  64. # DO NOT DELETE THIS LINE -- make depend depends on it.
  65. fips_des_selftest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  66. fips_des_selftest.o: ../../include/openssl/crypto.h
  67. fips_des_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  68. fips_des_selftest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  69. fips_des_selftest.o: ../../include/openssl/lhash.h
  70. fips_des_selftest.o: ../../include/openssl/obj_mac.h
  71. fips_des_selftest.o: ../../include/openssl/objects.h
  72. fips_des_selftest.o: ../../include/openssl/opensslconf.h
  73. fips_des_selftest.o: ../../include/openssl/opensslv.h
  74. fips_des_selftest.o: ../../include/openssl/ossl_typ.h
  75. fips_des_selftest.o: ../../include/openssl/safestack.h
  76. fips_des_selftest.o: ../../include/openssl/stack.h
  77. fips_des_selftest.o: ../../include/openssl/symhacks.h fips_des_selftest.c
  78. fips_desmovs.o: ../../e_os.h ../../include/openssl/asn1.h
  79. fips_desmovs.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
  80. fips_desmovs.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
  81. fips_desmovs.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
  82. fips_desmovs.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  83. fips_desmovs.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
  84. fips_desmovs.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  85. fips_desmovs.o: ../../include/openssl/opensslconf.h
  86. fips_desmovs.o: ../../include/openssl/opensslv.h
  87. fips_desmovs.o: ../../include/openssl/ossl_typ.h
  88. fips_desmovs.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  89. fips_desmovs.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
  90. fips_desmovs.o: ../../include/openssl/ui_compat.h ../fips_utl.h fips_desmovs.c