Makefile.am 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. bin_PROGRAMS= scrypt
  2. noinst_PROGRAMS= tests/test_scrypt tests/valgrind/potential-memleaks
  3. dist_man_MANS=$(scrypt_man_MANS)
  4. scrypt_SOURCES= main.c \
  5. libcperciva/alg/sha256.c \
  6. libcperciva/cpusupport/cpusupport_x86_aesni.c \
  7. libcperciva/cpusupport/cpusupport_x86_sse2.c \
  8. libcperciva/crypto/crypto_aes.c \
  9. libcperciva/crypto/crypto_aesctr.c \
  10. libcperciva/crypto/crypto_entropy.c \
  11. libcperciva/util/asprintf.c \
  12. libcperciva/util/entropy.c \
  13. libcperciva/util/getopt.c \
  14. libcperciva/util/humansize.c \
  15. libcperciva/util/insecure_memzero.c \
  16. libcperciva/util/readpass.c \
  17. libcperciva/util/warnp.c \
  18. lib/crypto/crypto_scrypt.c \
  19. lib/crypto/crypto_scrypt_smix.c \
  20. lib/scryptenc/scryptenc.c \
  21. lib/scryptenc/scryptenc_cpuperf.c \
  22. lib/util/memlimit.c \
  23. lib/crypto/crypto_scrypt.h \
  24. lib/crypto/crypto_scrypt_smix.h \
  25. lib/crypto/crypto_scrypt_smix_sse2.h \
  26. lib/scryptenc/scryptenc.h \
  27. lib/scryptenc/scryptenc_cpuperf.h \
  28. lib/util/memlimit.h \
  29. libcperciva/alg/sha256.h \
  30. libcperciva/cpusupport/cpusupport.h \
  31. libcperciva/crypto/crypto_aes.h \
  32. libcperciva/crypto/crypto_aes_aesni.h \
  33. libcperciva/crypto/crypto_aesctr.h \
  34. libcperciva/crypto/crypto_entropy.h \
  35. libcperciva/util/asprintf.h \
  36. libcperciva/util/entropy.h \
  37. libcperciva/util/getopt.h \
  38. libcperciva/util/humansize.h \
  39. libcperciva/util/insecure_memzero.h \
  40. libcperciva/util/readpass.h \
  41. libcperciva/util/sysendian.h \
  42. libcperciva/util/warnp.h \
  43. scrypt_platform.h
  44. AM_CPPFLAGS= -I$(srcdir)/libcperciva/alg \
  45. -I$(srcdir)/libcperciva/cpusupport \
  46. -I$(srcdir)/libcperciva/crypto \
  47. -I$(srcdir)/libcperciva/util \
  48. -I$(srcdir)/lib/crypto \
  49. -I$(srcdir)/lib/scryptenc \
  50. -I$(srcdir)/lib/util \
  51. -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" \
  52. -D_POSIX_C_SOURCE=200809L
  53. scrypt_LDADD= libcperciva_aesni.a libscrypt_sse2.a
  54. scrypt_man_MANS= scrypt.1
  55. cpusupport-config.h:
  56. ( export CC="${CC}"; export CFLAGS="${CFLAGS}"; command -p sh $(srcdir)/libcperciva/cpusupport/Build/cpusupport.sh "$$PATH") > cpusupport-config.h.tmp && command -p mv cpusupport-config.h.tmp cpusupport-config.h
  57. BUILT_SOURCES= cpusupport-config.h
  58. CLEANFILES= cpusupport-config.h cpusupport-config.h.tmp
  59. noinst_LIBRARIES= libcperciva_aesni.a
  60. libcperciva_aesni_a_SOURCES= libcperciva/crypto/crypto_aes_aesni.c
  61. libcperciva_aesni_a_CFLAGS=`. ./cpusupport-config.h; echo $${CFLAGS_X86_AESNI}`
  62. noinst_LIBRARIES+= libscrypt_sse2.a
  63. libscrypt_sse2_a_SOURCES= lib/crypto/crypto_scrypt_smix_sse2.c
  64. libscrypt_sse2_a_CFLAGS=`. ./cpusupport-config.h; echo $${CFLAGS_X86_SSE2}`
  65. EXTRA_DIST = \
  66. COPYRIGHT \
  67. FORMAT \
  68. lib/README \
  69. README.md \
  70. lib/crypto/crypto_scrypt-ref.c \
  71. libcperciva/cpusupport/Build/cpusupport-X86-AESNI.c \
  72. libcperciva/cpusupport/Build/cpusupport-X86-CPUID.c \
  73. libcperciva/cpusupport/Build/cpusupport-X86-SSE2.c \
  74. libcperciva/cpusupport/Build/cpusupport.sh \
  75. tests/test_scrypt.good \
  76. tests/test_scrypt_good.enc \
  77. tests/shared_test_functions.sh \
  78. tests/01-known-values.sh \
  79. tests/02-decrypt-reference-file.sh \
  80. tests/03-encrypt-decrypt-file.sh \
  81. tests/04-force-resources.sh \
  82. tests/05-system-scrypt-encrypt-decrypt.sh \
  83. tests/test_scrypt.sh
  84. tests_test_scrypt_SOURCES = tests/test_scrypt.c \
  85. libcperciva/alg/sha256.c \
  86. libcperciva/alg/sha256.h \
  87. libcperciva/cpusupport/cpusupport_x86_sse2.c \
  88. libcperciva/util/insecure_memzero.c \
  89. libcperciva/util/insecure_memzero.h \
  90. libcperciva/util/warnp.c \
  91. libcperciva/util/warnp.h \
  92. lib/crypto/crypto_scrypt.c \
  93. lib/crypto/crypto_scrypt.h \
  94. lib/crypto/crypto_scrypt_smix.c \
  95. lib/crypto/crypto_scrypt_smix.h
  96. tests_test_scrypt_LDADD= libscrypt_sse2.a
  97. tests_valgrind_potential_memleaks_SOURCES = tests/valgrind/potential-memleaks.c
  98. .PHONY: test
  99. # we can't only build "scrypt tests/test_scrypt" because that won't build
  100. # the BUILT_SOURCES.
  101. test: all
  102. $(top_srcdir)/tests/test_scrypt.sh .