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