Makefile 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. #
  2. # OpenSSL/fips/aes/Makefile
  3. #
  4. DIR= aes
  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_aesavs.c fips_gcmtest.c
  21. APPS=
  22. LIB=$(TOP)/libcrypto.a
  23. LIBSRC=fips_aes_selftest.c
  24. LIBOBJ=fips_aes_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/aes/req -name '*.req' > testlist
  51. -rm -rf ../testvectors/aes/rsp
  52. mkdir ../testvectors/aes/rsp
  53. if [ -s testlist ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_aesavs -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_aes_selftest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  66. fips_aes_selftest.o: ../../include/openssl/crypto.h
  67. fips_aes_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  68. fips_aes_selftest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  69. fips_aes_selftest.o: ../../include/openssl/lhash.h
  70. fips_aes_selftest.o: ../../include/openssl/obj_mac.h
  71. fips_aes_selftest.o: ../../include/openssl/objects.h
  72. fips_aes_selftest.o: ../../include/openssl/opensslconf.h
  73. fips_aes_selftest.o: ../../include/openssl/opensslv.h
  74. fips_aes_selftest.o: ../../include/openssl/ossl_typ.h
  75. fips_aes_selftest.o: ../../include/openssl/safestack.h
  76. fips_aes_selftest.o: ../../include/openssl/stack.h
  77. fips_aes_selftest.o: ../../include/openssl/symhacks.h fips_aes_selftest.c
  78. fips_aesavs.o: ../../e_os.h ../../include/openssl/aes.h
  79. fips_aesavs.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  80. fips_aesavs.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  81. fips_aesavs.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  82. fips_aesavs.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
  83. fips_aesavs.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  84. fips_aesavs.o: ../../include/openssl/objects.h
  85. fips_aesavs.o: ../../include/openssl/opensslconf.h
  86. fips_aesavs.o: ../../include/openssl/opensslv.h
  87. fips_aesavs.o: ../../include/openssl/ossl_typ.h
  88. fips_aesavs.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  89. fips_aesavs.o: ../../include/openssl/symhacks.h ../fips_utl.h fips_aesavs.c
  90. fips_gcmtest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  91. fips_gcmtest.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
  92. fips_gcmtest.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
  93. fips_gcmtest.o: ../../include/openssl/err.h ../../include/openssl/evp.h
  94. fips_gcmtest.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
  95. fips_gcmtest.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
  96. fips_gcmtest.o: ../../include/openssl/opensslconf.h
  97. fips_gcmtest.o: ../../include/openssl/opensslv.h
  98. fips_gcmtest.o: ../../include/openssl/ossl_typ.h
  99. fips_gcmtest.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  100. fips_gcmtest.o: ../../include/openssl/symhacks.h ../fips_utl.h fips_gcmtest.c